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