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