ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.167
Committed: Fri May 14 13:50:22 2021 UTC (3 years, 1 month ago) by sf-exg
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25
Changes since 1.166: +4 -112 lines
Log Message:
configure: regenerate and apply fix for "ac_prog_cxx_stdcxx"

See https://lists.gnu.org/archive/html/autoconf-patches/2021-05/msg00002.html

File Contents

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