ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.155
Committed: Sun Jun 10 16:18:26 2012 UTC (11 years, 11 months ago) by root
Branch: MAIN
Changes since 1.154: +96 -89 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="src/feature.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_subst_vars='LTLIBOBJS
595 LIBOBJS
596 PERL_O
597 IF_PERL
598 PERLPRIVLIBEXP
599 PERLFLAGS
600 PERLLIB
601 PERL
602 PIXBUF_LIBS
603 PIXBUF_CFLAGS
604 XFT_CONFIG
605 STARTUP_NOTIFICATION_LIBS
606 STARTUP_NOTIFICATION_CFLAGS
607 PKG_CONFIG
608 X_EXTRA_LIBS
609 X_LIBS
610 X_PRE_LIBS
611 X_CFLAGS
612 XMKMF
613 TIC
614 CXXCPP
615 RXVTNAME
616 LINKER
617 EGREP
618 GREP
619 CPP
620 INSTALL_DATA
621 INSTALL_SCRIPT
622 INSTALL_PROGRAM
623 ac_ct_CXX
624 CXXFLAGS
625 CXX
626 OBJEXT
627 EXEEXT
628 ac_ct_CC
629 CPPFLAGS
630 LDFLAGS
631 CFLAGS
632 CC
633 DATE
634 VERSION
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 target_alias
644 host_alias
645 build_alias
646 LIBS
647 ECHO_T
648 ECHO_N
649 ECHO_C
650 DEFS
651 mandir
652 localedir
653 libdir
654 psdir
655 pdfdir
656 dvidir
657 htmldir
658 infodir
659 docdir
660 oldincludedir
661 includedir
662 localstatedir
663 sharedstatedir
664 sysconfdir
665 datadir
666 datarootdir
667 libexecdir
668 sbindir
669 bindir
670 program_transform_name
671 prefix
672 exec_prefix
673 PACKAGE_URL
674 PACKAGE_BUGREPORT
675 PACKAGE_STRING
676 PACKAGE_VERSION
677 PACKAGE_TARNAME
678 PACKAGE_NAME
679 PATH_SEPARATOR
680 SHELL'
681 ac_subst_files=''
682 ac_user_opts='
683 enable_option_checking
684 enable_everything
685 enable_assert
686 enable_warnings
687 enable_256_color
688 enable_unicode3
689 enable_combining
690 enable_xft
691 enable_font_styles
692 enable_pixbuf
693 enable_startup_notification
694 enable_transparency
695 enable_fading
696 enable_rxvt_scroll
697 enable_next_scroll
698 enable_xterm_scroll
699 enable_perl
700 with_codesets
701 enable_xim
702 enable_backspace_key
703 enable_delete_key
704 enable_resources
705 enable_8bitctrls
706 enable_fallback
707 with_res_name
708 with_res_class
709 with_name
710 enable_swapscreen
711 enable_iso14755
712 enable_frills
713 enable_keepscrolling
714 enable_selectionscrolling
715 enable_mousewheel
716 enable_slipwheeling
717 enable_smart_resize
718 enable_text_blink
719 enable_pointer_blank
720 with_term
721 with_terminfo
722 with_x
723 enable_utmp
724 enable_wtmp
725 enable_lastlog
726 '
727 ac_precious_vars='build_alias
728 host_alias
729 target_alias
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CXX
736 CXXFLAGS
737 CCC
738 CPP
739 CXXCPP
740 XMKMF'
741
742
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 ac_unrecognized_opts=
747 ac_unrecognized_sep=
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
807
808 # Accept the important Cygnus configure options, so we can diagnose typos.
809
810 case $ac_dashdash$ac_option in
811 --)
812 ac_dashdash=yes ;;
813
814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 ac_prev=bindir ;;
816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 bindir=$ac_optarg ;;
818
819 -build | --build | --buil | --bui | --bu)
820 ac_prev=build_alias ;;
821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822 build_alias=$ac_optarg ;;
823
824 -cache-file | --cache-file | --cache-fil | --cache-fi \
825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826 ac_prev=cache_file ;;
827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829 cache_file=$ac_optarg ;;
830
831 --config-cache | -C)
832 cache_file=config.cache ;;
833
834 -datadir | --datadir | --datadi | --datad)
835 ac_prev=datadir ;;
836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
837 datadir=$ac_optarg ;;
838
839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840 | --dataroo | --dataro | --datar)
841 ac_prev=datarootdir ;;
842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844 datarootdir=$ac_optarg ;;
845
846 -disable-* | --disable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
861
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
866
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
871
872 -enable-* | --enable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=\$ac_optarg ;;
887
888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890 | --exec | --exe | --ex)
891 ac_prev=exec_prefix ;;
892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894 | --exec=* | --exe=* | --ex=*)
895 exec_prefix=$ac_optarg ;;
896
897 -gas | --gas | --ga | --g)
898 # Obsolete; use --with-gas.
899 with_gas=yes ;;
900
901 -help | --help | --hel | --he | -h)
902 ac_init_help=long ;;
903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904 ac_init_help=recursive ;;
905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906 ac_init_help=short ;;
907
908 -host | --host | --hos | --ho)
909 ac_prev=host_alias ;;
910 -host=* | --host=* | --hos=* | --ho=*)
911 host_alias=$ac_optarg ;;
912
913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 ac_prev=htmldir ;;
915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 | --ht=*)
917 htmldir=$ac_optarg ;;
918
919 -includedir | --includedir | --includedi | --included | --include \
920 | --includ | --inclu | --incl | --inc)
921 ac_prev=includedir ;;
922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923 | --includ=* | --inclu=* | --incl=* | --inc=*)
924 includedir=$ac_optarg ;;
925
926 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 ac_prev=infodir ;;
928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929 infodir=$ac_optarg ;;
930
931 -libdir | --libdir | --libdi | --libd)
932 ac_prev=libdir ;;
933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 libdir=$ac_optarg ;;
935
936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937 | --libexe | --libex | --libe)
938 ac_prev=libexecdir ;;
939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940 | --libexe=* | --libex=* | --libe=*)
941 libexecdir=$ac_optarg ;;
942
943 -localedir | --localedir | --localedi | --localed | --locale)
944 ac_prev=localedir ;;
945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946 localedir=$ac_optarg ;;
947
948 -localstatedir | --localstatedir | --localstatedi | --localstated \
949 | --localstate | --localstat | --localsta | --localst | --locals)
950 ac_prev=localstatedir ;;
951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953 localstatedir=$ac_optarg ;;
954
955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 ac_prev=mandir ;;
957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 mandir=$ac_optarg ;;
959
960 -nfp | --nfp | --nf)
961 # Obsolete; use --without-fp.
962 with_fp=no ;;
963
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c | -n)
966 no_create=yes ;;
967
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 no_recursion=yes ;;
971
972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974 | --oldin | --oldi | --old | --ol | --o)
975 ac_prev=oldincludedir ;;
976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979 oldincludedir=$ac_optarg ;;
980
981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 ac_prev=prefix ;;
983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 prefix=$ac_optarg ;;
985
986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
987 | --program-pre | --program-pr | --program-p)
988 ac_prev=program_prefix ;;
989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991 program_prefix=$ac_optarg ;;
992
993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
994 | --program-suf | --program-su | --program-s)
995 ac_prev=program_suffix ;;
996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998 program_suffix=$ac_optarg ;;
999
1000 -program-transform-name | --program-transform-name \
1001 | --program-transform-nam | --program-transform-na \
1002 | --program-transform-n | --program-transform- \
1003 | --program-transform | --program-transfor \
1004 | --program-transfo | --program-transf \
1005 | --program-trans | --program-tran \
1006 | --progr-tra | --program-tr | --program-t)
1007 ac_prev=program_transform_name ;;
1008 -program-transform-name=* | --program-transform-name=* \
1009 | --program-transform-nam=* | --program-transform-na=* \
1010 | --program-transform-n=* | --program-transform-=* \
1011 | --program-transform=* | --program-transfor=* \
1012 | --program-transfo=* | --program-transf=* \
1013 | --program-trans=* | --program-tran=* \
1014 | --progr-tra=* | --program-tr=* | --program-t=*)
1015 program_transform_name=$ac_optarg ;;
1016
1017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 ac_prev=pdfdir ;;
1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020 pdfdir=$ac_optarg ;;
1021
1022 -psdir | --psdir | --psdi | --psd | --ps)
1023 ac_prev=psdir ;;
1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 psdir=$ac_optarg ;;
1026
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 silent=yes ;;
1030
1031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1032 ac_prev=sbindir ;;
1033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1034 | --sbi=* | --sb=*)
1035 sbindir=$ac_optarg ;;
1036
1037 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1039 | --sharedst | --shareds | --shared | --share | --shar \
1040 | --sha | --sh)
1041 ac_prev=sharedstatedir ;;
1042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1045 | --sha=* | --sh=*)
1046 sharedstatedir=$ac_optarg ;;
1047
1048 -site | --site | --sit)
1049 ac_prev=site ;;
1050 -site=* | --site=* | --sit=*)
1051 site=$ac_optarg ;;
1052
1053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1054 ac_prev=srcdir ;;
1055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1056 srcdir=$ac_optarg ;;
1057
1058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1059 | --syscon | --sysco | --sysc | --sys | --sy)
1060 ac_prev=sysconfdir ;;
1061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1063 sysconfdir=$ac_optarg ;;
1064
1065 -target | --target | --targe | --targ | --tar | --ta | --t)
1066 ac_prev=target_alias ;;
1067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1068 target_alias=$ac_optarg ;;
1069
1070 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1071 verbose=yes ;;
1072
1073 -version | --version | --versio | --versi | --vers | -V)
1074 ac_init_version=: ;;
1075
1076 -with-* | --with-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "with_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval with_$ac_useropt=\$ac_optarg ;;
1091
1092 -without-* | --without-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=no ;;
1107
1108 --x)
1109 # Obsolete; use --with-x.
1110 with_x=yes ;;
1111
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1118
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1125
1126 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1127 Try \`$0 --help' for more information"
1128 ;;
1129
1130 *=*)
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 case $ac_envvar in #(
1134 '' | [0-9]* | *[!_$as_cr_alnum]* )
1135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1136 esac
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1139
1140 *)
1141 # FIXME: should be removed in autoconf 3.0.
1142 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 ;;
1147
1148 esac
1149 done
1150
1151 if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 as_fn_error $? "missing argument to $ac_option"
1154 fi
1155
1156 if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1158 no) ;;
1159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1160 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161 esac
1162 fi
1163
1164 # Check all directory arguments for consistency.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1169 do
1170 eval ac_val=\$$ac_var
1171 # Remove trailing slashes.
1172 case $ac_val in
1173 */ )
1174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1175 eval $ac_var=\$ac_val;;
1176 esac
1177 # Be sure to have absolute directory names.
1178 case $ac_val in
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 esac
1182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1183 done
1184
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1188 build=$build_alias
1189 host=$host_alias
1190 target=$target_alias
1191
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1197 If a cross compiler is detected then cross compile mode will be used" >&2
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1200 fi
1201 fi
1202
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206 test "$silent" = yes && exec 6>/dev/null
1207
1208
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 as_fn_error $? "working directory cannot be determined"
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 as_fn_error $? "pwd does not report name of working directory"
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$as_myself" ||
1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$as_myself" : 'X\(//\)[^/]' \| \
1224 X"$as_myself" : 'X\(//\)$' \| \
1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226 $as_echo X"$as_myself" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\).*/{
1240 s//\1/
1241 q
1242 }
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1247 fi
1248 else
1249 ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1254 fi
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1262 fi
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1275
1276 #
1277 # Report the --help message.
1278 #
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures this package to adapt to many kinds of systems.
1284
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1289
1290 Defaults for the options are specified in brackets.
1291
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking ...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1308
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1313
1314 For better control, use the options below.
1315
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1337
1338 cat <<\_ACEOF
1339
1340 X features:
1341 --x-includes=DIR X include files are in DIR
1342 --x-libraries=DIR X library files are in DIR
1343
1344 System types:
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 _ACEOF
1348 fi
1349
1350 if test -n "$ac_init_help"; then
1351
1352 cat <<\_ACEOF
1353
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-everything enable standard non-multichoice features
1359 NOTE: this option is order dependent
1360 --enable-assert enable assertions
1361 --enable-warnings turn on g++ warnings
1362 --enable-256-color enable 256-color support
1363 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1364 --enable-combining enable composition of base and combining characters
1365 --enable-xft enable xft support on systems that have it
1366 --enable-font-styles enable bold and italic support
1367 --enable-pixbuf enable integration with gdk-pixbuf for background images
1368 --enable-startup-notification enable freedesktop startup notification support
1369 --enable-transparency enable transparent backgrounds
1370 --enable-fading enable colors fading when off focus
1371 --enable-rxvt-scroll enable rxvt style scrollbar
1372 --enable-next-scroll enable NeXT style scrollbar
1373 --enable-xterm-scroll enable Xterm style scrollbar
1374 --enable-perl enable embedded perl interpreter
1375 --enable-xim XIM (X Input Method) protocol support
1376 --disable-backspace-key disable handling of the backspace key
1377 --disable-delete-key disable handling of the delete key
1378 --disable-resources disable all resource checking
1379 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1380 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1381 --disable-swapscreen disable swap screen support
1382 --enable-iso14755 enable support for extended ISO 14755 modes
1383 --enable-frills enable support for rarely used features
1384 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1385 --enable-selectionscrolling enable scrolling during selections
1386 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1387 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1388 --enable-smart-resize enable smart growth/shrink behaviour
1389 --enable-text-blink enable blinking text
1390 --enable-pointer-blank enable pointer blanking when typing or inactive
1391 --enable-utmp enable utmp (utmpx) support
1392 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1393 --enable-lastlog enable lastlog support (requires --enable-utmp)
1394
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1399 --with-res-name=NAME use this as default resource name (default: urxvt)
1400 --with-res-class=CLASS use this as the resource class (default: URxvt)
1401 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1402 --with-term=NAME set the terminal to NAME (default: rxvt)
1403 --with-terminfo=PATH set the path to the terminfo tree to PATH
1404 --with-x use the X Window System
1405
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CPP C preprocessor
1417 CXXCPP C++ preprocessor
1418 XMKMF Path to xmkmf, Makefile generator for X Window System
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to the package provider.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 configure
1487 generated by GNU Autoconf 2.67
1488
1489 Copyright (C) 2010 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_cxx_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_cxx_try_compile
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616 # the include files in INCLUDES and setting the cache variable VAR
1617 # accordingly.
1618 ac_fn_c_check_header_mongrel ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if eval "test \"\${$3+set}\"" = set; then :
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval "test \"\${$3+set}\"" = set; then :
1625 $as_echo_n "(cached) " >&6
1626 fi
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 else
1631 # Is the header compilable?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633 $as_echo_n "checking $2 usability... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 ac_header_compiler=yes
1641 else
1642 ac_header_compiler=no
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646 $as_echo "$ac_header_compiler" >&6; }
1647
1648 # Is the header present?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650 $as_echo_n "checking $2 presence... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_cpp "$LINENO"; then :
1656 ac_header_preproc=yes
1657 else
1658 ac_header_preproc=no
1659 fi
1660 rm -f conftest.err conftest.i conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662 $as_echo "$ac_header_preproc" >&6; }
1663
1664 # So? What about this header?
1665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1666 yes:no: )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 ;;
1672 no:yes:* )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ;;
1684 esac
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval "test \"\${$3+set}\"" = set; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 eval "$3=\$ac_header_compiler"
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 fi
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697
1698 } # ac_fn_c_check_header_mongrel
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=$ac_status
1735 fi
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval "test \"\${$3+set}\"" = set; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761 else
1762 eval "$3=no"
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771 } # ac_fn_c_check_header_compile
1772
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_link ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_link
1818
1819 # ac_fn_cxx_try_link LINENO
1820 # -------------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_link ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1862
1863 } # ac_fn_cxx_try_link
1864
1865 # ac_fn_cxx_try_cpp LINENO
1866 # ------------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_cxx_try_cpp ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_cpp conftest.$ac_ext"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1884 fi
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } > conftest.i && {
1887 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896 fi
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 as_fn_set_status $ac_retval
1899
1900 } # ac_fn_cxx_try_cpp
1901
1902 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # ---------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1906 # accordingly.
1907 ac_fn_cxx_check_header_mongrel ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if eval "test \"\${$3+set}\"" = set; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 $as_echo_n "(cached) " >&6
1915 fi
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 else
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_cxx_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1930 else
1931 ac_header_compiler=no
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1936
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_cxx_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1946 else
1947 ac_header_preproc=no
1948 fi
1949 rm -f conftest.err conftest.i conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1952
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1955 yes:no: )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ;;
1961 no:yes:* )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 ;;
1973 esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=\$ac_header_compiler"
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 fi
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_cxx_check_header_mongrel
1988
1989 # ac_fn_cxx_check_func LINENO FUNC VAR
1990 # ------------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_cxx_check_func ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval "test \"\${$3+set}\"" = set; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2004 #define $2 innocuous_$2
2005
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $2 (); below.
2008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009 <limits.h> exists even on freestanding compilers. */
2010
2011 #ifdef __STDC__
2012 # include <limits.h>
2013 #else
2014 # include <assert.h>
2015 #endif
2016
2017 #undef $2
2018
2019 /* Override any GCC internal prototype to avoid an error.
2020 Use char because int might match the return type of a GCC
2021 builtin and then its argument prototype would still apply. */
2022 #ifdef __cplusplus
2023 extern "C"
2024 #endif
2025 char $2 ();
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined __stub_$2 || defined __stub___$2
2030 choke me
2031 #endif
2032
2033 int
2034 main ()
2035 {
2036 return $2 ();
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_cxx_try_link "$LINENO"; then :
2042 eval "$3=yes"
2043 else
2044 eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext \
2047 conftest$ac_exeext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054 } # ac_fn_cxx_check_func
2055
2056 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2057 # ---------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_cxx_check_type ()
2061 {
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 if (sizeof ($2))
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_cxx_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 if (sizeof (($2)))
2089 return 0;
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_cxx_try_compile "$LINENO"; then :
2095
2096 else
2097 eval "$3=yes"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_cxx_check_type
2109
2110 # ac_fn_c_find_intX_t LINENO BITS VAR
2111 # -----------------------------------
2112 # Finds a signed integer type with width BITS, setting cache variable VAR
2113 # accordingly.
2114 ac_fn_c_find_intX_t ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2118 $as_echo_n "checking for int$2_t... " >&6; }
2119 if eval "test \"\${$3+set}\"" = set; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=no"
2123 # Order is important - never check a type that is potentially smaller
2124 # than half of the expected target width.
2125 for ac_type in int$2_t 'int' 'long int' \
2126 'long long int' 'short int' 'signed char'; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $ac_includes_default
2130 enum { N = $2 / 2 - 1 };
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2135 test_array [0] = 0
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_cxx_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2150 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2151 test_array [0] = 0
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_cxx_try_compile "$LINENO"; then :
2158
2159 else
2160 case $ac_type in #(
2161 int$2_t) :
2162 eval "$3=yes" ;; #(
2163 *) :
2164 eval "$3=\$ac_type" ;;
2165 esac
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 if eval test \"x\$"$3"\" = x"no"; then :
2171
2172 else
2173 break
2174 fi
2175 done
2176 fi
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181
2182 } # ac_fn_c_find_intX_t
2183
2184 # ac_fn_c_find_uintX_t LINENO BITS VAR
2185 # ------------------------------------
2186 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2187 # accordingly.
2188 ac_fn_c_find_uintX_t ()
2189 {
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2192 $as_echo_n "checking for uint$2_t... " >&6; }
2193 if eval "test \"\${$3+set}\"" = set; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=no"
2197 # Order is important - never check a type that is potentially smaller
2198 # than half of the expected target width.
2199 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $ac_includes_default
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 case $ac_type in #(
2216 uint$2_t) :
2217 eval "$3=yes" ;; #(
2218 *) :
2219 eval "$3=\$ac_type" ;;
2220 esac
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 if eval test \"x\$"$3"\" = x"no"; then :
2224
2225 else
2226 break
2227 fi
2228 done
2229 fi
2230 eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234
2235 } # ac_fn_c_find_uintX_t
2236
2237 # ac_fn_cxx_try_run LINENO
2238 # ------------------------
2239 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2240 # that executables *can* be run.
2241 ac_fn_cxx_try_run ()
2242 {
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 if { { ac_try="$ac_link"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_link") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2255 { { case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_try") 2>&5
2262 ac_status=$?
2263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; }; }; then :
2265 ac_retval=0
2266 else
2267 $as_echo "$as_me: program exited with status $ac_status" >&5
2268 $as_echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 ac_retval=$ac_status
2272 fi
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 as_fn_set_status $ac_retval
2276
2277 } # ac_fn_cxx_try_run
2278 cat >config.log <<_ACEOF
2279 This file contains any messages produced by compilers while
2280 running configure, to aid debugging if configure makes a mistake.
2281
2282 It was created by $as_me, which was
2283 generated by GNU Autoconf 2.67. Invocation command line was
2284
2285 $ $0 $@
2286
2287 _ACEOF
2288 exec 5>>config.log
2289 {
2290 cat <<_ASUNAME
2291 ## --------- ##
2292 ## Platform. ##
2293 ## --------- ##
2294
2295 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2296 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2297 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2298 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2299 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300
2301 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2302 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2303
2304 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2305 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2306 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2307 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2308 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2309 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2310 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2311
2312 _ASUNAME
2313
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 $as_echo "PATH: $as_dir"
2320 done
2321 IFS=$as_save_IFS
2322
2323 } >&5
2324
2325 cat >&5 <<_ACEOF
2326
2327
2328 ## ----------- ##
2329 ## Core tests. ##
2330 ## ----------- ##
2331
2332 _ACEOF
2333
2334
2335 # Keep a trace of the command line.
2336 # Strip out --no-create and --no-recursion so they do not pile up.
2337 # Strip out --silent because we don't want to record it for future runs.
2338 # Also quote any args containing shell meta-characters.
2339 # Make two passes to allow for proper duplicate-argument suppression.
2340 ac_configure_args=
2341 ac_configure_args0=
2342 ac_configure_args1=
2343 ac_must_keep_next=false
2344 for ac_pass in 1 2
2345 do
2346 for ac_arg
2347 do
2348 case $ac_arg in
2349 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2351 | -silent | --silent | --silen | --sile | --sil)
2352 continue ;;
2353 *\'*)
2354 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2355 esac
2356 case $ac_pass in
2357 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358 2)
2359 as_fn_append ac_configure_args1 " '$ac_arg'"
2360 if test $ac_must_keep_next = true; then
2361 ac_must_keep_next=false # Got value, back to normal.
2362 else
2363 case $ac_arg in
2364 *=* | --config-cache | -C | -disable-* | --disable-* \
2365 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2366 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2367 | -with-* | --with-* | -without-* | --without-* | --x)
2368 case "$ac_configure_args0 " in
2369 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2370 esac
2371 ;;
2372 -* ) ac_must_keep_next=true ;;
2373 esac
2374 fi
2375 as_fn_append ac_configure_args " '$ac_arg'"
2376 ;;
2377 esac
2378 done
2379 done
2380 { ac_configure_args0=; unset ac_configure_args0;}
2381 { ac_configure_args1=; unset ac_configure_args1;}
2382
2383 # When interrupted or exit'd, cleanup temporary files, and complete
2384 # config.log. We remove comments because anyway the quotes in there
2385 # would cause problems or look ugly.
2386 # WARNING: Use '\'' to represent an apostrophe within the trap.
2387 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2388 trap 'exit_status=$?
2389 # Save into config.log some information that might help in debugging.
2390 {
2391 echo
2392
2393 $as_echo "## ---------------- ##
2394 ## Cache variables. ##
2395 ## ---------------- ##"
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2398 (
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2421 *)
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 ;;
2424 esac |
2425 sort
2426 )
2427 echo
2428
2429 $as_echo "## ----------------- ##
2430 ## Output variables. ##
2431 ## ----------------- ##"
2432 echo
2433 for ac_var in $ac_subst_vars
2434 do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2442
2443 if test -n "$ac_subst_files"; then
2444 $as_echo "## ------------------- ##
2445 ## File substitutions. ##
2446 ## ------------------- ##"
2447 echo
2448 for ac_var in $ac_subst_files
2449 do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac
2454 $as_echo "$ac_var='\''$ac_val'\''"
2455 done | sort
2456 echo
2457 fi
2458
2459 if test -s confdefs.h; then
2460 $as_echo "## ----------- ##
2461 ## confdefs.h. ##
2462 ## ----------- ##"
2463 echo
2464 cat confdefs.h
2465 echo
2466 fi
2467 test "$ac_signal" != 0 &&
2468 $as_echo "$as_me: caught signal $ac_signal"
2469 $as_echo "$as_me: exit $exit_status"
2470 } >&5
2471 rm -f core *.core core.conftest.* &&
2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2473 exit $exit_status
2474 ' 0
2475 for ac_signal in 1 2 13 15; do
2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477 done
2478 ac_signal=0
2479
2480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2481 rm -f -r conftest* confdefs.h
2482
2483 $as_echo "/* confdefs.h */" > confdefs.h
2484
2485 # Predefined preprocessor variables.
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_NAME "$PACKAGE_NAME"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_STRING "$PACKAGE_STRING"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_URL "$PACKAGE_URL"
2509 _ACEOF
2510
2511
2512 # Let the site file select an alternate cache file if it wants to.
2513 # Prefer an explicitly selected file to automatically selected ones.
2514 ac_site_file1=NONE
2515 ac_site_file2=NONE
2516 if test -n "$CONFIG_SITE"; then
2517 # We do not want a PATH search for config.site.
2518 case $CONFIG_SITE in #((
2519 -*) ac_site_file1=./$CONFIG_SITE;;
2520 */*) ac_site_file1=$CONFIG_SITE;;
2521 *) ac_site_file1=./$CONFIG_SITE;;
2522 esac
2523 elif test "x$prefix" != xNONE; then
2524 ac_site_file1=$prefix/share/config.site
2525 ac_site_file2=$prefix/etc/config.site
2526 else
2527 ac_site_file1=$ac_default_prefix/share/config.site
2528 ac_site_file2=$ac_default_prefix/etc/config.site
2529 fi
2530 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531 do
2532 test "x$ac_site_file" = xNONE && continue
2533 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2535 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2536 sed 's/^/| /' "$ac_site_file" >&5
2537 . "$ac_site_file" \
2538 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 as_fn_error $? "failed to load site script $ac_site_file
2541 See \`config.log' for more details" "$LINENO" 5 ; }
2542 fi
2543 done
2544
2545 if test -r "$cache_file"; then
2546 # Some versions of bash will fail to source /dev/null (special files
2547 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2548 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2550 $as_echo "$as_me: loading cache $cache_file" >&6;}
2551 case $cache_file in
2552 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2553 *) . "./$cache_file";;
2554 esac
2555 fi
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2558 $as_echo "$as_me: creating cache $cache_file" >&6;}
2559 >$cache_file
2560 fi
2561
2562 # Check that the precious variables saved in the cache have kept the same
2563 # value.
2564 ac_cache_corrupted=false
2565 for ac_var in $ac_precious_vars; do
2566 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567 eval ac_new_set=\$ac_env_${ac_var}_set
2568 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569 eval ac_new_val=\$ac_env_${ac_var}_value
2570 case $ac_old_set,$ac_new_set in
2571 set,)
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2573 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,set)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2579 ,);;
2580 *)
2581 if test "x$ac_old_val" != "x$ac_new_val"; then
2582 # differences in whitespace do not lead to failure.
2583 ac_old_val_w=`echo x $ac_old_val`
2584 ac_new_val_w=`echo x $ac_new_val`
2585 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2587 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2588 ac_cache_corrupted=:
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2591 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2592 eval $ac_var=\$ac_old_val
2593 fi
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2595 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2597 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2598 fi;;
2599 esac
2600 # Pass precious variables to config.status.
2601 if test "$ac_new_set" = set; then
2602 case $ac_new_val in
2603 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604 *) ac_arg=$ac_var=$ac_new_val ;;
2605 esac
2606 case " $ac_configure_args " in
2607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2608 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609 esac
2610 fi
2611 done
2612 if $ac_cache_corrupted; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2617 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2618 fi
2619 ## -------------------- ##
2620 ## Main body of script. ##
2621 ## -------------------- ##
2622
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629
2630
2631
2632 ac_config_headers="$ac_config_headers config.h:config.h.in"
2633
2634
2635 ac_aux_dir=
2636 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637 if test -f "$ac_dir/install-sh"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/install-sh -c"
2640 break
2641 elif test -f "$ac_dir/install.sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install.sh -c"
2644 break
2645 elif test -f "$ac_dir/shtool"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/shtool install -c"
2648 break
2649 fi
2650 done
2651 if test -z "$ac_aux_dir"; then
2652 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653 fi
2654
2655 # These three variables are undocumented and unsupported,
2656 # and are intended to be withdrawn in a future Autoconf release.
2657 # They can cause serious problems if a builder's source tree is in a directory
2658 # whose full name contains unusual characters.
2659 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2660 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2661 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662
2663
2664 # Make sure we can run config.sub.
2665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2666 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2669 $as_echo_n "checking build system type... " >&6; }
2670 if test "${ac_cv_build+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 ac_build_alias=$build_alias
2674 test "x$ac_build_alias" = x &&
2675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676 test "x$ac_build_alias" = x &&
2677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2680
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683 $as_echo "$ac_cv_build" >&6; }
2684 case $ac_cv_build in
2685 *-*-*) ;;
2686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2687 esac
2688 build=$ac_cv_build
2689 ac_save_IFS=$IFS; IFS='-'
2690 set x $ac_cv_build
2691 shift
2692 build_cpu=$1
2693 build_vendor=$2
2694 shift; shift
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2697 build_os=$*
2698 IFS=$ac_save_IFS
2699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2700
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703 $as_echo_n "checking host system type... " >&6; }
2704 if test "${ac_cv_host+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test "x$host_alias" = x; then
2708 ac_cv_host=$ac_cv_build
2709 else
2710 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2712 fi
2713
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2716 $as_echo "$ac_cv_host" >&6; }
2717 case $ac_cv_host in
2718 *-*-*) ;;
2719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2720 esac
2721 host=$ac_cv_host
2722 ac_save_IFS=$IFS; IFS='-'
2723 set x $ac_cv_host
2724 shift
2725 host_cpu=$1
2726 host_vendor=$2
2727 shift; shift
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2730 host_os=$*
2731 IFS=$ac_save_IFS
2732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733
2734
2735
2736 VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2737 DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2738
2739 echo ""
2740 echo "configuring for rxvt $VERSION"
2741 echo ""
2742
2743 orig_CXXFLAGS="$CXXFLAGS"
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 fi
2789 if test -z "$ac_cv_prog_CC"; then
2790 ac_ct_CC=$CC
2791 # Extract the first word of "gcc", so it can be a program name with args.
2792 set dummy gcc; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_ac_ct_CC="gcc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 CC=$ac_ct_CC
2837 fi
2838 else
2839 CC="$ac_cv_prog_CC"
2840 fi
2841
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}cc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_CC="${ac_tool_prefix}cc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881 fi
2882 fi
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 ac_prog_rejected=no
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2905 fi
2906 ac_cv_prog_CC="cc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy $ac_cv_prog_CC
2917 shift
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2922 shift
2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 fi
2925 fi
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 for ac_prog in cl.exe
2942 do
2943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_CC+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 test -n "$CC" && break
2981 done
2982 fi
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl.exe
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 test -n "$ac_ct_CC" && break
3025 done
3026
3027 if test "x$ac_ct_CC" = x; then
3028 CC=""
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3037 fi
3038 fi
3039
3040 fi
3041
3042
3043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details" "$LINENO" 5 ; }
3047
3048 # Provide some information about the compiler.
3049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3050 set X $ac_compile
3051 ac_compiler=$2
3052 for ac_option in --version -v -V -qversion; do
3053 { { ac_try="$ac_compiler $ac_option >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3061 ac_status=$?
3062 if test -s conftest.err; then
3063 sed '10a\
3064 ... rest of stderr output deleted ...
3065 10q' conftest.err >conftest.er1
3066 cat conftest.er1 >&5
3067 fi
3068 rm -f conftest.er1 conftest.err
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }
3071 done
3072
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3075
3076 int
3077 main ()
3078 {
3079
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 ac_clean_files_save=$ac_clean_files
3085 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3086 # Try to create an executable without -o first, disregard a.out.
3087 # It will help us diagnose broken compilers, and finding out an intuition
3088 # of exeext.
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3090 $as_echo_n "checking whether the C compiler works... " >&6; }
3091 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092
3093 # The possible output files:
3094 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095
3096 ac_rmfiles=
3097 for ac_file in $ac_files
3098 do
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 esac
3103 done
3104 rm -f $ac_rmfiles
3105
3106 if { { ac_try="$ac_link_default"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link_default") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3119 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3120 # so that the user can short-circuit this test for compilers unknown to
3121 # Autoconf.
3122 for ac_file in $ac_files ''
3123 do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 ;;
3128 [ab].out )
3129 # We found the default executable, but exeext='' is most
3130 # certainly right.
3131 break;;
3132 *.* )
3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 then :; else
3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 fi
3137 # We set ac_cv_exeext here because the later test for it is not
3138 # safe: cross compilers may not add the suffix if given an `-o'
3139 # argument, so we may need to know it at that point already.
3140 # Even if this section looks crufty: it has the advantage of
3141 # actually working.
3142 break;;
3143 * )
3144 break;;
3145 esac
3146 done
3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148
3149 else
3150 ac_file=''
3151 fi
3152 if test -z "$ac_file"; then :
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 $as_echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error 77 "C compiler cannot create executables
3161 See \`config.log' for more details" "$LINENO" 5 ; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3167 $as_echo_n "checking for C compiler default output file name... " >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3169 $as_echo "$ac_file" >&6; }
3170 ac_exeext=$ac_cv_exeext
3171
3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 # `rm'.
3191 for ac_file in conftest.exe conftest conftest.*; do
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 break;;
3197 * ) break;;
3198 esac
3199 done
3200 else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details" "$LINENO" 5 ; }
3205 fi
3206 rm -f conftest conftest$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3209
3210 rm -f conftest.$ac_ext
3211 EXEEXT=$ac_cv_exeext
3212 ac_exeext=$EXEEXT
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215 #include <stdio.h>
3216 int
3217 main ()
3218 {
3219 FILE *f = fopen ("conftest.out", "w");
3220 return ferror (f) || fclose (f) != 0;
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files="$ac_clean_files conftest.out"
3227 # Check that the compiler produces executables we can run. If not, either
3228 # the compiler is broken, or we cross compile.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3230 $as_echo_n "checking whether we are cross compiling... " >&6; }
3231 if test "$cross_compiling" != yes; then
3232 { { ac_try="$ac_link"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3243 if { ac_try='./conftest$ac_cv_exeext'
3244 { { case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; }; then
3254 cross_compiling=no
3255 else
3256 if test "$cross_compiling" = maybe; then
3257 cross_compiling=yes
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details" "$LINENO" 5 ; }
3264 fi
3265 fi
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3269
3270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3273 $as_echo_n "checking for suffix of object files... " >&6; }
3274 if test "${ac_cv_objext+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.o conftest.obj
3289 if { { ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_compile") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 for ac_file in conftest.o conftest.obj conftest.*; do
3301 test -f "$ac_file" || continue;
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305 break;;
3306 esac
3307 done
3308 else
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details" "$LINENO" 5 ; }
3316 fi
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3320 $as_echo "$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334 #ifndef __GNUC__
3335 choke me
3336 #endif
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_compiler_gnu=yes
3344 else
3345 ac_compiler_gnu=no
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353 if test $ac_compiler_gnu = yes; then
3354 GCC=yes
3355 else
3356 GCC=
3357 fi
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3362 if test "${ac_cv_prog_cc_g+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3367 ac_cv_prog_cc_g=no
3368 CFLAGS="-g"
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371
3372 int
3373 main ()
3374 {
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_prog_cc_g=yes
3382 else
3383 CFLAGS=""
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396
3397 else
3398 ac_c_werror_flag=$ac_save_c_werror_flag
3399 CFLAGS="-g"
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_cv_prog_cc_g=yes
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 fi
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3427 CFLAGS="-g -O2"
3428 else
3429 CFLAGS="-g"
3430 fi
3431 else
3432 if test "$GCC" = yes; then
3433 CFLAGS="-O2"
3434 else
3435 CFLAGS=
3436 fi
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3440 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_cv_prog_cc_c89=no
3444 ac_save_CC=$CC
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447 #include <stdarg.h>
3448 #include <stdio.h>
3449 #include <sys/types.h>
3450 #include <sys/stat.h>
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3455 char **p;
3456 int i;
3457 {
3458 return p[i];
3459 }
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3461 {
3462 char *s;
3463 va_list v;
3464 va_start (v,p);
3465 s = g (p, va_arg (v,int));
3466 va_end (v);
3467 return s;
3468 }
3469
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3471 function prototypes and stuff, but not '\xHH' hex character constants.
3472 These don't provoke an error unfortunately, instead are silently treated
3473 as 'x'. The following induces an error, until -std is added to get
3474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3475 array size at least. It's necessary to write '\x00'==0 to get something
3476 that's true only with -std. */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480 inside strings and character constants. */
3481 #define FOO(x) 'x'
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 int argc;
3489 char **argv;
3490 int
3491 main ()
3492 {
3493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 do
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_cv_prog_cc_c89=$ac_arg
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514 x)
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3517 xno)
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3520 *)
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 ac_ext=cpp
3536 ac_cpp='$CXXCPP $CPPFLAGS'
3537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3540 if test -z "$CXX"; then
3541 if test -n "$CCC"; then
3542 CXX=$CCC
3543 else
3544 if test -n "$ac_tool_prefix"; then
3545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 do
3547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CXX+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CXX"; then
3555 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CXX=$ac_cv_prog_CXX
3575 if test -n "$CXX"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3577 $as_echo "$CXX" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 test -n "$CXX" && break
3585 done
3586 fi
3587 if test -z "$CXX"; then
3588 ac_ct_CXX=$CXX
3589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590 do
3591 # Extract the first word of "$ac_prog", so it can be a program name with args.
3592 set dummy $ac_prog; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CXX"; then
3599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_ac_ct_CXX="$ac_prog"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3619 if test -n "$ac_ct_CXX"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3621 $as_echo "$ac_ct_CXX" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627
3628 test -n "$ac_ct_CXX" && break
3629 done
3630
3631 if test "x$ac_ct_CXX" = x; then
3632 CXX="g++"
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CXX=$ac_ct_CXX
3641 fi
3642 fi
3643
3644 fi
3645 fi
3646 # Provide some information about the compiler.
3647 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3648 set X $ac_compile
3649 ac_compiler=$2
3650 for ac_option in --version -v -V -qversion; do
3651 { { ac_try="$ac_compiler $ac_option >&5"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3659 ac_status=$?
3660 if test -s conftest.err; then
3661 sed '10a\
3662 ... rest of stderr output deleted ...
3663 10q' conftest.err >conftest.er1
3664 cat conftest.er1 >&5
3665 fi
3666 rm -f conftest.er1 conftest.err
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }
3669 done
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3672 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3673 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682 #ifndef __GNUC__
3683 choke me
3684 #endif
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_cxx_try_compile "$LINENO"; then :
3691 ac_compiler_gnu=yes
3692 else
3693 ac_compiler_gnu=no
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3697
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3700 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3701 if test $ac_compiler_gnu = yes; then
3702 GXX=yes
3703 else
3704 GXX=
3705 fi
3706 ac_test_CXXFLAGS=${CXXFLAGS+set}
3707 ac_save_CXXFLAGS=$CXXFLAGS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3709 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3710 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3714 ac_cxx_werror_flag=yes
3715 ac_cv_prog_cxx_g=no
3716 CXXFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_cxx_try_compile "$LINENO"; then :
3729 ac_cv_prog_cxx_g=yes
3730 else
3731 CXXFLAGS=""
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_cxx_try_compile "$LINENO"; then :
3744
3745 else
3746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3747 CXXFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_cxx_try_compile "$LINENO"; then :
3760 ac_cv_prog_cxx_g=yes
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3770 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3771 if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS=$ac_save_CXXFLAGS
3773 elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-g -O2"
3776 else
3777 CXXFLAGS="-g"
3778 fi
3779 else
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-O2"
3782 else
3783 CXXFLAGS=
3784 fi
3785 fi
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 # Find a good install program. We prefer a C program (faster),
3793 # so one script is as good as another. But avoid the broken or
3794 # incompatible versions:
3795 # SysV /etc/install, /usr/sbin/install
3796 # SunOS /usr/etc/install
3797 # IRIX /sbin/install
3798 # AIX /bin/install
3799 # AmigaOS /C/install, which installs bootblocks on floppy discs
3800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803 # OS/2's system install, which has a completely different semantic
3804 # ./install, which can be erroneously created by make from ./install.sh.
3805 # Reject install programs that cannot install multiple files.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3807 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3808 if test -z "$INSTALL"; then
3809 if test "${ac_cv_path_install+set}" = set; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818 case $as_dir/ in #((
3819 ./ | .// | /[cC]/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3822 /usr/ucb/* ) ;;
3823 *)
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3833 :
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3837 :
3838 else
3839 rm -rf conftest.one conftest.two conftest.dir
3840 echo one > conftest.one
3841 echo two > conftest.two
3842 mkdir conftest.dir
3843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3844 test -s conftest.one && test -s conftest.two &&
3845 test -s conftest.dir/conftest.one &&
3846 test -s conftest.dir/conftest.two
3847 then
3848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3849 break 3
3850 fi
3851 fi
3852 fi
3853 done
3854 done
3855 ;;
3856 esac
3857
3858 done
3859 IFS=$as_save_IFS
3860
3861 rm -rf conftest.one conftest.two conftest.dir
3862
3863 fi
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 INSTALL=$ac_install_sh
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3875 $as_echo "$INSTALL" >&6; }
3876
3877 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878 # It thinks the first close brace ends the variable substitution.
3879 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880
3881 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882
3883 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3896 CPP=
3897 fi
3898 if test -z "$CPP"; then
3899 if test "${ac_cv_prog_CPP+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904 do
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #ifdef __STDC__
3917 # include <limits.h>
3918 #else
3919 # include <assert.h>
3920 #endif
3921 Syntax error
3922 _ACEOF
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3924
3925 else
3926 # Broken: fails on valid input.
3927 continue
3928 fi
3929 rm -f conftest.err conftest.i conftest.$ac_ext
3930
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <ac_nonexistent.h>
3936 _ACEOF
3937 if ac_fn_c_try_cpp "$LINENO"; then :
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 # Passes both tests.
3942 ac_preproc_ok=:
3943 break
3944 fi
3945 rm -f conftest.err conftest.i conftest.$ac_ext
3946
3947 done
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then :
3951 break
3952 fi
3953
3954 done
3955 ac_cv_prog_CPP=$CPP
3956
3957 fi
3958 CPP=$ac_cv_prog_CPP
3959 else
3960 ac_cv_prog_CPP=$CPP
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3963 $as_echo "$CPP" >&6; }
3964 ac_preproc_ok=false
3965 for ac_c_preproc_warn_flag in '' yes
3966 do
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980 Syntax error
3981 _ACEOF
3982 if ac_fn_c_try_cpp "$LINENO"; then :
3983
3984 else
3985 # Broken: fails on valid input.
3986 continue
3987 fi
3988 rm -f conftest.err conftest.i conftest.$ac_ext
3989
3990 # OK, works on sane cases. Now check whether nonexistent headers
3991 # can be detected and how.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3997 # Broken: success on invalid input.
3998 continue
3999 else
4000 # Passes both tests.
4001 ac_preproc_ok=:
4002 break
4003 fi
4004 rm -f conftest.err conftest.i conftest.$ac_ext
4005
4006 done
4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4008 rm -f conftest.i conftest.err conftest.$ac_ext
4009 if $ac_preproc_ok; then :
4010
4011 else
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4015 See \`config.log' for more details" "$LINENO" 5 ; }
4016 fi
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4026 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4027 if test "${ac_cv_path_GREP+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -z "$GREP"; then
4031 ac_path_GREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in grep ggrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4042 # Check for GNU ac_path_GREP and select it if it is found.
4043 # Check for GNU $ac_path_GREP
4044 case `"$ac_path_GREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4047 *)
4048 ac_count=0
4049 $as_echo_n 0123456789 >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo 'GREP' >> "conftest.nl"
4056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 as_fn_arith $ac_count + 1 && ac_count=$as_val
4059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_GREP="$ac_path_GREP"
4062 ac_path_GREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070 $ac_path_GREP_found && break 3
4071 done
4072 done
4073 done
4074 IFS=$as_save_IFS
4075 if test -z "$ac_cv_path_GREP"; then
4076 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4077 fi
4078 else
4079 ac_cv_path_GREP=$GREP
4080 fi
4081
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4084 $as_echo "$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4089 $as_echo_n "checking for egrep... " >&6; }
4090 if test "${ac_cv_path_EGREP+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4095 else
4096 if test -z "$EGREP"; then
4097 ac_path_EGREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in egrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4108 # Check for GNU ac_path_EGREP and select it if it is found.
4109 # Check for GNU $ac_path_EGREP
4110 case `"$ac_path_EGREP" --version 2>&1` in
4111 *GNU*)
4112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4113 *)
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'EGREP' >> "conftest.nl"
4122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_EGREP="$ac_path_EGREP"
4128 ac_path_EGREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136 $ac_path_EGREP_found && break 3
4137 done
4138 done
4139 done
4140 IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_EGREP"; then
4142 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4143 fi
4144 else
4145 ac_cv_path_EGREP=$EGREP
4146 fi
4147
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4151 $as_echo "$ac_cv_path_EGREP" >&6; }
4152 EGREP="$ac_cv_path_EGREP"
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4156 $as_echo_n "checking for ANSI C header files... " >&6; }
4157 if test "${ac_cv_header_stdc+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdlib.h>
4163 #include <stdarg.h>
4164 #include <string.h>
4165 #include <float.h>
4166
4167 int
4168 main ()
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_header_stdc=yes
4177 else
4178 ac_cv_header_stdc=no
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182 if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <string.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "memchr" >/dev/null 2>&1; then :
4191
4192 else
4193 ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdlib.h>
4204
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "free" >/dev/null 2>&1; then :
4208
4209 else
4210 ac_cv_header_stdc=no
4211 fi
4212 rm -f conftest*
4213
4214 fi
4215
4216 if test $ac_cv_header_stdc = yes; then
4217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4218 if test "$cross_compiling" = yes; then :
4219 :
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ctype.h>
4224 #include <stdlib.h>
4225 #if ((' ' & 0x0FF) == 0x020)
4226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 #else
4229 # define ISLOWER(c) \
4230 (('a' <= (c) && (c) <= 'i') \
4231 || ('j' <= (c) && (c) <= 'r') \
4232 || ('s' <= (c) && (c) <= 'z'))
4233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #endif
4235
4236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237 int
4238 main ()
4239 {
4240 int i;
4241 for (i = 0; i < 256; i++)
4242 if (XOR (islower (i), ISLOWER (i))
4243 || toupper (i) != TOUPPER (i))
4244 return 2;
4245 return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_run "$LINENO"; then :
4249
4250 else
4251 ac_cv_header_stdc=no
4252 fi
4253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4254 conftest.$ac_objext conftest.beam conftest.$ac_ext
4255 fi
4256
4257 fi
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4260 $as_echo "$ac_cv_header_stdc" >&6; }
4261 if test $ac_cv_header_stdc = yes; then
4262
4263 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4264
4265 fi
4266
4267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269 inttypes.h stdint.h unistd.h
4270 do :
4271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273 "
4274 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4275 cat >>confdefs.h <<_ACEOF
4276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277 _ACEOF
4278
4279 fi
4280
4281 done
4282
4283
4284
4285 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4286 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4287 MINIX=yes
4288 else
4289 MINIX=
4290 fi
4291
4292
4293 if test "$MINIX" = yes; then
4294
4295 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4296
4297
4298 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4299
4300
4301 $as_echo "#define _MINIX 1" >>confdefs.h
4302
4303 fi
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4307 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4308 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 # define __EXTENSIONS__ 1
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_safe_to_define___extensions__=yes
4326 else
4327 ac_cv_safe_to_define___extensions__=no
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333 test $ac_cv_safe_to_define___extensions__ = yes &&
4334 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335
4336 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337
4338 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339
4340 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341
4342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4343
4344
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4348 $as_echo_n "checking for library containing strerror... " >&6; }
4349 if test "${ac_cv_search_strerror+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 ac_func_search_save_LIBS=$LIBS
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355
4356 /* Override any GCC internal prototype to avoid an error.
4357 Use char because int might match the return type of a GCC
4358 builtin and then its argument prototype would still apply. */
4359 #ifdef __cplusplus
4360 extern "C"
4361 #endif
4362 char strerror ();
4363 int
4364 main ()
4365 {
4366 return strerror ();
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 for ac_lib in '' cposix; do
4372 if test -z "$ac_lib"; then
4373 ac_res="none required"
4374 else
4375 ac_res=-l$ac_lib
4376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4377 fi
4378 if ac_fn_c_try_link "$LINENO"; then :
4379 ac_cv_search_strerror=$ac_res
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext \
4382 conftest$ac_exeext
4383 if test "${ac_cv_search_strerror+set}" = set; then :
4384 break
4385 fi
4386 done
4387 if test "${ac_cv_search_strerror+set}" = set; then :
4388
4389 else
4390 ac_cv_search_strerror=no
4391 fi
4392 rm conftest.$ac_ext
4393 LIBS=$ac_func_search_save_LIBS
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4396 $as_echo "$ac_cv_search_strerror" >&6; }
4397 ac_res=$ac_cv_search_strerror
4398 if test "$ac_res" != no; then :
4399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4400
4401 fi
4402
4403 ac_ext=cpp
4404 ac_cpp='$CXXCPP $CPPFLAGS'
4405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4408
4409
4410 LINKER="$CXX"
4411 if test x$GCC = xyes && test x$GXX = xyes; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4413 $as_echo_n "checking for working libsupc++... " >&6; }
4414 save_CXX="$CXX"
4415 save_LIBS="$LIBS"
4416 CXX="$CC"
4417 LIBS="$LIBS -lsupc++"
4418
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 struct test { }; void f() try { throw new test; } catch (...) { throw; }
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_cxx_try_link "$LINENO"; then :
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4432 $as_echo "ok" >&6; }
4433 LINKER="$CC"
4434 else
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4437 $as_echo "no, making everything bigger and slower" >&6; }
4438 LIBS="$save_LIBS"
4439
4440
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext \
4443 conftest$ac_exeext conftest.$ac_ext
4444 CXX="$save_CXX"
4445 fi
4446 LINKER=$LINKER
4447
4448
4449 if test -z "$orig_CXXFLAGS"; then
4450 if test x$GCC = xyes && test "x$GXX" = xyes; then
4451 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454
4455 int
4456 main ()
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_cxx_try_compile "$LINENO"; then :
4464
4465 else
4466 CXXFLAGS="-g -O3"
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 else
4470 CXXFLAGS="-O"
4471 fi
4472 CFLAGS="$CXXFLAGS"
4473 fi
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4476 $as_echo_n "checking for library containing setlocale... " >&6; }
4477 if test "${ac_cv_search_setlocale+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 ac_func_search_save_LIBS=$LIBS
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 /* Override any GCC internal prototype to avoid an error.
4485 Use char because int might match the return type of a GCC
4486 builtin and then its argument prototype would still apply. */
4487 #ifdef __cplusplus
4488 extern "C"
4489 #endif
4490 char setlocale ();
4491 int
4492 main ()
4493 {
4494 return setlocale ();
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 for ac_lib in '' xpg4; do
4500 if test -z "$ac_lib"; then
4501 ac_res="none required"
4502 else
4503 ac_res=-l$ac_lib
4504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4505 fi
4506 if ac_fn_cxx_try_link "$LINENO"; then :
4507 ac_cv_search_setlocale=$ac_res
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext
4511 if test "${ac_cv_search_setlocale+set}" = set; then :
4512 break
4513 fi
4514 done
4515 if test "${ac_cv_search_setlocale+set}" = set; then :
4516
4517 else
4518 ac_cv_search_setlocale=no
4519 fi
4520 rm conftest.$ac_ext
4521 LIBS=$ac_func_search_save_LIBS
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4524 $as_echo "$ac_cv_search_setlocale" >&6; }
4525 ac_res=$ac_cv_search_setlocale
4526 if test "$ac_res" != no; then :
4527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4528
4529 fi
4530
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4533 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4534 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 ac_func_search_save_LIBS=$LIBS
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540
4541 /* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
4544 #ifdef __cplusplus
4545 extern "C"
4546 #endif
4547 char gethostbyname ();
4548 int
4549 main ()
4550 {
4551 return gethostbyname ();
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 for ac_lib in '' nsl; do
4557 if test -z "$ac_lib"; then
4558 ac_res="none required"
4559 else
4560 ac_res=-l$ac_lib
4561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4562 fi
4563 if ac_fn_cxx_try_link "$LINENO"; then :
4564 ac_cv_search_gethostbyname=$ac_res
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext
4568 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4569 break
4570 fi
4571 done
4572 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4573
4574 else
4575 ac_cv_search_gethostbyname=no
4576 fi
4577 rm conftest.$ac_ext
4578 LIBS=$ac_func_search_save_LIBS
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4581 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4582 ac_res=$ac_cv_search_gethostbyname
4583 if test "$ac_res" != no; then :
4584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4585
4586 fi
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4589 $as_echo_n "checking for library containing socket... " >&6; }
4590 if test "${ac_cv_search_socket+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 ac_func_search_save_LIBS=$LIBS
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 /* Override any GCC internal prototype to avoid an error.
4598 Use char because int might match the return type of a GCC
4599 builtin and then its argument prototype would still apply. */
4600 #ifdef __cplusplus
4601 extern "C"
4602 #endif
4603 char socket ();
4604 int
4605 main ()
4606 {
4607 return socket ();
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 for ac_lib in '' socket; do
4613 if test -z "$ac_lib"; then
4614 ac_res="none required"
4615 else
4616 ac_res=-l$ac_lib
4617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4618 fi
4619 if ac_fn_cxx_try_link "$LINENO"; then :
4620 ac_cv_search_socket=$ac_res
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext \
4623 conftest$ac_exeext
4624 if test "${ac_cv_search_socket+set}" = set; then :
4625 break
4626 fi
4627 done
4628 if test "${ac_cv_search_socket+set}" = set; then :
4629
4630 else
4631 ac_cv_search_socket=no
4632 fi
4633 rm conftest.$ac_ext
4634 LIBS=$ac_func_search_save_LIBS
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4637 $as_echo "$ac_cv_search_socket" >&6; }
4638 ac_res=$ac_cv_search_socket
4639 if test "$ac_res" != no; then :
4640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4641
4642 fi
4643
4644
4645 support_frills=yes
4646 support_inheritpixmap=yes
4647 support_fading=yes
4648 support_keepscrolling=yes
4649 support_selectionscrolling=yes
4650 support_mousewheel=yes
4651 support_mouseslipwheel=yes
4652 support_text_blink=yes
4653 support_pointer_blank=yes
4654 support_scroll_rxvt=yes
4655 support_scroll_next=yes
4656 support_scroll_xterm=yes
4657 support_xim=yes
4658 support_pixbuf=yes
4659 support_startup_notification=yes
4660 support_xft=yes
4661 support_unicode3=no
4662 support_combining=yes
4663 support_8bitctrls=no
4664 support_iso14755=yes
4665 support_styles=yes
4666 support_perl=yes
4667 codesets=all
4668
4669
4670 # Check whether --enable-everything was given.
4671 if test "${enable_everything+set}" = set; then :
4672 enableval=$enable_everything;
4673 if test x$enableval = xno; then
4674 support_frills=no
4675 support_inheritpixmap=no
4676 support_fading=no
4677 support_keepscrolling=no
4678 support_selectionscrolling=no
4679 support_lastlog=no
4680 support_mousewheel=no
4681 support_mouseslipwheel=no
4682 support_text_blink=no
4683 support_pointer_blank=no
4684 support_scroll_rxvt=no
4685 support_scroll_next=no
4686 support_scroll_xterm=no
4687 support_utmp=no
4688 support_wtmp=no
4689 support_xim=no
4690 support_pixbuf=no
4691 support_startup_notification=no
4692 support_xft=no
4693 support_unicode3=no
4694 support_combining=no
4695 support_8bitctrls=no
4696 support_iso14755=no
4697 support_styles=no
4698 support_perl=no
4699 codesets=
4700 fi
4701 if test x$enableval = xyes; then
4702 support_frills=yes
4703 support_inheritpixmap=yes
4704 support_fading=yes
4705 support_keepscrolling=yes
4706 support_selectionscrolling=yes
4707 support_lastlog=yes
4708 support_mousewheel=yes
4709 support_mouseslipwheel=yes
4710 support_text_blink=yes
4711 support_pointer_blank=yes
4712 support_scroll_rxvt=yes
4713 support_scroll_next=yes
4714 support_scroll_xterm=yes
4715 support_utmp=yes
4716 support_wtmp=yes
4717 support_xim=yes
4718 support_pixbuf=yes
4719 support_startup_notification=yes
4720 support_xft=yes
4721 support_unicode3=yes
4722 support_combining=yes
4723 #support_8bitctrls=yes
4724 support_iso14755=yes
4725 support_styles=yes
4726 support_perl=yes
4727 codesets=all
4728 fi
4729
4730 fi
4731
4732
4733 support_assertions=no
4734 # Check whether --enable-assert was given.
4735 if test "${enable_assert+set}" = set; then :
4736 enableval=$enable_assert; if test x$enableval = xyes; then
4737 support_assertions=yes
4738 fi
4739 fi
4740
4741 if test x$support_assertions = xno; then
4742
4743 $as_echo "#define NDEBUG 1" >>confdefs.h
4744
4745 fi
4746
4747 support_warnings=no
4748 # Check whether --enable-warnings was given.
4749 if test "${enable_warnings+set}" = set; then :
4750 enableval=$enable_warnings; if test x$enableval = xyes; then
4751 support_warnings=yes
4752 fi
4753 fi
4754
4755 if test x$GXX = xyes; then
4756 if test $support_warnings = yes; then
4757 save_CXXFLAGS="$CXXFLAGS"
4758 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_cxx_try_compile "$LINENO"; then :
4771
4772 else
4773 CXXFLAGS="$save_CXXFLAGS"
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 else
4777 CXXFLAGS="$CXXFLAGS -w"
4778 fi
4779 fi
4780
4781 support_256_color=no
4782 # Check whether --enable-256-color was given.
4783 if test "${enable_256_color+set}" = set; then :
4784 enableval=$enable_256_color; if test x$enableval = xyes; then
4785 support_256_color=yes
4786 fi
4787 fi
4788
4789 if test x$support_256_color = xyes; then
4790
4791 $as_echo "#define USE_256_COLORS 1" >>confdefs.h
4792
4793 fi
4794
4795 # Check whether --enable-unicode3 was given.
4796 if test "${enable_unicode3+set}" = set; then :
4797 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4798 support_unicode3=$enableval
4799 fi
4800 fi
4801
4802
4803 # Check whether --enable-combining was given.
4804 if test "${enable_combining+set}" = set; then :
4805 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4806 support_combining=$enableval
4807 fi
4808 fi
4809
4810
4811 # Check whether --enable-xft was given.
4812 if test "${enable_xft+set}" = set; then :
4813 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4814 support_xft=$enableval
4815 fi
4816 fi
4817
4818
4819 # Check whether --enable-font-styles was given.
4820 if test "${enable_font_styles+set}" = set; then :
4821 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4822 support_styles=$enableval
4823 fi
4824 fi
4825
4826
4827 # Check whether --enable-pixbuf was given.
4828 if test "${enable_pixbuf+set}" = set; then :
4829 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4830 support_pixbuf=$enableval
4831 fi
4832 fi
4833
4834
4835 # Check whether --enable-startup-notification was given.
4836 if test "${enable_startup_notification+set}" = set; then :
4837 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4838 support_startup_notification=$enableval
4839 fi
4840 fi
4841
4842
4843 # Check whether --enable-transparency was given.
4844 if test "${enable_transparency+set}" = set; then :
4845 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4846 support_inheritpixmap=$enableval
4847 fi
4848 fi
4849
4850
4851 # Check whether --enable-fading was given.
4852 if test "${enable_fading+set}" = set; then :
4853 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4854 support_fading=$enableval
4855 fi
4856 fi
4857
4858
4859 # Check whether --enable-rxvt-scroll was given.
4860 if test "${enable_rxvt_scroll+set}" = set; then :
4861 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4862 support_scroll_rxvt=$enableval
4863 fi
4864 fi
4865
4866
4867 # Check whether --enable-next-scroll was given.
4868 if test "${enable_next_scroll+set}" = set; then :
4869 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4870 support_scroll_next=$enableval
4871 fi
4872 fi
4873
4874
4875 # Check whether --enable-xterm-scroll was given.
4876 if test "${enable_xterm_scroll+set}" = set; then :
4877 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4878 support_scroll_xterm=$enableval
4879 fi
4880 fi
4881
4882
4883 # Check whether --enable-perl was given.
4884 if test "${enable_perl+set}" = set; then :
4885 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4886 support_perl=$enableval
4887 fi
4888 fi
4889
4890
4891
4892 # Check whether --with-codesets was given.
4893 if test "${with_codesets+set}" = set; then :
4894 withval=$with_codesets; codesets="$withval"
4895 fi
4896
4897
4898 # Check whether --enable-xim was given.
4899 if test "${enable_xim+set}" = set; then :
4900 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4901 support_xim=$enableval
4902 fi
4903 fi
4904
4905
4906 # Check whether --enable-backspace-key was given.
4907 if test "${enable_backspace_key+set}" = set; then :
4908 enableval=$enable_backspace_key; if test x$enableval = xno; then
4909
4910 $as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4911
4912 fi
4913 fi
4914
4915
4916 # Check whether --enable-delete-key was given.
4917 if test "${enable_delete_key+set}" = set; then :
4918 enableval=$enable_delete_key; if test x$enableval = xno; then
4919
4920 $as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4921
4922 fi
4923 fi
4924
4925
4926 # Check whether --enable-resources was given.
4927 if test "${enable_resources+set}" = set; then :
4928 enableval=$enable_resources; if test x$enableval = xno; then
4929
4930 $as_echo "#define NO_RESOURCES 1" >>confdefs.h
4931
4932 fi
4933 fi
4934
4935
4936 # Check whether --enable-8bitctrls was given.
4937 if test "${enable_8bitctrls+set}" = set; then :
4938 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4939 support_8bitctrls=$enableval
4940 fi
4941 fi
4942
4943
4944 RESFALLBACK=Rxvt
4945 # Check whether --enable-fallback was given.
4946 if test "${enable_fallback+set}" = set; then :
4947 enableval=$enable_fallback;
4948 test x$enableval = xyes && enableval=Rxvt
4949 test x$enableval = xno && enableval=
4950 RESFALLBACK="$enableval"
4951
4952 fi
4953
4954
4955 if test x$RESFALLBACK != x; then
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define RESFALLBACK "$RESFALLBACK"
4959 _ACEOF
4960
4961 fi
4962
4963 RESNAME=urxvt
4964
4965 # Check whether --with-res-name was given.
4966 if test "${with_res_name+set}" = set; then :
4967 withval=$with_res_name; RESNAME="$withval"
4968 fi
4969
4970
4971 cat >>confdefs.h <<_ACEOF
4972 #define RESNAME "$RESNAME"
4973 _ACEOF
4974
4975
4976 RESCLASS=URxvt
4977
4978 # Check whether --with-res-class was given.
4979 if test "${with_res_class+set}" = set; then :
4980 withval=$with_res_class; RESCLASS="$withval"
4981 fi
4982
4983
4984 cat >>confdefs.h <<_ACEOF
4985 #define RESCLASS "$RESCLASS"
4986 _ACEOF
4987
4988
4989 RXVTNAME=urxvt
4990
4991 # Check whether --with-name was given.
4992 if test "${with_name+set}" = set; then :
4993 withval=$with_name; RXVTNAME="$withval"
4994 fi
4995
4996
4997 cat >>confdefs.h <<_ACEOF
4998 #define RXVTNAME "$RXVTNAME"
4999 _ACEOF
5000
5001
5002
5003
5004 # Check whether --enable-swapscreen was given.
5005 if test "${enable_swapscreen+set}" = set; then :
5006 enableval=$enable_swapscreen; if test x$enableval = xno; then
5007
5008 $as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5009
5010 fi
5011 fi
5012
5013
5014 # Check whether --enable-iso14755 was given.
5015 if test "${enable_iso14755+set}" = set; then :
5016 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5017 support_iso14755=$enableval
5018 fi
5019 fi
5020
5021
5022 # Check whether --enable-frills was given.
5023 if test "${enable_frills+set}" = set; then :
5024 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5025 support_frills=$enableval
5026 fi
5027 fi
5028
5029
5030 # Check whether --enable-keepscrolling was given.
5031 if test "${enable_keepscrolling+set}" = set; then :
5032 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5033 support_keepscrolling=$enableval
5034 fi
5035 fi
5036
5037
5038 # Check whether --enable-selectionscrolling was given.
5039 if test "${enable_selectionscrolling+set}" = set; then :
5040 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5041 support_selectionscrolling=$enableval
5042 fi
5043 fi
5044
5045
5046 # Check whether --enable-mousewheel was given.
5047 if test "${enable_mousewheel+set}" = set; then :
5048 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5049 support_mousewheel=$enableval
5050 fi
5051 fi
5052
5053
5054 # Check whether --enable-slipwheeling was given.
5055 if test "${enable_slipwheeling+set}" = set; then :
5056 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5057 support_mouseslipwheel=$enableval
5058 fi
5059 fi
5060
5061
5062 # Check whether --enable-smart-resize was given.
5063 if test "${enable_smart_resize+set}" = set; then :
5064 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5065
5066 $as_echo "#define SMART_RESIZE 1" >>confdefs.h
5067
5068 fi
5069 fi
5070
5071
5072 # Check whether --enable-text-blink was given.
5073 if test "${enable_text_blink+set}" = set; then :
5074 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5075 support_text_blink=$enableval
5076 fi
5077 fi
5078
5079
5080 # Check whether --enable-pointer-blank was given.
5081 if test "${enable_pointer_blank+set}" = set; then :
5082 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5083 support_pointer_blank=$enableval
5084 fi
5085 fi
5086
5087
5088
5089 # Check whether --with-term was given.
5090 if test "${with_term+set}" = set; then :
5091 withval=$with_term; if test x$withval != x; then
5092
5093 cat >>confdefs.h <<_ACEOF
5094 #define TERMENV "$withval"
5095 _ACEOF
5096 term="$withval"
5097 fi
5098 fi
5099
5100
5101
5102 # Check whether --with-terminfo was given.
5103 if test "${with_terminfo+set}" = set; then :
5104 withval=$with_terminfo; if test x$withval != x; then
5105
5106 cat >>confdefs.h <<_ACEOF
5107 #define RXVT_TERMINFO "$withval"
5108 _ACEOF
5109 terminfo="$withval"
5110 fi
5111 fi
5112
5113
5114
5115 LIBEV_M4_AVOID_LIBRT=1
5116
5117 ac_ext=cpp
5118 ac_cpp='$CXXCPP $CPPFLAGS'
5119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5123 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5124 if test -z "$CXXCPP"; then
5125 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 # Double quotes because CXXCPP needs to be expanded
5129 for CXXCPP in "$CXX -E" "/lib/cpp"
5130 do
5131 ac_preproc_ok=false
5132 for ac_cxx_preproc_warn_flag in '' yes
5133 do
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #ifdef __STDC__
5143 # include <limits.h>
5144 #else
5145 # include <assert.h>
5146 #endif
5147 Syntax error
5148 _ACEOF
5149 if ac_fn_cxx_try_cpp "$LINENO"; then :
5150
5151 else
5152 # Broken: fails on valid input.
5153 continue
5154 fi
5155 rm -f conftest.err conftest.i conftest.$ac_ext
5156
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <ac_nonexistent.h>
5162 _ACEOF
5163 if ac_fn_cxx_try_cpp "$LINENO"; then :
5164 # Broken: success on invalid input.
5165 continue
5166 else
5167 # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171 rm -f conftest.err conftest.i conftest.$ac_ext
5172
5173 done
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.i conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then :
5177 break
5178 fi
5179
5180 done
5181 ac_cv_prog_CXXCPP=$CXXCPP
5182
5183 fi
5184 CXXCPP=$ac_cv_prog_CXXCPP
5185 else
5186 ac_cv_prog_CXXCPP=$CXXCPP
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5189 $as_echo "$CXXCPP" >&6; }
5190 ac_preproc_ok=false
5191 for ac_cxx_preproc_warn_flag in '' yes
5192 do
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #ifdef __STDC__
5202 # include <limits.h>
5203 #else
5204 # include <assert.h>
5205 #endif
5206 Syntax error
5207 _ACEOF
5208 if ac_fn_cxx_try_cpp "$LINENO"; then :
5209
5210 else
5211 # Broken: fails on valid input.
5212 continue
5213 fi
5214 rm -f conftest.err conftest.i conftest.$ac_ext
5215
5216 # OK, works on sane cases. Now check whether nonexistent headers
5217 # can be detected and how.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #include <ac_nonexistent.h>
5221 _ACEOF
5222 if ac_fn_cxx_try_cpp "$LINENO"; then :
5223 # Broken: success on invalid input.
5224 continue
5225 else
5226 # Passes both tests.
5227 ac_preproc_ok=:
5228 break
5229 fi
5230 rm -f conftest.err conftest.i conftest.$ac_ext
5231
5232 done
5233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5234 rm -f conftest.i conftest.err conftest.$ac_ext
5235 if $ac_preproc_ok; then :
5236
5237 else
5238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5240 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5241 See \`config.log' for more details" "$LINENO" 5 ; }
5242 fi
5243
5244 ac_ext=cpp
5245 ac_cpp='$CXXCPP $CPPFLAGS'
5246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249
5250
5251 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5252 do :
5253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5256 cat >>confdefs.h <<_ACEOF
5257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 _ACEOF
5259
5260 fi
5261
5262 done
5263
5264
5265 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5266 do :
5267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5268 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5270 cat >>confdefs.h <<_ACEOF
5271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5272 _ACEOF
5273
5274 fi
5275 done
5276
5277
5278 for ac_func in clock_gettime
5279 do :
5280 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5281 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5282 cat >>confdefs.h <<_ACEOF
5283 #define HAVE_CLOCK_GETTIME 1
5284 _ACEOF
5285
5286 else
5287
5288 if test $(uname) = Linux; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5290 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <unistd.h>
5294 #include <sys/syscall.h>
5295 #include <time.h>
5296 int
5297 main ()
5298 {
5299 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_cxx_try_link "$LINENO"; then :
5305 ac_have_clock_syscall=1
5306
5307 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5310 $as_echo "yes" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
5317 fi
5318 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5320 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5321 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lrt $LIBS"
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328
5329 /* Override any GCC internal prototype to avoid an error.
5330 Use char because int might match the return type of a GCC
5331 builtin and then its argument prototype would still apply. */
5332 #ifdef __cplusplus
5333 extern "C"
5334 #endif
5335 char clock_gettime ();
5336 int
5337 main ()
5338 {
5339 return clock_gettime ();
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_cxx_try_link "$LINENO"; then :
5345 ac_cv_lib_rt_clock_gettime=yes
5346 else
5347 ac_cv_lib_rt_clock_gettime=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext \
5350 conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5354 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5355 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5356 cat >>confdefs.h <<_ACEOF
5357 #define HAVE_LIBRT 1
5358 _ACEOF
5359
5360 LIBS="-lrt $LIBS"
5361
5362 fi
5363
5364 unset ac_cv_func_clock_gettime
5365 for ac_func in clock_gettime
5366 do :
5367 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5368 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5369 cat >>confdefs.h <<_ACEOF
5370 #define HAVE_CLOCK_GETTIME 1
5371 _ACEOF
5372
5373 fi
5374 done
5375
5376 fi
5377
5378 fi
5379 done
5380
5381
5382 for ac_func in nanosleep
5383 do :
5384 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5385 if test "x$ac_cv_func_nanosleep" = x""yes; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define HAVE_NANOSLEEP 1
5388 _ACEOF
5389
5390 else
5391
5392 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5394 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
5395 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lrt $LIBS"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402
5403 /* Override any GCC internal prototype to avoid an error.
5404 Use char because int might match the return type of a GCC
5405 builtin and then its argument prototype would still apply. */
5406 #ifdef __cplusplus
5407 extern "C"
5408 #endif
5409 char nanosleep ();
5410 int
5411 main ()
5412 {
5413 return nanosleep ();
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_cxx_try_link "$LINENO"; then :
5419 ac_cv_lib_rt_nanosleep=yes
5420 else
5421 ac_cv_lib_rt_nanosleep=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5428 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5429 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_LIBRT 1
5432 _ACEOF
5433
5434 LIBS="-lrt $LIBS"
5435
5436 fi
5437
5438 unset ac_cv_func_nanosleep
5439 for ac_func in nanosleep
5440 do :
5441 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5442 if test "x$ac_cv_func_nanosleep" = x""yes; then :
5443 cat >>confdefs.h <<_ACEOF
5444 #define HAVE_NANOSLEEP 1
5445 _ACEOF
5446
5447 fi
5448 done
5449
5450 fi
5451
5452 fi
5453 done
5454
5455
5456 if test -z "$LIBEV_M4_AVOID_LIBM"; then
5457 LIBM=m
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5460 $as_echo_n "checking for library containing floor... " >&6; }
5461 if test "${ac_cv_search_floor+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 ac_func_search_save_LIBS=$LIBS
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467
5468 /* Override any GCC internal prototype to avoid an error.
5469 Use char because int might match the return type of a GCC
5470 builtin and then its argument prototype would still apply. */
5471 #ifdef __cplusplus
5472 extern "C"
5473 #endif
5474 char floor ();
5475 int
5476 main ()
5477 {
5478 return floor ();
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 for ac_lib in '' $LIBM; do
5484 if test -z "$ac_lib"; then
5485 ac_res="none required"
5486 else
5487 ac_res=-l$ac_lib
5488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5489 fi
5490 if ac_fn_cxx_try_link "$LINENO"; then :
5491 ac_cv_search_floor=$ac_res
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext \
5494 conftest$ac_exeext
5495 if test "${ac_cv_search_floor+set}" = set; then :
5496 break
5497 fi
5498 done
5499 if test "${ac_cv_search_floor+set}" = set; then :
5500
5501 else
5502 ac_cv_search_floor=no
5503 fi
5504 rm conftest.$ac_ext
5505 LIBS=$ac_func_search_save_LIBS
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5508 $as_echo "$ac_cv_search_floor" >&6; }
5509 ac_res=$ac_cv_search_floor
5510 if test "$ac_res" != no; then :
5511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5512
5513 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5514
5515 fi
5516
5517
5518
5519
5520
5521 # Extract the first word of "tic", so it can be a program name with args.
5522 set dummy tic; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_path_TIC+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 case $TIC in
5529 [\\/]* | ?:[\\/]*)
5530 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5531 ;;
5532 *)
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5549 ;;
5550 esac
5551 fi
5552 TIC=$ac_cv_path_TIC
5553 if test -n "$TIC"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5555 $as_echo "$TIC" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5564 $as_echo_n "checking for X... " >&6; }
5565
5566
5567 # Check whether --with-x was given.
5568 if test "${with_x+set}" = set; then :
5569 withval=$with_x;
5570 fi
5571
5572 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5573 if test "x$with_x" = xno; then
5574 # The user explicitly disabled X.
5575 have_x=disabled
5576 else
5577 case $x_includes,$x_libraries in #(
5578 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
5579 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 # One or both of the vars are not set, and there is no cached value.
5583 ac_x_includes=no ac_x_libraries=no
5584 rm -f -r conftest.dir
5585 if mkdir conftest.dir; then
5586 cd conftest.dir
5587 cat >Imakefile <<'_ACEOF'
5588 incroot:
5589 @echo incroot='${INCROOT}'
5590 usrlibdir:
5591 @echo usrlibdir='${USRLIBDIR}'
5592 libdir:
5593 @echo libdir='${LIBDIR}'
5594 _ACEOF
5595 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5596 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5597 for ac_var in incroot usrlibdir libdir; do
5598 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5599 done
5600 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5601 for ac_extension in a so sl dylib la dll; do
5602 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5603 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5604 ac_im_usrlibdir=$ac_im_libdir; break
5605 fi
5606 done
5607 # Screen out bogus values from the imake configuration. They are
5608 # bogus both because they are the default anyway, and because
5609 # using them would break gcc on systems where it needs fixed includes.
5610 case $ac_im_incroot in
5611 /usr/include) ac_x_includes= ;;
5612 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5613 esac
5614 case $ac_im_usrlibdir in
5615 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5616 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5617 esac
5618 fi
5619 cd ..
5620 rm -f -r conftest.dir
5621 fi
5622
5623 # Standard set of common directories for X headers.
5624 # Check X11 before X11Rn because it is often a symlink to the current release.
5625 ac_x_header_dirs='
5626 /usr/X11/include
5627 /usr/X11R7/include
5628 /usr/X11R6/include
5629 /usr/X11R5/include
5630 /usr/X11R4/include
5631
5632 /usr/include/X11
5633 /usr/include/X11R7
5634 /usr/include/X11R6
5635 /usr/include/X11R5
5636 /usr/include/X11R4
5637
5638 /usr/local/X11/include
5639 /usr/local/X11R7/include
5640 /usr/local/X11R6/include
5641 /usr/local/X11R5/include
5642 /usr/local/X11R4/include
5643
5644 /usr/local/include/X11
5645 /usr/local/include/X11R7
5646 /usr/local/include/X11R6
5647 /usr/local/include/X11R5
5648 /usr/local/include/X11R4
5649
5650 /usr/X386/include
5651 /usr/x386/include
5652 /usr/XFree86/include/X11
5653
5654 /usr/include
5655 /usr/local/include
5656 /usr/unsupported/include
5657 /usr/athena/include
5658 /usr/local/x11r5/include
5659 /usr/lpp/Xamples/include
5660
5661 /usr/openwin/include
5662 /usr/openwin/share/include'
5663
5664 if test "$ac_x_includes" = no; then
5665 # Guess where to find include files, by looking for Xlib.h.
5666 # First, try using that file with no special directory specified.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <X11/Xlib.h>
5670 _ACEOF
5671 if ac_fn_cxx_try_cpp "$LINENO"; then :
5672 # We can compile using X headers with no special include directory.
5673 ac_x_includes=
5674 else
5675 for ac_dir in $ac_x_header_dirs; do
5676 if test -r "$ac_dir/X11/Xlib.h"; then
5677 ac_x_includes=$ac_dir
5678 break
5679 fi
5680 done
5681 fi
5682 rm -f conftest.err conftest.i conftest.$ac_ext
5683 fi # $ac_x_includes = no
5684
5685 if test "$ac_x_libraries" = no; then
5686 # Check for the libraries.
5687 # See if we find them without any special options.
5688 # Don't add to $LIBS permanently.
5689 ac_save_LIBS=$LIBS
5690 LIBS="-lX11 $LIBS"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <X11/Xlib.h>
5694 int
5695 main ()
5696 {
5697 XrmInitialize ()
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_cxx_try_link "$LINENO"; then :
5703 LIBS=$ac_save_LIBS
5704 # We can link X programs with no special library path.
5705 ac_x_libraries=
5706 else
5707 LIBS=$ac_save_LIBS
5708 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5709 do
5710 # Don't even attempt the hair of trying to link an X program!
5711 for ac_extension in a so sl dylib la dll; do
5712 if test -r "$ac_dir/libX11.$ac_extension"; then
5713 ac_x_libraries=$ac_dir
5714 break 2
5715 fi
5716 done
5717 done
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext \
5720 conftest$ac_exeext conftest.$ac_ext
5721 fi # $ac_x_libraries = no
5722
5723 case $ac_x_includes,$ac_x_libraries in #(
5724 no,* | *,no | *\'*)
5725 # Didn't find X, or a directory has "'" in its name.
5726 ac_cv_have_x="have_x=no";; #(
5727 *)
5728 # Record where we found X for the cache.
5729 ac_cv_have_x="have_x=yes\
5730 ac_x_includes='$ac_x_includes'\
5731 ac_x_libraries='$ac_x_libraries'"
5732 esac
5733 fi
5734 ;; #(
5735 *) have_x=yes;;
5736 esac
5737 eval "$ac_cv_have_x"
5738 fi # $with_x != no
5739
5740 if test "$have_x" != yes; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5742 $as_echo "$have_x" >&6; }
5743 no_x=yes
5744 else
5745 # If each of the values was on the command line, it overrides each guess.
5746 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5747 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5748 # Update the cache value to reflect the command line values.
5749 ac_cv_have_x="have_x=yes\
5750 ac_x_includes='$x_includes'\
5751 ac_x_libraries='$x_libraries'"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5753 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5754 fi
5755
5756 if test "$no_x" = yes; then
5757 # Not all programs may use this symbol, but it does not hurt to define it.
5758
5759 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5760
5761 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5762 else
5763 if test -n "$x_includes"; then
5764 X_CFLAGS="$X_CFLAGS -I$x_includes"
5765 fi
5766
5767 # It would also be nice to do this for all -L options, not just this one.
5768 if test -n "$x_libraries"; then
5769 X_LIBS="$X_LIBS -L$x_libraries"
5770 # For Solaris; some versions of Sun CC require a space after -R and
5771 # others require no space. Words are not sufficient . . . .
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5773 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5774 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5775 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5776 ac_cxx_werror_flag=yes
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779
5780 int
5781 main ()
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_cxx_try_link "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 X_LIBS="$X_LIBS -R$x_libraries"
5792 else
5793 LIBS="$ac_xsave_LIBS -R $x_libraries"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796
5797 int
5798 main ()
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_cxx_try_link "$LINENO"; then :
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807 $as_echo "yes" >&6; }
5808 X_LIBS="$X_LIBS -R $x_libraries"
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5811 $as_echo "neither works" >&6; }
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext \
5817 conftest$ac_exeext conftest.$ac_ext
5818 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5819 LIBS=$ac_xsave_LIBS
5820 fi
5821
5822 # Check for system-dependent libraries X programs must link with.
5823 # Do this before checking for the system-independent R6 libraries
5824 # (-lICE), since we may need -lsocket or whatever for X linking.
5825
5826 if test "$ISC" = yes; then
5827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5828 else
5829 # Martyn Johnson says this is needed for Ultrix, if the X
5830 # libraries were built with DECnet support. And Karl Berry says
5831 # the Alpha needs dnet_stub (dnet does not exist).
5832 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char XOpenDisplay ();
5843 int
5844 main ()
5845 {
5846 return XOpenDisplay ();
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_cxx_try_link "$LINENO"; then :
5852
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5855 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5856 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_check_lib_save_LIBS=$LIBS
5860 LIBS="-ldnet $LIBS"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863
5864 /* Override any GCC internal prototype to avoid an error.
5865 Use char because int might match the return type of a GCC
5866 builtin and then its argument prototype would still apply. */
5867 #ifdef __cplusplus
5868 extern "C"
5869 #endif
5870 char dnet_ntoa ();
5871 int
5872 main ()
5873 {
5874 return dnet_ntoa ();
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_cxx_try_link "$LINENO"; then :
5880 ac_cv_lib_dnet_dnet_ntoa=yes
5881 else
5882 ac_cv_lib_dnet_dnet_ntoa=no
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 LIBS=$ac_check_lib_save_LIBS
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5889 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5890 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5891 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5892 fi
5893
5894 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5896 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5897 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 ac_check_lib_save_LIBS=$LIBS
5901 LIBS="-ldnet_stub $LIBS"
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904
5905 /* Override any GCC internal prototype to avoid an error.
5906 Use char because int might match the return type of a GCC
5907 builtin and then its argument prototype would still apply. */
5908 #ifdef __cplusplus
5909 extern "C"
5910 #endif
5911 char dnet_ntoa ();
5912 int
5913 main ()
5914 {
5915 return dnet_ntoa ();
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_cxx_try_link "$LINENO"; then :
5921 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5922 else
5923 ac_cv_lib_dnet_stub_dnet_ntoa=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5930 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5931 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5932 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5933 fi
5934
5935 fi
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 LIBS="$ac_xsave_LIBS"
5940
5941 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5942 # to get the SysV transport functions.
5943 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5944 # needs -lnsl.
5945 # The nsl library prevents programs from opening the X display
5946 # on Irix 5.2, according to T.E. Dickey.
5947 # The functions gethostbyname, getservbyname, and inet_addr are
5948 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5949 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5950 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5951
5952 fi
5953
5954 if test $ac_cv_func_gethostbyname = no; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5956 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lnsl $LIBS"
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964
5965 /* Override any GCC internal prototype to avoid an error.
5966 Use char because int might match the return type of a GCC
5967 builtin and then its argument prototype would still apply. */
5968 #ifdef __cplusplus
5969 extern "C"
5970 #endif
5971 char gethostbyname ();
5972 int
5973 main ()
5974 {
5975 return gethostbyname ();
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_cxx_try_link "$LINENO"; then :
5981 ac_cv_lib_nsl_gethostbyname=yes
5982 else
5983 ac_cv_lib_nsl_gethostbyname=no
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5990 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5991 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5993 fi
5994
5995 if test $ac_cv_lib_nsl_gethostbyname = no; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5997 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5998 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 ac_check_lib_save_LIBS=$LIBS
6002 LIBS="-lbsd $LIBS"
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005
6006 /* Override any GCC internal prototype to avoid an error.
6007 Use char because int might match the return type of a GCC
6008 builtin and then its argument prototype would still apply. */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 char gethostbyname ();
6013 int
6014 main ()
6015 {
6016 return gethostbyname ();
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_cxx_try_link "$LINENO"; then :
6022 ac_cv_lib_bsd_gethostbyname=yes
6023 else
6024 ac_cv_lib_bsd_gethostbyname=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6031 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6032 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6034 fi
6035
6036 fi
6037 fi
6038
6039 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6040 # socket/setsockopt and other routines are undefined under SCO ODT
6041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6042 # on later versions), says Simon Leinen: it contains gethostby*
6043 # variants that don't use the name server (or something). -lsocket
6044 # must be given before -lnsl if both are needed. We assume that
6045 # if connect needs -lnsl, so does gethostbyname.
6046 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6047 if test "x$ac_cv_func_connect" = x""yes; then :
6048
6049 fi
6050
6051 if test $ac_cv_func_connect = no; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6053 $as_echo_n "checking for connect in -lsocket... " >&6; }
6054 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061
6062 /* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 char connect ();
6069 int
6070 main ()
6071 {
6072 return connect ();
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_cxx_try_link "$LINENO"; then :
6078 ac_cv_lib_socket_connect=yes
6079 else
6080 ac_cv_lib_socket_connect=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6087 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6088 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6089 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6090 fi
6091
6092 fi
6093
6094 # Guillermo Gomez says -lposix is necessary on A/UX.
6095 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6096 if test "x$ac_cv_func_remove" = x""yes; then :
6097
6098 fi
6099
6100 if test $ac_cv_func_remove = no; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6102 $as_echo_n "checking for remove in -lposix... " >&6; }
6103 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 ac_check_lib_save_LIBS=$LIBS
6107 LIBS="-lposix $LIBS"
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110
6111 /* Override any GCC internal prototype to avoid an error.
6112 Use char because int might match the return type of a GCC
6113 builtin and then its argument prototype would still apply. */
6114 #ifdef __cplusplus
6115 extern "C"
6116 #endif
6117 char remove ();
6118 int
6119 main ()
6120 {
6121 return remove ();
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 if ac_fn_cxx_try_link "$LINENO"; then :
6127 ac_cv_lib_posix_remove=yes
6128 else
6129 ac_cv_lib_posix_remove=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 LIBS=$ac_check_lib_save_LIBS
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6136 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6137 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6139 fi
6140
6141 fi
6142
6143 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6144 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6145 if test "x$ac_cv_func_shmat" = x""yes; then :
6146
6147 fi
6148
6149 if test $ac_cv_func_shmat = no; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6151 $as_echo_n "checking for shmat in -lipc... " >&6; }
6152 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lipc $LIBS"
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159
6160 /* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6163 #ifdef __cplusplus
6164 extern "C"
6165 #endif
6166 char shmat ();
6167 int
6168 main ()
6169 {
6170 return shmat ();
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_cxx_try_link "$LINENO"; then :
6176 ac_cv_lib_ipc_shmat=yes
6177 else
6178 ac_cv_lib_ipc_shmat=no
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6185 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6186 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6188 fi
6189
6190 fi
6191 fi
6192
6193 # Check for libraries that X11R6 Xt/Xaw programs need.
6194 ac_save_LDFLAGS=$LDFLAGS
6195 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6196 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6197 # check for ICE first), but we must link in the order -lSM -lICE or
6198 # we get undefined symbols. So assume we have SM if we have ICE.
6199 # These have to be linked with before -lX11, unlike the other
6200 # libraries we check for below, so use a different variable.
6201 # John Interrante, Karl Berry
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6203 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6204 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 char IceConnectionNumber ();
6219 int
6220 main ()
6221 {
6222 return IceConnectionNumber ();
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_cxx_try_link "$LINENO"; then :
6228 ac_cv_lib_ICE_IceConnectionNumber=yes
6229 else
6230 ac_cv_lib_ICE_IceConnectionNumber=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6237 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6238 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6239 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6240 fi
6241
6242 LDFLAGS=$ac_save_LDFLAGS
6243
6244 fi
6245
6246
6247 STARTUP_NOTIFICATION_CFLAGS=
6248 STARTUP_NOTIFICATION_LIBS=
6249
6250 if test x$support_startup_notification = xyes; then
6251 support_startup_notification=no
6252 # Extract the first word of "pkg-config", so it can be a program name with args.
6253 set dummy pkg-config; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 case $PKG_CONFIG in
6260 [\\/]* | ?:[\\/]*)
6261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6262 ;;
6263 *)
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6280 ;;
6281 esac
6282 fi
6283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6284 if test -n "$PKG_CONFIG"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6286 $as_echo "$PKG_CONFIG" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6294 $as_echo_n "checking for libstartup-notification... " >&6; }
6295 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6296 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6297 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6298 support_startup_notification=yes
6299 fi
6300
6301 if test x$support_startup_notification = xyes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6303 $as_echo "ok" >&6; }
6304
6305 $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6306
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311 fi
6312
6313
6314
6315
6316 for ac_header in \
6317 sys/byteorder.h \
6318 sys/ioctl.h \
6319 sys/sockio.h \
6320 sys/strredir.h \
6321 stdint.h \
6322 wchar.h \
6323
6324 do :
6325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6326 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6327 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6328 cat >>confdefs.h <<_ACEOF
6329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6330 _ACEOF
6331
6332 fi
6333
6334 done
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6338 $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6339 if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344
6345 #define XLIB_ILLEGAL_ACCESS
6346 #include <X11/Xlib.h>
6347
6348 int
6349 main ()
6350 {
6351
6352 Display *dpy;
6353 dpy->xdefaults = (char *)0;
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_cxx_try_compile "$LINENO"; then :
6360 rxvt_cv_xlib_illegal_access=yes
6361 else
6362 rxvt_cv_xlib_illegal_access=no
6363
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6368 $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6369 if test x$rxvt_cv_xlib_illegal_access = xyes; then
6370
6371 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6372
6373 fi
6374
6375 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6376 if test "x$ac_cv_type_mode_t" = x""yes; then :
6377
6378 else
6379
6380 cat >>confdefs.h <<_ACEOF
6381 #define mode_t int
6382 _ACEOF
6383
6384 fi
6385
6386 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6387 if test "x$ac_cv_type_pid_t" = x""yes; then :
6388
6389 else
6390
6391 cat >>confdefs.h <<_ACEOF
6392 #define pid_t int
6393 _ACEOF
6394
6395 fi
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6398 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6399 if test "${ac_cv_type_uid_t+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 #include <sys/types.h>
6405
6406 _ACEOF
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408 $EGREP "uid_t" >/dev/null 2>&1; then :
6409 ac_cv_type_uid_t=yes
6410 else
6411 ac_cv_type_uid_t=no
6412 fi
6413 rm -f conftest*
6414
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6417 $as_echo "$ac_cv_type_uid_t" >&6; }
6418 if test $ac_cv_type_uid_t = no; then
6419
6420 $as_echo "#define uid_t int" >>confdefs.h
6421
6422
6423 $as_echo "#define gid_t int" >>confdefs.h
6424
6425 fi
6426
6427 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6428 case $ac_cv_c_int16_t in #(
6429 no|yes) ;; #(
6430 *)
6431
6432 cat >>confdefs.h <<_ACEOF
6433 #define int16_t $ac_cv_c_int16_t
6434 _ACEOF
6435 ;;
6436 esac
6437
6438 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6439 case $ac_cv_c_uint16_t in #(
6440 no|yes) ;; #(
6441 *)
6442
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define uint16_t $ac_cv_c_uint16_t
6446 _ACEOF
6447 ;;
6448 esac
6449
6450 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6451 case $ac_cv_c_int32_t in #(
6452 no|yes) ;; #(
6453 *)
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define int32_t $ac_cv_c_int32_t
6457 _ACEOF
6458 ;;
6459 esac
6460
6461 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6462 case $ac_cv_c_uint32_t in #(
6463 no|yes) ;; #(
6464 *)
6465
6466 $as_echo "#define _UINT32_T 1" >>confdefs.h
6467
6468
6469 cat >>confdefs.h <<_ACEOF
6470 #define uint32_t $ac_cv_c_uint32_t
6471 _ACEOF
6472 ;;
6473 esac
6474
6475
6476 for ac_func in unsetenv
6477 do :
6478 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6479 if test "x$ac_cv_func_unsetenv" = x""yes; then :
6480 cat >>confdefs.h <<_ACEOF
6481 #define HAVE_UNSETENV 1
6482 _ACEOF
6483
6484 fi
6485 done
6486
6487
6488
6489 support_utmp=yes
6490 support_wtmp=yes
6491 support_lastlog=yes
6492
6493 # Check whether --enable-utmp was given.
6494 if test "${enable_utmp+set}" = set; then :
6495 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6496 support_utmp=$enableval
6497 fi
6498 fi
6499
6500
6501 # Check whether --enable-wtmp was given.
6502 if test "${enable_wtmp+set}" = set; then :
6503 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6504 support_wtmp=$enableval
6505 fi
6506 fi
6507
6508
6509 # Check whether --enable-lastlog was given.
6510 if test "${enable_lastlog+set}" = set; then :
6511 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6512 support_lastlog=$enableval
6513 fi
6514 fi
6515
6516
6517 if test x$support_utmp = xyes; then
6518
6519 $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6520
6521 fi
6522 if test x$support_wtmp = xyes; then
6523
6524 $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6525
6526 fi
6527 if test x$support_lastlog = xyes; then
6528
6529 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6530
6531 fi
6532
6533 for ac_func in \
6534 updwtmp \
6535 updwtmpx \
6536 updlastlogx \
6537
6538 do :
6539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6540 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6542 cat >>confdefs.h <<_ACEOF
6543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6544 _ACEOF
6545
6546 fi
6547 done
6548
6549
6550 for ac_header in lastlog.h
6551 do :
6552 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6553 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6554 cat >>confdefs.h <<_ACEOF
6555 #define HAVE_LASTLOG_H 1
6556 _ACEOF
6557
6558 fi
6559
6560 done
6561
6562
6563 case $host in
6564 *-*-solaris*)
6565
6566 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6567
6568 ;;
6569 esac
6570
6571
6572 for ac_header in utmp.h
6573 do :
6574 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6575 if test "x$ac_cv_header_utmp_h" = x""yes; then :
6576 cat >>confdefs.h <<_ACEOF
6577 #define HAVE_UTMP_H 1
6578 _ACEOF
6579 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6580 #include <sys/types.h>
6581 #include <utmp.h>
6582
6583 "
6584 if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6585
6586 cat >>confdefs.h <<_ACEOF
6587 #define HAVE_STRUCT_UTMP 1
6588 _ACEOF
6589
6590
6591 fi
6592
6593
6594
6595 # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6596 # ------------------------------------------------------
6597 # Tries to find if the field MEMBER exists in type AGGR, after including
6598 # INCLUDES, setting cache variable VAR accordingly.
6599 ac_fn_cxx_check_member ()
6600 {
6601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6603 $as_echo_n "checking for $2.$3... " >&6; }
6604 if eval "test \"\${$4+set}\"" = set; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 $5
6610 int
6611 main ()
6612 {
6613 static $2 ac_aggr;
6614 if (ac_aggr.$3)
6615 return 0;
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_cxx_try_compile "$LINENO"; then :
6621 eval "$4=yes"
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 $5
6626 int
6627 main ()
6628 {
6629 static $2 ac_aggr;
6630 if (sizeof ac_aggr.$3)
6631 return 0;
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_cxx_try_compile "$LINENO"; then :
6637 eval "$4=yes"
6638 else
6639 eval "$4=no"
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 fi
6645 eval ac_res=\$$4
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6647 $as_echo "$ac_res" >&6; }
6648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6649
6650 } # ac_fn_cxx_check_member
6651 ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6652 #include <sys/types.h>
6653 #include <utmp.h>
6654
6655 "
6656 if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6657
6658 $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6659
6660 fi
6661
6662
6663 ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6664 #include <sys/types.h>
6665 #include <utmp.h>
6666
6667 "
6668 if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6669
6670 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6671
6672 fi
6673
6674
6675 fi
6676
6677 done
6678
6679
6680 for ac_header in utmpx.h
6681 do :
6682 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6683 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6684 cat >>confdefs.h <<_ACEOF
6685 #define HAVE_UTMPX_H 1
6686 _ACEOF
6687 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6688 #include <sys/types.h>
6689 #include <utmpx.h>
6690
6691 "
6692 if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
6693
6694 cat >>confdefs.h <<_ACEOF
6695 #define HAVE_STRUCT_UTMPX 1
6696 _ACEOF
6697
6698
6699 fi
6700
6701
6702 ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6703 #include <sys/types.h>
6704 #include <utmpx.h>
6705
6706 "
6707 if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6708
6709 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6710
6711 fi
6712
6713
6714 fi
6715
6716 done
6717
6718 ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6719 #include <sys/types.h>
6720 #include <utmp.h>
6721 #ifdef HAVE_LASTLOG_H
6722 #include <lastlog.h>
6723 #endif
6724
6725 "
6726 if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
6727
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_LASTLOG 1
6730 _ACEOF
6731
6732
6733 fi
6734
6735
6736 ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6737 #include <sys/types.h>
6738 #include <utmpx.h>
6739 #ifdef HAVE_LASTLOG_H
6740 #include <lastlog.h>
6741 #endif
6742
6743 "
6744 if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_STRUCT_LASTLOGX 1
6748 _ACEOF
6749
6750
6751 fi
6752
6753
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6756 $as_echo_n "checking for a fallback location of utmp... " >&6; }
6757 if test "${pt_cv_path_utmp+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760
6761 if test "$cross_compiling" != yes; then
6762 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6763 if test -f "$file"; then
6764 pt_cv_path_utmp=$file
6765 break
6766 fi
6767 done
6768 fi
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6771 $as_echo "$pt_cv_path_utmp" >&6; }
6772 if test x$pt_cv_path_utmp != x; then
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define PT_UTMP_FILE "$pt_cv_path_utmp"
6776 _ACEOF
6777
6778 elif test "$cross_compiling" = yes; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6780 $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6781 fi
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6785 $as_echo_n "checking for a fallback location of wtmp... " >&6; }
6786 if test "${pt_cv_path_wtmp+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789
6790 if test "$cross_compiling" != yes; then
6791 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6792 if test -f "$file"; then
6793 pt_cv_path_wtmp=$file
6794 break
6795 fi
6796 done
6797 fi
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6800 $as_echo "$pt_cv_path_wtmp" >&6; }
6801 if test x$pt_cv_path_wtmp != x; then
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define PT_WTMP_FILE "$pt_cv_path_wtmp"
6805 _ACEOF
6806
6807 elif test "$cross_compiling" = yes; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6809 $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
6810 fi
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
6813 $as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6814 if test "${pt_cv_path_wtmpx+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817
6818 if test "$cross_compiling" != yes; then
6819 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
6820 if test -f "$file"; then
6821 pt_cv_path_wtmpx=$file
6822 break
6823 fi
6824 done
6825 fi
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
6828 $as_echo "$pt_cv_path_wtmpx" >&6; }
6829 if test x$pt_cv_path_wtmpx != x; then
6830
6831 cat >>confdefs.h <<_ACEOF
6832 #define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
6833 _ACEOF
6834
6835 elif test "$cross_compiling" = yes; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
6837 $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
6838 fi
6839
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
6841 $as_echo_n "checking for a fallback location of lastlog... " >&6; }
6842 if test "${pt_cv_path_lastlog+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845
6846 if test "$cross_compiling" != yes; then
6847 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
6848 if test -f "$file"; then
6849 pt_cv_path_lastlog=$file
6850 break
6851 fi
6852 done
6853 fi
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
6856 $as_echo "$pt_cv_path_lastlog" >&6; }
6857 if test x$pt_cv_path_lastlog != x; then
6858
6859 cat >>confdefs.h <<_ACEOF
6860 #define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
6861 _ACEOF
6862
6863 elif test "$cross_compiling" = yes; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
6865 $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
6866 fi
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
6869 $as_echo_n "checking for a fallback location of lastlogx... " >&6; }
6870 if test "${pt_cv_path_lastlogx+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873
6874 if test "$cross_compiling" != yes; then
6875 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
6876 if test -f "$file"; then
6877 pt_cv_path_lastlogx=$file
6878 break
6879 fi
6880 done
6881 fi
6882 fi
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
6884 $as_echo "$pt_cv_path_lastlogx" >&6; }
6885 if test x$pt_cv_path_lastlogx != x; then
6886
6887 cat >>confdefs.h <<_ACEOF
6888 #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
6889 _ACEOF
6890
6891 elif test "$cross_compiling" = yes; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
6893 $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
6894 fi
6895
6896
6897
6898
6899 save_LIBS=$LIBS
6900 save_CFLAGS=$CFLAGS
6901 CFLAGS="$CFLAGS $X_CFLAGS"
6902 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
6903 if test x$support_xim = xyes; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
6905 $as_echo_n "checking for working Xlocale... " >&6; }
6906 if test "${rxvt_cv_func_xlocale+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test "$cross_compiling" = yes; then :
6910 :
6911 else
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914
6915 #include <X11/Xlib.h>
6916 #include <stdlib.h>
6917 int main() {
6918 char *p;
6919 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
6920 exit (XSupportsLocale() ? 0 : 1);
6921 else
6922 exit (1);
6923 }
6924
6925 _ACEOF
6926 if ac_fn_cxx_try_run "$LINENO"; then :
6927 rxvt_cv_func_xlocale=yes
6928 else
6929 rxvt_cv_func_xlocale=no
6930 fi
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932 conftest.$ac_objext conftest.beam conftest.$ac_ext
6933 fi
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
6937 $as_echo "$rxvt_cv_func_xlocale" >&6; }
6938 if test x$rxvt_cv_func_xlocale = xyes; then
6939
6940 $as_echo "#define USE_XIM 1" >>confdefs.h
6941
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
6943 $as_echo_n "checking for broken XIM callback... " >&6; }
6944 if test "${rxvt_cv_broken_ximcb+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949
6950 #include <X11/Xlib.h>
6951
6952 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
6953
6954 void f() {
6955 XIMCallback cb;
6956 cb.callback = im_destroy_cb;
6957 }
6958
6959 _ACEOF
6960 if ac_fn_cxx_try_compile "$LINENO"; then :
6961 rxvt_cv_broken_ximcb=yes
6962 else
6963 rxvt_cv_broken_ximcb=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
6968 $as_echo "$rxvt_cv_broken_ximcb" >&6; }
6969
6970 if test x$rxvt_cv_broken_ximcb = xyes; then
6971
6972 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
6973
6974 fi
6975 fi
6976 fi
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
6979 $as_echo_n "checking for working X setlocale... " >&6; }
6980 if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 #define X_LOCALE 1
6986 #include <X11/Xlocale.h>
6987 int
6988 main ()
6989 {
6990 setlocale(LC_CTYPE, "");
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_cxx_try_link "$LINENO"; then :
6996 rxvt_cv_func_xsetlocale=yes
6997 else
6998 rxvt_cv_func_xsetlocale=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7004 $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7005 if test x$rxvt_cv_func_xsetlocale = xyes; then
7006
7007 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7008
7009 fi
7010 LIBS=$save_LIBS
7011 CFLAGS=$save_CFLAGS
7012
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7014 $as_echo_n "checking for working nl_langinfo... " >&6; }
7015 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <langinfo.h>
7021 int
7022 main ()
7023 {
7024 nl_langinfo(CODESET);
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_cxx_try_link "$LINENO"; then :
7030 rxvt_cv_func_nl_langinfo=yes
7031 else
7032 rxvt_cv_func_nl_langinfo=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7038 $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7039 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7040
7041 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7042
7043 fi
7044
7045
7046 case $host in
7047 *-*-solaris*)
7048
7049 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7052 $as_echo_n "checking for library containing sendmsg... " >&6; }
7053 if test "${ac_cv_search_sendmsg+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 ac_func_search_save_LIBS=$LIBS
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059
7060 /* Override any GCC internal prototype to avoid an error.
7061 Use char because int might match the return type of a GCC
7062 builtin and then its argument prototype would still apply. */
7063 #ifdef __cplusplus
7064 extern "C"
7065 #endif
7066 char sendmsg ();
7067 int
7068 main ()
7069 {
7070 return sendmsg ();
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 for ac_lib in '' socket; do
7076 if test -z "$ac_lib"; then
7077 ac_res="none required"
7078 else
7079 ac_res=-l$ac_lib
7080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7081 fi
7082 if ac_fn_cxx_try_link "$LINENO"; then :
7083 ac_cv_search_sendmsg=$ac_res
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext \
7086 conftest$ac_exeext
7087 if test "${ac_cv_search_sendmsg+set}" = set; then :
7088 break
7089 fi
7090 done
7091 if test "${ac_cv_search_sendmsg+set}" = set; then :
7092
7093 else
7094 ac_cv_search_sendmsg=no
7095 fi
7096 rm conftest.$ac_ext
7097 LIBS=$ac_func_search_save_LIBS
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7100 $as_echo "$ac_cv_search_sendmsg" >&6; }
7101 ac_res=$ac_cv_search_sendmsg
7102 if test "$ac_res" != no; then :
7103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7104
7105 fi
7106
7107 ;;
7108 esac
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7111 $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7112 if test "${pt_cv_can_pass_fds+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117
7118 #include <stddef.h> // broken bsds (is that redundant?) need this
7119 #include <sys/types.h>
7120 #include <sys/socket.h>
7121 #include <sys/uio.h>
7122
7123 int
7124 main ()
7125 {
7126
7127 {
7128 msghdr msg;
7129 iovec iov;
7130 char buf [100];
7131 char data = 0;
7132
7133 iov.iov_base = &data;
7134 iov.iov_len = 1;
7135
7136 msg.msg_iov = &iov;
7137 msg.msg_iovlen = 1;
7138 msg.msg_control = buf;
7139 msg.msg_controllen = sizeof buf;
7140
7141 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7142 cmsg->cmsg_level = SOL_SOCKET;
7143 cmsg->cmsg_type = SCM_RIGHTS;
7144 cmsg->cmsg_len = 100;
7145
7146 *(int *)CMSG_DATA (cmsg) = 5;
7147
7148 return sendmsg (3, &msg, 0);
7149 }
7150
7151 ;
7152 return 0;
7153 }
7154 _ACEOF
7155 if ac_fn_cxx_try_link "$LINENO"; then :
7156 pt_cv_can_pass_fds=yes
7157 else
7158 pt_cv_can_pass_fds=no
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7164 $as_echo "$pt_cv_can_pass_fds" >&6; }
7165 if test x$pt_cv_can_pass_fds = xyes; then
7166
7167 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7168
7169 else
7170 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7171 fi
7172
7173
7174
7175 for ac_header in \
7176 pty.h \
7177 util.h \
7178 libutil.h \
7179 sys/ioctl.h \
7180 stropts.h \
7181
7182 do :
7183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7184 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7186 cat >>confdefs.h <<_ACEOF
7187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188 _ACEOF
7189
7190 fi
7191
7192 done
7193
7194
7195 for ac_func in \
7196 revoke \
7197 _getpty \
7198 getpt \
7199 posix_openpt \
7200 isastream \
7201 setuid \
7202 seteuid \
7203 setreuid \
7204 setresuid \
7205
7206 do :
7207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7208 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7209 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7210 cat >>confdefs.h <<_ACEOF
7211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212 _ACEOF
7213
7214 fi
7215 done
7216
7217
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7219 $as_echo_n "checking for UNIX98 ptys... " >&6; }
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <stdlib.h>
7223 int
7224 main ()
7225 {
7226 grantpt(0);unlockpt(0);ptsname(0);
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 if ac_fn_cxx_try_link "$LINENO"; then :
7232 unix98_pty=yes
7233
7234 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7235
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244
7245 if test -z "$unix98_pty"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7247 $as_echo_n "checking for library containing openpty... " >&6; }
7248 if test "${ac_cv_search_openpty+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 ac_func_search_save_LIBS=$LIBS
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7258 #ifdef __cplusplus
7259 extern "C"
7260 #endif
7261 char openpty ();
7262 int
7263 main ()
7264 {
7265 return openpty ();
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 for ac_lib in '' util; do
7271 if test -z "$ac_lib"; then
7272 ac_res="none required"
7273 else
7274 ac_res=-l$ac_lib
7275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7276 fi
7277 if ac_fn_cxx_try_link "$LINENO"; then :
7278 ac_cv_search_openpty=$ac_res
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext
7282 if test "${ac_cv_search_openpty+set}" = set; then :
7283 break
7284 fi
7285 done
7286 if test "${ac_cv_search_openpty+set}" = set; then :
7287
7288 else
7289 ac_cv_search_openpty=no
7290 fi
7291 rm conftest.$ac_ext
7292 LIBS=$ac_func_search_save_LIBS
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7295 $as_echo "$ac_cv_search_openpty" >&6; }
7296 ac_res=$ac_cv_search_openpty
7297 if test "$ac_res" != no; then :
7298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7299
7300 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7301
7302 fi
7303
7304 fi
7305
7306
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7309 $as_echo_n "checking for tty group... " >&6; }
7310 if test "${pt_cv_tty_group+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 if test "$cross_compiling" = yes; then :
7314 pt_cv_tty_group=no
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318
7319 #include <sys/types.h>
7320 #include <sys/stat.h>
7321 #include <unistd.h>
7322 #include <grp.h>
7323
7324 int main()
7325 {
7326 struct stat st;
7327 struct group *gr;
7328 char *tty;
7329 gr = getgrnam("tty");
7330 tty = ttyname(0);
7331 if (gr != 0
7332 && tty != 0
7333 && (stat(tty, &st)) == 0
7334 && st.st_gid == gr->gr_gid)
7335 return 0;
7336 else
7337 return 1;
7338 }
7339 _ACEOF
7340 if ac_fn_cxx_try_run "$LINENO"; then :
7341 pt_cv_tty_group=yes
7342 else
7343 pt_cv_tty_group=no
7344 fi
7345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346 conftest.$ac_objext conftest.beam conftest.$ac_ext
7347 fi
7348
7349 fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7351 $as_echo "$pt_cv_tty_group" >&6; }
7352 if test x$pt_cv_tty_group = xyes; then
7353
7354 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7355
7356 fi
7357
7358 support_image=no
7359 if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7360 support_image=yes
7361 fi
7362 if test x$support_xft = xyes || test x$support_image = xyes; then
7363 rxvt_have_xrender=no
7364 # Extract the first word of "pkg-config", so it can be a program name with args.
7365 set dummy pkg-config; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 case $PKG_CONFIG in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7386 fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7392 ;;
7393 esac
7394 fi
7395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7396 if test -n "$PKG_CONFIG"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7398 $as_echo "$PKG_CONFIG" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7406 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7407 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7408 rxvt_have_xrender=yes
7409
7410 save_LIBS="$LIBS"
7411 LIBS="$LIBS $X_LIBS"
7412 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7413 if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7414
7415 else
7416 rxvt_have_xrender=no
7417 fi
7418
7419
7420 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7421 if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7422
7423 else
7424 rxvt_have_xrender=no
7425 fi
7426
7427 LIBS="$save_LIBS"
7428 fi
7429 fi
7430
7431 if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7432 # Extract the first word of "pkg-config", so it can be a program name with args.
7433 set dummy pkg-config; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 case $PKG_CONFIG in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7460 ;;
7461 esac
7462 fi
7463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7464 if test -n "$PKG_CONFIG"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7466 $as_echo "$PKG_CONFIG" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472
7473 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7474 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7475 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7476 else
7477 # Extract the first word of "xft-config", so it can be a program name with args.
7478 set dummy xft-config; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 case $XFT_CONFIG in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7505 ;;
7506 esac
7507 fi
7508 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7509 if test -n "$XFT_CONFIG"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7511 $as_echo "$XFT_CONFIG" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 if test $XFT_CONFIG != no; then
7519 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7520 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7521 fi
7522 fi
7523
7524 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7525 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7526 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7527 fi
7528
7529 save_LIBS="$LIBS"
7530 LIBS="$LIBS $X_LIBS"
7531 for ac_header in X11/Xft/Xft.h
7532 do :
7533 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7534 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_X11_XFT_XFT_H 1
7537 _ACEOF
7538
7539 else
7540 support_xft=no
7541 fi
7542
7543 done
7544
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7546 $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7547 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 ac_check_lib_save_LIBS=$LIBS
7551 LIBS="-lXft $LIBS"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554
7555 /* Override any GCC internal prototype to avoid an error.
7556 Use char because int might match the return type of a GCC
7557 builtin and then its argument prototype would still apply. */
7558 #ifdef __cplusplus
7559 extern "C"
7560 #endif
7561 char XftDrawString32 ();
7562 int
7563 main ()
7564 {
7565 return XftDrawString32 ();
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_cxx_try_link "$LINENO"; then :
7571 ac_cv_lib_Xft_XftDrawString32=yes
7572 else
7573 ac_cv_lib_Xft_XftDrawString32=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 LIBS=$ac_check_lib_save_LIBS
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7580 $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7581 if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7582 :
7583 else
7584 support_xft=no
7585 fi
7586
7587 for ac_header in fontconfig/fontconfig.h
7588 do :
7589 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7590 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
7591 cat >>confdefs.h <<_ACEOF
7592 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
7593 _ACEOF
7594
7595 else
7596 support_xft=no
7597 fi
7598
7599 done
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7602 $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7603 if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 ac_check_lib_save_LIBS=$LIBS
7607 LIBS="-lfontconfig $LIBS"
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char FcPatternGet ();
7618 int
7619 main ()
7620 {
7621 return FcPatternGet ();
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_cxx_try_link "$LINENO"; then :
7627 ac_cv_lib_fontconfig_FcPatternGet=yes
7628 else
7629 ac_cv_lib_fontconfig_FcPatternGet=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 LIBS=$ac_check_lib_save_LIBS
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7636 $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7637 if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7638 :
7639 else
7640 support_xft=no
7641 fi
7642
7643 LIBS="$save_LIBS"
7644
7645 if test x$support_xft = xyes; then
7646
7647 $as_echo "#define XFT 1" >>confdefs.h
7648
7649 fi
7650 fi
7651
7652 image_lib=none
7653
7654 PIXBUF_CFLAGS=
7655 PIXBUF_LIBS=
7656
7657 if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7658 LIBS="$LIBS -lm"
7659
7660 $as_echo "#define XRENDER 1" >>confdefs.h
7661
7662
7663 if test x$support_inheritpixmap = xyes; then
7664
7665 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7666
7667 fi
7668
7669 if test x$support_pixbuf = xyes; then
7670 support_pixbuf=no
7671 # Extract the first word of "pkg-config", so it can be a program name with args.
7672 set dummy pkg-config; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 case $PKG_CONFIG in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7699 ;;
7700 esac
7701 fi
7702 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7703 if test -n "$PKG_CONFIG"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7705 $as_echo "$PKG_CONFIG" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
7713 $as_echo_n "checking for gdk-pixbuf... " >&6; }
7714 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7715 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
7716 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
7717 support_pixbuf=yes
7718 fi
7719
7720 if test x$support_pixbuf = xyes; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7722 $as_echo "ok" >&6; }
7723 image_lib=gdk-pixbuf
7724
7725 $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
7726
7727
7728 $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7729
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734 fi
7735 fi
7736
7737
7738
7739
7740 if test x$support_styles = xyes; then
7741
7742 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7743
7744 fi
7745 if test x$support_iso14755 = xyes; then
7746
7747 $as_echo "#define ISO_14755 1" >>confdefs.h
7748
7749 fi
7750 if test x$support_8bitctrls = xyes; then
7751
7752 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7753
7754 fi
7755 if test x$support_fading = xyes; then
7756
7757 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7758
7759 fi
7760 if test x$support_keepscrolling = xno; then
7761
7762 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7763
7764 fi
7765 if test x$support_selectionscrolling = xyes; then
7766
7767 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7768
7769 fi
7770 if test x$support_frills = xyes; then
7771
7772 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7773
7774 fi
7775 if test x$support_mousewheel = xyes; then
7776
7777 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7778
7779 fi
7780 if test x$support_mouseslipwheel = xyes; then
7781
7782 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7783
7784 fi
7785
7786 scrolltypes=plain
7787
7788 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7789
7790
7791 if test x$support_scroll_rxvt = xyes; then
7792
7793 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7794
7795 scrolltypes="$scrolltypes rxvt"
7796 fi
7797 if test x$support_scroll_next = xyes; then
7798
7799 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7800
7801 scrolltypes="$scrolltypes next"
7802 fi
7803 if test x$support_scroll_xterm = xyes; then
7804
7805 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7806
7807 scrolltypes="$scrolltypes xterm"
7808 fi
7809 if test x$support_pointer_blank = xyes; then
7810
7811 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7812
7813 fi
7814 if test x$support_text_blink = xyes; then
7815
7816 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7817
7818 fi
7819 if test x$support_unicode3 = xyes; then
7820
7821 $as_echo "#define UNICODE_3 1" >>confdefs.h
7822
7823 fi
7824 if test x$support_combining = xyes; then
7825
7826 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7827
7828 fi
7829 if test x$codesets = xall; then
7830 codesets=jp,jp-ext,kr,zh,zh-ext
7831 fi
7832
7833 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7834
7835
7836 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7837
7838 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7839 case "$codeset" in
7840 JP )
7841 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7842 ;;
7843 JP_EXT )
7844 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7845 ;;
7846 KR )
7847 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7848 ;;
7849 ZH )
7850 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
7851 ;;
7852 ZH_EXT )
7853 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
7854 ;;
7855 esac
7856 done
7857
7858 IF_PERL=\#
7859 if test x$support_perl = xyes; then
7860 # Extract the first word of "perl5", so it can be a program name with args.
7861 set dummy perl5; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_path_PERL+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 case $PERL in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7870 ;;
7871 *)
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7888 ;;
7889 esac
7890 fi
7891 PERL=$ac_cv_path_PERL
7892 if test -n "$PERL"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7894 $as_echo "$PERL" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900
7901
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
7903 $as_echo_n "checking for $PERL suitability... " >&6; }
7904 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
7905
7906 save_CXXFLAGS="$CXXFLAGS"
7907 save_LIBS="$LIBS"
7908 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
7909 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912
7913 #include <EXTERN.h>
7914 #include <perl.h>
7915 #include <XSUB.h>
7916
7917 int
7918 main ()
7919 {
7920
7921 PerlInterpreter *perl = perl_alloc ();
7922
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_cxx_try_link "$LINENO"; then :
7928 rxvt_perl_link=yes
7929 else
7930 rxvt_perl_link=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 CXXFLAGS="$save_CXXFLAGS"
7935 LIBS="$save_LIBS"
7936
7937 if test x$rxvt_perl_link = xyes; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7939 $as_echo "ok" >&6; }
7940
7941 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
7942
7943 IF_PERL=
7944 PERL_O=rxvtperl.o
7945 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
7946 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
7947 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
7948 else
7949 as_fn_error $? "no, unable to link" "$LINENO" 5
7950 fi
7951 else
7952 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
7953 fi
7954 fi
7955
7956
7957
7958
7959
7960
7961
7962
7963 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
7964
7965 cat >confcache <<\_ACEOF
7966 # This file is a shell script that caches the results of configure
7967 # tests run on this system so they can be shared between configure
7968 # scripts and configure runs, see configure's option --config-cache.
7969 # It is not useful on other systems. If it contains results you don't
7970 # want to keep, you may remove or edit it.
7971 #
7972 # config.status only pays attention to the cache file if you give it
7973 # the --recheck option to rerun configure.
7974 #
7975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7977 # following values.
7978
7979 _ACEOF
7980
7981 # The following way of writing the cache mishandles newlines in values,
7982 # but we know of no workaround that is simple, portable, and efficient.
7983 # So, we kill variables containing newlines.
7984 # Ultrix sh set writes to stderr and can't be redirected directly,
7985 # and sets the high bit in the cache file unless we assign to the vars.
7986 (
7987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7988 eval ac_val=\$$ac_var
7989 case $ac_val in #(
7990 *${as_nl}*)
7991 case $ac_var in #(
7992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7994 esac
7995 case $ac_var in #(
7996 _ | IFS | as_nl) ;; #(
7997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7998 *) { eval $ac_var=; unset $ac_var;} ;;
7999 esac ;;
8000 esac
8001 done
8002
8003 (set) 2>&1 |
8004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8005 *${as_nl}ac_space=\ *)
8006 # `set' does not quote correctly, so add quotes: double-quote
8007 # substitution turns \\\\ into \\, and sed turns \\ into \.
8008 sed -n \
8009 "s/'/'\\\\''/g;
8010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8011 ;; #(
8012 *)
8013 # `set' quotes correctly as required by POSIX, so do not add quotes.
8014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8015 ;;
8016 esac |
8017 sort
8018 ) |
8019 sed '
8020 /^ac_cv_env_/b end
8021 t clear
8022 :clear
8023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8024 t end
8025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8026 :end' >>confcache
8027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8028 if test -w "$cache_file"; then
8029 test "x$cache_file" != "x/dev/null" &&
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8031 $as_echo "$as_me: updating cache $cache_file" >&6;}
8032 cat confcache >$cache_file
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8036 fi
8037 fi
8038 rm -f confcache
8039
8040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8041 # Let make expand exec_prefix.
8042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8043
8044 DEFS=-DHAVE_CONFIG_H
8045
8046 ac_libobjs=
8047 ac_ltlibobjs=
8048 U=
8049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8050 # 1. Remove the extension, and $U if already installed.
8051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8054 # will be set to the directory where LIBOBJS objects are built.
8055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8057 done
8058 LIBOBJS=$ac_libobjs
8059
8060 LTLIBOBJS=$ac_ltlibobjs
8061
8062
8063
8064 : ${CONFIG_STATUS=./config.status}
8065 ac_write_fail=0
8066 ac_clean_files_save=$ac_clean_files
8067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8070 as_write_fail=0
8071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8072 #! $SHELL
8073 # Generated by $as_me.
8074 # Run this file to recreate the current configuration.
8075 # Compiler output produced by configure, useful for debugging
8076 # configure, is in config.log if it exists.
8077
8078 debug=false
8079 ac_cs_recheck=false
8080 ac_cs_silent=false
8081
8082 SHELL=\${CONFIG_SHELL-$SHELL}
8083 export SHELL
8084 _ASEOF
8085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8086 ## -------------------- ##
8087 ## M4sh Initialization. ##
8088 ## -------------------- ##
8089
8090 # Be more Bourne compatible
8091 DUALCASE=1; export DUALCASE # for MKS sh
8092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8093 emulate sh
8094 NULLCMD=:
8095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8096 # is contrary to our usage. Disable this feature.
8097 alias -g '${1+"$@"}'='"$@"'
8098 setopt NO_GLOB_SUBST
8099 else
8100 case `(set -o) 2>/dev/null` in #(
8101 *posix*) :
8102 set -o posix ;; #(
8103 *) :
8104 ;;
8105 esac
8106 fi
8107
8108
8109 as_nl='
8110 '
8111 export as_nl
8112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8116 # Prefer a ksh shell builtin over an external printf program on Solaris,
8117 # but without wasting forks for bash or zsh.
8118 if test -z "$BASH_VERSION$ZSH_VERSION" \
8119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8120 as_echo='print -r --'
8121 as_echo_n='print -rn --'
8122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8123 as_echo='printf %s\n'
8124 as_echo_n='printf %s'
8125 else
8126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8128 as_echo_n='/usr/ucb/echo -n'
8129 else
8130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8131 as_echo_n_body='eval
8132 arg=$1;
8133 case $arg in #(
8134 *"$as_nl"*)
8135 expr "X$arg" : "X\\(.*\\)$as_nl";
8136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8137 esac;
8138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8139 '
8140 export as_echo_n_body
8141 as_echo_n='sh -c $as_echo_n_body as_echo'
8142 fi
8143 export as_echo_body
8144 as_echo='sh -c $as_echo_body as_echo'
8145 fi
8146
8147 # The user is always right.
8148 if test "${PATH_SEPARATOR+set}" != set; then
8149 PATH_SEPARATOR=:
8150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8152 PATH_SEPARATOR=';'
8153 }
8154 fi
8155
8156
8157 # IFS
8158 # We need space, tab and new line, in precisely that order. Quoting is
8159 # there to prevent editors from complaining about space-tab.
8160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8161 # splitting by setting IFS to empty value.)
8162 IFS=" "" $as_nl"
8163
8164 # Find who we are. Look in the path if we contain no directory separator.
8165 case $0 in #((
8166 *[\\/]* ) as_myself=$0 ;;
8167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8173 done
8174 IFS=$as_save_IFS
8175
8176 ;;
8177 esac
8178 # We did not find ourselves, most probably we were run as `sh COMMAND'
8179 # in which case we are not to be found in the path.
8180 if test "x$as_myself" = x; then
8181 as_myself=$0
8182 fi
8183 if test ! -f "$as_myself"; then
8184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8185 exit 1
8186 fi
8187
8188 # Unset variables that we do not need and which cause bugs (e.g. in
8189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8190 # suppresses any "Segmentation fault" message there. '((' could
8191 # trigger a bug in pdksh 5.2.14.
8192 for as_var in BASH_ENV ENV MAIL MAILPATH
8193 do eval test x\${$as_var+set} = xset \
8194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8195 done
8196 PS1='$ '
8197 PS2='> '
8198 PS4='+ '
8199
8200 # NLS nuisances.
8201 LC_ALL=C
8202 export LC_ALL
8203 LANGUAGE=C
8204 export LANGUAGE
8205
8206 # CDPATH.
8207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8208
8209
8210 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8211 # ----------------------------------------
8212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8214 # script with STATUS, using 1 if that was 0.
8215 as_fn_error ()
8216 {
8217 as_status=$1; test $as_status -eq 0 && as_status=1
8218 if test "$4"; then
8219 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8221 fi
8222 $as_echo "$as_me: error: $2" >&2
8223 as_fn_exit $as_status
8224 } # as_fn_error
8225
8226
8227 # as_fn_set_status STATUS
8228 # -----------------------
8229 # Set $? to STATUS, without forking.
8230 as_fn_set_status ()
8231 {
8232 return $1
8233 } # as_fn_set_status
8234
8235 # as_fn_exit STATUS
8236 # -----------------
8237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8238 as_fn_exit ()
8239 {
8240 set +e
8241 as_fn_set_status $1
8242 exit $1
8243 } # as_fn_exit
8244
8245 # as_fn_unset VAR
8246 # ---------------
8247 # Portably unset VAR.
8248 as_fn_unset ()
8249 {
8250 { eval $1=; unset $1;}
8251 }
8252 as_unset=as_fn_unset
8253 # as_fn_append VAR VALUE
8254 # ----------------------
8255 # Append the text in VALUE to the end of the definition contained in VAR. Take
8256 # advantage of any shell optimizations that allow amortized linear growth over
8257 # repeated appends, instead of the typical quadratic growth present in naive
8258 # implementations.
8259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8260 eval 'as_fn_append ()
8261 {
8262 eval $1+=\$2
8263 }'
8264 else
8265 as_fn_append ()
8266 {
8267 eval $1=\$$1\$2
8268 }
8269 fi # as_fn_append
8270
8271 # as_fn_arith ARG...
8272 # ------------------
8273 # Perform arithmetic evaluation on the ARGs, and store the result in the
8274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8275 # must be portable across $(()) and expr.
8276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8277 eval 'as_fn_arith ()
8278 {
8279 as_val=$(( $* ))
8280 }'
8281 else
8282 as_fn_arith ()
8283 {
8284 as_val=`expr "$@" || test $? -eq 1`
8285 }
8286 fi # as_fn_arith
8287
8288
8289 if expr a : '\(a\)' >/dev/null 2>&1 &&
8290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8291 as_expr=expr
8292 else
8293 as_expr=false
8294 fi
8295
8296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8297 as_basename=basename
8298 else
8299 as_basename=false
8300 fi
8301
8302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8303 as_dirname=dirname
8304 else
8305 as_dirname=false
8306 fi
8307
8308 as_me=`$as_basename -- "$0" ||
8309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8310 X"$0" : 'X\(//\)$' \| \
8311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8312 $as_echo X/"$0" |
8313 sed '/^.*\/\([^/][^/]*\)\/*$/{
8314 s//\1/
8315 q
8316 }
8317 /^X\/\(\/\/\)$/{
8318 s//\1/
8319 q
8320 }
8321 /^X\/\(\/\).*/{
8322 s//\1/
8323 q
8324 }
8325 s/.*/./; q'`
8326
8327 # Avoid depending upon Character Ranges.
8328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8331 as_cr_digits='0123456789'
8332 as_cr_alnum=$as_cr_Letters$as_cr_digits
8333
8334 ECHO_C= ECHO_N= ECHO_T=
8335 case `echo -n x` in #(((((
8336 -n*)
8337 case `echo 'xy\c'` in
8338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8339 xy) ECHO_C='\c';;
8340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8341 ECHO_T=' ';;
8342 esac;;
8343 *)
8344 ECHO_N='-n';;
8345 esac
8346
8347 rm -f conf$$ conf$$.exe conf$$.file
8348 if test -d conf$$.dir; then
8349 rm -f conf$$.dir/conf$$.file
8350 else
8351 rm -f conf$$.dir
8352 mkdir conf$$.dir 2>/dev/null
8353 fi
8354 if (echo >conf$$.file) 2>/dev/null; then
8355 if ln -s conf$$.file conf$$ 2>/dev/null; then
8356 as_ln_s='ln -s'
8357 # ... but there are two gotchas:
8358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8360 # In both cases, we have to default to `cp -p'.
8361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8362 as_ln_s='cp -p'
8363 elif ln conf$$.file conf$$ 2>/dev/null; then
8364 as_ln_s=ln
8365 else
8366 as_ln_s='cp -p'
8367 fi
8368 else
8369 as_ln_s='cp -p'
8370 fi
8371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8372 rmdir conf$$.dir 2>/dev/null
8373
8374
8375 # as_fn_mkdir_p
8376 # -------------
8377 # Create "$as_dir" as a directory, including parents if necessary.
8378 as_fn_mkdir_p ()
8379 {
8380
8381 case $as_dir in #(
8382 -*) as_dir=./$as_dir;;
8383 esac
8384 test -d "$as_dir" || eval $as_mkdir_p || {
8385 as_dirs=
8386 while :; do
8387 case $as_dir in #(
8388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8389 *) as_qdir=$as_dir;;
8390 esac
8391 as_dirs="'$as_qdir' $as_dirs"
8392 as_dir=`$as_dirname -- "$as_dir" ||
8393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8394 X"$as_dir" : 'X\(//\)[^/]' \| \
8395 X"$as_dir" : 'X\(//\)$' \| \
8396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8397 $as_echo X"$as_dir" |
8398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8399 s//\1/
8400 q
8401 }
8402 /^X\(\/\/\)[^/].*/{
8403 s//\1/
8404 q
8405 }
8406 /^X\(\/\/\)$/{
8407 s//\1/
8408 q
8409 }
8410 /^X\(\/\).*/{
8411 s//\1/
8412 q
8413 }
8414 s/.*/./; q'`
8415 test -d "$as_dir" && break
8416 done
8417 test -z "$as_dirs" || eval "mkdir $as_dirs"
8418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8419
8420
8421 } # as_fn_mkdir_p
8422 if mkdir -p . 2>/dev/null; then
8423 as_mkdir_p='mkdir -p "$as_dir"'
8424 else
8425 test -d ./-p && rmdir ./-p
8426 as_mkdir_p=false
8427 fi
8428
8429 if test -x / >/dev/null 2>&1; then
8430 as_test_x='test -x'
8431 else
8432 if ls -dL / >/dev/null 2>&1; then
8433 as_ls_L_option=L
8434 else
8435 as_ls_L_option=
8436 fi
8437 as_test_x='
8438 eval sh -c '\''
8439 if test -d "$1"; then
8440 test -d "$1/.";
8441 else
8442 case $1 in #(
8443 -*)set "./$1";;
8444 esac;
8445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8446 ???[sx]*):;;*)false;;esac;fi
8447 '\'' sh
8448 '
8449 fi
8450 as_executable_p=$as_test_x
8451
8452 # Sed expression to map a string onto a valid CPP name.
8453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8454
8455 # Sed expression to map a string onto a valid variable name.
8456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8457
8458
8459 exec 6>&1
8460 ## ----------------------------------- ##
8461 ## Main body of $CONFIG_STATUS script. ##
8462 ## ----------------------------------- ##
8463 _ASEOF
8464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8465
8466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8467 # Save the log message, to keep $0 and so on meaningful, and to
8468 # report actual input values of CONFIG_FILES etc. instead of their
8469 # values after options handling.
8470 ac_log="
8471 This file was extended by $as_me, which was
8472 generated by GNU Autoconf 2.67. Invocation command line was
8473
8474 CONFIG_FILES = $CONFIG_FILES
8475 CONFIG_HEADERS = $CONFIG_HEADERS
8476 CONFIG_LINKS = $CONFIG_LINKS
8477 CONFIG_COMMANDS = $CONFIG_COMMANDS
8478 $ $0 $@
8479
8480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8481 "
8482
8483 _ACEOF
8484
8485 case $ac_config_files in *"
8486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8487 esac
8488
8489 case $ac_config_headers in *"
8490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8491 esac
8492
8493
8494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8495 # Files that config.status was made for.
8496 config_files="$ac_config_files"
8497 config_headers="$ac_config_headers"
8498
8499 _ACEOF
8500
8501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8502 ac_cs_usage="\
8503 \`$as_me' instantiates files and other configuration actions
8504 from templates according to the current configuration. Unless the files
8505 and actions are specified as TAGs, all are instantiated by default.
8506
8507 Usage: $0 [OPTION]... [TAG]...
8508
8509 -h, --help print this help, then exit
8510 -V, --version print version number and configuration settings, then exit
8511 --config print configuration, then exit
8512 -q, --quiet, --silent
8513 do not print progress messages
8514 -d, --debug don't remove temporary files
8515 --recheck update $as_me by reconfiguring in the same conditions
8516 --file=FILE[:TEMPLATE]
8517 instantiate the configuration file FILE
8518 --header=FILE[:TEMPLATE]
8519 instantiate the configuration header FILE
8520
8521 Configuration files:
8522 $config_files
8523
8524 Configuration headers:
8525 $config_headers
8526
8527 Report bugs to the package provider."
8528
8529 _ACEOF
8530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8532 ac_cs_version="\\
8533 config.status
8534 configured by $0, generated by GNU Autoconf 2.67,
8535 with options \\"\$ac_cs_config\\"
8536
8537 Copyright (C) 2010 Free Software Foundation, Inc.
8538 This config.status script is free software; the Free Software Foundation
8539 gives unlimited permission to copy, distribute and modify it."
8540
8541 ac_pwd='$ac_pwd'
8542 srcdir='$srcdir'
8543 INSTALL='$INSTALL'
8544 test -n "\$AWK" || AWK=awk
8545 _ACEOF
8546
8547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8548 # The default lists apply if the user does not specify any file.
8549 ac_need_defaults=:
8550 while test $# != 0
8551 do
8552 case $1 in
8553 --*=?*)
8554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8556 ac_shift=:
8557 ;;
8558 --*=)
8559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8560 ac_optarg=
8561 ac_shift=:
8562 ;;
8563 *)
8564 ac_option=$1
8565 ac_optarg=$2
8566 ac_shift=shift
8567 ;;
8568 esac
8569
8570 case $ac_option in
8571 # Handling of the options.
8572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8573 ac_cs_recheck=: ;;
8574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8575 $as_echo "$ac_cs_version"; exit ;;
8576 --config | --confi | --conf | --con | --co | --c )
8577 $as_echo "$ac_cs_config"; exit ;;
8578 --debug | --debu | --deb | --de | --d | -d )
8579 debug=: ;;
8580 --file | --fil | --fi | --f )
8581 $ac_shift
8582 case $ac_optarg in
8583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8584 '') as_fn_error $? "missing file argument" ;;
8585 esac
8586 as_fn_append CONFIG_FILES " '$ac_optarg'"
8587 ac_need_defaults=false;;
8588 --header | --heade | --head | --hea )
8589 $ac_shift
8590 case $ac_optarg in
8591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8592 esac
8593 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8594 ac_need_defaults=false;;
8595 --he | --h)
8596 # Conflict between --help and --header
8597 as_fn_error $? "ambiguous option: \`$1'
8598 Try \`$0 --help' for more information.";;
8599 --help | --hel | -h )
8600 $as_echo "$ac_cs_usage"; exit ;;
8601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8603 ac_cs_silent=: ;;
8604
8605 # This is an error.
8606 -*) as_fn_error $? "unrecognized option: \`$1'
8607 Try \`$0 --help' for more information." ;;
8608
8609 *) as_fn_append ac_config_targets " $1"
8610 ac_need_defaults=false ;;
8611
8612 esac
8613 shift
8614 done
8615
8616 ac_configure_extra_args=
8617
8618 if $ac_cs_silent; then
8619 exec 6>/dev/null
8620 ac_configure_extra_args="$ac_configure_extra_args --silent"
8621 fi
8622
8623 _ACEOF
8624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8625 if \$ac_cs_recheck; then
8626 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8627 shift
8628 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8629 CONFIG_SHELL='$SHELL'
8630 export CONFIG_SHELL
8631 exec "\$@"
8632 fi
8633
8634 _ACEOF
8635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636 exec 5>>config.log
8637 {
8638 echo
8639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8640 ## Running $as_me. ##
8641 _ASBOX
8642 $as_echo "$ac_log"
8643 } >&5
8644
8645 _ACEOF
8646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8647 _ACEOF
8648
8649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8650
8651 # Handling of arguments.
8652 for ac_config_target in $ac_config_targets
8653 do
8654 case $ac_config_target in
8655 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8657 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8658 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8659
8660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8661 esac
8662 done
8663
8664
8665 # If the user did not use the arguments to specify the items to instantiate,
8666 # then the envvar interface is used. Set only those that are not.
8667 # We use the long form for the default assignment because of an extremely
8668 # bizarre bug on SunOS 4.1.3.
8669 if $ac_need_defaults; then
8670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8671 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8672 fi
8673
8674 # Have a temporary directory for convenience. Make it in the build tree
8675 # simply because there is no reason against having it here, and in addition,
8676 # creating and moving files from /tmp can sometimes cause problems.
8677 # Hook for its removal unless debugging.
8678 # Note that there is a small window in which the directory will not be cleaned:
8679 # after its creation but before its name has been assigned to `$tmp'.
8680 $debug ||
8681 {
8682 tmp=
8683 trap 'exit_status=$?
8684 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8685 ' 0
8686 trap 'as_fn_exit 1' 1 2 13 15
8687 }
8688 # Create a (secure) tmp directory for tmp files.
8689
8690 {
8691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8692 test -n "$tmp" && test -d "$tmp"
8693 } ||
8694 {
8695 tmp=./conf$$-$RANDOM
8696 (umask 077 && mkdir "$tmp")
8697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8698
8699 # Set up the scripts for CONFIG_FILES section.
8700 # No need to generate them if there are no CONFIG_FILES.
8701 # This happens for instance with `./config.status config.h'.
8702 if test -n "$CONFIG_FILES"; then
8703
8704
8705 ac_cr=`echo X | tr X '\015'`
8706 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8707 # But we know of no other shell where ac_cr would be empty at this
8708 # point, so we can use a bashism as a fallback.
8709 if test "x$ac_cr" = x; then
8710 eval ac_cr=\$\'\\r\'
8711 fi
8712 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8713 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8714 ac_cs_awk_cr='\\r'
8715 else
8716 ac_cs_awk_cr=$ac_cr
8717 fi
8718
8719 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8720 _ACEOF
8721
8722
8723 {
8724 echo "cat >conf$$subs.awk <<_ACEOF" &&
8725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8726 echo "_ACEOF"
8727 } >conf$$subs.sh ||
8728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8729 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8730 ac_delim='%!_!# '
8731 for ac_last_try in false false false false false :; do
8732 . ./conf$$subs.sh ||
8733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8734
8735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8736 if test $ac_delim_n = $ac_delim_num; then
8737 break
8738 elif $ac_last_try; then
8739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8740 else
8741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8742 fi
8743 done
8744 rm -f conf$$subs.sh
8745
8746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8747 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8748 _ACEOF
8749 sed -n '
8750 h
8751 s/^/S["/; s/!.*/"]=/
8752 p
8753 g
8754 s/^[^!]*!//
8755 :repl
8756 t repl
8757 s/'"$ac_delim"'$//
8758 t delim
8759 :nl
8760 h
8761 s/\(.\{148\}\)..*/\1/
8762 t more1
8763 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8764 p
8765 n
8766 b repl
8767 :more1
8768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8769 p
8770 g
8771 s/.\{148\}//
8772 t nl
8773 :delim
8774 h
8775 s/\(.\{148\}\)..*/\1/
8776 t more2
8777 s/["\\]/\\&/g; s/^/"/; s/$/"/
8778 p
8779 b
8780 :more2
8781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8782 p
8783 g
8784 s/.\{148\}//
8785 t delim
8786 ' <conf$$subs.awk | sed '
8787 /^[^""]/{
8788 N
8789 s/\n//
8790 }
8791 ' >>$CONFIG_STATUS || ac_write_fail=1
8792 rm -f conf$$subs.awk
8793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8794 _ACAWK
8795 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8796 for (key in S) S_is_set[key] = 1
8797 FS = ""
8798
8799 }
8800 {
8801 line = $ 0
8802 nfields = split(line, field, "@")
8803 substed = 0
8804 len = length(field[1])
8805 for (i = 2; i < nfields; i++) {
8806 key = field[i]
8807 keylen = length(key)
8808 if (S_is_set[key]) {
8809 value = S[key]
8810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8811 len += length(value) + length(field[++i])
8812 substed = 1
8813 } else
8814 len += 1 + keylen
8815 }
8816
8817 print line
8818 }
8819
8820 _ACAWK
8821 _ACEOF
8822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8823 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8824 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8825 else
8826 cat
8827 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8828 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8829 _ACEOF
8830
8831 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8832 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8833 # trailing colons and then remove the whole line if VPATH becomes empty
8834 # (actually we leave an empty line to preserve line numbers).
8835 if test "x$srcdir" = x.; then
8836 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8837 h
8838 s///
8839 s/^/:/
8840 s/[ ]*$/:/
8841 s/:\$(srcdir):/:/g
8842 s/:\${srcdir}:/:/g
8843 s/:@srcdir@:/:/g
8844 s/^:*//
8845 s/:*$//
8846 x
8847 s/\(=[ ]*\).*/\1/
8848 G
8849 s/\n//
8850 s/^[^=]*=[ ]*$//
8851 }'
8852 fi
8853
8854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8855 fi # test -n "$CONFIG_FILES"
8856
8857 # Set up the scripts for CONFIG_HEADERS section.
8858 # No need to generate them if there are no CONFIG_HEADERS.
8859 # This happens for instance with `./config.status Makefile'.
8860 if test -n "$CONFIG_HEADERS"; then
8861 cat >"$tmp/defines.awk" <<\_ACAWK ||
8862 BEGIN {
8863 _ACEOF
8864
8865 # Transform confdefs.h into an awk script `defines.awk', embedded as
8866 # here-document in config.status, that substitutes the proper values into
8867 # config.h.in to produce config.h.
8868
8869 # Create a delimiter string that does not exist in confdefs.h, to ease
8870 # handling of long lines.
8871 ac_delim='%!_!# '
8872 for ac_last_try in false false :; do
8873 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8874 if test -z "$ac_t"; then
8875 break
8876 elif $ac_last_try; then
8877 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8878 else
8879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8880 fi
8881 done
8882
8883 # For the awk script, D is an array of macro values keyed by name,
8884 # likewise P contains macro parameters if any. Preserve backslash
8885 # newline sequences.
8886
8887 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8888 sed -n '
8889 s/.\{148\}/&'"$ac_delim"'/g
8890 t rset
8891 :rset
8892 s/^[ ]*#[ ]*define[ ][ ]*/ /
8893 t def
8894 d
8895 :def
8896 s/\\$//
8897 t bsnl
8898 s/["\\]/\\&/g
8899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8900 D["\1"]=" \3"/p
8901 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8902 d
8903 :bsnl
8904 s/["\\]/\\&/g
8905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8906 D["\1"]=" \3\\\\\\n"\\/p
8907 t cont
8908 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8909 t cont
8910 d
8911 :cont
8912 n
8913 s/.\{148\}/&'"$ac_delim"'/g
8914 t clear
8915 :clear
8916 s/\\$//
8917 t bsnlc
8918 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8919 d
8920 :bsnlc
8921 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8922 b cont
8923 ' <confdefs.h | sed '
8924 s/'"$ac_delim"'/"\\\
8925 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8926
8927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8928 for (key in D) D_is_set[key] = 1
8929 FS = ""
8930 }
8931 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8932 line = \$ 0
8933 split(line, arg, " ")
8934 if (arg[1] == "#") {
8935 defundef = arg[2]
8936 mac1 = arg[3]
8937 } else {
8938 defundef = substr(arg[1], 2)
8939 mac1 = arg[2]
8940 }
8941 split(mac1, mac2, "(") #)
8942 macro = mac2[1]
8943 prefix = substr(line, 1, index(line, defundef) - 1)
8944 if (D_is_set[macro]) {
8945 # Preserve the white space surrounding the "#".
8946 print prefix "define", macro P[macro] D[macro]
8947 next
8948 } else {
8949 # Replace #undef with comments. This is necessary, for example,
8950 # in the case of _POSIX_SOURCE, which is predefined and required
8951 # on some systems where configure will not decide to define it.
8952 if (defundef == "undef") {
8953 print "/*", prefix defundef, macro, "*/"
8954 next
8955 }
8956 }
8957 }
8958 { print }
8959 _ACAWK
8960 _ACEOF
8961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8962 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8963 fi # test -n "$CONFIG_HEADERS"
8964
8965
8966 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8967 shift
8968 for ac_tag
8969 do
8970 case $ac_tag in
8971 :[FHLC]) ac_mode=$ac_tag; continue;;
8972 esac
8973 case $ac_mode$ac_tag in
8974 :[FHL]*:*);;
8975 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8976 :[FH]-) ac_tag=-:-;;
8977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8978 esac
8979 ac_save_IFS=$IFS
8980 IFS=:
8981 set x $ac_tag
8982 IFS=$ac_save_IFS
8983 shift
8984 ac_file=$1
8985 shift
8986
8987 case $ac_mode in
8988 :L) ac_source=$1;;
8989 :[FH])
8990 ac_file_inputs=
8991 for ac_f
8992 do
8993 case $ac_f in
8994 -) ac_f="$tmp/stdin";;
8995 *) # Look for the file first in the build tree, then in the source tree
8996 # (if the path is not absolute). The absolute path cannot be DOS-style,
8997 # because $ac_f cannot contain `:'.
8998 test -f "$ac_f" ||
8999 case $ac_f in
9000 [\\/$]*) false;;
9001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9002 esac ||
9003 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9004 esac
9005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9006 as_fn_append ac_file_inputs " '$ac_f'"
9007 done
9008
9009 # Let's still pretend it is `configure' which instantiates (i.e., don't
9010 # use $as_me), people would be surprised to read:
9011 # /* config.h. Generated by config.status. */
9012 configure_input='Generated from '`
9013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9014 `' by configure.'
9015 if test x"$ac_file" != x-; then
9016 configure_input="$ac_file. $configure_input"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9018 $as_echo "$as_me: creating $ac_file" >&6;}
9019 fi
9020 # Neutralize special characters interpreted by sed in replacement strings.
9021 case $configure_input in #(
9022 *\&* | *\|* | *\\* )
9023 ac_sed_conf_input=`$as_echo "$configure_input" |
9024 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9025 *) ac_sed_conf_input=$configure_input;;
9026 esac
9027
9028 case $ac_tag in
9029 *:-:* | *:-) cat >"$tmp/stdin" \
9030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9031 esac
9032 ;;
9033 esac
9034
9035 ac_dir=`$as_dirname -- "$ac_file" ||
9036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9037 X"$ac_file" : 'X\(//\)[^/]' \| \
9038 X"$ac_file" : 'X\(//\)$' \| \
9039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9040 $as_echo X"$ac_file" |
9041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9042 s//\1/
9043 q
9044 }
9045 /^X\(\/\/\)[^/].*/{
9046 s//\1/
9047 q
9048 }
9049 /^X\(\/\/\)$/{
9050 s//\1/
9051 q
9052 }
9053 /^X\(\/\).*/{
9054 s//\1/
9055 q
9056 }
9057 s/.*/./; q'`
9058 as_dir="$ac_dir"; as_fn_mkdir_p
9059 ac_builddir=.
9060
9061 case "$ac_dir" in
9062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9063 *)
9064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9065 # A ".." for each directory in $ac_dir_suffix.
9066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9067 case $ac_top_builddir_sub in
9068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9070 esac ;;
9071 esac
9072 ac_abs_top_builddir=$ac_pwd
9073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9074 # for backward compatibility:
9075 ac_top_builddir=$ac_top_build_prefix
9076
9077 case $srcdir in
9078 .) # We are building in place.
9079 ac_srcdir=.
9080 ac_top_srcdir=$ac_top_builddir_sub
9081 ac_abs_top_srcdir=$ac_pwd ;;
9082 [\\/]* | ?:[\\/]* ) # Absolute name.
9083 ac_srcdir=$srcdir$ac_dir_suffix;
9084 ac_top_srcdir=$srcdir
9085 ac_abs_top_srcdir=$srcdir ;;
9086 *) # Relative name.
9087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9088 ac_top_srcdir=$ac_top_build_prefix$srcdir
9089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9090 esac
9091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9092
9093
9094 case $ac_mode in
9095 :F)
9096 #
9097 # CONFIG_FILE
9098 #
9099
9100 case $INSTALL in
9101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9103 esac
9104 _ACEOF
9105
9106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9107 # If the template does not know about datarootdir, expand it.
9108 # FIXME: This hack should be removed a few years after 2.60.
9109 ac_datarootdir_hack=; ac_datarootdir_seen=
9110 ac_sed_dataroot='
9111 /datarootdir/ {
9112 p
9113 q
9114 }
9115 /@datadir@/p
9116 /@docdir@/p
9117 /@infodir@/p
9118 /@localedir@/p
9119 /@mandir@/p'
9120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9121 *datarootdir*) ac_datarootdir_seen=yes;;
9122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9124 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9125 _ACEOF
9126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9127 ac_datarootdir_hack='
9128 s&@datadir@&$datadir&g
9129 s&@docdir@&$docdir&g
9130 s&@infodir@&$infodir&g
9131 s&@localedir@&$localedir&g
9132 s&@mandir@&$mandir&g
9133 s&\\\${datarootdir}&$datarootdir&g' ;;
9134 esac
9135 _ACEOF
9136
9137 # Neutralize VPATH when `$srcdir' = `.'.
9138 # Shell code in configure.ac might set extrasub.
9139 # FIXME: do we really want to maintain this feature?
9140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9141 ac_sed_extra="$ac_vpsub
9142 $extrasub
9143 _ACEOF
9144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9145 :t
9146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9147 s|@configure_input@|$ac_sed_conf_input|;t t
9148 s&@top_builddir@&$ac_top_builddir_sub&;t t
9149 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9150 s&@srcdir@&$ac_srcdir&;t t
9151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9152 s&@top_srcdir@&$ac_top_srcdir&;t t
9153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9154 s&@builddir@&$ac_builddir&;t t
9155 s&@abs_builddir@&$ac_abs_builddir&;t t
9156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9157 s&@INSTALL@&$ac_INSTALL&;t t
9158 $ac_datarootdir_hack
9159 "
9160 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9162
9163 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9164 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9167 which seems to be undefined. Please make sure it is defined" >&5
9168 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9169 which seems to be undefined. Please make sure it is defined" >&2;}
9170
9171 rm -f "$tmp/stdin"
9172 case $ac_file in
9173 -) cat "$tmp/out" && rm -f "$tmp/out";;
9174 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9175 esac \
9176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9177 ;;
9178 :H)
9179 #
9180 # CONFIG_HEADER
9181 #
9182 if test x"$ac_file" != x-; then
9183 {
9184 $as_echo "/* $configure_input */" \
9185 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9186 } >"$tmp/config.h" \
9187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9188 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9190 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9191 else
9192 rm -f "$ac_file"
9193 mv "$tmp/config.h" "$ac_file" \
9194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9195 fi
9196 else
9197 $as_echo "/* $configure_input */" \
9198 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9199 || as_fn_error $? "could not create -" "$LINENO" 5
9200 fi
9201 ;;
9202
9203
9204 esac
9205
9206 done # for ac_tag
9207
9208
9209 as_fn_exit 0
9210 _ACEOF
9211 ac_clean_files=$ac_clean_files_save
9212
9213 test $ac_write_fail = 0 ||
9214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9215
9216
9217 # configure is writing to config.log, and then calls config.status.
9218 # config.status does its own redirection, appending to config.log.
9219 # Unfortunately, on DOS this fails, as config.log is still kept open
9220 # by configure, so config.status won't be able to write to it; its
9221 # output is simply discarded. So we exec the FD to /dev/null,
9222 # effectively closing config.log, so it can be properly (re)opened and
9223 # appended to by config.status. When coming back to configure, we
9224 # need to make the FD available again.
9225 if test "$no_create" != yes; then
9226 ac_cs_success=:
9227 ac_config_status_args=
9228 test "$silent" = yes &&
9229 ac_config_status_args="$ac_config_status_args --quiet"
9230 exec 5>/dev/null
9231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9232 exec 5>>config.log
9233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9234 # would make configure fail if this is the last instruction.
9235 $ac_cs_success || as_fn_exit 1
9236 fi
9237 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9239 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9240 fi
9241
9242
9243 echo "Configuration:
9244
9245 Rxvt version: $VERSION : $DATE
9246 Source code location: $srcdir
9247 Install path: ${prefix}/bin
9248 Compiler: $CXX
9249 Compiler flags: $CXXFLAGS
9250 Linker: $LINKER"
9251
9252 if test x$term != x; then
9253 echo " set TERM to: $term"
9254 fi
9255 if test x$terminfo != x; then
9256 echo " set TERMINFO to: $terminfo"
9257 fi
9258 echo " default resource name: $RESNAME"
9259 echo " resource class: $RESCLASS"
9260 if test x$RESFALLBACK != x; then
9261 echo " resource class fallback: $RESFALLBACK"
9262 fi
9263 echo
9264 echo " embedded perl: $support_perl"
9265 echo " image library: $image_lib"
9266 echo
9267 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9268 echo ".----------------------------------------------------------------."
9269 echo ". WARNING: --enable-xim was specified however the locale support ."
9270 echo ". functions could not be found. ."
9271 echo ". XIM is now being DISABLED! ."
9272 echo ".----------------------------------------------------------------."
9273 fi
9274
9275 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9276 echo
9277