ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.163
Committed: Sat May 14 08:28:25 2016 UTC (8 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_22
Changes since 1.162: +10 -10 lines
Log Message:
9.22-maybe

File Contents

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