ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.166
Committed: Thu May 13 19:24:27 2021 UTC (3 years, 1 month ago) by root
Branch: MAIN
Changes since 1.165: +3632 -2755 lines
Log Message:
*** empty log message ***

File Contents

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