ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.160
Committed: Sun Oct 27 16:20:55 2013 UTC (10 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_20, rxvt-unicode-rel-9_19
Changes since 1.159: +10 -93 lines
Log Message:
9.19

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