ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.4 by pcg, Thu Dec 18 02:07:12 2003 UTC vs.
Revision 1.31 by root, Fri Jul 30 16:04:05 2004 UTC

1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by GNU Autoconf 2.59.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
9 11
10# Defaults: 12# Be Bourne compatible
11ac_help= 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12ac_default_prefix=/usr/local 14 emulate sh
13# Any additions from configure.in: 15 NULLCMD=:
14ac_help="$ac_help 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15 --enable-shared[=PKGS] build shared libraries [default=no]" 17 # is contrary to our usage. Disable this feature.
16ac_help="$ac_help 18 alias -g '${1+"$@"}'='"$@"'
17 --enable-static[=PKGS] build static libraries [default=yes]" 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18ac_help="$ac_help 20 set -o posix
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 21fi
20ac_help="$ac_help 22DUALCASE=1; export DUALCASE # for MKS sh
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
22 243
23# Find the correct PATH separator. Usually this is `:', but 244# Find the correct PATH separator. Usually this is `:', but
24# DJGPP uses `;' like DOS. 245# DJGPP uses `;' like DOS.
25if test "X${PATH_SEPARATOR+set}" != Xset; then 246if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`} 247 UNAME=${UNAME-`uname 2>/dev/null`}
175if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
177fi 398fi
178 399
179 400
180ac_help="$ac_help 401
181 --disable-libtool-lock avoid locking (might break parallel builds)" 402# Name of the host.
182ac_help="$ac_help 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
183dnl 404# so uname gets run too.
184 --with-pic try to use only PIC/non-PIC objects [default=use both]" 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
185ac_help="$ac_help 406
186 --enable-everything enable standard non-multichoice features: marked * 407exec 6>&1
187 NOTE: this option is order dependent 408
188 NOTE: automatically enabled with --enable-shared" 409#
189ac_help="$ac_help 410# Initializations.
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters" 411#
191ac_help="$ac_help 412ac_default_prefix=/usr/local
192 --enable-xft enable xft support on systems that have it" 413ac_config_libobj_dir=.
193ac_help="$ac_help 414cross_compiling=no
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)" 415subdirs=
195ac_help="$ac_help 416MFLAGS=
196 --with-encoding=NAME set language default encoding to NAME (default: sjis) 417MAKEFLAGS=
197 (eucj|sjis|big5|gb|kr|noenc)" 418SHELL=${CONFIG_SHELL-/bin/sh}
198ac_help="$ac_help 419
199 --enable-utmp enable utmp (utmpx) support *" 420# Maximum number of lines to put in a shell here document.
200ac_help="$ac_help 421# This variable seems obsolete. It should probably be removed, and
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*" 422# only ac_max_sed_lines should be used.
202ac_help="$ac_help 423: ${ac_max_here_lines=38}
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *" 424
204ac_help="$ac_help 425# Identity of this package.
205 --enable-xpm-background enable XPM background pixmaps *" 426PACKAGE_NAME=
206ac_help="$ac_help 427PACKAGE_TARNAME=
207 --enable-transparency enable transparent backgrounds *" 428PACKAGE_VERSION=
208ac_help="$ac_help 429PACKAGE_STRING=
209 --enable-menubar enable menubar *" 430PACKAGE_BUGREPORT=
210ac_help="$ac_help 431
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *" 432ac_unique_file="src/feature.h"
212ac_help="$ac_help 433# Factoring default headers for most tests.
213 --enable-rxvt-scroll enable rxvt style scrollbar *" 434ac_includes_default="\
214ac_help="$ac_help 435#include <stdio.h>
215 --enable-next-scroll enable NeXT style scrollbar *" 436#if HAVE_SYS_TYPES_H
216ac_help="$ac_help 437# include <sys/types.h>
217 --enable-xterm-scroll enable Xterm style scrollbar *" 438#endif
218ac_help="$ac_help 439#if HAVE_SYS_STAT_H
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar" 440# include <sys/stat.h>
220ac_help="$ac_help 441#endif
221 --enable-xim XIM (X Input Method) protocol support *" 442#if STDC_HEADERS
222ac_help="$ac_help 443# include <stdlib.h>
223 --enable-greek enable greek keyboard support" 444# include <stddef.h>
224ac_help="$ac_help 445#else
225 --enable-ttygid enable tty setting to group named "tty"" 446# if HAVE_STDLIB_H
226ac_help="$ac_help 447# include <stdlib.h>
227 --disable-backspace-key disable handling of the backspace key" 448# endif
228ac_help="$ac_help 449#endif
229 --disable-delete-key disable handling of the delete key" 450#if HAVE_STRING_H
230ac_help="$ac_help 451# if !STDC_HEADERS && HAVE_MEMORY_H
231 --disable-resources disable all resource checking" 452# include <memory.h>
232ac_help="$ac_help 453# endif
233 --enable-xgetdefault enable resources via X instead of our small version" 454# include <string.h>
234ac_help="$ac_help 455#endif
235 --enable-strings enable some replacement system functions" 456#if HAVE_STRINGS_H
236ac_help="$ac_help 457# include <strings.h>
237 --disable-swapscreen disable swap screen support" 458#endif
238ac_help="$ac_help 459#if HAVE_INTTYPES_H
239 --enable-frills enable support for rarely used features *" 460# include <inttypes.h>
240ac_help="$ac_help 461#else
241 --enable-linespace enable support for linespace *" 462# if HAVE_STDINT_H
242ac_help="$ac_help 463# include <stdint.h>
243 --enable-24bit enable support for using 24bit visuals if available *" 464# endif
244ac_help="$ac_help 465#endif
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *" 466#if HAVE_UNISTD_H
246ac_help="$ac_help 467# include <unistd.h>
247 --enable-selectionscrolling enable scrolling during selections *" 468#endif"
248ac_help="$ac_help 469
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *" 470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
250ac_help="$ac_help 471ac_subst_files='MCOMMON'
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
252ac_help="$ac_help
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
254ac_help="$ac_help
255 --disable-new-selection disable new mouse (xterm) selection style support"
256ac_help="$ac_help
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
258ac_help="$ac_help
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
261ac_help="$ac_help
262 --enable-smart-resize enable smart growth/shrink behaviour"
263ac_help="$ac_help
264 --enable-256-color enable 256-color support"
265ac_help="$ac_help
266 --enable-cursor-blink enable blinking cursor *"
267ac_help="$ac_help
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
269ac_help="$ac_help
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
271ac_help="$ac_help
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
273ac_help="$ac_help
274 --with-x use the X Window System"
275ac_help="$ac_help
276 --with-xpm-includes=DIR use XPM includes in DIR"
277ac_help="$ac_help
278 --with-xpm-library=DIR use XPM library in DIR"
279ac_help="$ac_help
280 --with-xpm use XPM"
281 472
282# Initialize some variables set by options. 473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
283# The variables have the same names as the options, with 476# The variables have the same names as the options, with
284# dashes changed to underlines. 477# dashes changed to underlines.
285build=NONE 478cache_file=/dev/null
286cache_file=./config.cache
287exec_prefix=NONE 479exec_prefix=NONE
288host=NONE
289no_create= 480no_create=
290nonopt=NONE
291no_recursion= 481no_recursion=
292prefix=NONE 482prefix=NONE
293program_prefix=NONE 483program_prefix=NONE
294program_suffix=NONE 484program_suffix=NONE
295program_transform_name=s,x,x, 485program_transform_name=s,x,x,
296silent= 486silent=
297site= 487site=
298srcdir= 488srcdir=
299target=NONE
300verbose= 489verbose=
301x_includes=NONE 490x_includes=NONE
302x_libraries=NONE 491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin' 498bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin' 499sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec' 500libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share' 501datadir='${prefix}/share'
307sysconfdir='${prefix}/etc' 502sysconfdir='${prefix}/etc'
311includedir='${prefix}/include' 506includedir='${prefix}/include'
312oldincludedir='/usr/include' 507oldincludedir='/usr/include'
313infodir='${prefix}/info' 508infodir='${prefix}/info'
314mandir='${prefix}/man' 509mandir='${prefix}/man'
315 510
316# Initialize some other variables.
317subdirs=
318MFLAGS= MAKEFLAGS=
319SHELL=${CONFIG_SHELL-/bin/sh}
320# Maximum number of lines to put in a shell here document.
321ac_max_here_lines=12
322
323ac_prev= 511ac_prev=
324for ac_option 512for ac_option
325do 513do
326
327 # If the previous option needs an argument, assign it. 514 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then 515 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option" 516 eval "$ac_prev=\$ac_option"
330 ac_prev= 517 ac_prev=
331 continue 518 continue
332 fi 519 fi
333 520
334 case "$ac_option" in 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338 522
339 # Accept the important Cygnus configure options, so we can diagnose typos. 523 # Accept the important Cygnus configure options, so we can diagnose typos.
340 524
341 case "$ac_option" in 525 case $ac_option in
342 526
343 -bindir | --bindir | --bindi | --bind | --bin | --bi) 527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;; 528 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;; 530 bindir=$ac_optarg ;;
347 531
348 -build | --build | --buil | --bui | --bu) 532 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;; 533 ac_prev=build_alias ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;; 535 build_alias=$ac_optarg ;;
352 536
353 -cache-file | --cache-file | --cache-fil | --cache-fi \ 537 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;; 539 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;; 542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
359 546
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;; 548 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*) 550 | --da=*)
364 datadir="$ac_optarg" ;; 551 datadir=$ac_optarg ;;
365 552
366 -disable-* | --disable-*) 553 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
368 # Reject names that are not valid shell variable names. 555 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 fi 558 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;; 560 eval "enable_$ac_feature=no" ;;
374 561
375 -enable-* | --enable-*) 562 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
377 # Reject names that are not valid shell variable names. 564 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
380 fi 567 { (exit 1); exit 1; }; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
382 case "$ac_option" in 569 case $ac_option in
383 *=*) ;; 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
384 *) ac_optarg=yes ;; 571 *) ac_optarg=yes ;;
385 esac 572 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;; 573 eval "enable_$ac_feature='$ac_optarg'" ;;
387 574
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex) 577 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;; 578 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*) 581 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;; 582 exec_prefix=$ac_optarg ;;
396 583
397 -gas | --gas | --ga | --g) 584 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas. 585 # Obsolete; use --with-gas.
399 with_gas=yes ;; 586 with_gas=yes ;;
400 587
401 -help | --help | --hel | --he) 588 -help | --help | --hel | --he | -h)
402 # Omit some internal or obsolete options to make the list less imposing. 589 ac_init_help=long ;;
403 # This message is too long to be a string in the A/UX 3.1 sh. 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
404 cat << EOF 591 ac_init_help=recursive ;;
405Usage: configure [options] [host] 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
406Options: [defaults in brackets after descriptions] 593 ac_init_help=short ;;
407Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437EOF
438 cat << EOF
439Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455 594
456 -host | --host | --hos | --ho) 595 -host | --host | --hos | --ho)
457 ac_prev=host ;; 596 ac_prev=host_alias ;;
458 -host=* | --host=* | --hos=* | --ho=*) 597 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;; 598 host_alias=$ac_optarg ;;
460 599
461 -includedir | --includedir | --includedi | --included | --include \ 600 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc) 601 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;; 602 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*) 604 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;; 605 includedir=$ac_optarg ;;
467 606
468 -infodir | --infodir | --infodi | --infod | --info | --inf) 607 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;; 608 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;; 610 infodir=$ac_optarg ;;
472 611
473 -libdir | --libdir | --libdi | --libd) 612 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;; 613 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*) 614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;; 615 libdir=$ac_optarg ;;
477 616
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe) 618 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;; 619 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*) 621 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;; 622 libexecdir=$ac_optarg ;;
484 623
485 -localstatedir | --localstatedir | --localstatedi | --localstated \ 624 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \ 625 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo) 626 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;; 627 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;; 631 localstatedir=$ac_optarg ;;
493 632
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;; 634 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;; 636 mandir=$ac_optarg ;;
498 637
499 -nfp | --nfp | --nf) 638 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp. 639 # Obsolete; use --without-fp.
501 with_fp=no ;; 640 with_fp=no ;;
502 641
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) 643 | --no-cr | --no-c | -n)
505 no_create=yes ;; 644 no_create=yes ;;
506 645
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;; 648 no_recursion=yes ;;
513 | --oldin | --oldi | --old | --ol | --o) 652 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;; 653 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;; 657 oldincludedir=$ac_optarg ;;
519 658
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;; 660 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;; 662 prefix=$ac_optarg ;;
524 663
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p) 665 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;; 666 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;; 669 program_prefix=$ac_optarg ;;
531 670
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s) 672 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;; 673 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;; 676 program_suffix=$ac_optarg ;;
538 677
539 -program-transform-name | --program-transform-name \ 678 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \ 679 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \ 680 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \ 681 | --program-transform | --program-transfor \
549 | --program-transform-n=* | --program-transform-=* \ 688 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \ 689 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \ 690 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \ 691 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*) 692 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;; 693 program_transform_name=$ac_optarg ;;
555 694
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil) 696 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;; 697 silent=yes ;;
559 698
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;; 700 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*) 702 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;; 703 sbindir=$ac_optarg ;;
565 704
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \ 707 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh) 708 | --sha | --sh)
570 ac_prev=sharedstatedir ;; 709 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*) 713 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;; 714 sharedstatedir=$ac_optarg ;;
576 715
577 -site | --site | --sit) 716 -site | --site | --sit)
578 ac_prev=site ;; 717 ac_prev=site ;;
579 -site=* | --site=* | --sit=*) 718 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;; 719 site=$ac_optarg ;;
581 720
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;; 722 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;; 724 srcdir=$ac_optarg ;;
586 725
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy) 727 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;; 728 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;; 731 sysconfdir=$ac_optarg ;;
593 732
594 -target | --target | --targe | --targ | --tar | --ta | --t) 733 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;; 734 ac_prev=target_alias ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;; 736 target_alias=$ac_optarg ;;
598 737
599 -v | -verbose | --verbose | --verbos | --verbo | --verb) 738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;; 739 verbose=yes ;;
601 740
602 -version | --version | --versio | --versi | --vers) 741 -version | --version | --versio | --versi | --vers | -V)
603 echo "configure generated by autoconf version 2.13" 742 ac_init_version=: ;;
604 exit 0 ;;
605 743
606 -with-* | --with-*) 744 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
608 # Reject names that are not valid shell variable names. 746 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 748 { echo "$as_me: error: invalid package name: $ac_package" >&2
611 fi 749 { (exit 1); exit 1; }; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'` 750 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in 751 case $ac_option in
614 *=*) ;; 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 *) ac_optarg=yes ;; 753 *) ac_optarg=yes ;;
616 esac 754 esac
617 eval "with_${ac_package}='$ac_optarg'" ;; 755 eval "with_$ac_package='$ac_optarg'" ;;
618 756
619 -without-* | --without-*) 757 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
621 # Reject names that are not valid shell variable names. 759 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 761 { echo "$as_me: error: invalid package name: $ac_package" >&2
624 fi 762 { (exit 1); exit 1; }; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'` 763 ac_package=`echo $ac_package | sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;; 764 eval "with_$ac_package=no" ;;
627 765
628 --x) 766 --x)
629 # Obsolete; use --with-x. 767 # Obsolete; use --with-x.
630 with_x=yes ;; 768 with_x=yes ;;
631 769
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i) 771 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;; 772 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;; 775 x_includes=$ac_optarg ;;
638 776
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;; 779 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;; 782 x_libraries=$ac_optarg ;;
645 783
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
647 ;; 787 ;;
648 788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
649 *) 799 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 800 # FIXME: should be removed in autoconf 3.0.
651 echo "configure: warning: $ac_option: invalid host type" 1>&2 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652 fi 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
653 if test "x$nonopt" != xNONE; then 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 fi
656 nonopt="$ac_option"
657 ;; 805 ;;
658 806
659 esac 807 esac
660done 808done
661 809
662if test -n "$ac_prev"; then 810if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
664fi 814fi
665 815
666trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 816# Be sure to have absolute paths.
667 817for ac_var in exec_prefix prefix
668# File descriptor usage:
669# 0 standard input
670# 1 file creation
671# 2 errors and warnings
672# 3 some systems may open it to /dev/tty
673# 4 used on the Kubota Titan
674# 6 checking for... messages and results
675# 5 compiler messages saved in config.log
676if test "$silent" = yes; then
677 exec 6>/dev/null
678else
679 exec 6>&1
680fi
681exec 5>./config.log
682
683echo "\
684This file contains any messages produced by compilers while
685running configure, to aid debugging if configure makes a mistake.
686" 1>&5
687
688# Strip out --no-create and --no-recursion so they do not pile up.
689# Also quote any args containing shell metacharacters.
690ac_configure_args=
691for ac_arg
692do 818do
819 eval ac_val=$`echo $ac_var`
693 case "$ac_arg" in 820 case $ac_val in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
695 | --no-cr | --no-c) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 823 { (exit 1); exit 1; }; };;
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac 824 esac
702done 825done
703 826
704# NLS nuisances. 827# Be sure to have absolute paths.
705# Only set these to C if already set. These must not be set unconditionally 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
706# because not all systems understand e.g. LANG=C (notably SCO). 829 localstatedir libdir includedir oldincludedir infodir mandir
707# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 830do
708# Non-C LC_CTYPE values break the ctype check. 831 eval ac_val=$`echo $ac_var`
709if test "${LANG+set}" = set; then LANG=C; export LANG; fi 832 case $ac_val in
710if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 833 [\\/$]* | ?:[\\/]* ) ;;
711if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
712if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 835 { (exit 1); exit 1; }; };;
836 esac
837done
713 838
714# confdefs.h avoids OS command line length limits that DEFS can exceed. 839# There might be people who depend on the old broken behavior: `$host'
715rm -rf conftest* confdefs.h 840# used to hold the argument of --host etc.
716# AIX cpp loses on an empty file, so make sure it contains at least a newline. 841# FIXME: To remove some day.
717echo > confdefs.h 842build=$build_alias
843host=$host_alias
844target=$target_alias
718 845
719# A filename unique to this package, relative to the directory that 846# FIXME: To remove some day.
720# configure is in, which we can look for to find out if srcdir is correct. 847if test "x$host_alias" != x; then
721ac_unique_file=src/feature.h 848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
722 862
723# Find the source files, if location was not specified. 863# Find the source files, if location was not specified.
724if test -z "$srcdir"; then 864if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes 865 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent. 866 # Try the directory containing this script, then its parent.
727 ac_prog=$0 867 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
730 srcdir=$ac_confdir 879 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then 880 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=.. 881 srcdir=..
733 fi 882 fi
734else 883else
735 ac_srcdir_defaulted=no 884 ac_srcdir_defaulted=no
736fi 885fi
737if test ! -r $srcdir/$ac_unique_file; then 886if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then 887 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
740 else 890 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
742 fi 893 fi
743fi 894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
744srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
745 943
944#
945# Report the --help message.
946#
947if test "$ac_init_help" = "long"; then
948 # Omit some internal or obsolete options to make the list less imposing.
949 # This message is too long to be a string in the A/UX 3.1 sh.
950 cat <<_ACEOF
951\`configure' configures this package to adapt to many kinds of systems.
952
953Usage: $0 [OPTION]... [VAR=VALUE]...
954
955To assign environment variables (e.g., CC, CFLAGS...), specify them as
956VAR=VALUE. See below for descriptions of some of the useful variables.
957
958Defaults for the options are specified in brackets.
959
960Configuration:
961 -h, --help display this help and exit
962 --help=short display options specific to this package
963 --help=recursive display the short help of all the included packages
964 -V, --version display version information and exit
965 -q, --quiet, --silent do not print \`checking...' messages
966 --cache-file=FILE cache test results in FILE [disabled]
967 -C, --config-cache alias for \`--cache-file=config.cache'
968 -n, --no-create do not create output files
969 --srcdir=DIR find the sources in DIR [configure dir or \`..']
970
971_ACEOF
972
973 cat <<_ACEOF
974Installation directories:
975 --prefix=PREFIX install architecture-independent files in PREFIX
976 [$ac_default_prefix]
977 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978 [PREFIX]
979
980By default, \`make install' will install all the files in
981\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983for instance \`--prefix=\$HOME'.
984
985For better control, use the options below.
986
987Fine tuning of the installation directories:
988 --bindir=DIR user executables [EPREFIX/bin]
989 --sbindir=DIR system admin executables [EPREFIX/sbin]
990 --libexecdir=DIR program executables [EPREFIX/libexec]
991 --datadir=DIR read-only architecture-independent data [PREFIX/share]
992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995 --libdir=DIR object code libraries [EPREFIX/lib]
996 --includedir=DIR C header files [PREFIX/include]
997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
998 --infodir=DIR info documentation [PREFIX/info]
999 --mandir=DIR man documentation [PREFIX/man]
1000_ACEOF
1001
1002 cat <<\_ACEOF
1003
1004X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar
1047 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support
1059 --enable-frills enable support for rarely used features
1060 --enable-linespace enable support for linespace
1061 --enable-24bit enable support for using 24bit visuals if available
1062 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1063 --enable-selectionscrolling enable scrolling during selections
1064 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1065 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1066 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1067 --enable-dlmalloc enable Doug Lea's malloc - for production use
1068 NOTE: enable only one malloc package
1069 --enable-smart-resize enable smart growth/shrink behaviour
1070 --enable-256-color enable 256-color support
1071 --enable-cursor-blink enable blinking cursor
1072 --enable-text-blink enable blinking text
1073 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1074
1075Optional Packages:
1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1078 --with-gnu-ld assume the C compiler uses GNU ld default=no
1079 --with-pic try to use only PIC/non-PIC objects default=use both
1080 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1081 --with-res-name=NAME use this as default resource name (default: urxvt)
1082 --with-res-class=CLASS use this as the resource class (default: URxvt)
1083 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1084 --with-term=NAME set the terminal to NAME (default: rxvt)
1085 --with-terminfo=PATH set the path to the terminfo tree to PATH
1086 --with-x use the X Window System
1087 --with-xpm-includes=DIR use XPM includes in DIR
1088 --with-xpm-library=DIR use XPM library in DIR
1089 --with-xpm use XPM
1090
1091Some influential environment variables:
1092 CC C compiler command
1093 CFLAGS C compiler flags
1094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1095 nonstandard directory <lib dir>
1096 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1097 headers in a nonstandard directory <include dir>
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CPP C preprocessor
1101 CXXCPP C++ preprocessor
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
1188 test -f $ac_srcdir/configure.in; then
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
1194 cd "$ac_popdir"
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
1201
1202Copyright (C) 2003 Free Software Foundation, Inc.
1203This configure script is free software; the Free Software Foundation
1204gives unlimited permission to copy, distribute and modify it.
1205_ACEOF
1206 exit 0
1207fi
1208exec 5>config.log
1209cat >&5 <<_ACEOF
1210This file contains any messages produced by compilers while
1211running configure, to aid debugging if configure makes a mistake.
1212
1213It was created by $as_me, which was
1214generated by GNU Autoconf 2.59. Invocation command line was
1215
1216 $ $0 $@
1217
1218_ACEOF
1219{
1220cat <<_ASUNAME
1221## --------- ##
1222## Platform. ##
1223## --------- ##
1224
1225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1233
1234/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1235/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1238/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1239/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1240/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1241
1242_ASUNAME
1243
1244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245for as_dir in $PATH
1246do
1247 IFS=$as_save_IFS
1248 test -z "$as_dir" && as_dir=.
1249 echo "PATH: $as_dir"
1250done
1251
1252} >&5
1253
1254cat >&5 <<_ACEOF
1255
1256
1257## ----------- ##
1258## Core tests. ##
1259## ----------- ##
1260
1261_ACEOF
1262
1263
1264# Keep a trace of the command line.
1265# Strip out --no-create and --no-recursion so they do not pile up.
1266# Strip out --silent because we don't want to record it for future runs.
1267# Also quote any args containing shell meta-characters.
1268# Make two passes to allow for proper duplicate-argument suppression.
1269ac_configure_args=
1270ac_configure_args0=
1271ac_configure_args1=
1272ac_sep=
1273ac_must_keep_next=false
1274for ac_pass in 1 2
1275do
1276 for ac_arg
1277 do
1278 case $ac_arg in
1279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1282 continue ;;
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 esac
1286 case $ac_pass in
1287 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288 2)
1289 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290 if test $ac_must_keep_next = true; then
1291 ac_must_keep_next=false # Got value, back to normal.
1292 else
1293 case $ac_arg in
1294 *=* | --config-cache | -C | -disable-* | --disable-* \
1295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297 | -with-* | --with-* | -without-* | --without-* | --x)
1298 case "$ac_configure_args0 " in
1299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300 esac
1301 ;;
1302 -* ) ac_must_keep_next=true ;;
1303 esac
1304 fi
1305 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306 # Get rid of the leading space.
1307 ac_sep=" "
1308 ;;
1309 esac
1310 done
1311done
1312$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315# When interrupted or exit'd, cleanup temporary files, and complete
1316# config.log. We remove comments because anyway the quotes in there
1317# would cause problems or look ugly.
1318# WARNING: Be sure not to use single quotes in there, as some shells,
1319# such as our DU 5.0 friend, will then `close' the trap.
1320trap 'exit_status=$?
1321 # Save into config.log some information that might help in debugging.
1322 {
1323 echo
1324
1325 cat <<\_ASBOX
1326## ---------------- ##
1327## Cache variables. ##
1328## ---------------- ##
1329_ASBOX
1330 echo
1331 # The following way of writing the cache mishandles newlines in values,
1332{
1333 (set) 2>&1 |
1334 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335 *ac_space=\ *)
1336 sed -n \
1337 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339 ;;
1340 *)
1341 sed -n \
1342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343 ;;
1344 esac;
1345}
1346 echo
1347
1348 cat <<\_ASBOX
1349## ----------------- ##
1350## Output variables. ##
1351## ----------------- ##
1352_ASBOX
1353 echo
1354 for ac_var in $ac_subst_vars
1355 do
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1360
1361 if test -n "$ac_subst_files"; then
1362 cat <<\_ASBOX
1363## ------------- ##
1364## Output files. ##
1365## ------------- ##
1366_ASBOX
1367 echo
1368 for ac_var in $ac_subst_files
1369 do
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1372 done | sort
1373 echo
1374 fi
1375
1376 if test -s confdefs.h; then
1377 cat <<\_ASBOX
1378## ----------- ##
1379## confdefs.h. ##
1380## ----------- ##
1381_ASBOX
1382 echo
1383 sed "/^$/d" confdefs.h | sort
1384 echo
1385 fi
1386 test "$ac_signal" != 0 &&
1387 echo "$as_me: caught signal $ac_signal"
1388 echo "$as_me: exit $exit_status"
1389 } >&5
1390 rm -f core *.core &&
1391 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392 exit $exit_status
1393 ' 0
1394for ac_signal in 1 2 13 15; do
1395 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396done
1397ac_signal=0
1398
1399# confdefs.h avoids OS command line length limits that DEFS can exceed.
1400rm -rf conftest* confdefs.h
1401# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402echo >confdefs.h
1403
1404# Predefined preprocessor variables.
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_NAME "$PACKAGE_NAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_VERSION "$PACKAGE_VERSION"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_STRING "$PACKAGE_STRING"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428_ACEOF
1429
1430
1431# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1432# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1433if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1434 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1435 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1436 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1437 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1438 fi
753fi 1439fi
754for ac_site_file in $CONFIG_SITE; do 1440for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1441 if test -r "$ac_site_file"; then
1442 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1443echo "$as_me: loading site script $ac_site_file" >&6;}
1444 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1445 . "$ac_site_file"
758 fi 1446 fi
759done 1447done
760 1448
761if test -r "$cache_file"; then 1449if test -r "$cache_file"; then
1450 # Some versions of bash will fail to source /dev/null (special
1451 # files actually), so we avoid doing that.
1452 if test -f "$cache_file"; then
1453 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1454echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1455 case $cache_file in
1456 [\\/]* | ?:[\\/]* ) . $cache_file;;
1457 *) . ./$cache_file;;
1458 esac
1459 fi
764else 1460else
1461 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1462echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1463 >$cache_file
1464fi
1465
1466# Check that the precious variables saved in the cache have kept the same
1467# value.
1468ac_cache_corrupted=false
1469for ac_var in `(set) 2>&1 |
1470 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472 eval ac_new_set=\$ac_env_${ac_var}_set
1473 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474 eval ac_new_val="\$ac_env_${ac_var}_value"
1475 case $ac_old_set,$ac_new_set in
1476 set,)
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1480 ,set)
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1484 ,);;
1485 *)
1486 if test "x$ac_old_val" != "x$ac_new_val"; then
1487 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1490echo "$as_me: former value: $ac_old_val" >&2;}
1491 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1492echo "$as_me: current value: $ac_new_val" >&2;}
1493 ac_cache_corrupted=:
1494 fi;;
1495 esac
1496 # Pass precious variables to config.status.
1497 if test "$ac_new_set" = set; then
1498 case $ac_new_val in
1499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501 *) ac_arg=$ac_var=$ac_new_val ;;
1502 esac
1503 case " $ac_configure_args " in
1504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1505 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506 esac
1507 fi
1508done
1509if $ac_cache_corrupted; then
1510 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514 { (exit 1); exit 1; }; }
767fi 1515fi
768 1516
769ac_ext=c 1517ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1518ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1522
776ac_exeext= 1523
777ac_objext=o 1524
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1525
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1526
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1527
781 ac_n= ac_c=' 1528
782' ac_t=' ' 1529
783 else 1530
784 ac_n=-n ac_c= ac_t= 1531
785 fi 1532
786else 1533
787 ac_n= ac_c='\c' ac_t= 1534
788fi 1535
1536
1537
1538
789 1539
790 1540
791ac_aux_dir= 1541ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1542for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1543 if test -f $ac_dir/install-sh; then
796 break 1546 break
797 elif test -f $ac_dir/install.sh; then 1547 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1548 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1549 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1550 break
1551 elif test -f $ac_dir/shtool; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1554 break
801 fi 1555 fi
802done 1556done
803if test -z "$ac_aux_dir"; then 1557if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
804 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; } 1559echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1560 { (exit 1); exit 1; }; }
805fi 1561fi
806ac_config_guess=$ac_aux_dir/config.guess 1562ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1563ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1564ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1565
1566 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1567
811 1568
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1569VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
813DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1570DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
814LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1571LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1573echo ""
817echo "configuring for rxvt $VERSION" 1574echo "configuring for rxvt $VERSION"
818echo "" 1575echo ""
819 1576
820 1577
1578ac_ext=c
1579ac_cpp='$CPP $CPPFLAGS'
1580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1582ac_compiler_gnu=$ac_cv_c_compiler_gnu
1583if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1585set dummy ${ac_tool_prefix}gcc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
824echo "configure:825: checking for $ac_word" >&5
825if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1588if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1589 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1590else
828 if test -n "$CC"; then 1591 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1592 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1593else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1595for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1596do
1597 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1598 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1599 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1603 break 2
838 fi 1604 fi
839 done 1605done
840 IFS="$ac_save_ifs" 1606done
1607
841fi 1608fi
842fi 1609fi
843CC="$ac_cv_prog_CC" 1610CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1611if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1612 echo "$as_me:$LINENO: result: $CC" >&5
1613echo "${ECHO_T}$CC" >&6
846else 1614else
847 echo "$ac_t""no" 1>&6 1615 echo "$as_me:$LINENO: result: no" >&5
1616echo "${ECHO_T}no" >&6
848fi 1617fi
849 1618
1619fi
1620if test -z "$ac_cv_prog_CC"; then
1621 ac_ct_CC=$CC
1622 # Extract the first word of "gcc", so it can be a program name with args.
1623set dummy gcc; ac_word=$2
1624echo "$as_me:$LINENO: checking for $ac_word" >&5
1625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631else
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643done
1644done
1645
1646fi
1647fi
1648ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651echo "${ECHO_T}$ac_ct_CC" >&6
1652else
1653 echo "$as_me:$LINENO: result: no" >&5
1654echo "${ECHO_T}no" >&6
1655fi
1656
1657 CC=$ac_ct_CC
1658else
1659 CC="$ac_cv_prog_CC"
1660fi
1661
1662if test -z "$CC"; then
1663 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1665set dummy ${ac_tool_prefix}cc; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="${ac_tool_prefix}cc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1684 fi
1685done
1686done
1687
1688fi
1689fi
1690CC=$ac_cv_prog_CC
1691if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693echo "${ECHO_T}$CC" >&6
1694else
1695 echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699fi
1700if test -z "$ac_cv_prog_CC"; then
1701 ac_ct_CC=$CC
1702 # Extract the first word of "cc", so it can be a program name with args.
1703set dummy cc; ac_word=$2
1704echo "$as_me:$LINENO: checking for $ac_word" >&5
1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709 if test -n "$ac_ct_CC"; then
1710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711else
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_ac_ct_CC="cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1722 fi
1723done
1724done
1725
1726fi
1727fi
1728ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729if test -n "$ac_ct_CC"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731echo "${ECHO_T}$ac_ct_CC" >&6
1732else
1733 echo "$as_me:$LINENO: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737 CC=$ac_ct_CC
1738else
1739 CC="$ac_cv_prog_CC"
1740fi
1741
1742fi
850if test -z "$CC"; then 1743if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1744 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1745set dummy cc; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
854echo "configure:855: checking for $ac_word" >&5
855if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1748if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1749 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1750else
858 if test -n "$CC"; then 1751 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1752 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1753else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1754 ac_prog_rejected=no
863 ac_dummy="$PATH" 1755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1756for as_dir in $PATH
1757do
1758 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1759 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1763 ac_prog_rejected=yes
869 continue 1764 continue
870 fi 1765 fi
871 ac_cv_prog_CC="cc" 1766 ac_cv_prog_CC="cc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1768 break 2
873 fi 1769 fi
874 done 1770done
875 IFS="$ac_save_ifs" 1771done
1772
876if test $ac_prog_rejected = yes; then 1773if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1774 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1775 set dummy $ac_cv_prog_CC
879 shift 1776 shift
880 if test $# -gt 0; then 1777 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1778 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1779 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name. 1780 # first if we set CC to just the basename; use the full file name.
884 shift 1781 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1783 fi
889fi 1784fi
890fi 1785fi
891fi 1786fi
892CC="$ac_cv_prog_CC" 1787CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1788if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1789 echo "$as_me:$LINENO: result: $CC" >&5
1790echo "${ECHO_T}$CC" >&6
895else 1791else
896 echo "$ac_t""no" 1>&6 1792 echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
897fi 1794fi
898 1795
1796fi
899 if test -z "$CC"; then 1797if test -z "$CC"; then
900 case "`uname -s`" in 1798 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1799 for ac_prog in cl
1800 do
902 # Extract the first word of "cl", so it can be a program name with args. 1801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
903set dummy cl; ac_word=$2 1802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
905echo "configure:906: checking for $ac_word" >&5
906if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1805if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1806 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1807else
909 if test -n "$CC"; then 1808 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1809 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1810else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1812for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1813do
1814 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1815 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1816 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1820 break 2
1821 fi
1822done
1823done
1824
1825fi
1826fi
1827CC=$ac_cv_prog_CC
1828if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830echo "${ECHO_T}$CC" >&6
1831else
1832 echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836 test -n "$CC" && break
1837 done
1838fi
1839if test -z "$CC"; then
1840 ac_ct_CC=$CC
1841 for ac_prog in cl
1842do
1843 # Extract the first word of "$ac_prog", so it can be a program name with args.
1844set dummy $ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="$ac_prog"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1863 fi
1864done
1865done
1866
1867fi
1868fi
1869ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872echo "${ECHO_T}$ac_ct_CC" >&6
1873else
1874 echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878 test -n "$ac_ct_CC" && break
1879done
1880
1881 CC=$ac_ct_CC
1882fi
1883
1884fi
1885
1886
1887test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: no acceptable C compiler found in \$PATH
1890See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1892
1893# Provide some information about the compiler.
1894echo "$as_me:$LINENO:" \
1895 "checking for C compiler version" >&5
1896ac_compiler=`set X $ac_compile; echo $2`
1897{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1898 (eval $ac_compiler --version </dev/null >&5) 2>&5
1899 ac_status=$?
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }
1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1903 (eval $ac_compiler -v </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1908 (eval $ac_compiler -V </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912
1913cat >conftest.$ac_ext <<_ACEOF
1914/* confdefs.h. */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h. */
1919
1920int
1921main ()
1922{
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928ac_clean_files_save=$ac_clean_files
1929ac_clean_files="$ac_clean_files a.out a.exe b.out"
1930# Try to create an executable without -o first, disregard a.out.
1931# It will help us diagnose broken compilers, and finding out an intuition
1932# of exeext.
1933echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1934echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1935ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1936if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1937 (eval $ac_link_default) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 # Find the output, starting from the most likely. This scheme is
1942# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1943# resort.
1944
1945# Be careful to initialize this variable, since it used to be cached.
1946# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1947ac_cv_exeext=
1948# b.out is created by i960 compilers.
1949for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1950do
1951 test -f "$ac_file" || continue
1952 case $ac_file in
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1954 ;;
1955 conftest.$ac_ext )
1956 # This is the source file.
1957 ;;
1958 [ab].out )
1959 # We found the default executable, but exeext='' is most
1960 # certainly right.
1961 break;;
1962 *.* )
1963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1964 # FIXME: I believe we export ac_cv_exeext for Libtool,
1965 # but it would be cool to find out if it's true. Does anybody
1966 # maintain Libtool? --akim.
1967 export ac_cv_exeext
1968 break;;
1969 * )
1970 break;;
1971 esac
1972done
1973else
1974 echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1978See \`config.log' for more details." >&5
1979echo "$as_me: error: C compiler cannot create executables
1980See \`config.log' for more details." >&2;}
1981 { (exit 77); exit 77; }; }
1982fi
1983
1984ac_exeext=$ac_cv_exeext
1985echo "$as_me:$LINENO: result: $ac_file" >&5
1986echo "${ECHO_T}$ac_file" >&6
1987
1988# Check the compiler produces executables we can run. If not, either
1989# the compiler is broken, or we cross compile.
1990echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1991echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1992# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1993# If not cross compiling, check that we can run a simple program.
1994if test "$cross_compiling" != yes; then
1995 if { ac_try='./$ac_file'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; }; then
2001 cross_compiling=no
2002 else
2003 if test "$cross_compiling" = maybe; then
2004 cross_compiling=yes
2005 else
2006 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2007If you meant to cross compile, use \`--host'.
2008See \`config.log' for more details." >&5
2009echo "$as_me: error: cannot run C compiled programs.
2010If you meant to cross compile, use \`--host'.
2011See \`config.log' for more details." >&2;}
2012 { (exit 1); exit 1; }; }
919 fi 2013 fi
920 done
921 IFS="$ac_save_ifs"
922fi
923fi
924CC="$ac_cv_prog_CC"
925if test -n "$CC"; then
926 echo "$ac_t""$CC" 1>&6
927else
928 echo "$ac_t""no" 1>&6
929fi
930 ;;
931 esac
932 fi 2014 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2015fi
2016echo "$as_me:$LINENO: result: yes" >&5
2017echo "${ECHO_T}yes" >&6
935 2018
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2019rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2020ac_clean_files=$ac_clean_files_save
2021# Check the compiler produces executables we can run. If not, either
2022# the compiler is broken, or we cross compile.
2023echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2024echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2025echo "$as_me:$LINENO: result: $cross_compiling" >&5
2026echo "${ECHO_T}$cross_compiling" >&6
938 2027
939ac_ext=c 2028echo "$as_me:$LINENO: checking for suffix of executables" >&5
940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2029echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2031 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2032 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2037# work properly (i.e., refer to `conftest.exe'), while it won't with
2038# `rm'.
2039for ac_file in conftest.exe conftest conftest.*; do
2040 test -f "$ac_file" || continue
2041 case $ac_file in
2042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2044 export ac_cv_exeext
2045 break;;
2046 * ) break;;
2047 esac
2048done
2049else
2050 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2051See \`config.log' for more details." >&5
2052echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2053See \`config.log' for more details." >&2;}
2054 { (exit 1); exit 1; }; }
2055fi
945 2056
2057rm -f conftest$ac_cv_exeext
2058echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2059echo "${ECHO_T}$ac_cv_exeext" >&6
2060
2061rm -f conftest.$ac_ext
2062EXEEXT=$ac_cv_exeext
2063ac_exeext=$EXEEXT
2064echo "$as_me:$LINENO: checking for suffix of object files" >&5
2065echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2066if test "${ac_cv_objext+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 cat >conftest.$ac_ext <<_ACEOF
2070/* confdefs.h. */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h. */
947 2075
948#line 949 "configure" 2076int
949#include "confdefs.h" 2077main ()
2078{
950 2079
951main(){return(0);} 2080 ;
952EOF 2081 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2082}
954 ac_cv_prog_cc_works=yes 2083_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2084rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2086 (eval $ac_compile) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2091 case $ac_file in
2092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2094 break;;
2095 esac
2096done
958 else 2097else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2098 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2099sed 's/^/| /' conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
965fi
966rm -fr conftest*
967ac_ext=c
968# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
969ac_cpp='$CPP $CPPFLAGS'
970ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
971ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
972cross_compiling=$ac_cv_prog_cc_cross
973 2100
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2101{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2102See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2103echo "$as_me: error: cannot compute suffix of object files: cannot compile
2104See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
977fi 2106fi
978echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981cross_compiling=$ac_cv_prog_cc_cross
982 2107
2108rm -f conftest.$ac_cv_objext conftest.$ac_ext
2109fi
2110echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2111echo "${ECHO_T}$ac_cv_objext" >&6
2112OBJEXT=$ac_cv_objext
2113ac_objext=$OBJEXT
2114echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
983echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2115echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
984echo "configure:985: checking whether we are using GNU C" >&5 2116if test "${ac_cv_c_compiler_gnu+set}" = set; then
985if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6 2117 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2118else
988 cat > conftest.c <<EOF 2119 cat >conftest.$ac_ext <<_ACEOF
2120/* confdefs.h. */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
2124/* end confdefs.h. */
2125
2126int
2127main ()
2128{
989#ifdef __GNUC__ 2129#ifndef __GNUC__
990 yes; 2130 choke me
991#endif 2131#endif
992EOF
993if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
994 ac_cv_prog_gcc=yes
995else
996 ac_cv_prog_gcc=no
997fi
998fi
999 2132
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2133 ;
1001 2134 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2135}
1003 GCC=yes 2136_ACEOF
2137rm -f conftest.$ac_objext
2138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 (eval $ac_try) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 ac_compiler_gnu=yes
1004else 2159else
1005 GCC= 2160 echo "$as_me: failed program was:" >&5
1006fi 2161sed 's/^/| /' conftest.$ac_ext >&5
1007 2162
2163ac_compiler_gnu=no
2164fi
2165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166ac_cv_c_compiler_gnu=$ac_compiler_gnu
2167
2168fi
2169echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2170echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2171GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2172ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2173ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2174CFLAGS="-g"
2175echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2176echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1012echo "configure:1013: checking whether ${CC-cc} accepts -g" >&5
1013if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2177if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2178 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2179else
1016 echo 'void f(){}' > conftest.c 2180 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
2186
2187int
2188main ()
2189{
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
1018 ac_cv_prog_cc_g=yes 2216 ac_cv_prog_cc_g=yes
1019else 2217else
2218 echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
1020 ac_cv_prog_cc_g=no 2221ac_cv_prog_cc_g=no
1021fi 2222fi
1022rm -f conftest* 2223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2224fi
1025 2225echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2226echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2227if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2228 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2229elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2230 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2231 CFLAGS="-g -O2"
1032 else 2232 else
1033 CFLAGS="-g" 2233 CFLAGS="-g"
1037 CFLAGS="-O2" 2237 CFLAGS="-O2"
1038 else 2238 else
1039 CFLAGS= 2239 CFLAGS=
1040 fi 2240 fi
1041fi 2241fi
2242echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2243echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2244if test "${ac_cv_prog_cc_stdc+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247 ac_cv_prog_cc_stdc=no
2248ac_save_CC=$CC
2249cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255#include <stdarg.h>
2256#include <stdio.h>
2257#include <sys/types.h>
2258#include <sys/stat.h>
2259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2260struct buf { int x; };
2261FILE * (*rcsopen) (struct buf *, struct stat *, int);
2262static char *e (p, i)
2263 char **p;
2264 int i;
2265{
2266 return p[i];
2267}
2268static char *f (char * (*g) (char **, int), char **p, ...)
2269{
2270 char *s;
2271 va_list v;
2272 va_start (v,p);
2273 s = g (p, va_arg (v,int));
2274 va_end (v);
2275 return s;
2276}
1042 2277
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2279 function prototypes and stuff, but not '\xHH' hex character constants.
2280 These don't provoke an error unfortunately, instead are silently treated
2281 as 'x'. The following induces an error, until -std1 is added to get
2282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2283 array size at least. It's necessary to write '\x00'==0 to get something
2284 that's true only with -std1. */
2285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2286
2287int test (int i, double x);
2288struct s1 {int (*f) (int a);};
2289struct s2 {int (*f) (double a);};
2290int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2291int argc;
2292char **argv;
2293int
2294main ()
2295{
2296return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301# Don't try gcc -ansi; that turns off useful extensions and
2302# breaks some systems' header files.
2303# AIX -qlanglvl=ansi
2304# Ultrix and OSF/1 -std1
2305# HP-UX 10.20 and later -Ae
2306# HP-UX older versions -Aa -D_HPUX_SOURCE
2307# SVR4 -Xc -D__EXTENSIONS__
2308for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2309do
2310 CC="$ac_save_CC $ac_arg"
2311 rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cc_stdc=$ac_arg
2333break
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338fi
2339rm -f conftest.err conftest.$ac_objext
2340done
2341rm -f conftest.$ac_ext conftest.$ac_objext
2342CC=$ac_save_CC
2343
2344fi
2345
2346case "x$ac_cv_prog_cc_stdc" in
2347 x|xno)
2348 echo "$as_me:$LINENO: result: none needed" >&5
2349echo "${ECHO_T}none needed" >&6 ;;
2350 *)
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2352echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2353 CC="$CC $ac_cv_prog_cc_stdc" ;;
2354esac
2355
2356# Some people use a C++ compiler to compile C. Since we use `exit',
2357# in C++ we need to declare it. In case someone uses the same compiler
2358# for both compiling C and C++ we need to have the C++ compiler decide
2359# the declaration of exit, since it's the most demanding environment.
2360cat >conftest.$ac_ext <<_ACEOF
2361#ifndef __cplusplus
2362 choke me
2363#endif
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2368 ac_status=$?
2369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 for ac_declaration in \
2387 '' \
2388 'extern "C" void std::exit (int) throw (); using std::exit;' \
2389 'extern "C" void std::exit (int); using std::exit;' \
2390 'extern "C" void exit (int) throw ();' \
2391 'extern "C" void exit (int);' \
2392 'void exit (int);'
2393do
2394 cat >conftest.$ac_ext <<_ACEOF
2395/* confdefs.h. */
2396_ACEOF
2397cat confdefs.h >>conftest.$ac_ext
2398cat >>conftest.$ac_ext <<_ACEOF
2399/* end confdefs.h. */
2400$ac_declaration
2401#include <stdlib.h>
2402int
2403main ()
2404{
2405exit (42);
2406 ;
2407 return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2413 ac_status=$?
2414 grep -v '^ *+' conftest.er1 >conftest.err
2415 rm -f conftest.er1
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 :
2432else
2433 echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436continue
2437fi
2438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445$ac_declaration
2446int
2447main ()
2448{
2449exit (42);
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 break
2476else
2477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482done
2483rm -f conftest*
2484if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2488fi
2489
2490else
2491 echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494fi
2495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502ac_ext=cc
2503ac_cpp='$CXXCPP $CPPFLAGS'
2504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2507if test -n "$ac_tool_prefix"; then
2508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2509 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1046set dummy $ac_prog; ac_word=$2 2511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1048echo "configure:1049: checking for $ac_word" >&5
1049if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 2514if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2515 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2516else
1052 if test -n "$CXX"; then 2517 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2519else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2521for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2522do
2523 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2524 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2529 break 2
1062 fi 2530 fi
2531done
2532done
2533
2534fi
2535fi
2536CXX=$ac_cv_prog_CXX
2537if test -n "$CXX"; then
2538 echo "$as_me:$LINENO: result: $CXX" >&5
2539echo "${ECHO_T}$CXX" >&6
2540else
2541 echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543fi
2544
2545 test -n "$CXX" && break
1063 done 2546 done
1064 IFS="$ac_save_ifs"
1065fi 2547fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2548if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2549 ac_ct_CXX=$CXX
2550 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2551do
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2558else
1071 echo "$ac_t""no" 1>&6 2559 if test -n "$ac_ct_CXX"; then
1072fi 2560 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2561else
1074test -n "$CXX" && break 2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_ac_ct_CXX="$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
1075done 2573done
2574done
2575
2576fi
2577fi
2578ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2579if test -n "$ac_ct_CXX"; then
2580 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2581echo "${ECHO_T}$ac_ct_CXX" >&6
2582else
2583 echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6
2585fi
2586
2587 test -n "$ac_ct_CXX" && break
2588done
1076test -n "$CXX" || CXX="gcc" 2589test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2590
2591 CXX=$ac_ct_CXX
2592fi
1078 2593
1079echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1081 2594
1082ac_ext=C 2595# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2596echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2597 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2598ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2599{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2600 (eval $ac_compiler --version </dev/null >&5) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2605 (eval $ac_compiler -v </dev/null >&5) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2610 (eval $ac_compiler -V </dev/null >&5) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
1088 2614
2615echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2616echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2617if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
1090 2626
1091#line 1092 "configure" 2627int
1092#include "confdefs.h" 2628main ()
1093 2629{
1094int main(){return(0);}
1095EOF
1096if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cxx_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cxx_cross=no
1101 else
1102 ac_cv_prog_cxx_cross=yes
1103 fi
1104else
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cxx_works=no
1108fi
1109rm -fr conftest*
1110ac_ext=c
1111# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112ac_cpp='$CPP $CPPFLAGS'
1113ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115cross_compiling=$ac_cv_prog_cc_cross
1116
1117echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1118if test $ac_cv_prog_cxx_works = no; then
1119 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1120fi
1121echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122echo "configure:1123: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1123echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1124cross_compiling=$ac_cv_prog_cxx_cross
1125
1126echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127echo "configure:1128: checking whether we are using GNU C++" >&5
1128if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131 cat > conftest.C <<EOF
1132#ifdef __GNUC__ 2630#ifndef __GNUC__
1133 yes; 2631 choke me
1134#endif 2632#endif
1135EOF
1136if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137 ac_cv_prog_gxx=yes
1138else
1139 ac_cv_prog_gxx=no
1140fi
1141fi
1142 2633
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2634 ;
1144 2635 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2636}
1146 GXX=yes 2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2641 ac_status=$?
2642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_compiler_gnu=yes
1147else 2660else
1148 GXX= 2661 echo "$as_me: failed program was:" >&5
1149fi 2662sed 's/^/| /' conftest.$ac_ext >&5
1150 2663
2664ac_compiler_gnu=no
2665fi
2666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2668
2669fi
2670echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2671echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2672GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2673ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2674ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2675CXXFLAGS="-g"
2676echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2677echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1155echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 2678if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2679 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2680else
1159 echo 'void f(){}' > conftest.cc 2681 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
2687
2688int
2689main ()
2690{
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
1161 ac_cv_prog_cxx_g=yes 2717 ac_cv_prog_cxx_g=yes
1162else 2718else
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
1163 ac_cv_prog_cxx_g=no 2722ac_cv_prog_cxx_g=no
1164fi 2723fi
1165rm -f conftest* 2724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2725fi
1168 2726echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2727echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2728if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2729 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2730elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2731 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2732 CXXFLAGS="-g -O2"
1175 else 2733 else
1176 CXXFLAGS="-g" 2734 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2738 CXXFLAGS="-O2"
1181 else 2739 else
1182 CXXFLAGS= 2740 CXXFLAGS=
1183 fi 2741 fi
1184fi 2742fi
2743for ac_declaration in \
2744 '' \
2745 'extern "C" void std::exit (int) throw (); using std::exit;' \
2746 'extern "C" void std::exit (int); using std::exit;' \
2747 'extern "C" void exit (int) throw ();' \
2748 'extern "C" void exit (int);' \
2749 'void exit (int);'
2750do
2751 cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757$ac_declaration
2758#include <stdlib.h>
2759int
2760main ()
2761{
2762exit (42);
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 :
2789else
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
1185 2792
2793continue
2794fi
2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h. */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h. */
2802$ac_declaration
2803int
2804main ()
2805{
2806exit (42);
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 break
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837fi
2838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839done
2840rm -f conftest*
2841if test -n "$ac_declaration"; then
2842 echo '#ifdef __cplusplus' >>confdefs.h
2843 echo $ac_declaration >>confdefs.h
2844 echo '#endif' >>confdefs.h
2845fi
2846
2847ac_ext=c
2848ac_cpp='$CPP $CPPFLAGS'
2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852
2853ac_ext=c
2854ac_cpp='$CPP $CPPFLAGS'
2855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1186echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1187echo "configure:1188: checking how to run the C preprocessor" >&5
1188# On Suns, sometimes $CPP names a directory. 2860# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2861if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2862 CPP=
1191fi 2863fi
1192if test -z "$CPP"; then 2864if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2865 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2866 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2867else
1196 # This must be in double quotes, not single quotes, because CPP may get 2868 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2870 do
2871 ac_preproc_ok=false
2872for ac_c_preproc_warn_flag in '' yes
2873do
2874 # Use a header file that comes with gcc, so configuring glibc
2875 # with a fresh cross-compiler works.
2876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2878 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2879 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2880 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2881/* confdefs.h. */
1203#include "confdefs.h" 2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886#ifdef __STDC__
2887# include <limits.h>
2888#else
1204#include <assert.h> 2889# include <assert.h>
1205Syntax Error 2890#endif
1206EOF 2891 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2892_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null; then
2901 if test -s conftest.err; then
2902 ac_cpp_err=$ac_c_preproc_warn_flag
2903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2904 else
2905 ac_cpp_err=
2906 fi
2907else
2908 ac_cpp_err=yes
2909fi
1210if test -z "$ac_err"; then 2910if test -z "$ac_cpp_err"; then
1211 : 2911 :
1212else 2912else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2913 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2914sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2915
1217 CPP="${CC-cc} -E -traditional-cpp" 2916 # Broken: fails on valid input.
2917continue
2918fi
2919rm -f conftest.err conftest.$ac_ext
2920
2921 # OK, works on sane cases. Now check whether non-existent headers
2922 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2923 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2924/* confdefs.h. */
1220#include "confdefs.h" 2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
2929#include <ac_nonexistent.h>
2930_ACEOF
2931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null; then
2939 if test -s conftest.err; then
2940 ac_cpp_err=$ac_c_preproc_warn_flag
2941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2942 else
2943 ac_cpp_err=
2944 fi
2945else
2946 ac_cpp_err=yes
2947fi
2948if test -z "$ac_cpp_err"; then
2949 # Broken: success on invalid input.
2950continue
2951else
2952 echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 # Passes both tests.
2956ac_preproc_ok=:
2957break
2958fi
2959rm -f conftest.err conftest.$ac_ext
2960
2961done
2962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963rm -f conftest.err conftest.$ac_ext
2964if $ac_preproc_ok; then
2965 break
2966fi
2967
2968 done
2969 ac_cv_prog_CPP=$CPP
2970
2971fi
2972 CPP=$ac_cv_prog_CPP
2973else
2974 ac_cv_prog_CPP=$CPP
2975fi
2976echo "$as_me:$LINENO: result: $CPP" >&5
2977echo "${ECHO_T}$CPP" >&6
2978ac_preproc_ok=false
2979for ac_c_preproc_warn_flag in '' yes
2980do
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993#ifdef __STDC__
2994# include <limits.h>
2995#else
1221#include <assert.h> 2996# include <assert.h>
1222Syntax Error 2997#endif
1223EOF 2998 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2999_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null; then
3008 if test -s conftest.err; then
3009 ac_cpp_err=$ac_c_preproc_warn_flag
3010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 else
3012 ac_cpp_err=
3013 fi
3014else
3015 ac_cpp_err=yes
3016fi
1227if test -z "$ac_err"; then 3017if test -z "$ac_cpp_err"; then
1228 : 3018 :
1229else 3019else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3020 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3021sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3022
1234 CPP="${CC-cc} -nologo -E" 3023 # Broken: fails on valid input.
3024continue
3025fi
3026rm -f conftest.err conftest.$ac_ext
3027
3028 # OK, works on sane cases. Now check whether non-existent headers
3029 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3030 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3031/* confdefs.h. */
1237#include "confdefs.h" 3032_ACEOF
1238#include <assert.h> 3033cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3034cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3035/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3036#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3037_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3049 else
3050 ac_cpp_err=
3051 fi
3052else
3053 ac_cpp_err=yes
3054fi
1244if test -z "$ac_err"; then 3055if test -z "$ac_cpp_err"; then
3056 # Broken: success on invalid input.
3057continue
3058else
3059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 # Passes both tests.
3063ac_preproc_ok=:
3064break
3065fi
3066rm -f conftest.err conftest.$ac_ext
3067
3068done
3069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070rm -f conftest.err conftest.$ac_ext
3071if $ac_preproc_ok; then
1245 : 3072 :
1246else 3073else
1247 echo "$ac_err" >&5 3074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3075See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3076echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3077See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3078 { (exit 1); exit 1; }; }
1252fi 3079fi
1253rm -f conftest* 3080
1254fi 3081ac_ext=c
1255rm -f conftest* 3082ac_cpp='$CPP $CPPFLAGS'
1256fi 3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3085ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259fi
1260 CPP="$ac_cv_prog_CPP"
1261else
1262 ac_cv_prog_CPP="$CPP"
1263fi
1264echo "$ac_t""$CPP" 1>&6
1265 3086
1266# Find a good install program. We prefer a C program (faster), 3087# Find a good install program. We prefer a C program (faster),
1267# so one script is as good as another. But avoid the broken or 3088# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3089# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3090# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3091# SunOS /usr/etc/install
1271# IRIX /sbin/install 3092# IRIX /sbin/install
1272# AIX /bin/install 3093# AIX /bin/install
3094# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3098# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3099# ./install, which can be erroneously created by make from ./install.sh.
3100echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3101echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1278echo "configure:1279: checking for a BSD compatible install" >&5
1279if test -z "$INSTALL"; then 3102if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3103if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3104 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3105else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3111 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3112case $as_dir/ in
3113 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3115 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3116 /usr/ucb/* ) ;;
1288 *) 3117 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3118 # OSF1 and SCO ODT 3.0 have their own names for install.
1290 # Don't use installbsd from OSF since it installs stuff as root 3119 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3120 # by default.
1292 for ac_prog in ginstall scoinst install; do 3121 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3124 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3125 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3126 # AIX install. It has an incompatible calling convention.
1297 : 3127 :
3128 elif test $ac_prog = install &&
3129 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3130 # program-specific install script used by HP pwplus--don't use.
3131 :
1298 else 3132 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3134 break 3
1301 fi 3135 fi
1302 fi 3136 fi
1303 done 3137 done
1304 ;;
1305 esac
1306 done 3138 done
1307 IFS="$ac_save_IFS" 3139 ;;
3140esac
3141done
3142
1308 3143
1309fi 3144fi
1310 if test "${ac_cv_path_install+set}" = set; then 3145 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3146 INSTALL=$ac_cv_path_install
1312 else 3147 else
1313 # As a last resort, use the slow shell script. We don't cache a 3148 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will 3149 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3150 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3151 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3152 INSTALL=$ac_install_sh
1318 fi 3153 fi
1319fi 3154fi
3155echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3156echo "${ECHO_T}$INSTALL" >&6
1321 3157
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3159# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3161
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3163
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3165
1330for ac_prog in mawk gawk nawk awk 3166for ac_prog in gawk mawk nawk awk
1331do 3167do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3169set dummy $ac_prog; ac_word=$2
3170echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335echo "configure:1336: checking for $ac_word" >&5
1336if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 3172if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3173 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3174else
1339 if test -n "$AWK"; then 3175 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3177else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3179for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3180do
3181 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3182 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3185 ac_cv_prog_AWK="$ac_prog"
3186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3187 break 2
3188 fi
3189done
3190done
3191
3192fi
3193fi
3194AWK=$ac_cv_prog_AWK
3195if test -n "$AWK"; then
3196 echo "$as_me:$LINENO: result: $AWK" >&5
3197echo "${ECHO_T}$AWK" >&6
3198else
3199 echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6
3201fi
3202
3203 test -n "$AWK" && break
3204done
3205
3206
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
3213
3214LINKER="$CXX"
3215if test x$GCC = xyes && test x$GXX = xyes; then
3216
3217echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3218echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3219if test "${ac_cv_lib_supcpp_main+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 ac_check_lib_save_LIBS=$LIBS
3223LIBS="-lsupc++ $LIBS"
3224cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230
3231
3232int
3233main ()
3234{
3235main ();
3236 ;
3237 return 0;
3238}
3239_ACEOF
3240rm -f conftest.$ac_objext conftest$ac_exeext
3241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242 (eval $ac_link) 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest$ac_exeext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_lib_supcpp_main=yes
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266ac_cv_lib_supcpp_main=no
3267fi
3268rm -f conftest.err conftest.$ac_objext \
3269 conftest$ac_exeext conftest.$ac_ext
3270LIBS=$ac_check_lib_save_LIBS
3271fi
3272echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3273echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3274if test $ac_cv_lib_supcpp_main = yes; then
3275
3276 LINKER="$CC"
3277 LIBS="$LIBS -lsupc++"
3278
3279fi
3280
3281fi
3282LINKER=$LINKER
3283
3284
3285CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3286
3287
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293
3294
3295
3296ac_ext=cc
3297ac_cpp='$CXXCPP $CPPFLAGS'
3298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3301echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3302echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3303if test -z "$CXXCPP"; then
3304 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 # Double quotes because CXXCPP needs to be expanded
3308 for CXXCPP in "$CXX -E" "/lib/cpp"
3309 do
3310 ac_preproc_ok=false
3311for ac_cxx_preproc_warn_flag in '' yes
3312do
3313 # Use a header file that comes with gcc, so configuring glibc
3314 # with a fresh cross-compiler works.
3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3316 # <limits.h> exists even on freestanding compilers.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#ifdef __STDC__
3326# include <limits.h>
3327#else
3328# include <assert.h>
3329#endif
3330 Syntax error
3331_ACEOF
3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_cxx_preproc_warn_flag
3342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3343 else
3344 ac_cpp_err=
3345 fi
3346else
3347 ac_cpp_err=yes
3348fi
3349if test -z "$ac_cpp_err"; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 # Broken: fails on valid input.
3356continue
3357fi
3358rm -f conftest.err conftest.$ac_ext
3359
3360 # OK, works on sane cases. Now check whether non-existent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <ac_nonexistent.h>
3369_ACEOF
3370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_cxx_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3389continue
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 # Passes both tests.
3395ac_preproc_ok=:
3396break
3397fi
3398rm -f conftest.err conftest.$ac_ext
3399
3400done
3401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402rm -f conftest.err conftest.$ac_ext
3403if $ac_preproc_ok; then
3404 break
3405fi
3406
3407 done
3408 ac_cv_prog_CXXCPP=$CXXCPP
3409
3410fi
3411 CXXCPP=$ac_cv_prog_CXXCPP
3412else
3413 ac_cv_prog_CXXCPP=$CXXCPP
3414fi
3415echo "$as_me:$LINENO: result: $CXXCPP" >&5
3416echo "${ECHO_T}$CXXCPP" >&6
3417ac_preproc_ok=false
3418for ac_cxx_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_cxx_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3450 else
3451 ac_cpp_err=
3452 fi
3453else
3454 ac_cpp_err=yes
3455fi
3456if test -z "$ac_cpp_err"; then
3457 :
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Broken: fails on valid input.
3463continue
3464fi
3465rm -f conftest.err conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
3477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_cxx_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496continue
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
3505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
3510if $ac_preproc_ok; then
3511 :
3512else
3513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&5
3515echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3518fi
3519
3520ac_ext=cc
3521ac_cpp='$CXXCPP $CPPFLAGS'
3522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3525
3526
3527echo "$as_me:$LINENO: checking for egrep" >&5
3528echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3529if test "${ac_cv_prog_egrep+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
1349 fi 3535 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3536fi
1353fi 3537echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3538echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3539 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3540
1361test -n "$AWK" && break
1362done
1363 3541
1364 3542
3543echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3544echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3545cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3546/* confdefs.h. */
1369#include "confdefs.h" 3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
1370#ifdef _AIX 3551#ifdef _AIX
1371 yes 3552 yes
1372#endif 3553#endif
1373 3554
1374EOF 3555_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3557 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3558 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3559echo "${ECHO_T}yes" >&6
3560cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3561#define _ALL_SOURCE 1
1380EOF 3562_ACEOF
1381 3563
1382else 3564else
1383 rm -rf conftest* 3565 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3566echo "${ECHO_T}no" >&6
1385fi 3567fi
1386rm -f conftest* 3568rm -f conftest*
1387 3569
1388 3570
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3571echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3572echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3573if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3574 echo $ECHO_N "(cached) $ECHO_C" >&6
1393then
1394 echo "$ac_t""yes" 1>&6
1395 ISC=yes # If later tests want to check for ISC.
1396 cat >> confdefs.h <<\EOF
1397#define _POSIX_SOURCE 1
1398EOF
1399
1400 if test "$GCC" = yes; then
1401 CC="$CC -posix"
1402 else 3575else
1403 CC="$CC -Xp" 3576 ac_func_search_save_LIBS=$LIBS
1404 fi 3577ac_cv_search_strerror=no
3578cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584
3585/* Override any gcc2 internal prototype to avoid an error. */
3586#ifdef __cplusplus
3587extern "C"
3588#endif
3589/* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591char strerror ();
3592int
3593main ()
3594{
3595strerror ();
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_cv_search_strerror="none required"
1405else 3622else
1406 echo "$ac_t""no" 1>&6 3623 echo "$as_me: failed program was:" >&5
1407 ISC= 3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
3629if test "$ac_cv_search_strerror" = no; then
3630 for ac_lib in cposix; do
3631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
3638
3639/* Override any gcc2 internal prototype to avoid an error. */
3640#ifdef __cplusplus
3641extern "C"
3642#endif
3643/* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645char strerror ();
3646int
3647main ()
3648{
3649strerror ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_cv_search_strerror="-l$ac_lib"
3676break
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext \
3683 conftest$ac_exeext conftest.$ac_ext
3684 done
3685fi
3686LIBS=$ac_func_search_save_LIBS
3687fi
3688echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3689echo "${ECHO_T}$ac_cv_search_strerror" >&6
3690if test "$ac_cv_search_strerror" != no; then
3691 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3692
3693fi
3694
3695
3696echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3697echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3698if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701 ac_check_lib_save_LIBS=$LIBS
3702LIBS="-lxpg4 $LIBS"
3703cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h. */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h. */
3709
3710/* Override any gcc2 internal prototype to avoid an error. */
3711#ifdef __cplusplus
3712extern "C"
3713#endif
3714/* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716char setlocale ();
3717int
3718main ()
3719{
3720setlocale ();
3721 ;
3722 return 0;
3723}
3724_ACEOF
3725rm -f conftest.$ac_objext conftest$ac_exeext
3726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest$ac_exeext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_lib_xpg4_setlocale=yes
3747else
3748 echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751ac_cv_lib_xpg4_setlocale=no
3752fi
3753rm -f conftest.err conftest.$ac_objext \
3754 conftest$ac_exeext conftest.$ac_ext
3755LIBS=$ac_check_lib_save_LIBS
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3758echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3759if test $ac_cv_lib_xpg4_setlocale = yes; then
3760 LIBS="$LIBS -lxpg4"
3761fi
3762
3763
3764echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3765echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3766if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_check_lib_save_LIBS=$LIBS
3770LIBS="-lnsl $LIBS"
3771cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
3777
3778/* Override any gcc2 internal prototype to avoid an error. */
3779#ifdef __cplusplus
3780extern "C"
3781#endif
3782/* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3784char gethostbyname ();
3785int
3786main ()
3787{
3788gethostbyname ();
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793rm -f conftest.$ac_objext conftest$ac_exeext
3794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3795 (eval $ac_link) 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_lib_nsl_gethostbyname=yes
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819ac_cv_lib_nsl_gethostbyname=no
3820fi
3821rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3823LIBS=$ac_check_lib_save_LIBS
3824fi
3825echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3826echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3827if test $ac_cv_lib_nsl_gethostbyname = yes; then
3828 LIBS="$LIBS -lnsl"
3829fi
3830
3831echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3832echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3833if test "${ac_cv_lib_socket_socket+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836 ac_check_lib_save_LIBS=$LIBS
3837LIBS="-lsocket $LIBS"
3838cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
3844
3845/* Override any gcc2 internal prototype to avoid an error. */
3846#ifdef __cplusplus
3847extern "C"
3848#endif
3849/* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3851char socket ();
3852int
3853main ()
3854{
3855socket ();
3856 ;
3857 return 0;
3858}
3859_ACEOF
3860rm -f conftest.$ac_objext conftest$ac_exeext
3861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_lib_socket_socket=yes
3882else
3883 echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886ac_cv_lib_socket_socket=no
3887fi
3888rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
3890LIBS=$ac_check_lib_save_LIBS
3891fi
3892echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3893echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3894if test $ac_cv_lib_socket_socket = yes; then
3895 LIBS="$LIBS -lsocket"
1408fi 3896fi
1409 3897
1410 3898
1411# Check whether --enable-shared or --disable-shared was given. 3899# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3900if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3915 IFS="$ac_save_ifs"
1428 ;; 3916 ;;
1429esac 3917esac
1430else 3918else
1431 enable_shared=no 3919 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3920fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3921if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3922 enableval="$enable_static"
1436 p=${PACKAGE-default} 3923 p=${PACKAGE-default}
1437case "$enableval" in 3924case "$enableval" in
1438yes) enable_static=yes ;; 3925yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3936 IFS="$ac_save_ifs"
1450 ;; 3937 ;;
1451esac 3938esac
1452else 3939else
1453 enable_static=yes 3940 enable_static=yes
1454fi
1455echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1456echo "configure:1457: checking for Cygwin environment" >&5
1457if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 cat > conftest.$ac_ext <<EOF
1461#line 1462 "configure"
1462#include "confdefs.h"
1463
1464int main() {
1465
1466#ifndef __CYGWIN__
1467#define __CYGWIN__ __CYGWIN32__
1468#endif
1469return __CYGWIN__;
1470; return 0; }
1471EOF
1472if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 rm -rf conftest*
1474 ac_cv_cygwin=yes
1475else
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 rm -rf conftest*
1479 ac_cv_cygwin=no
1480fi
1481rm -f conftest*
1482rm -f conftest*
1483fi
1484
1485echo "$ac_t""$ac_cv_cygwin" 1>&6
1486CYGWIN=
1487test "$ac_cv_cygwin" = yes && CYGWIN=yes
1488echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1489echo "configure:1490: checking for mingw32 environment" >&5
1490if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493 cat > conftest.$ac_ext <<EOF
1494#line 1495 "configure"
1495#include "confdefs.h"
1496
1497int main() {
1498return __MINGW32__;
1499; return 0; }
1500EOF
1501if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 rm -rf conftest*
1503 ac_cv_mingw32=yes
1504else
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1507 rm -rf conftest*
1508 ac_cv_mingw32=no
1509fi
1510rm -f conftest*
1511rm -f conftest*
1512fi
1513
1514echo "$ac_t""$ac_cv_mingw32" 1>&6
1515MINGW32=
1516test "$ac_cv_mingw32" = yes && MINGW32=yes
1517# Check whether --enable-fast-install or --disable-fast-install was given. 3941fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3942if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3943 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3944 p=${PACKAGE-default}
1521case "$enableval" in 3945case "$enableval" in
1522yes) enable_fast_install=yes ;; 3946yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3957 IFS="$ac_save_ifs"
1534 ;; 3958 ;;
1535esac 3959esac
1536else 3960else
1537 enable_fast_install=yes 3961 enable_fast_install=yes
1538fi 3962fi;
1539
1540
1541# Make sure we can run config.sub. 3963# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3964$ac_config_sub sun4 >/dev/null 2>&1 ||
3965 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1543else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 3966echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3967 { (exit 1); exit 1; }; }
1545 3968
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3969echo "$as_me:$LINENO: checking build system type" >&5
1547echo "configure:1548: checking host system type" >&5
1548
1549host_alias=$host
1550case "$host_alias" in
1551NONE)
1552 case $nonopt in
1553 NONE)
1554 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1556 fi ;;
1557 *) host_alias=$nonopt ;;
1558 esac ;;
1559esac
1560
1561host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565echo "$ac_t""$host" 1>&6
1566
1567echo $ac_n "checking build system type""... $ac_c" 1>&6 3970echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3971if test "${ac_cv_build+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 ac_cv_build_alias=$build_alias
3975test -z "$ac_cv_build_alias" &&
3976 ac_cv_build_alias=`$ac_config_guess`
3977test -z "$ac_cv_build_alias" &&
3978 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3979echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3980 { (exit 1); exit 1; }; }
3981ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3982 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3983echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3984 { (exit 1); exit 1; }; }
1569 3985
1570build_alias=$build 3986fi
1571case "$build_alias" in 3987echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3988echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3989build=$ac_cv_build
1574 NONE) build_alias=$host_alias ;;
1575 *) build_alias=$nonopt ;;
1576 esac ;;
1577esac
1578
1579build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1580build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3990build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3991build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3992build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3993
3994
3995echo "$as_me:$LINENO: checking host system type" >&5
3996echo $ECHO_N "checking host system type... $ECHO_C" >&6
3997if test "${ac_cv_host+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000 ac_cv_host_alias=$host_alias
4001test -z "$ac_cv_host_alias" &&
4002 ac_cv_host_alias=$ac_cv_build_alias
4003ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4004 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4005echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4006 { (exit 1); exit 1; }; }
4007
4008fi
4009echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4010echo "${ECHO_T}$ac_cv_host" >&6
4011host=$ac_cv_host
4012host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4013host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4014host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4015
4016
1584 4017
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 4018# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 4019if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 4020 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 4021 test "$withval" = no || with_gnu_ld=yes
1589else 4022else
1590 with_gnu_ld=no 4023 with_gnu_ld=no
1591fi 4024fi;
1592
1593ac_prog=ld 4025ac_prog=ld
1594if test "$GCC" = yes; then 4026if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 4027 # Check if gcc -print-prog-name=ld gives a path.
4028 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
1596 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 4029echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1597echo "configure:1598: checking for ld used by GCC" >&5
1598 case $host in 4030 case $host in
1599 *-*-mingw*) 4031 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 4032 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 4034 *)
1621 # If it is relative, then search for the first ld in PATH. 4053 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 4054 with_gnu_ld=unknown
1623 ;; 4055 ;;
1624 esac 4056 esac
1625elif test "$with_gnu_ld" = yes; then 4057elif test "$with_gnu_ld" = yes; then
4058 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 4059echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 4060else
4061 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 4062echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 4063fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 4064if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 4065 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 4066else
1635 if test -z "$LD"; then 4067 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 4069 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 4070 test -z "$ac_dir" && ac_dir=.
1654fi 4086fi
1655fi 4087fi
1656 4088
1657LD="$lt_cv_path_LD" 4089LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 4090if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 4091 echo "$as_me:$LINENO: result: $LD" >&5
4092echo "${ECHO_T}$LD" >&6
1660else 4093else
1661 echo "$ac_t""no" 1>&6 4094 echo "$as_me:$LINENO: result: no" >&5
4095echo "${ECHO_T}no" >&6
1662fi 4096fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 4097test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4098echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4099 { (exit 1); exit 1; }; }
4100echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
1664echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 4101echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1665echo "configure:1666: checking if the linker ($LD) is GNU ld" >&5
1666if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 4102if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 4103 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 4104else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4105 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1670if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4106if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 4107 lt_cv_prog_gnu_ld=yes
1672else 4108else
1673 lt_cv_prog_gnu_ld=no 4109 lt_cv_prog_gnu_ld=no
1674fi 4110fi
1675fi 4111fi
1676 4112echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 4113echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 4114with_gnu_ld=$lt_cv_prog_gnu_ld
1679 4115
1680 4116
4117echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
1681echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 4118echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1682echo "configure:1683: checking for $LD option to reload object files" >&5
1683if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 4119if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 4120 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 4121else
1686 lt_cv_ld_reload_flag='-r' 4122 lt_cv_ld_reload_flag='-r'
1687fi 4123fi
1688 4124echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 4125echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 4126reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 4127test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 4128
4129echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 4130echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
1694echo "configure:1695: checking for BSD-compatible nm" >&5
1695if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 4131if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 4132 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 4133else
1698 if test -n "$NM"; then 4134 if test -n "$NM"; then
1699 # Let the user override the test. 4135 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 4136 lt_cv_path_NM="$NM"
1701else 4137else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4160 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 4161fi
1726fi 4162fi
1727 4163
1728NM="$lt_cv_path_NM" 4164NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 4165echo "$as_me:$LINENO: result: $NM" >&5
4166echo "${ECHO_T}$NM" >&6
1730 4167
4168echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 4169echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 4170LN_S=$as_ln_s
1733if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735else
1736 rm -f conftestdata
1737if ln -s X conftestdata 2>/dev/null
1738then
1739 rm -f conftestdata
1740 ac_cv_prog_LN_S="ln -s"
1741else
1742 ac_cv_prog_LN_S=ln
1743fi
1744fi
1745LN_S="$ac_cv_prog_LN_S"
1746if test "$ac_cv_prog_LN_S" = "ln -s"; then 4171if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 4172 echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6
1748else 4174else
1749 echo "$ac_t""no" 1>&6 4175 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176echo "${ECHO_T}no, using $LN_S" >&6
1750fi 4177fi
1751 4178
4179echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 4180echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
1753echo "configure:1754: checking how to recognise dependant libraries" >&5
1754if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 4181if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 4182 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 4183else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 4185lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 4186lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 4187# Need to set the preceding variable on all platforms that support
1906 esac 4333 esac
1907 ;; 4334 ;;
1908esac 4335esac
1909 4336
1910fi 4337fi
1911 4338echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4339echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4340file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4341deplibs_check_method=$lt_cv_deplibs_check_method
1915 4342
1916echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1917echo "configure:1918: checking for object suffix" >&5
1918if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920else
1921 rm -f conftest*
1922echo 'int i = 1;' > conftest.$ac_ext
1923if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 for ac_file in conftest.*; do
1925 case $ac_file in
1926 *.c) ;;
1927 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1928 esac
1929 done
1930else
1931 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1932fi
1933rm -f conftest*
1934fi
1935 4343
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4344
1940
1941
1942echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1943echo "configure:1944: checking for executable suffix" >&5
1944if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1948 ac_cv_exeext=.exe
1949else
1950 rm -f conftest*
1951 echo 'int main () { return 0; }' > conftest.$ac_ext
1952 ac_cv_exeext=
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1954 for file in conftest.*; do
1955 case $file in
1956 *.$ac_ext | *.c | *.o | *.obj) ;;
1957 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1958 esac
1959 done
1960 else
1961 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1962 fi
1963 rm -f conftest*
1964 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1965fi
1966fi
1967
1968EXEEXT=""
1969test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1970echo "$ac_t""${ac_cv_exeext}" 1>&6
1971ac_exeext=$EXEEXT
1972
1973if test $host != $build; then
1974 ac_tool_prefix=${host_alias}-
1975else
1976 ac_tool_prefix=
1977fi
1978 4345
1979 4346
1980 4347
1981 4348
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4349# Check for command to grab the raw symbol name followed by C symbol from nm.
4350echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4351echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
1984echo "configure:1985: checking command to parse $NM output" >&5
1985if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 4352if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4353 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4354else
1988 4355
1989# These are sane defaults that work on at least a few old systems. 4356# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4357# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4358
1992# Character class describing NM global symbol codes. 4359# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4360symcode='[BCDEGRST]'
2055} 4422}
2056#endif 4423#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4424main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4425EOF
2059 4426
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4432 # Now try to grab the symbols.
2062 nlist=conftest.nm 4433 nlist=conftest.nm
2063 if { (eval echo configure:2064: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 4434 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4439 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4440 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4441 mv -f "$nlist"T "$nlist"
2067 else 4442 else
2068 rm -f "$nlist"T 4443 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4484 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4485 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4486 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4487 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4488 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4494 pipe_works=yes
2116 fi 4495 fi
2117 LIBS="$save_LIBS" 4496 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4497 CFLAGS="$save_CFLAGS"
2119 else 4498 else
2146 global_symbol_to_cdecl= 4525 global_symbol_to_cdecl=
2147else 4526else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4527 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4528fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4529if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4530 echo "$as_me:$LINENO: result: failed" >&5
4531echo "${ECHO_T}failed" >&6
4532else
4533 echo "$as_me:$LINENO: result: ok" >&5
4534echo "${ECHO_T}ok" >&6
4535fi
4536
4537echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4538echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4539if test "${ac_cv_header_stdc+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548#include <stdlib.h>
4549#include <stdarg.h>
4550#include <string.h>
4551#include <float.h>
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561rm -f conftest.$ac_objext
4562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_cv_header_stdc=yes
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587ac_cv_header_stdc=no
4588fi
4589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590
4591if test $ac_cv_header_stdc = yes; then
4592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4593 cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
4599#include <string.h>
4600
4601_ACEOF
4602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then
4604 :
4605else
4606 ac_cv_header_stdc=no
4607fi
4608rm -f conftest*
4609
4610fi
4611
4612if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat >conftest.$ac_ext <<_ACEOF
4615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
4620#include <stdlib.h>
4621
4622_ACEOF
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "free" >/dev/null 2>&1; then
4625 :
4626else
4627 ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
4630
4631fi
4632
4633if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4636 :
4637else
4638 cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
4644#include <ctype.h>
4645#if ((' ' & 0x0FF) == 0x020)
4646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4648#else
2153 echo "$ac_t""ok" 1>&6 4649# define ISLOWER(c) \
2154fi 4650 (('a' <= (c) && (c) <= 'i') \
4651 || ('j' <= (c) && (c) <= 'r') \
4652 || ('s' <= (c) && (c) <= 'z'))
4653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4654#endif
2155 4655
2156for ac_hdr in dlfcn.h 4656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657int
4658main ()
4659{
4660 int i;
4661 for (i = 0; i < 256; i++)
4662 if (XOR (islower (i), ISLOWER (i))
4663 || toupper (i) != TOUPPER (i))
4664 exit(2);
4665 exit (0);
4666}
4667_ACEOF
4668rm -f conftest$ac_exeext
4669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 :
4680else
4681 echo "$as_me: program exited with status $ac_status" >&5
4682echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685( exit $ac_status )
4686ac_cv_header_stdc=no
4687fi
4688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4689fi
4690fi
4691fi
4692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4693echo "${ECHO_T}$ac_cv_header_stdc" >&6
4694if test $ac_cv_header_stdc = yes; then
4695
4696cat >>confdefs.h <<\_ACEOF
4697#define STDC_HEADERS 1
4698_ACEOF
4699
4700fi
4701
4702# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713 inttypes.h stdint.h unistd.h
2157do 4714do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4718if eval "test \"\${$as_ac_Header+set}\" = set"; then
2161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6 4719 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4720else
2164 cat > conftest.$ac_ext <<EOF 4721 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4722/* confdefs.h. */
2166#include "confdefs.h" 4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h. */
4727$ac_includes_default
4728
2167#include <$ac_hdr> 4729#include <$ac_header>
2168EOF 4730_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4731rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4733 (eval $ac_compile) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 eval "$as_ac_Header=yes"
4753else
4754 echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757eval "$as_ac_Header=no"
4758fi
4759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763if test `eval echo '${'$as_ac_Header'}'` = yes; then
4764 cat >>confdefs.h <<_ACEOF
4765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766_ACEOF
4767
4768fi
4769
4770done
4771
4772
4773
4774for ac_header in dlfcn.h
4775do
4776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4777if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo "$as_me:$LINENO: checking for $ac_header" >&5
4779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782fi
4783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785else
4786 # Is the header compilable?
4787echo "$as_me:$LINENO: checking $ac_header usability" >&5
4788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4789cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h. */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h. */
4795$ac_includes_default
4796#include <$ac_header>
4797_ACEOF
4798rm -f conftest.$ac_objext
4799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 ac_header_compiler=yes
4820else
4821 echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824ac_header_compiler=no
4825fi
4826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4828echo "${ECHO_T}$ac_header_compiler" >&6
4829
4830# Is the header present?
4831echo "$as_me:$LINENO: checking $ac_header presence" >&5
4832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4833cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839#include <$ac_header>
4840_ACEOF
4841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_cxx_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4852 else
4853 ac_cpp_err=
4854 fi
4855else
4856 ac_cpp_err=yes
4857fi
2172if test -z "$ac_err"; then 4858if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4859 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4860else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4861 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4862sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4863
2180 eval "ac_cv_header_$ac_safe=no" 4864 ac_header_preproc=no
2181fi 4865fi
2182rm -f conftest* 4866rm -f conftest.err conftest.$ac_ext
4867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4868echo "${ECHO_T}$ac_header_preproc" >&6
4869
4870# So? What about this header?
4871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4872 yes:no: )
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4877 ac_header_preproc=yes
4878 ;;
4879 no:yes:* )
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4892 (
4893 cat <<\_ASBOX
4894## ------------------------------------------ ##
4895## Report this to the AC_PACKAGE_NAME lists. ##
4896## ------------------------------------------ ##
4897_ASBOX
4898 ) |
4899 sed "s/^/$as_me: WARNING: /" >&2
4900 ;;
4901esac
4902echo "$as_me:$LINENO: checking for $ac_header" >&5
4903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4904if eval "test \"\${$as_ac_Header+set}\" = set"; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4908fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4911
4912fi
4913if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4914 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4916_ACEOF
2190 4917
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4918fi
4919
2194done 4920done
2195 4921
2196 4922
2197 4923
2198 4924
2199 4925
2200# Only perform the check for file, if the check method requires it 4926# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4927case "$deplibs_check_method" in
2202file_magic*) 4928file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4930 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2204 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 4931echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2205echo "configure:2206: checking for ${ac_tool_prefix}file" >&5
2206if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 4932if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4933 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4934else
2209 case "$MAGIC_CMD" in 4935 case "$MAGIC_CMD" in
2210 /*) 4936 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4938 ;;
2254esac 4980esac
2255fi 4981fi
2256 4982
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4983MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4984if test -n "$MAGIC_CMD"; then
4985 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4986echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4987else
2261 echo "$ac_t""no" 1>&6 4988 echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6
2262fi 4990fi
2263 4991
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4992if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4993 if test -n "$ac_tool_prefix"; then
4994 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4995echo $ECHO_N "checking for file... $ECHO_C" >&6
2267echo "configure:2268: checking for file" >&5
2268if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 4996if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4997 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4998else
2271 case "$MAGIC_CMD" in 4999 case "$MAGIC_CMD" in
2272 /*) 5000 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 5002 ;;
2316esac 5044esac
2317fi 5045fi
2318 5046
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 5048if test -n "$MAGIC_CMD"; then
5049 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 5050echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 5051else
2323 echo "$ac_t""no" 1>&6 5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
2324fi 5054fi
2325 5055
2326 else 5056 else
2327 MAGIC_CMD=: 5057 MAGIC_CMD=:
2328 fi 5058 fi
2330 5060
2331 fi 5061 fi
2332 ;; 5062 ;;
2333esac 5063esac
2334 5064
5065if test -n "$ac_tool_prefix"; then
2335# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5068echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338echo "configure:2339: checking for $ac_word" >&5
2339if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 5070if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 5071 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 5072else
2342 if test -n "$RANLIB"; then 5073 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 5075else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 5077for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 5078do
5079 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 5080 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 5085 break 2
2352 fi 5086 fi
2353 done 5087done
2354 IFS="$ac_save_ifs" 5088done
5089
2355fi 5090fi
2356fi 5091fi
2357RANLIB="$ac_cv_prog_RANLIB" 5092RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 5093if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 5094 echo "$as_me:$LINENO: result: $RANLIB" >&5
5095echo "${ECHO_T}$RANLIB" >&6
2360else 5096else
2361 echo "$ac_t""no" 1>&6 5097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
2362fi 5099fi
2363 5100
2364 5101fi
2365if test -z "$ac_cv_prog_RANLIB"; then 5102if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 5103 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 5104 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 5105set dummy ranlib; ac_word=$2
5106echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370echo "configure:2371: checking for $ac_word" >&5
2371if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 5108if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 5109 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 5110else
2374 if test -n "$RANLIB"; then 5111 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 5113else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 5115for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 5116do
5117 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 5118 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 5121 ac_cv_prog_ac_ct_RANLIB="ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 5123 break 2
2384 fi 5124 fi
2385 done 5125done
2386 IFS="$ac_save_ifs" 5126done
5127
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 5128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 5129fi
2389fi 5130fi
5131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5132if test -n "$ac_ct_RANLIB"; then
5133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5134echo "${ECHO_T}$ac_ct_RANLIB" >&6
5135else
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138fi
5139
5140 RANLIB=$ac_ct_RANLIB
5141else
2390RANLIB="$ac_cv_prog_RANLIB" 5142 RANLIB="$ac_cv_prog_RANLIB"
2391if test -n "$RANLIB"; then
2392 echo "$ac_t""$RANLIB" 1>&6
2393else
2394 echo "$ac_t""no" 1>&6
2395fi 5143fi
2396 5144
2397else 5145if test -n "$ac_tool_prefix"; then
2398 RANLIB=":"
2399fi
2400fi
2401
2402# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}strip; ac_word=$2 5147set dummy ${ac_tool_prefix}strip; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405echo "configure:2406: checking for $ac_word" >&5
2406if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 5150if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 5151 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 5152else
2409 if test -n "$STRIP"; then 5153 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 5155else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 5157for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 5158do
5159 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 5160 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 5165 break 2
2419 fi 5166 fi
2420 done 5167done
2421 IFS="$ac_save_ifs" 5168done
5169
2422fi 5170fi
2423fi 5171fi
2424STRIP="$ac_cv_prog_STRIP" 5172STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 5173if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 5174 echo "$as_me:$LINENO: result: $STRIP" >&5
5175echo "${ECHO_T}$STRIP" >&6
2427else 5176else
2428 echo "$ac_t""no" 1>&6 5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
2429fi 5179fi
2430 5180
2431 5181fi
2432if test -z "$ac_cv_prog_STRIP"; then 5182if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 5183 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 5184 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 5185set dummy strip; ac_word=$2
5186echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437echo "configure:2438: checking for $ac_word" >&5
2438if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 5188if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 5189 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 5190else
2441 if test -n "$STRIP"; then 5191 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 5193else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 5195for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 5196do
5197 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 5198 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 5201 ac_cv_prog_ac_ct_STRIP="strip"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 5203 break 2
2451 fi 5204 fi
2452 done 5205done
2453 IFS="$ac_save_ifs" 5206done
5207
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5208 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5209fi
2456fi 5210fi
5211ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5212if test -n "$ac_ct_STRIP"; then
5213 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5214echo "${ECHO_T}$ac_ct_STRIP" >&6
5215else
5216 echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218fi
5219
5220 STRIP=$ac_ct_STRIP
5221else
2457STRIP="$ac_cv_prog_STRIP" 5222 STRIP="$ac_cv_prog_STRIP"
2458if test -n "$STRIP"; then
2459 echo "$ac_t""$STRIP" 1>&6
2460else
2461 echo "$ac_t""no" 1>&6
2462fi
2463
2464else
2465 STRIP=":"
2466fi
2467fi 5223fi
2468 5224
2469 5225
2470enable_dlopen=no 5226enable_dlopen=no
2471enable_win32_dll=no 5227enable_win32_dll=no
2472 5228
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5229# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5230if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5231 enableval="$enable_libtool_lock"
2476 : 5232
2477fi 5233fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5234test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5235
2481# Some flags need to be propagated to the compiler or linker for good 5236# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5237# libtool support.
2483case "$host" in 5238case "$host" in
2484*-*-irix6*) 5239*-*-irix6*)
2485 # Find out which ABI we are using. 5240 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5241 echo '#line 5241 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243 (eval $ac_compile) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5247 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5248 *32-bit*)
2490 LD="${LD-ld} -32" 5249 LD="${LD-ld} -32"
2491 ;; 5250 ;;
2492 *N32*) 5251 *N32*)
2502 5261
2503*-*-sco3.2v5*) 5262*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5263 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5264 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5265 CFLAGS="$CFLAGS -belf"
5266 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2507 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 5267echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2508echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 5268if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5269 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5270else
2512 5271
5272
2513 ac_ext=c 5273 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5274ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5277ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5278
2520 cat > conftest.$ac_ext <<EOF 5279 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5280/* confdefs.h. */
2522#include "confdefs.h" 5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
2523 5285
2524int main() { 5286int
5287main ()
5288{
2525 5289
5290 ;
2526; return 0; } 5291 return 0;
2527EOF 5292}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5293_ACEOF
5294rm -f conftest.$ac_objext conftest$ac_exeext
5295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5315 lt_cv_cc_needs_belf=yes
2531else 5316else
2532 echo "configure: failed program was:" >&5 5317 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5318sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5319
2535 lt_cv_cc_needs_belf=no 5320lt_cv_cc_needs_belf=no
2536fi 5321fi
2537rm -f conftest* 5322rm -f conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5324 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5325ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5329
2545fi 5330fi
2546 5331echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5332echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5335 CFLAGS="$SAVE_CFLAGS"
2551 fi 5336 fi
2552 ;; 5337 ;;
2637set dummy $CC 5422set dummy $CC
2638compiler="$2" 5423compiler="$2"
2639 5424
2640## FIXME: this should be a separate macro 5425## FIXME: this should be a separate macro
2641## 5426##
5427echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5428echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5429rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5430mkdir .libs 2>/dev/null
2646if test -d .libs; then 5431if test -d .libs; then
2647 objdir=.libs 5432 objdir=.libs
2648else 5433else
2649 # MS-DOS does not allow filenames that begin with a dot. 5434 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5435 objdir=_libs
2651fi 5436fi
2652rmdir .libs 2>/dev/null 5437rmdir .libs 2>/dev/null
5438echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5439echo "${ECHO_T}$objdir" >&6
2654## 5440##
2655## END FIXME 5441## END FIXME
2656 5442
2657 5443
2658## FIXME: this should be a separate macro 5444## FIXME: this should be a separate macro
2659## 5445##
5446
2660# Check whether --with-pic or --without-pic was given. 5447# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5448if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5449 withval="$with_pic"
2663 pic_mode="$withval" 5450 pic_mode="$withval"
2664else 5451else
2665 pic_mode=default 5452 pic_mode=default
2666fi 5453fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5454test -z "$pic_mode" && pic_mode=default
2669 5455
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5456# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671# in isolation, and that seeing it set (from the cache) indicates that 5457# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5458# the associated values are set (in the cache) correctly too.
5459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
2673echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 5460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
2674echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 5461if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5462 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5463else
2678 lt_cv_prog_cc_pic= 5464 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5465 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5466 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5467 lt_cv_prog_cc_static=
2804 fi 5590 fi
2805 5591
2806fi 5592fi
2807 5593
2808if test -z "$lt_cv_prog_cc_pic"; then 5594if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5595 echo "$as_me:$LINENO: result: none" >&5
5596echo "${ECHO_T}none" >&6
2810else 5597else
5598 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5599echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5600
2813 # Check to make sure the pic_flag actually works. 5601 # Check to make sure the pic_flag actually works.
5602 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2814 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 5603echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
2815echo "configure:2816: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2816 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 5604 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5605 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5606else
2819 save_CFLAGS="$CFLAGS" 5607 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5608 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5609 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5610/* confdefs.h. */
2823#include "confdefs.h" 5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
2824 5615
2825int main() { 5616int
5617main ()
5618{
2826 5619
5620 ;
2827; return 0; } 5621 return 0;
2828EOF 5622}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
2831 case "$host_os" in 5645 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5646 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5647 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2834 # they create non-PIC objects. So, if there were any warnings, we 5648 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5649 # assume that PIC is not supported.
2841 ;; 5655 ;;
2842 *) 5656 *)
2843 lt_cv_prog_cc_pic_works=yes 5657 lt_cv_prog_cc_pic_works=yes
2844 ;; 5658 ;;
2845 esac 5659 esac
2846 5660
2847else 5661else
2848 echo "configure: failed program was:" >&5 5662 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5663sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5664
2851 lt_cv_prog_cc_pic_works=no 5665 lt_cv_prog_cc_pic_works=no
2852 5666
2853fi 5667fi
2854rm -f conftest* 5668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5669 CFLAGS="$save_CFLAGS"
2856 5670
2857fi 5671fi
2858 5672
2859 5673
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5674 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5675 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5676 lt_cv_prog_cc_can_build_shared=no
2863 else 5677 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5678 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5679 fi
2866 5680
5681 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5682echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5683fi
2869## 5684##
2870## END FIXME 5685## END FIXME
2871 5686
2872# Check for any special shared library compilation flags. 5687# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5688if test -n "$lt_cv_prog_cc_shlib"; then
5689 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
2874 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 5690echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
2875 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5691 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5692 else
5693 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
2877 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 5694echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
2878 lt_cv_prog_cc_can_build_shared=no 5695 lt_cv_prog_cc_can_build_shared=no
2879 fi 5696 fi
2880fi 5697fi
2881 5698
2882## FIXME: this should be a separate macro 5699## FIXME: this should be a separate macro
2883## 5700##
5701echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2884echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 5702echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
2885echo "configure:2886: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2886if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 5703if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5704 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5705else
2889 lt_cv_prog_cc_static_works=no 5706 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5707 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5708 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5709 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5710/* confdefs.h. */
2894#include "confdefs.h" 5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
2895 5715
2896int main() { 5716int
5717main ()
5718{
2897 5719
5720 ;
2898; return 0; } 5721 return 0;
2899EOF 5722}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5723_ACEOF
5724rm -f conftest.$ac_objext conftest$ac_exeext
5725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest$ac_exeext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5745 lt_cv_prog_cc_static_works=yes
2903else 5746else
2904 echo "configure: failed program was:" >&5 5747 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5748sed 's/^/| /' conftest.$ac_ext >&5
5749
2906fi 5750fi
2907rm -f conftest* 5751rm -f conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5753 LDFLAGS="$save_LDFLAGS"
2909 5754
2910fi 5755fi
2911 5756
2912 5757
2913# Belt *and* braces to stop my trousers falling down: 5758# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5759test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5760echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5761echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5762
2917pic_flag="$lt_cv_prog_cc_pic" 5763pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5764special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5765wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5766link_static_flag="$lt_cv_prog_cc_static"
2925 5771
2926 5772
2927## FIXME: this should be a separate macro 5773## FIXME: this should be a separate macro
2928## 5774##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5775# Check to see if options -o and -c are simultaneously supported by compiler
5776echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
2930echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 5777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
2931echo "configure:2932: checking if $compiler supports -c -o file.$ac_objext" >&5
2932$rm -r conftest 2>/dev/null 5778$rm -r conftest 2>/dev/null
2933mkdir conftest 5779mkdir conftest
2934cd conftest 5780cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5781echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5782mkdir out
2941# builds. 5787# builds.
2942chmod -w . 5788chmod -w .
2943save_CFLAGS="$CFLAGS" 5789save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5790CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5791compiler_c_o=no
2946if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5792if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2947 # The compiler can only warn and ignore the option if not recognized 5793 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5794 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5795 if test -s out/conftest.err; then
2950 compiler_c_o=no 5796 compiler_c_o=no
2951 else 5797 else
2954else 5800else
2955 # Append any errors to the config.log. 5801 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5802 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5803 compiler_c_o=no
2958fi 5804fi
5805echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5806echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5807CFLAGS="$save_CFLAGS"
2961chmod u+w . 5808chmod u+w .
2962$rm conftest* out/* 5809$rm conftest* out/*
2963rmdir out 5810rmdir out
2964cd .. 5811cd ..
2965rmdir conftest 5812rmdir conftest
2966$rm -r conftest 2>/dev/null 5813$rm -r conftest 2>/dev/null
2967 5814
2968if test x"$compiler_c_o" = x"yes"; then 5815if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5816 # Check to see if we can write to a .lo
5817 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
2970 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 5818echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
2971echo "configure:2972: checking if $compiler supports -c -o file.lo" >&5
2972 compiler_o_lo=no 5819 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5820 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5821 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5822 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5823/* confdefs.h. */
2977#include "confdefs.h" 5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
2978 5828
2979int main() { 5829int
5830main ()
5831{
2980int some_variable = 0; 5832int some_variable = 0;
5833 ;
2981; return 0; } 5834 return 0;
2982EOF 5835}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5836_ACEOF
5837rm -f conftest.$ac_objext
5838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5858 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5859 # So say no if there are warnings
2987 if test -s conftest.err; then 5860 if test -s conftest.err; then
2988 compiler_o_lo=no 5861 compiler_o_lo=no
2989 else 5862 else
2990 compiler_o_lo=yes 5863 compiler_o_lo=yes
2991 fi 5864 fi
2992 5865
2993else 5866else
2994 echo "configure: failed program was:" >&5 5867 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5868sed 's/^/| /' conftest.$ac_ext >&5
5869
2996fi 5870fi
2997rm -f conftest* 5871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5873echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5874 CFLAGS="$save_CFLAGS"
3000else 5875else
3001 compiler_o_lo=no 5876 compiler_o_lo=no
3002fi 5877fi
3003## 5878##
3007## 5882##
3008# Check to see if we can do hard links to lock some files if needed 5883# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5884hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5885if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5886 # do not overwrite the value of need_locks provided by the user
5887 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
3012 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 5888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3013echo "configure:3014: checking if we can lock with hard links" >&5
3014 hard_links=yes 5889 hard_links=yes
3015 $rm conftest* 5890 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5892 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5893 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5895 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5896echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5897 if test "$hard_links" = no; then
5898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3022 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 5899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5900 need_locks=warn
3024 fi 5901 fi
3025else 5902else
3026 need_locks=no 5903 need_locks=no
3027fi 5904fi
3030 5907
3031## FIXME: this should be a separate macro 5908## FIXME: this should be a separate macro
3032## 5909##
3033if test "$GCC" = yes; then 5910if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5911 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5912 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3035 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 5913echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3036echo "configure:3037: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3037 echo "int some_variable = 0;" > conftest.$ac_ext 5914 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5915 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5916 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5917 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5918 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5919/* confdefs.h. */
3043#include "confdefs.h" 5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
3044 5924
3045int main() { 5925int
5926main ()
5927{
3046int some_variable = 0; 5928int some_variable = 0;
5929 ;
3047; return 0; } 5930 return 0;
3048EOF 5931}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5954 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5955 # So say no if there are warnings
3053 if test -s conftest.err; then 5956 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5957 compiler_rtti_exceptions=no
3055 else 5958 else
3056 compiler_rtti_exceptions=yes 5959 compiler_rtti_exceptions=yes
3057 fi 5960 fi
3058 5961
3059else 5962else
3060 echo "configure: failed program was:" >&5 5963 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5964sed 's/^/| /' conftest.$ac_ext >&5
5965
3062fi 5966fi
3063rm -f conftest* 5967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5968 CFLAGS="$save_CFLAGS"
5969 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5970echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5971
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5972 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5973 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5974 else
3070 no_builtin_flag=' -fno-builtin' 5975 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5979## END FIXME
3075 5980
3076## FIXME: this should be a separate macro 5981## FIXME: this should be a separate macro
3077## 5982##
3078# See if the linker supports building shared libraries. 5983# See if the linker supports building shared libraries.
5984echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
3079echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 5985echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3080echo "configure:3081: checking whether the linker ($LD) supports shared libraries" >&5
3081 5986
3082allow_undefined_flag= 5987allow_undefined_flag=
3083no_undefined_flag= 5988no_undefined_flag=
3084need_lib_prefix=unknown 5989need_lib_prefix=unknown
3085need_version=unknown 5990need_version=unknown
3632 *) 6537 *)
3633 ld_shlibs=no 6538 ld_shlibs=no
3634 ;; 6539 ;;
3635 esac 6540 esac
3636fi 6541fi
6542echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6543echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6544test "$ld_shlibs" = no && can_build_shared=no
3639## 6545##
3640## END FIXME 6546## END FIXME
3641 6547
3642## FIXME: this should be a separate macro 6548## FIXME: this should be a separate macro
3643## 6549##
3644# Check hardcoding attributes. 6550# Check hardcoding attributes.
6551echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
3645echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 6552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
3646echo "configure:3647: checking how to hardcode library paths into programs" >&5
3647hardcode_action= 6553hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6554if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6555 test -n "$runpath_var"; then
3650 6556
3651 # We can hardcode non-existant directories. 6557 # We can hardcode non-existant directories.
3664else 6570else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6571 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6572 # directories.
3667 hardcode_action=unsupported 6573 hardcode_action=unsupported
3668fi 6574fi
6575echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6576echo "${ECHO_T}$hardcode_action" >&6
3670## 6577##
3671## END FIXME 6578## END FIXME
3672 6579
3673## FIXME: this should be a separate macro 6580## FIXME: this should be a separate macro
3674## 6581##
3675striplib= 6582striplib=
3676old_striplib= 6583old_striplib=
6584echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6585echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
3678echo "configure:3679: checking whether stripping libraries is possible" >&5
3679if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6586if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6587 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6588 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6589 echo "$as_me:$LINENO: result: yes" >&5
6590echo "${ECHO_T}yes" >&6
3683else 6591else
3684 echo "$ac_t""no" 1>&6 6592 echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6
3685fi 6594fi
3686## 6595##
3687## END FIXME 6596## END FIXME
3688 6597
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6598reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6599test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6600
3692## FIXME: this should be a separate macro 6601## FIXME: this should be a separate macro
3693## 6602##
3694# PORTME Fill in your ld.so characteristics 6603# PORTME Fill in your ld.so characteristics
6604echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6605echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6606library_names_spec=
3698libname_spec='lib$name' 6607libname_spec='lib$name'
3699soname_spec= 6608soname_spec=
3700postinstall_cmds= 6609postinstall_cmds=
3701postuninstall_cmds= 6610postuninstall_cmds=
4017 6926
4018*) 6927*)
4019 dynamic_linker=no 6928 dynamic_linker=no
4020 ;; 6929 ;;
4021esac 6930esac
6931echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6932echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6933test "$dynamic_linker" = no && can_build_shared=no
4024## 6934##
4025## END FIXME 6935## END FIXME
4026 6936
4027## FIXME: this should be a separate macro 6937## FIXME: this should be a separate macro
4028## 6938##
4029# Report the final consequences. 6939# Report the final consequences.
6940echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6941echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6942echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6943echo "${ECHO_T}$can_build_shared" >&6
4033## 6944##
4034## END FIXME 6945## END FIXME
4035 6946
4036if test "$hardcode_action" = relink; then 6947if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6948 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6977 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6978 lt_cv_dlopen_libs=
4068 ;; 6979 ;;
4069 6980
4070 *) 6981 *)
6982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6984if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4073ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6 6985 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6986else
4077 ac_save_LIBS="$LIBS" 6987 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6988LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6989cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6990/* confdefs.h. */
4081#include "confdefs.h" 6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995
4082/* Override any gcc2 internal prototype to avoid an error. */ 6996/* Override any gcc2 internal prototype to avoid an error. */
6997#ifdef __cplusplus
6998extern "C"
6999#endif
4083/* We use char because int might match the return type of a gcc2 7000/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 7001 builtin and then its argument prototype would still apply. */
4085char dlopen(); 7002char dlopen ();
4086 7003int
4087int main() { 7004main ()
7005{
4088dlopen() 7006dlopen ();
7007 ;
4089; return 0; } 7008 return 0;
4090EOF 7009}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7010_ACEOF
7011rm -f conftest.$ac_objext conftest$ac_exeext
7012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 7016 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_lib_dl_dlopen=yes
4094else 7033else
4095 echo "configure: failed program was:" >&5 7034 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 7035sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 7036
4098 eval "ac_cv_lib_$ac_lib_var=no" 7037ac_cv_lib_dl_dlopen=no
4099fi 7038fi
4100rm -f conftest* 7039rm -f conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 7041LIBS=$ac_check_lib_save_LIBS
4102
4103fi 7042fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7043echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 7044echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7045if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 7047else
4108 echo "$ac_t""no" 1>&6 7048 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 7049echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
4110echo "configure:4111: checking for dlopen" >&5
4111if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 7050if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 7051 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 7052else
4114 cat > conftest.$ac_ext <<EOF 7053 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 7054/* confdefs.h. */
4116#include "confdefs.h" 7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7061#define dlopen innocuous_dlopen
7062
4117/* System header to define __stub macros and hopefully few prototypes, 7063/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 7064 which can conflict with char dlopen (); below.
7065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 <limits.h> exists even on freestanding compilers. */
7067
7068#ifdef __STDC__
7069# include <limits.h>
7070#else
4119#include <assert.h> 7071# include <assert.h>
7072#endif
7073
7074#undef dlopen
7075
4120/* Override any gcc2 internal prototype to avoid an error. */ 7076/* Override any gcc2 internal prototype to avoid an error. */
7077#ifdef __cplusplus
7078extern "C"
7079{
7080#endif
4121/* We use char because int might match the return type of a gcc2 7081/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 7082 builtin and then its argument prototype would still apply. */
4123char dlopen(); 7083char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 7084/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 7085 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 7086 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 7087#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 7088choke me
4132#else 7089#else
4133dlopen(); 7090char (*f) () = dlopen;
4134#endif 7091#endif
7092#ifdef __cplusplus
7093}
7094#endif
4135 7095
7096int
7097main ()
7098{
7099return f != dlopen;
7100 ;
4136; return 0; } 7101 return 0;
4137EOF 7102}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7103_ACEOF
7104rm -f conftest.$ac_objext conftest$ac_exeext
7105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 7125 ac_cv_func_dlopen=yes
4141else 7126else
4142 echo "configure: failed program was:" >&5 7127 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 7128sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 7129
4145 eval "ac_cv_func_dlopen=no" 7130ac_cv_func_dlopen=no
4146fi 7131fi
4147rm -f conftest* 7132rm -f conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
4148fi 7134fi
4149 7135echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7136echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 7137if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 7138 lt_cv_dlopen="dlopen"
4153else 7139else
4154 echo "$ac_t""no" 1>&6 7140 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 7141echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
4156echo "configure:4157: checking for shl_load" >&5
4157if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 7142if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 7143 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 7144else
4160 cat > conftest.$ac_ext <<EOF 7145 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 7146/* confdefs.h. */
4162#include "confdefs.h" 7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7153#define shl_load innocuous_shl_load
7154
4163/* System header to define __stub macros and hopefully few prototypes, 7155/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 7156 which can conflict with char shl_load (); below.
7157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7158 <limits.h> exists even on freestanding compilers. */
7159
7160#ifdef __STDC__
7161# include <limits.h>
7162#else
4165#include <assert.h> 7163# include <assert.h>
7164#endif
7165
7166#undef shl_load
7167
4166/* Override any gcc2 internal prototype to avoid an error. */ 7168/* Override any gcc2 internal prototype to avoid an error. */
7169#ifdef __cplusplus
7170extern "C"
7171{
7172#endif
4167/* We use char because int might match the return type of a gcc2 7173/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 7174 builtin and then its argument prototype would still apply. */
4169char shl_load(); 7175char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 7176/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 7177 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 7178 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 7179#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 7180choke me
4178#else 7181#else
4179shl_load(); 7182char (*f) () = shl_load;
4180#endif 7183#endif
7184#ifdef __cplusplus
7185}
7186#endif
4181 7187
7188int
7189main ()
7190{
7191return f != shl_load;
7192 ;
4182; return 0; } 7193 return 0;
4183EOF 7194}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7195_ACEOF
7196rm -f conftest.$ac_objext conftest$ac_exeext
7197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest$ac_exeext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7217 ac_cv_func_shl_load=yes
4187else 7218else
4188 echo "configure: failed program was:" >&5 7219 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7220sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7221
4191 eval "ac_cv_func_shl_load=no" 7222ac_cv_func_shl_load=no
4192fi 7223fi
4193rm -f conftest* 7224rm -f conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
4194fi 7226fi
4195 7227echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7228echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7229if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7230 lt_cv_dlopen="shl_load"
4199else 7231else
4200 echo "$ac_t""no" 1>&6 7232 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7233echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7234if test "${ac_cv_lib_svld_dlopen+set}" = set; then
4203ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6 7235 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7236else
4207 ac_save_LIBS="$LIBS" 7237 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7238LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7239cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7240/* confdefs.h. */
4211#include "confdefs.h" 7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h. */
7245
4212/* Override any gcc2 internal prototype to avoid an error. */ 7246/* Override any gcc2 internal prototype to avoid an error. */
7247#ifdef __cplusplus
7248extern "C"
7249#endif
4213/* We use char because int might match the return type of a gcc2 7250/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7251 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7252char dlopen ();
4216 7253int
4217int main() { 7254main ()
7255{
4218dlopen() 7256dlopen ();
7257 ;
4219; return 0; } 7258 return 0;
4220EOF 7259}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7260_ACEOF
7261rm -f conftest.$ac_objext conftest$ac_exeext
7262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7266 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_svld_dlopen=yes
4224else 7283else
4225 echo "configure: failed program was:" >&5 7284 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7285sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7286
4228 eval "ac_cv_lib_$ac_lib_var=no" 7287ac_cv_lib_svld_dlopen=no
4229fi 7288fi
4230rm -f conftest* 7289rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7291LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7292fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7293echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7294echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7295if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7297else
4238 echo "$ac_t""no" 1>&6 7298 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7299echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7300if test "${ac_cv_lib_dld_shl_load+set}" = set; then
4241ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6 7301 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7302else
4245 ac_save_LIBS="$LIBS" 7303 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7304LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7305cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7306/* confdefs.h. */
4249#include "confdefs.h" 7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311
4250/* Override any gcc2 internal prototype to avoid an error. */ 7312/* Override any gcc2 internal prototype to avoid an error. */
7313#ifdef __cplusplus
7314extern "C"
7315#endif
4251/* We use char because int might match the return type of a gcc2 7316/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7317 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7318char shl_load ();
4254 7319int
4255int main() { 7320main ()
7321{
4256shl_load() 7322shl_load ();
7323 ;
4257; return 0; } 7324 return 0;
4258EOF 7325}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7326_ACEOF
7327rm -f conftest.$ac_objext conftest$ac_exeext
7328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329 (eval $ac_link) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7332 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_lib_dld_shl_load=yes
4262else 7349else
4263 echo "configure: failed program was:" >&5 7350 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7351sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7352
4266 eval "ac_cv_lib_$ac_lib_var=no" 7353ac_cv_lib_dld_shl_load=no
4267fi 7354fi
4268rm -f conftest* 7355rm -f conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7357LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7358fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7360echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7361if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7363fi
4278 7364
4279
4280fi
4281 7365
4282
4283fi 7366fi
4284 7367
4285
4286fi
4287 7368
4288 7369fi
7370
7371
7372fi
7373
7374
4289fi 7375fi
4290 7376
4291 ;; 7377 ;;
4292 esac 7378 esac
4293 7379
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7392 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7393
4308 save_LIBS="$LIBS" 7394 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7395 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7396
7397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
4311 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 7398echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
4312echo "configure:4313: checking whether a program can dlopen itself" >&5
4313if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 7399if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7400 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7401else
4316 if test "$cross_compiling" = yes; then : 7402 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7403 lt_cv_dlopen_self=cross
4318else 7404else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7406 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7407 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7408#line 7408 "configure"
4323#include "confdefs.h" 7409#include "confdefs.h"
4324 7410
4325#if HAVE_DLFCN_H 7411#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7412#include <dlfcn.h>
4327#endif 7413#endif
4378 } 7464 }
4379 7465
4380 exit (status); 7466 exit (status);
4381} 7467}
4382EOF 7468EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7474 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7475 lt_status=$?
4386 case x$lt_status in 7476 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7483 lt_cv_dlopen_self=no
4394 fi 7484 fi
4395fi 7485fi
4396rm -fr conftest* 7486rm -fr conftest*
4397 7487
4398
4399fi
4400 7488
7489fi
7490echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7491echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7492
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7493 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7494 LDFLAGS="$LDFLAGS $link_static_flag"
7495 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
4405 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 7496echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
4406echo "configure:4407: checking whether a statically linked program can dlopen itself" >&5
4407if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 7497if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7498 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7499else
4410 if test "$cross_compiling" = yes; then : 7500 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7501 lt_cv_dlopen_self_static=cross
4412else 7502else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7504 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7505 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7506#line 7506 "configure"
4417#include "confdefs.h" 7507#include "confdefs.h"
4418 7508
4419#if HAVE_DLFCN_H 7509#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7510#include <dlfcn.h>
4421#endif 7511#endif
4472 } 7562 }
4473 7563
4474 exit (status); 7564 exit (status);
4475} 7565}
4476EOF 7566EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7572 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7573 lt_status=$?
4480 case x$lt_status in 7574 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7581 lt_cv_dlopen_self_static=no
4488 fi 7582 fi
4489fi 7583fi
4490rm -fr conftest* 7584rm -fr conftest*
4491 7585
4492
4493fi
4494 7586
7587fi
7588echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7589echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7590 fi
4497 7591
4498 CPPFLAGS="$save_CPPFLAGS" 7592 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7593 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7594 LIBS="$save_LIBS"
4522 ;; 7616 ;;
4523 '$CC '*) 7617 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7618 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7620 # to ld, don't add -lc before -lgcc.
7621 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
4527 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 7622echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
4528echo "configure:4529: checking whether -lc should be explicitly linked in" >&5
4529 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 7623 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7624 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7625else
4532 $rm conftest* 7626 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7627 echo 'static int dummy;' > conftest.$ac_ext
4534 7628
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; then
4536 soname=conftest 7634 soname=conftest
4537 lib=conftest 7635 lib=conftest
4538 libobjs=conftest.$ac_objext 7636 libobjs=conftest.$ac_objext
4539 deplibs= 7637 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7638 wl=$lt_cv_prog_cc_wl
4543 verstring= 7641 verstring=
4544 output_objdir=. 7642 output_objdir=.
4545 libname=conftest 7643 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7644 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7645 allow_undefined_flag=
4548 if { (eval echo configure:4549: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 7646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }
4549 then 7651 then
4550 lt_cv_archive_cmds_need_lc=no 7652 lt_cv_archive_cmds_need_lc=no
4551 else 7653 else
4552 lt_cv_archive_cmds_need_lc=yes 7654 lt_cv_archive_cmds_need_lc=yes
4553 fi 7655 fi
4555 else 7657 else
4556 cat conftest.err 1>&5 7658 cat conftest.err 1>&5
4557 fi 7659 fi
4558fi 7660fi
4559 7661
7662 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7663echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7664 ;;
4562 esac 7665 esac
4563fi 7666fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7667need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7668##
5130 8233
5131MALLOC_TYPE=S 8234MALLOC_TYPE=S
5132support_addstrings=no 8235support_addstrings=no
5133support_frills=no 8236support_frills=no
5134support_linespace=no 8237support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8238support_inheritpixmap=no
8239support_tinting=no
8240support_fading=no
5137support_keepscrolling=no 8241support_keepscrolling=no
5138support_selectionscrolling=no 8242support_selectionscrolling=no
5139support_menubar=no 8243support_menubar=no
5140support_mousewheel=no 8244support_mousewheel=no
5141support_mouseslipwheel=no 8245support_mouseslipwheel=no
5142support_oldselection=no
5143support_utmp=no 8246support_utmp=no
5144support_wtmp=no 8247support_wtmp=no
5145support_lastlog=no 8248support_lastlog=no
5146support_cursor_blink=no 8249support_cursor_blink=no
8250support_text_blink=no
5147support_pointer_blank=no 8251support_pointer_blank=no
5148support_scroll_rxvt=no 8252support_scroll_rxvt=no
5149support_scroll_next=no 8253support_scroll_next=no
5150support_scroll_xterm=no 8254support_scroll_xterm=no
8255support_scroll_plain=no
5151support_xim=no 8256support_xim=no
5152support_xpm=no 8257support_xpm=no
5153support_xft=no 8258support_xft=no
5154support_unicode3=no 8259support_unicode3=no
8260support_combining=no
8261support_8bitctrls=no
5155codesets= 8262codesets=
5156 8263
5157 8264
5158if test "x$enable_shared" = xyes; then 8265if test "x$enable_shared" = xyes; then
8266
5159 cat >> confdefs.h <<\EOF 8267cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8268#define LIBRXVT 1
5161EOF 8269_ACEOF
5162 8270
5163 INSTALL_LIBRXVT=yes 8271 INSTALL_LIBRXVT=yes
5164fi 8272fi
5165 8273
5166 8274
5169 enableval="$enable_everything" 8277 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8278 if test x$enableval = xyes; then
5171 support_24bit=yes 8279 support_24bit=yes
5172 support_frills=yes 8280 support_frills=yes
5173 support_linespace=yes 8281 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8282 support_inheritpixmap=yes
8283 support_tinting=yes
8284 support_fading=yes
5176 support_keepscrolling=yes 8285 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8286 support_selectionscrolling=yes
5178 support_lastlog=yes 8287 support_lastlog=yes
5179 support_menubar=yes 8288 support_menubar=yes
5180 support_mousewheel=yes 8289 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8290 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes 8291 support_cursor_blink=yes
8292 support_text_blink=yes
5184 support_pointer_blank=yes 8293 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8294 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8295 support_scroll_next=yes
5187 support_scroll_xterm=yes 8296 support_scroll_xterm=yes
8297 support_scroll_plain=yes
5188 support_utmp=yes 8298 support_utmp=yes
5189 support_wtmp=yes 8299 support_wtmp=yes
5190 support_xim=yes 8300 support_xim=yes
5191 support_xpm=yes 8301 support_xpm=yes
5192 support_xft=yes 8302 support_xft=yes
5193 support_unicode3=yes 8303 support_unicode3=yes
8304 support_combining=yes
8305 #support_8bitctrls=yes
5194 codesets=all 8306 codesets=all
5195 fi 8307 fi
5196fi 8308fi;
5197
5198
5199echo
5200if test x$support_inheritpixmap = xyes; then
5201 support_inheritpixmap=no
5202 echo "******* transparency support disabled, does not work"
5203fi
5204if test x$support_xpm = xyes; then
5205 support_xpm=no
5206 echo "******* pixmap support disabled, does not work"
5207fi
5208if test x$support_graphics = xyes; then
5209 support_graphics=no
5210 echo "******* graphics support disabled, does not work"
5211fi
5212if test x$support_menubar = xyes; then
5213 support_menubar=no
5214 echo "******* menubar support disabled, does not work"
5215fi
5216echo
5217 8309
5218# Check whether --enable-unicode3 or --disable-unicode3 was given. 8310# Check whether --enable-unicode3 or --disable-unicode3 was given.
5219if test "${enable_unicode3+set}" = set; then 8311if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3" 8312 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then 8313 if test x$enableval = xyes -o x$enableval = xno; then
5222 support_unicode3=yes 8314 support_unicode3=yes
5223 fi 8315 fi
5224fi 8316fi;
5225 8317
8318# Check whether --enable-combining or --disable-combining was given.
8319if test "${enable_combining+set}" = set; then
8320 enableval="$enable_combining"
8321 if test x$enableval = xyes -o x$enableval = xno; then
8322 support_combining=yes
8323 fi
8324fi;
5226 8325
5227# Check whether --enable-xft or --disable-xft was given. 8326# Check whether --enable-xft or --disable-xft was given.
5228if test "${enable_xft+set}" = set; then 8327if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft" 8328 enableval="$enable_xft"
5230 if test x$enableval = xyes; then 8329 if test x$enableval = xyes -o x$enableval = xno; then
5231 support_xft=yes 8330 support_xft=yes
5232 fi 8331 fi
5233fi 8332fi;
5234
5235
5236# Check whether --with-codesets or --without-codesets was given.
5237if test "${with_codesets+set}" = set; then
5238 withval="$with_codesets"
5239 if test x$enableval = xyes; then
5240 codesets="$withval"
5241 fi
5242fi
5243
5244
5245# Check whether --with-encoding or --without-encoding was given.
5246if test "${with_encoding+set}" = set; then
5247 withval="$with_encoding"
5248 if test x$enableval = xyes; then
5249 withval=`echo $withval | tr 'a-z' 'A-Z'`
5250 cat >> confdefs.h <<EOF
5251#define MULTICHAR_ENCODING $withval
5252EOF
5253
5254 fi
5255fi
5256
5257 8333
5258# Check whether --enable-utmp or --disable-utmp was given. 8334# Check whether --enable-utmp or --disable-utmp was given.
5259if test "${enable_utmp+set}" = set; then 8335if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp" 8336 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then 8337 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval 8338 support_utmp=$enableval
5263 fi 8339 fi
5264fi 8340fi;
5265
5266 8341
5267# Check whether --enable-wtmp or --disable-wtmp was given. 8342# Check whether --enable-wtmp or --disable-wtmp was given.
5268if test "${enable_wtmp+set}" = set; then 8343if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp" 8344 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then 8345 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval 8346 support_wtmp=$enableval
5272 fi 8347 fi
5273fi 8348fi;
5274
5275 8349
5276# Check whether --enable-lastlog or --disable-lastlog was given. 8350# Check whether --enable-lastlog or --disable-lastlog was given.
5277if test "${enable_lastlog+set}" = set; then 8351if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog" 8352 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then 8353 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval 8354 support_lastlog=$enableval
5281 fi 8355 fi
5282fi 8356fi;
5283
5284 8357
5285# Check whether --enable-xpm-background or --disable-xpm-background was given. 8358# Check whether --enable-xpm-background or --disable-xpm-background was given.
5286if test "${enable_xpm_background+set}" = set; then 8359if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background" 8360 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then 8361 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval 8362 support_xpm=$enableval
5290 fi 8363 fi
5291fi 8364fi;
5292
5293 8365
5294# Check whether --enable-transparency or --disable-transparency was given. 8366# Check whether --enable-transparency or --disable-transparency was given.
5295if test "${enable_transparency+set}" = set; then 8367if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency" 8368 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then 8369 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval 8370 support_inheritpixmap=$enableval
5299 fi 8371 fi
5300fi 8372fi;
5301 8373
8374# Check whether --enable-tinting or --disable-tinting was given.
8375if test "${enable_tinting+set}" = set; then
8376 enableval="$enable_tinting"
8377 if test x$enableval = xyes -o x$enableval = xno; then
8378 support_tinting=$enableval
8379 fi
8380fi;
8381
8382# Check whether --enable-fading or --disable-fading was given.
8383if test "${enable_fading+set}" = set; then
8384 enableval="$enable_fading"
8385 if test x$enableval = xyes -o x$enableval = xno; then
8386 support_fading=$enableval
8387 fi
8388fi;
5302 8389
5303# Check whether --enable-menubar or --disable-menubar was given. 8390# Check whether --enable-menubar or --disable-menubar was given.
5304if test "${enable_menubar+set}" = set; then 8391if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar" 8392 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then 8393 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval 8394 support_menubar=$enableval
5308 fi 8395 fi
5309fi 8396fi;
5310
5311
5312# Check whether --enable-graphics or --disable-graphics was given.
5313if test "${enable_graphics+set}" = set; then
5314 enableval="$enable_graphics"
5315 if test x$enableval = xyes -o x$enableval = xno; then
5316 support_graphics=$enableval
5317 fi
5318fi
5319
5320 8397
5321# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8398# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322if test "${enable_rxvt_scroll+set}" = set; then 8399if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll" 8400 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then 8401 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval 8402 support_scroll_rxvt=$enableval
5326 fi 8403 fi
5327fi 8404fi;
5328
5329 8405
5330# Check whether --enable-next-scroll or --disable-next-scroll was given. 8406# Check whether --enable-next-scroll or --disable-next-scroll was given.
5331if test "${enable_next_scroll+set}" = set; then 8407if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll" 8408 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then 8409 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval 8410 support_scroll_next=$enableval
5335 fi 8411 fi
5336fi 8412fi;
5337
5338 8413
5339# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8414# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340if test "${enable_xterm_scroll+set}" = set; then 8415if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll" 8416 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then 8417 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval 8418 support_scroll_xterm=$enableval
5344 fi 8419 fi
5345fi 8420fi;
5346 8421
8422# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8423if test "${enable_plain_scroll+set}" = set; then
8424 enableval="$enable_plain_scroll"
8425 if test x$enableval = xyes -o x$enableval = xno; then
8426 support_scroll_plain=$enableval
8427 fi
8428fi;
5347 8429
5348# Check whether --enable-half-shadow or --disable-half-shadow was given. 8430# Check whether --enable-half-shadow or --disable-half-shadow was given.
5349if test "${enable_half_shadow+set}" = set; then 8431if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow" 8432 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then 8433 if test x$enableval = xyes; then
8434
5352 cat >> confdefs.h <<\EOF 8435cat >>confdefs.h <<\_ACEOF
5353#define HALFSHADOW 1 8436#define HALFSHADOW 1
5354EOF 8437_ACEOF
5355 8438
5356 fi 8439 fi
5357fi 8440fi;
5358 8441
8442
8443# Check whether --with-codesets or --without-codesets was given.
8444if test "${with_codesets+set}" = set; then
8445 withval="$with_codesets"
8446 codesets="$withval"
8447fi;
5359 8448
5360# Check whether --enable-xim or --disable-xim was given. 8449# Check whether --enable-xim or --disable-xim was given.
5361if test "${enable_xim+set}" = set; then 8450if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim" 8451 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then 8452 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval 8453 support_xim=$enableval
5365 fi 8454 fi
5366fi 8455fi;
5367
5368
5369# Check whether --enable-greek or --disable-greek was given.
5370if test "${enable_greek+set}" = set; then
5371 enableval="$enable_greek"
5372 if test x$enableval = xyes; then
5373 cat >> confdefs.h <<\EOF
5374#define GREEK_SUPPORT 1
5375EOF
5376
5377 fi
5378fi
5379
5380 8456
5381# Check whether --enable-ttygid or --disable-ttygid was given. 8457# Check whether --enable-ttygid or --disable-ttygid was given.
5382if test "${enable_ttygid+set}" = set; then 8458if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid" 8459 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then 8460 if test x$enableval = xyes; then
8461
5385 cat >> confdefs.h <<\EOF 8462cat >>confdefs.h <<\_ACEOF
5386#define TTY_GID_SUPPORT 1 8463#define TTY_GID_SUPPORT 1
5387EOF 8464_ACEOF
5388 8465
5389 fi 8466 fi
5390fi 8467fi;
5391
5392 8468
5393# Check whether --enable-backspace-key or --disable-backspace-key was given. 8469# Check whether --enable-backspace-key or --disable-backspace-key was given.
5394if test "${enable_backspace_key+set}" = set; then 8470if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key" 8471 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then 8472 if test x$enableval = xno; then
8473
5397 cat >> confdefs.h <<\EOF 8474cat >>confdefs.h <<\_ACEOF
5398#define NO_BACKSPACE_KEY 1 8475#define NO_BACKSPACE_KEY 1
5399EOF 8476_ACEOF
5400 8477
5401 fi 8478 fi
5402fi 8479fi;
5403
5404 8480
5405# Check whether --enable-delete-key or --disable-delete-key was given. 8481# Check whether --enable-delete-key or --disable-delete-key was given.
5406if test "${enable_delete_key+set}" = set; then 8482if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key" 8483 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then 8484 if test x$enableval = xno; then
8485
5409 cat >> confdefs.h <<\EOF 8486cat >>confdefs.h <<\_ACEOF
5410#define NO_DELETE_KEY 1 8487#define NO_DELETE_KEY 1
5411EOF 8488_ACEOF
5412 8489
5413 fi 8490 fi
5414fi 8491fi;
5415
5416 8492
5417# Check whether --enable-resources or --disable-resources was given. 8493# Check whether --enable-resources or --disable-resources was given.
5418if test "${enable_resources+set}" = set; then 8494if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources" 8495 enableval="$enable_resources"
5420 if test x$enableval = xno; then 8496 if test x$enableval = xno; then
8497
5421 cat >> confdefs.h <<\EOF 8498cat >>confdefs.h <<\_ACEOF
5422#define NO_RESOURCES 1 8499#define NO_RESOURCES 1
5423EOF 8500_ACEOF
5424 8501
5425 fi 8502 fi
5426fi 8503fi;
5427
5428 8504
5429# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8505# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430if test "${enable_xgetdefault+set}" = set; then 8506if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault" 8507 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then 8508 if test x$enableval = xyes; then
8509
5433 cat >> confdefs.h <<\EOF 8510cat >>confdefs.h <<\_ACEOF
5434#define USE_XGETDEFAULT 1 8511#define USE_XGETDEFAULT 1
5435EOF 8512_ACEOF
5436 8513
5437 fi 8514 fi
5438fi 8515fi;
8516
8517# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8518if test "${enable_8bitctrls+set}" = set; then
8519 enableval="$enable_8bitctrls"
8520 if test x$enableval = xyes -o x$enableval = xno; then
8521 support_8bitctrls=yes
8522 fi
8523fi;
8524
8525RESFALLBACK=Rxvt
8526# Check whether --enable-fallback or --disable-fallback was given.
8527if test "${enable_fallback+set}" = set; then
8528 enableval="$enable_fallback"
8529
8530 test x$enableval = xyes && enableval=Rxvt
8531 test x$enableval = xno && enableval=
8532 RESFALLBACK="$enableval"
8533
8534fi;
8535
8536if test x$RESFALLBACK != x; then
8537
8538cat >>confdefs.h <<_ACEOF
8539#define RESFALLBACK "$RESFALLBACK"
8540_ACEOF
8541
8542fi
8543
8544RESNAME=urxvt
8545
8546# Check whether --with-res-name or --without-res-name was given.
8547if test "${with_res_name+set}" = set; then
8548 withval="$with_res_name"
8549 RESNAME="$withval"
8550fi;
8551
8552cat >>confdefs.h <<_ACEOF
8553#define RESNAME "$RESNAME"
8554_ACEOF
8555
8556
8557RESCLASS=URxvt
8558
8559# Check whether --with-res-class or --without-res-class was given.
8560if test "${with_res_class+set}" = set; then
8561 withval="$with_res_class"
8562 RESCLASS="$withval"
8563fi;
8564
8565cat >>confdefs.h <<_ACEOF
8566#define RESCLASS "$RESCLASS"
8567_ACEOF
8568
8569
8570RXVTNAME=urxvt
8571
8572# Check whether --with-name or --without-name was given.
8573if test "${with_name+set}" = set; then
8574 withval="$with_name"
8575 RXVTNAME="$withval"
8576fi;
8577
8578RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5439 8579
5440 8580
5441# Check whether --enable-strings or --disable-strings was given. 8581# Check whether --enable-strings or --disable-strings was given.
5442if test "${enable_strings+set}" = set; then 8582if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings" 8583 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then 8584 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval 8585 support_addstrings=$enableval
5446 fi 8586 fi
5447fi 8587fi;
5448
5449 8588
5450# Check whether --enable-swapscreen or --disable-swapscreen was given. 8589# Check whether --enable-swapscreen or --disable-swapscreen was given.
5451if test "${enable_swapscreen+set}" = set; then 8590if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen" 8591 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then 8592 if test x$enableval = xno; then
8593
5454 cat >> confdefs.h <<\EOF 8594cat >>confdefs.h <<\_ACEOF
5455#define NO_SECONDARY_SCREEN 1 8595#define NO_SECONDARY_SCREEN 1
5456EOF 8596_ACEOF
5457 8597
5458 fi 8598 fi
5459fi 8599fi;
5460
5461 8600
5462# Check whether --enable-frills or --disable-frills was given. 8601# Check whether --enable-frills or --disable-frills was given.
5463if test "${enable_frills+set}" = set; then 8602if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills" 8603 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then 8604 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval 8605 support_frills=$enableval
5467 fi 8606 fi
5468fi 8607fi;
5469
5470 8608
5471# Check whether --enable-linespace or --disable-linespace was given. 8609# Check whether --enable-linespace or --disable-linespace was given.
5472if test "${enable_linespace+set}" = set; then 8610if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace" 8611 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then 8612 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval 8613 support_linespace=$enableval
5476 fi 8614 fi
5477fi 8615fi;
5478
5479 8616
5480# Check whether --enable-24bit or --disable-24bit was given. 8617# Check whether --enable-24bit or --disable-24bit was given.
5481if test "${enable_24bit+set}" = set; then 8618if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit" 8619 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then 8620 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval 8621 support_24bit=$enableval
5485 fi 8622 fi
5486fi 8623fi;
5487
5488 8624
5489# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8625# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490if test "${enable_keepscrolling+set}" = set; then 8626if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling" 8627 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then 8628 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval 8629 support_keepscrolling=$enableval
5494 fi 8630 fi
5495fi 8631fi;
5496
5497 8632
5498# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8633# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499if test "${enable_selectionscrolling+set}" = set; then 8634if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling" 8635 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then 8636 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval 8637 support_selectionscrolling=$enableval
5503 fi 8638 fi
5504fi 8639fi;
5505
5506 8640
5507# Check whether --enable-mousewheel or --disable-mousewheel was given. 8641# Check whether --enable-mousewheel or --disable-mousewheel was given.
5508if test "${enable_mousewheel+set}" = set; then 8642if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel" 8643 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then 8644 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval 8645 support_mousewheel=$enableval
5512 fi 8646 fi
5513fi 8647fi;
5514
5515 8648
5516# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8649# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517if test "${enable_slipwheeling+set}" = set; then 8650if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling" 8651 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then 8652 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval 8653 support_mouseslipwheel=$enableval
5521 fi 8654 fi
5522fi 8655fi;
5523
5524
5525# Check whether --enable-old-selection or --disable-old-selection was given.
5526if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval
5530 fi
5531fi
5532
5533
5534# Check whether --enable-new-selection or --disable-new-selection was given.
5535if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then
5538 cat >> confdefs.h <<\EOF
5539#define NO_NEW_SELECTION 1
5540EOF
5541
5542 fi
5543fi
5544
5545 8656
5546# Check whether --enable-dmalloc or --disable-dmalloc was given. 8657# Check whether --enable-dmalloc or --disable-dmalloc was given.
5547if test "${enable_dmalloc+set}" = set; then 8658if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc" 8659 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then 8660 if test x$enableval = xyes; then
5550 MALLOC_TYPE=G 8661 MALLOC_TYPE=G
5551 DEBUG=-DDEBUG_MALLOC 8662 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc" 8663 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include 8664 DINCLUDE=-I/usr/local/include
5554 fi 8665 fi
5555fi 8666fi;
5556
5557 8667
5558# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8668# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559if test "${enable_dlmalloc+set}" = set; then 8669if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc" 8670 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then 8671 if test x$enableval = xyes; then
5562 MALLOC_TYPE=D 8672 MALLOC_TYPE=D
5563 DEBUG= 8673 DEBUG=
5564 DLIB="-L/usr/local/lib -ldlmalloc" 8674 DLIB="-L/usr/local/lib -ldlmalloc"
5565 DINCLUDE= 8675 DINCLUDE=
5566 fi 8676 fi
5567fi 8677fi;
5568
5569 8678
5570# Check whether --enable-smart-resize or --disable-smart-resize was given. 8679# Check whether --enable-smart-resize or --disable-smart-resize was given.
5571if test "${enable_smart_resize+set}" = set; then 8680if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize" 8681 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then 8682 if test x$enableval = xyes; then
8683
5574 cat >> confdefs.h <<\EOF 8684cat >>confdefs.h <<\_ACEOF
5575#define SMART_RESIZE 1 8685#define SMART_RESIZE 1
5576EOF 8686_ACEOF
5577 8687
5578 fi 8688 fi
5579fi 8689fi;
5580
5581 8690
5582# Check whether --enable-256-color or --disable-256-color was given. 8691# Check whether --enable-256-color or --disable-256-color was given.
5583if test "${enable_256_color+set}" = set; then 8692if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color" 8693 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then 8694 if test x$enableval = xyes; then
8695
5586 cat >> confdefs.h <<\EOF 8696cat >>confdefs.h <<\_ACEOF
5587#define TTY_256COLOR 1 8697#define TTY_256COLOR 1
5588EOF 8698_ACEOF
5589 8699
5590 fi 8700 fi
5591fi 8701fi;
5592
5593 8702
5594# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8703# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595if test "${enable_cursor_blink+set}" = set; then 8704if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink" 8705 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then 8706 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval 8707 support_cursor_blink=$enableval
5599 fi 8708 fi
5600fi 8709fi;
5601 8710
8711# Check whether --enable-text-blink or --disable-text-blink was given.
8712if test "${enable_text_blink+set}" = set; then
8713 enableval="$enable_text_blink"
8714 if test x$enableval = xyes -o x$enableval = xno; then
8715 support_text_blink=$enableval
8716 fi
8717fi;
5602 8718
5603# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8719# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604if test "${enable_pointer_blank+set}" = set; then 8720if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank" 8721 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then 8722 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval 8723 support_pointer_blank=$enableval
5608 fi 8724 fi
5609fi 8725fi;
5610 8726
5611 8727
5612# Check whether --with-term or --without-term was given. 8728# Check whether --with-term or --without-term was given.
5613if test "${with_term+set}" = set; then 8729if test "${with_term+set}" = set; then
5614 withval="$with_term" 8730 withval="$with_term"
5615 if test x$withval != x; then 8731 if test x$withval != x; then
8732
5616 cat >> confdefs.h <<EOF 8733cat >>confdefs.h <<_ACEOF
5617#define TERMENV "$withval" 8734#define TERMENV "$withval"
5618EOF 8735_ACEOF
5619 term="$withval" 8736 term="$withval"
5620 fi 8737 fi
5621fi 8738fi;
5622 8739
5623 8740
5624# Check whether --with-terminfo or --without-terminfo was given. 8741# Check whether --with-terminfo or --without-terminfo was given.
5625if test "${with_terminfo+set}" = set; then 8742if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo" 8743 withval="$with_terminfo"
5627 if test x$withval != x; then 8744 if test x$withval != x; then
8745
5628 cat >> confdefs.h <<EOF 8746cat >>confdefs.h <<_ACEOF
5629#define RXVT_TERMINFO "$withval" 8747#define RXVT_TERMINFO "$withval"
5630EOF 8748_ACEOF
5631 terminfo="$withval" 8749 terminfo="$withval"
5632 fi 8750 fi
5633fi 8751fi;
5634 8752
5635 8753
5636 8754
5637cat >> confdefs.h <<\EOF 8755cat >>confdefs.h <<\_ACEOF
5638#define PROTOTYPES 1 8756#define PROTOTYPES 1
5639EOF 8757_ACEOF
5640 8758
5641 8759
5642if test -z "$CFLAGS"; then 8760if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then 8761 if test -z "$CCOPTS"; then
5644 CCOPTS='-O' 8762 CCOPTS='-O'
5646 CFLAGS="$CCOPTS" 8764 CFLAGS="$CCOPTS"
5647fi 8765fi
5648 8766
5649# Extract the first word of "mv", so it can be a program name with args. 8767# Extract the first word of "mv", so it can be a program name with args.
5650set dummy mv; ac_word=$2 8768set dummy mv; ac_word=$2
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652echo "configure:5653: checking for $ac_word" >&5
5653if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 8771if test "${ac_cv_path_MV+set}" = set; then
5654 echo $ac_n "(cached) $ac_c" 1>&6 8772 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else 8773else
5656 case "$MV" in 8774 case $MV in
5657 /*) 8775 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8776 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5659 ;; 8777 ;;
5660 ?:/*)
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5662 ;;
5663 *) 8778 *)
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 ac_dummy="$PATH" 8780for as_dir in $PATH
5666 for ac_dir in $ac_dummy; do 8781do
8782 IFS=$as_save_IFS
5667 test -z "$ac_dir" && ac_dir=. 8783 test -z "$as_dir" && as_dir=.
5668 if test -f $ac_dir/$ac_word; then 8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_MV="$ac_dir/$ac_word" 8786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 8788 break 2
5671 fi 8789 fi
5672 done 8790done
5673 IFS="$ac_save_ifs" 8791done
8792
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8793 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5675 ;; 8794 ;;
5676esac 8795esac
5677fi 8796fi
5678MV="$ac_cv_path_MV" 8797MV=$ac_cv_path_MV
8798
5679if test -n "$MV"; then 8799if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6 8800 echo "$as_me:$LINENO: result: $MV" >&5
8801echo "${ECHO_T}$MV" >&6
5681else 8802else
5682 echo "$ac_t""no" 1>&6 8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
5683fi 8805fi
5684 8806
5685# Extract the first word of "rm", so it can be a program name with args. 8807# Extract the first word of "rm", so it can be a program name with args.
5686set dummy rm; ac_word=$2 8808set dummy rm; ac_word=$2
8809echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688echo "configure:5689: checking for $ac_word" >&5
5689if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 8811if test "${ac_cv_path_RM+set}" = set; then
5690 echo $ac_n "(cached) $ac_c" 1>&6 8812 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else 8813else
5692 case "$RM" in 8814 case $RM in
5693 /*) 8815 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8816 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5695 ;; 8817 ;;
5696 ?:/*)
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5698 ;;
5699 *) 8818 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 ac_dummy="$PATH" 8820for as_dir in $PATH
5702 for ac_dir in $ac_dummy; do 8821do
8822 IFS=$as_save_IFS
5703 test -z "$ac_dir" && ac_dir=. 8823 test -z "$as_dir" && as_dir=.
5704 if test -f $ac_dir/$ac_word; then 8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_RM="$ac_dir/$ac_word" 8826 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 8828 break 2
5707 fi 8829 fi
5708 done 8830done
5709 IFS="$ac_save_ifs" 8831done
8832
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8833 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5711 ;; 8834 ;;
5712esac 8835esac
5713fi 8836fi
5714RM="$ac_cv_path_RM" 8837RM=$ac_cv_path_RM
8838
5715if test -n "$RM"; then 8839if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6 8840 echo "$as_me:$LINENO: result: $RM" >&5
8841echo "${ECHO_T}$RM" >&6
5717else 8842else
5718 echo "$ac_t""no" 1>&6 8843 echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
5719fi 8845fi
5720 8846
5721# Extract the first word of "cp", so it can be a program name with args. 8847# Extract the first word of "cp", so it can be a program name with args.
5722set dummy cp; ac_word=$2 8848set dummy cp; ac_word=$2
8849echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724echo "configure:5725: checking for $ac_word" >&5
5725if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 8851if test "${ac_cv_path_CP+set}" = set; then
5726 echo $ac_n "(cached) $ac_c" 1>&6 8852 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else 8853else
5728 case "$CP" in 8854 case $CP in
5729 /*) 8855 [\\/]* | ?:[\\/]*)
5730 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5731 ;; 8857 ;;
5732 ?:/*)
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5734 ;;
5735 *) 8858 *)
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 ac_dummy="$PATH" 8860for as_dir in $PATH
5738 for ac_dir in $ac_dummy; do 8861do
8862 IFS=$as_save_IFS
5739 test -z "$ac_dir" && ac_dir=. 8863 test -z "$as_dir" && as_dir=.
5740 if test -f $ac_dir/$ac_word; then 8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_path_CP="$ac_dir/$ac_word" 8866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 8868 break 2
5743 fi 8869 fi
5744 done 8870done
5745 IFS="$ac_save_ifs" 8871done
8872
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8873 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5747 ;; 8874 ;;
5748esac 8875esac
5749fi 8876fi
5750CP="$ac_cv_path_CP" 8877CP=$ac_cv_path_CP
8878
5751if test -n "$CP"; then 8879if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6 8880 echo "$as_me:$LINENO: result: $CP" >&5
8881echo "${ECHO_T}$CP" >&6
5753else 8882else
5754 echo "$ac_t""no" 1>&6 8883 echo "$as_me:$LINENO: result: no" >&5
8884echo "${ECHO_T}no" >&6
5755fi 8885fi
5756 8886
5757# Extract the first word of "ln", so it can be a program name with args. 8887# Extract the first word of "ln", so it can be a program name with args.
5758set dummy ln; ac_word=$2 8888set dummy ln; ac_word=$2
8889echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5760echo "configure:5761: checking for $ac_word" >&5
5761if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 8891if test "${ac_cv_path_LN+set}" = set; then
5762 echo $ac_n "(cached) $ac_c" 1>&6 8892 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else 8893else
5764 case "$LN" in 8894 case $LN in
5765 /*) 8895 [\\/]* | ?:[\\/]*)
5766 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8896 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5767 ;; 8897 ;;
5768 ?:/*)
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5770 ;;
5771 *) 8898 *)
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 ac_dummy="$PATH" 8900for as_dir in $PATH
5774 for ac_dir in $ac_dummy; do 8901do
8902 IFS=$as_save_IFS
5775 test -z "$ac_dir" && ac_dir=. 8903 test -z "$as_dir" && as_dir=.
5776 if test -f $ac_dir/$ac_word; then 8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_path_LN="$ac_dir/$ac_word" 8906 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 8908 break 2
5779 fi 8909 fi
5780 done 8910done
5781 IFS="$ac_save_ifs" 8911done
8912
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8913 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5783 ;; 8914 ;;
5784esac 8915esac
5785fi 8916fi
5786LN="$ac_cv_path_LN" 8917LN=$ac_cv_path_LN
8918
5787if test -n "$LN"; then 8919if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6 8920 echo "$as_me:$LINENO: result: $LN" >&5
8921echo "${ECHO_T}$LN" >&6
5789else 8922else
5790 echo "$ac_t""no" 1>&6 8923 echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
5791fi 8925fi
5792 8926
5793# Extract the first word of "sed", so it can be a program name with args. 8927# Extract the first word of "sed", so it can be a program name with args.
5794set dummy sed; ac_word=$2 8928set dummy sed; ac_word=$2
8929echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796echo "configure:5797: checking for $ac_word" >&5
5797if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 8931if test "${ac_cv_path_SED+set}" = set; then
5798 echo $ac_n "(cached) $ac_c" 1>&6 8932 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else 8933else
5800 case "$SED" in 8934 case $SED in
5801 /*) 8935 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8936 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5803 ;; 8937 ;;
5804 ?:/*)
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5806 ;;
5807 *) 8938 *)
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 ac_dummy="$PATH" 8940for as_dir in $PATH
5810 for ac_dir in $ac_dummy; do 8941do
8942 IFS=$as_save_IFS
5811 test -z "$ac_dir" && ac_dir=. 8943 test -z "$as_dir" && as_dir=.
5812 if test -f $ac_dir/$ac_word; then 8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_path_SED="$ac_dir/$ac_word" 8946 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 8948 break 2
5815 fi 8949 fi
5816 done 8950done
5817 IFS="$ac_save_ifs" 8951done
8952
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8953 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5819 ;; 8954 ;;
5820esac 8955esac
5821fi 8956fi
5822SED="$ac_cv_path_SED" 8957SED=$ac_cv_path_SED
8958
5823if test -n "$SED"; then 8959if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6 8960 echo "$as_me:$LINENO: result: $SED" >&5
8961echo "${ECHO_T}$SED" >&6
5825else 8962else
5826 echo "$ac_t""no" 1>&6 8963 echo "$as_me:$LINENO: result: no" >&5
8964echo "${ECHO_T}no" >&6
5827fi 8965fi
5828 8966
5829# Extract the first word of "echo", so it can be a program name with args. 8967# Extract the first word of "echo", so it can be a program name with args.
5830set dummy echo; ac_word=$2 8968set dummy echo; ac_word=$2
8969echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832echo "configure:5833: checking for $ac_word" >&5
5833if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then 8971if test "${ac_cv_path_ECHO+set}" = set; then
5834 echo $ac_n "(cached) $ac_c" 1>&6 8972 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else 8973else
5836 case "$ECHO" in 8974 case $ECHO in
5837 /*) 8975 [\\/]* | ?:[\\/]*)
5838 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8976 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5839 ;; 8977 ;;
5840 ?:/*)
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5842 ;;
5843 *) 8978 *)
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 ac_dummy="$PATH" 8980for as_dir in $PATH
5846 for ac_dir in $ac_dummy; do 8981do
8982 IFS=$as_save_IFS
5847 test -z "$ac_dir" && ac_dir=. 8983 test -z "$as_dir" && as_dir=.
5848 if test -f $ac_dir/$ac_word; then 8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_path_ECHO="$ac_dir/$ac_word" 8986 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 8988 break 2
5851 fi 8989 fi
5852 done 8990done
5853 IFS="$ac_save_ifs" 8991done
8992
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8993 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5855 ;; 8994 ;;
5856esac 8995esac
5857fi 8996fi
5858ECHO="$ac_cv_path_ECHO" 8997ECHO=$ac_cv_path_ECHO
8998
5859if test -n "$ECHO"; then 8999if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6 9000 echo "$as_me:$LINENO: result: $ECHO" >&5
9001echo "${ECHO_T}$ECHO" >&6
5861else 9002else
5862 echo "$ac_t""no" 1>&6 9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
5863fi 9005fi
5864 9006
5865# Extract the first word of "cmp", so it can be a program name with args. 9007# Extract the first word of "cmp", so it can be a program name with args.
5866set dummy cmp; ac_word=$2 9008set dummy cmp; ac_word=$2
9009echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 9010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868echo "configure:5869: checking for $ac_word" >&5
5869if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 9011if test "${ac_cv_path_CMP+set}" = set; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 9012 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else 9013else
5872 case "$CMP" in 9014 case $CMP in
5873 /*) 9015 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 9016 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5875 ;; 9017 ;;
5876 ?:/*)
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5878 ;;
5879 *) 9018 *)
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 ac_dummy="$PATH" 9020for as_dir in $PATH
5882 for ac_dir in $ac_dummy; do 9021do
9022 IFS=$as_save_IFS
5883 test -z "$ac_dir" && ac_dir=. 9023 test -z "$as_dir" && as_dir=.
5884 if test -f $ac_dir/$ac_word; then 9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_CMP="$ac_dir/$ac_word" 9026 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
9027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 9028 break 2
5887 fi 9029 fi
5888 done 9030done
5889 IFS="$ac_save_ifs" 9031done
9032
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 9033 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 ;; 9034 ;;
5892esac 9035esac
5893fi 9036fi
5894CMP="$ac_cv_path_CMP" 9037CMP=$ac_cv_path_CMP
9038
5895if test -n "$CMP"; then 9039if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6 9040 echo "$as_me:$LINENO: result: $CMP" >&5
9041echo "${ECHO_T}$CMP" >&6
5897else 9042else
5898 echo "$ac_t""no" 1>&6 9043 echo "$as_me:$LINENO: result: no" >&5
9044echo "${ECHO_T}no" >&6
5899fi 9045fi
5900 9046
5901# Extract the first word of "tbl", so it can be a program name with args. 9047# Extract the first word of "tbl", so it can be a program name with args.
5902set dummy tbl; ac_word=$2 9048set dummy tbl; ac_word=$2
9049echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 9050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904echo "configure:5905: checking for $ac_word" >&5
5905if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then 9051if test "${ac_cv_path_TBL+set}" = set; then
5906 echo $ac_n "(cached) $ac_c" 1>&6 9052 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else 9053else
5908 case "$TBL" in 9054 case $TBL in
5909 /*) 9055 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 9056 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5911 ;; 9057 ;;
5912 ?:/*)
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5914 ;;
5915 *) 9058 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 ac_dummy="$PATH" 9060for as_dir in $PATH
5918 for ac_dir in $ac_dummy; do 9061do
9062 IFS=$as_save_IFS
5919 test -z "$ac_dir" && ac_dir=. 9063 test -z "$as_dir" && as_dir=.
5920 if test -f $ac_dir/$ac_word; then 9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_path_TBL="$ac_dir/$ac_word" 9066 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
9067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 9068 break 2
5923 fi 9069 fi
5924 done 9070done
5925 IFS="$ac_save_ifs" 9071done
9072
5926 ;; 9073 ;;
5927esac 9074esac
5928fi 9075fi
5929TBL="$ac_cv_path_TBL" 9076TBL=$ac_cv_path_TBL
9077
5930if test -n "$TBL"; then 9078if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6 9079 echo "$as_me:$LINENO: result: $TBL" >&5
9080echo "${ECHO_T}$TBL" >&6
5932else 9081else
5933 echo "$ac_t""no" 1>&6 9082 echo "$as_me:$LINENO: result: no" >&5
9083echo "${ECHO_T}no" >&6
5934fi 9084fi
5935 9085
5936 9086
5937 9087
5938 9088
5939# If we find X, set shell vars x_includes and x_libraries to the 9089
5940# paths, otherwise set no_x=yes. 9090if test "x$ac_path_x_has_been_run" != xyes; then
5941# Uses ac_ vars as temps to allow command line to override cache and checks. 9091 echo "$as_me:$LINENO: checking for X" >&5
5942# --without-x overrides everything else, but does not touch the cache.
5943echo $ac_n "checking for X""... $ac_c" 1>&6 9092echo $ECHO_N "checking for X... $ECHO_C" >&6
5944echo "configure:5945: checking for X" >&5 9093
9094ac_path_x_has_been_run=yes
5945 9095
5946# Check whether --with-x or --without-x was given. 9096# Check whether --with-x or --without-x was given.
5947if test "${with_x+set}" = set; then 9097if test "${with_x+set}" = set; then
5948 withval="$with_x" 9098 withval="$with_x"
5949 : 9099
5950fi 9100fi;
5951
5952# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9101# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5953if test "x$with_x" = xno; then 9102if test "x$with_x" = xno; then
5954 # The user explicitly disabled X. 9103 # The user explicitly disabled X.
5955 have_x=disabled 9104 have_x=disabled
5956else 9105else
5957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9106 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5958 # Both variables are already set. 9107 # Both variables are already set.
5959 have_x=yes 9108 have_x=yes
5960 else 9109 else
5961if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 9110 if test "${ac_cv_have_x+set}" = set; then
5962 echo $ac_n "(cached) $ac_c" 1>&6 9111 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else 9112else
5964 # One or both of the vars are not set, and there is no cached value. 9113 # One or both of the vars are not set, and there is no cached value.
5965ac_x_includes=NO ac_x_libraries=NO 9114ac_x_includes=no ac_x_libraries=no
5966rm -fr conftestdir 9115rm -fr conftest.dir
5967if mkdir conftestdir; then 9116if mkdir conftest.dir; then
5968 cd conftestdir 9117 cd conftest.dir
5969 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9118 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5970 cat > Imakefile <<'EOF' 9119 cat >Imakefile <<'_ACEOF'
5971acfindx: 9120acfindx:
5972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9121 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5973EOF 9122_ACEOF
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9123 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9124 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9125 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9126 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do 9127 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9128 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then 9129 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break 9130 ac_im_usrlibdir=$ac_im_libdir; break
5982 fi 9131 fi
5983 done 9132 done
5984 # Screen out bogus values from the imake configuration. They are 9133 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because 9134 # bogus both because they are the default anyway, and because
5986 # using them would break gcc on systems where it needs fixed includes. 9135 # using them would break gcc on systems where it needs fixed includes.
5987 case "$ac_im_incroot" in 9136 case $ac_im_incroot in
5988 /usr/include) ;; 9137 /usr/include) ;;
5989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 9138 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5990 esac 9139 esac
5991 case "$ac_im_usrlibdir" in 9140 case $ac_im_usrlibdir in
5992 /usr/lib | /lib) ;; 9141 /usr/lib | /lib) ;;
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 9142 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5994 esac 9143 esac
5995 fi 9144 fi
5996 cd .. 9145 cd ..
5997 rm -fr conftestdir 9146 rm -fr conftest.dir
5998fi 9147fi
5999 9148
9149# Standard set of common directories for X headers.
9150# Check X11 before X11Rn because it is often a symlink to the current release.
9151ac_x_header_dirs='
9152/usr/X11/include
9153/usr/X11R6/include
9154/usr/X11R5/include
9155/usr/X11R4/include
9156
9157/usr/include/X11
9158/usr/include/X11R6
9159/usr/include/X11R5
9160/usr/include/X11R4
9161
9162/usr/local/X11/include
9163/usr/local/X11R6/include
9164/usr/local/X11R5/include
9165/usr/local/X11R4/include
9166
9167/usr/local/include/X11
9168/usr/local/include/X11R6
9169/usr/local/include/X11R5
9170/usr/local/include/X11R4
9171
9172/usr/X386/include
9173/usr/x386/include
9174/usr/XFree86/include/X11
9175
9176/usr/include
9177/usr/local/include
9178/usr/unsupported/include
9179/usr/athena/include
9180/usr/local/x11r5/include
9181/usr/lpp/Xamples/include
9182
9183/usr/openwin/include
9184/usr/openwin/share/include'
9185
6000if test "$ac_x_includes" = NO; then 9186if test "$ac_x_includes" = no; then
6001 # Guess where to find include files, by looking for this one X11 .h file. 9187 # Guess where to find include files, by looking for a specified header file.
6002 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6003
6004 # First, try using that file with no special directory specified. 9188 # First, try using that file with no special directory specified.
9189 cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
6005cat > conftest.$ac_ext <<EOF 9193cat >>conftest.$ac_ext <<_ACEOF
6006#line 6007 "configure" 9194/* end confdefs.h. */
6007#include "confdefs.h" 9195#include <X11/Intrinsic.h>
6008#include <$x_direct_test_include> 9196_ACEOF
6009EOF 9197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9199 ac_status=$?
6012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } >/dev/null; then
9205 if test -s conftest.err; then
9206 ac_cpp_err=$ac_cxx_preproc_warn_flag
9207 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9208 else
9209 ac_cpp_err=
9210 fi
9211else
9212 ac_cpp_err=yes
9213fi
6013if test -z "$ac_err"; then 9214if test -z "$ac_cpp_err"; then
6014 rm -rf conftest*
6015 # We can compile using X headers with no special include directory. 9215 # We can compile using X headers with no special include directory.
6016ac_x_includes= 9216ac_x_includes=
6017else 9217else
6018 echo "$ac_err" >&5
6019 echo "configure: failed program was:" >&5 9218 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 9219sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -rf conftest* 9220
6022 # Look for the header file in a standard set of common directories. 9221 for ac_dir in $ac_x_header_dirs; do
6023# Check X11 before X11Rn because it is often a symlink to the current release. 9222 if test -r "$ac_dir/X11/Intrinsic.h"; then
6024 for ac_dir in \
6025 /usr/X11/include \
6026 /usr/X11R6/include \
6027 /usr/X11R5/include \
6028 /usr/X11R4/include \
6029 \
6030 /usr/include/X11 \
6031 /usr/include/X11R6 \
6032 /usr/include/X11R5 \
6033 /usr/include/X11R4 \
6034 \
6035 /usr/local/X11/include \
6036 /usr/local/X11R6/include \
6037 /usr/local/X11R5/include \
6038 /usr/local/X11R4/include \
6039 \
6040 /usr/local/include/X11 \
6041 /usr/local/include/X11R6 \
6042 /usr/local/include/X11R5 \
6043 /usr/local/include/X11R4 \
6044 \
6045 /usr/X386/include \
6046 /usr/x386/include \
6047 /usr/XFree86/include/X11 \
6048 \
6049 /usr/include \
6050 /usr/local/include \
6051 /usr/unsupported/include \
6052 /usr/athena/include \
6053 /usr/local/x11r5/include \
6054 /usr/lpp/Xamples/include \
6055 \
6056 /usr/openwin/include \
6057 /usr/openwin/share/include \
6058 ; \
6059 do
6060 if test -r "$ac_dir/$x_direct_test_include"; then
6061 ac_x_includes=$ac_dir 9223 ac_x_includes=$ac_dir
6062 break 9224 break
6063 fi 9225 fi
6064 done 9226done
6065fi 9227fi
6066rm -f conftest* 9228rm -f conftest.err conftest.$ac_ext
6067fi # $ac_x_includes = NO 9229fi # $ac_x_includes = no
6068 9230
6069if test "$ac_x_libraries" = NO; then 9231if test "$ac_x_libraries" = no; then
6070 # Check for the libraries. 9232 # Check for the libraries.
6071
6072 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6073 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6074
6075 # See if we find them without any special options. 9233 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently. 9234 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS" 9235 ac_save_LIBS=$LIBS
6078 LIBS="-l$x_direct_test_library $LIBS" 9236 LIBS="-lXt $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
6079cat > conftest.$ac_ext <<EOF 9241cat >>conftest.$ac_ext <<_ACEOF
6080#line 6081 "configure" 9242/* end confdefs.h. */
6081#include "confdefs.h" 9243#include <X11/Intrinsic.h>
6082 9244int
6083int main() { 9245main ()
6084${x_direct_test_function}() 9246{
9247XtMalloc (0)
9248 ;
6085; return 0; } 9249 return 0;
6086EOF 9250}
6087if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9251_ACEOF
9252rm -f conftest.$ac_objext conftest$ac_exeext
9253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -rf conftest* 9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
6089 LIBS="$ac_save_LIBS" 9273 LIBS=$ac_save_LIBS
6090# We can link X programs with no special library path. 9274# We can link X programs with no special library path.
6091ac_x_libraries= 9275ac_x_libraries=
6092else 9276else
6093 echo "configure: failed program was:" >&5 9277 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5 9278sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -rf conftest* 9279
6096 LIBS="$ac_save_LIBS" 9280LIBS=$ac_save_LIBS
6097# First see if replacing the include by lib works.
6098# Check X11 before X11Rn because it is often a symlink to the current release.
6099for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 9281for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6100 /usr/X11/lib \
6101 /usr/X11R6/lib \
6102 /usr/X11R5/lib \
6103 /usr/X11R4/lib \
6104 \
6105 /usr/lib/X11 \
6106 /usr/lib/X11R6 \
6107 /usr/lib/X11R5 \
6108 /usr/lib/X11R4 \
6109 \
6110 /usr/local/X11/lib \
6111 /usr/local/X11R6/lib \
6112 /usr/local/X11R5/lib \
6113 /usr/local/X11R4/lib \
6114 \
6115 /usr/local/lib/X11 \
6116 /usr/local/lib/X11R6 \
6117 /usr/local/lib/X11R5 \
6118 /usr/local/lib/X11R4 \
6119 \
6120 /usr/X386/lib \
6121 /usr/x386/lib \
6122 /usr/XFree86/lib/X11 \
6123 \
6124 /usr/lib \
6125 /usr/local/lib \
6126 /usr/unsupported/lib \
6127 /usr/athena/lib \
6128 /usr/local/x11r5/lib \
6129 /usr/lpp/Xamples/lib \
6130 /lib/usr/lib/X11 \
6131 \
6132 /usr/openwin/lib \
6133 /usr/openwin/share/lib \
6134 ; \
6135do 9282do
9283 # Don't even attempt the hair of trying to link an X program!
6136 for ac_extension in a so sl; do 9284 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9285 if test -r $ac_dir/libXt.$ac_extension; then
6138 ac_x_libraries=$ac_dir 9286 ac_x_libraries=$ac_dir
6139 break 2 9287 break 2
6140 fi 9288 fi
6141 done 9289 done
6142done 9290done
6143fi 9291fi
6144rm -f conftest* 9292rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
6145fi # $ac_x_libraries = NO 9294fi # $ac_x_libraries = no
6146 9295
6147if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9296if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6148 # Didn't find X anywhere. Cache the known absence of X. 9297 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no" 9298 ac_cv_have_x="have_x=no"
6150else 9299else
6151 # Record where we found X for the cache. 9300 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \ 9301 ac_cv_have_x="have_x=yes \
6153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9302 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6154fi 9303fi
6155fi 9304fi
9305
6156 fi 9306 fi
6157 eval "$ac_cv_have_x" 9307 eval "$ac_cv_have_x"
6158fi # $with_x != no 9308fi # $with_x != no
6159 9309
6160if test "$have_x" != yes; then 9310if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6 9311 echo "$as_me:$LINENO: result: $have_x" >&5
9312echo "${ECHO_T}$have_x" >&6
6162 no_x=yes 9313 no_x=yes
6163else 9314else
6164 # If each of the values was on the command line, it overrides each guess. 9315 # If each of the values was on the command line, it overrides each guess.
6165 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9316 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9317 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values. 9318 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \ 9319 ac_cv_have_x="have_x=yes \
6169 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9320 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9321 # It might be that x_includes is empty (headers are found in the
9322 # standard search path. Then output the corresponding message
9323 ac_out_x_includes=$x_includes
9324 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9325 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9326echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6171fi 9327fi
6172 9328
9329fi
6173if test "$no_x" = yes; then 9330if test "$no_x" = yes; then
6174 # Not all programs may use this symbol, but it does not hurt to define it. 9331 # Not all programs may use this symbol, but it does not hurt to define it.
9332
6175 cat >> confdefs.h <<\EOF 9333cat >>confdefs.h <<\_ACEOF
6176#define X_DISPLAY_MISSING 1 9334#define X_DISPLAY_MISSING 1
6177EOF 9335_ACEOF
6178 9336
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6180else 9338else
6181 if test -n "$x_includes"; then 9339 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes" 9340 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # It would also be nice to do this for all -L options, not just this one. 9343 # It would also be nice to do this for all -L options, not just this one.
6186 if test -n "$x_libraries"; then 9344 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries" 9345 X_LIBS="$X_LIBS -L$x_libraries"
6188 # For Solaris; some versions of Sun CC require a space after -R and 9346 # For Solaris; some versions of Sun CC require a space after -R and
6189 # others require no space. Words are not sufficient . . . . 9347 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in 9348 case `(uname -sr) 2>/dev/null` in
6191 "SunOS 5"*) 9349 "SunOS 5"*)
9350 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6192 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 9351echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6193echo "configure:6194: checking whether -R must be followed by a space" >&5
6194 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 9352 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF 9353 cat >conftest.$ac_ext <<_ACEOF
6196#line 6197 "configure" 9354/* confdefs.h. */
6197#include "confdefs.h" 9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
6198 9359
6199int main() { 9360int
9361main ()
9362{
6200 9363
9364 ;
6201; return 0; } 9365 return 0;
6202EOF 9366}
6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9367_ACEOF
9368rm -f conftest.$ac_objext conftest$ac_exeext
9369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -rf conftest* 9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
6205 ac_R_nospace=yes 9389 ac_R_nospace=yes
6206else 9390else
6207 echo "configure: failed program was:" >&5 9391 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 9392sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -rf conftest* 9393
6210 ac_R_nospace=no 9394ac_R_nospace=no
6211fi 9395fi
6212rm -f conftest* 9396rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
6213 if test $ac_R_nospace = yes; then 9398 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6 9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
6215 X_LIBS="$X_LIBS -R$x_libraries" 9401 X_LIBS="$X_LIBS -R$x_libraries"
6216 else 9402 else
6217 LIBS="$ac_xsave_LIBS -R $x_libraries" 9403 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF 9404 cat >conftest.$ac_ext <<_ACEOF
6219#line 6220 "configure" 9405/* confdefs.h. */
6220#include "confdefs.h" 9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h. */
6221 9410
6222int main() { 9411int
9412main ()
9413{
6223 9414
9415 ;
6224; return 0; } 9416 return 0;
6225EOF 9417}
6226if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9418_ACEOF
9419rm -f conftest.$ac_objext conftest$ac_exeext
9420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -rf conftest* 9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest$ac_exeext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
6228 ac_R_space=yes 9440 ac_R_space=yes
6229else 9441else
6230 echo "configure: failed program was:" >&5 9442 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 9443sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -rf conftest* 9444
6233 ac_R_space=no 9445ac_R_space=no
6234fi 9446fi
6235rm -f conftest* 9447rm -f conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
6236 if test $ac_R_space = yes; then 9449 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6 9450 echo "$as_me:$LINENO: result: yes" >&5
9451echo "${ECHO_T}yes" >&6
6238 X_LIBS="$X_LIBS -R $x_libraries" 9452 X_LIBS="$X_LIBS -R $x_libraries"
6239 else 9453 else
9454 echo "$as_me:$LINENO: result: neither works" >&5
6240 echo "$ac_t""neither works" 1>&6 9455echo "${ECHO_T}neither works" >&6
6241 fi 9456 fi
6242 fi 9457 fi
6243 LIBS="$ac_xsave_LIBS" 9458 LIBS=$ac_xsave_LIBS
6244 esac 9459 esac
6245 fi 9460 fi
6246 9461
6247 # Check for system-dependent libraries X programs must link with. 9462 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries 9463 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking. 9464 # (-lICE), since we may need -lsocket or whatever for X linking.
6250 9465
6251 if test "$ISC" = yes; then 9466 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6253 else 9468 else
6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9469 # Martyn Johnson says this is needed for Ultrix, if the X
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says 9470 # libraries were built with DECnet support. And Karl Berry says
6256 # the Alpha needs dnet_stub (dnet does not exist). 9471 # the Alpha needs dnet_stub (dnet does not exist).
9472 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9473 cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
9479
9480/* Override any gcc2 internal prototype to avoid an error. */
9481#ifdef __cplusplus
9482extern "C"
9483#endif
9484/* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486char XOpenDisplay ();
9487int
9488main ()
9489{
9490XOpenDisplay ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 :
9517else
9518 echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9522echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5 9523if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6259ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6260if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6 9524 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else 9525else
6263 ac_save_LIBS="$LIBS" 9526 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ldnet $LIBS" 9527LIBS="-ldnet $LIBS"
6265cat > conftest.$ac_ext <<EOF 9528cat >conftest.$ac_ext <<_ACEOF
6266#line 6267 "configure" 9529/* confdefs.h. */
6267#include "confdefs.h" 9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
9534
6268/* Override any gcc2 internal prototype to avoid an error. */ 9535/* Override any gcc2 internal prototype to avoid an error. */
9536#ifdef __cplusplus
9537extern "C"
9538#endif
6269/* We use char because int might match the return type of a gcc2 9539/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */ 9540 builtin and then its argument prototype would still apply. */
6271char dnet_ntoa(); 9541char dnet_ntoa ();
6272 9542int
6273int main() { 9543main ()
9544{
6274dnet_ntoa() 9545dnet_ntoa ();
9546 ;
6275; return 0; } 9547 return 0;
6276EOF 9548}
6277if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9549_ACEOF
9550rm -f conftest.$ac_objext conftest$ac_exeext
9551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -rf conftest* 9555 rm -f conftest.er1
6279 eval "ac_cv_lib_$ac_lib_var=yes" 9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_lib_dnet_dnet_ntoa=yes
6280else 9572else
6281 echo "configure: failed program was:" >&5 9573 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 9574sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -rf conftest* 9575
6284 eval "ac_cv_lib_$ac_lib_var=no" 9576ac_cv_lib_dnet_dnet_ntoa=no
6285fi 9577fi
6286rm -f conftest* 9578rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
6287LIBS="$ac_save_LIBS" 9580LIBS=$ac_check_lib_save_LIBS
6288
6289fi 9581fi
6290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9582echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6291 echo "$ac_t""yes" 1>&6 9583echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9584if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6293else
6294 echo "$ac_t""no" 1>&6
6295fi 9586fi
6296 9587
6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9588 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9589 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6298 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 9590echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5 9591if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6300ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6 9592 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else 9593else
6304 ac_save_LIBS="$LIBS" 9594 ac_check_lib_save_LIBS=$LIBS
6305LIBS="-ldnet_stub $LIBS" 9595LIBS="-ldnet_stub $LIBS"
6306cat > conftest.$ac_ext <<EOF 9596cat >conftest.$ac_ext <<_ACEOF
6307#line 6308 "configure" 9597/* confdefs.h. */
6308#include "confdefs.h" 9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602
6309/* Override any gcc2 internal prototype to avoid an error. */ 9603/* Override any gcc2 internal prototype to avoid an error. */
9604#ifdef __cplusplus
9605extern "C"
9606#endif
6310/* We use char because int might match the return type of a gcc2 9607/* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */ 9608 builtin and then its argument prototype would still apply. */
6312char dnet_ntoa(); 9609char dnet_ntoa ();
6313 9610int
6314int main() { 9611main ()
9612{
6315dnet_ntoa() 9613dnet_ntoa ();
9614 ;
6316; return 0; } 9615 return 0;
6317EOF 9616}
6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9617_ACEOF
9618rm -f conftest.$ac_objext conftest$ac_exeext
9619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -rf conftest* 9623 rm -f conftest.er1
6320 eval "ac_cv_lib_$ac_lib_var=yes" 9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6321else 9640else
6322 echo "configure: failed program was:" >&5 9641 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5 9642sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -rf conftest* 9643
6325 eval "ac_cv_lib_$ac_lib_var=no" 9644ac_cv_lib_dnet_stub_dnet_ntoa=no
6326fi 9645fi
6327rm -f conftest* 9646rm -f conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
6328LIBS="$ac_save_LIBS" 9648LIBS=$ac_check_lib_save_LIBS
6329
6330fi 9649fi
6331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9650echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6332 echo "$ac_t""yes" 1>&6 9651echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9652if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9653 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6334else
6335 echo "$ac_t""no" 1>&6
6336fi 9654fi
6337 9655
6338 fi 9656 fi
9657fi
9658rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS="$ac_xsave_LIBS"
6339 9661
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9662 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions. 9663 # to get the SysV transport functions.
6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9664 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6343 # needs -lnsl. 9665 # needs -lnsl.
6344 # The nsl library prevents programs from opening the X display 9666 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to dickey@clark.net. 9667 # on Irix 5.2, according to T.E. Dickey.
9668 # The functions gethostbyname, getservbyname, and inet_addr are
9669 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9670 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9671echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6347echo "configure:6348: checking for gethostbyname" >&5
6348if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 9672if test "${ac_cv_func_gethostbyname+set}" = set; then
6349 echo $ac_n "(cached) $ac_c" 1>&6 9673 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else 9674else
6351 cat > conftest.$ac_ext <<EOF 9675 cat >conftest.$ac_ext <<_ACEOF
6352#line 6353 "configure" 9676/* confdefs.h. */
6353#include "confdefs.h" 9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h. */
9681/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9683#define gethostbyname innocuous_gethostbyname
9684
6354/* System header to define __stub macros and hopefully few prototypes, 9685/* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char gethostbyname(); below. */ 9686 which can conflict with char gethostbyname (); below.
9687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9688 <limits.h> exists even on freestanding compilers. */
9689
9690#ifdef __STDC__
9691# include <limits.h>
9692#else
6356#include <assert.h> 9693# include <assert.h>
9694#endif
9695
9696#undef gethostbyname
9697
6357/* Override any gcc2 internal prototype to avoid an error. */ 9698/* Override any gcc2 internal prototype to avoid an error. */
9699#ifdef __cplusplus
9700extern "C"
9701{
9702#endif
6358/* We use char because int might match the return type of a gcc2 9703/* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */ 9704 builtin and then its argument prototype would still apply. */
6360char gethostbyname(); 9705char gethostbyname ();
6361
6362int main() {
6363
6364/* The GNU C library defines this for functions which it implements 9706/* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named 9707 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */ 9708 something starting with __ and the normal name is an alias. */
6367#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9709#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6368choke me 9710choke me
6369#else 9711#else
6370gethostbyname(); 9712char (*f) () = gethostbyname;
6371#endif 9713#endif
9714#ifdef __cplusplus
9715}
9716#endif
6372 9717
9718int
9719main ()
9720{
9721return f != gethostbyname;
9722 ;
6373; return 0; } 9723 return 0;
6374EOF 9724}
6375if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9725_ACEOF
9726rm -f conftest.$ac_objext conftest$ac_exeext
9727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -rf conftest* 9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
6377 eval "ac_cv_func_gethostbyname=yes" 9747 ac_cv_func_gethostbyname=yes
6378else 9748else
6379 echo "configure: failed program was:" >&5 9749 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 9750sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -rf conftest* 9751
6382 eval "ac_cv_func_gethostbyname=no" 9752ac_cv_func_gethostbyname=no
6383fi 9753fi
6384rm -f conftest* 9754rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
6385fi 9756fi
6386 9757echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6387if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9758echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6388 echo "$ac_t""yes" 1>&6
6389 :
6390else
6391 echo "$ac_t""no" 1>&6
6392fi
6393 9759
6394 if test $ac_cv_func_gethostbyname = no; then 9760 if test $ac_cv_func_gethostbyname = no; then
9761 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9762echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5 9763if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6397ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6 9764 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else 9765else
6401 ac_save_LIBS="$LIBS" 9766 ac_check_lib_save_LIBS=$LIBS
6402LIBS="-lnsl $LIBS" 9767LIBS="-lnsl $LIBS"
6403cat > conftest.$ac_ext <<EOF 9768cat >conftest.$ac_ext <<_ACEOF
6404#line 6405 "configure" 9769/* confdefs.h. */
6405#include "confdefs.h" 9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774
6406/* Override any gcc2 internal prototype to avoid an error. */ 9775/* Override any gcc2 internal prototype to avoid an error. */
9776#ifdef __cplusplus
9777extern "C"
9778#endif
6407/* We use char because int might match the return type of a gcc2 9779/* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */ 9780 builtin and then its argument prototype would still apply. */
6409char gethostbyname(); 9781char gethostbyname ();
6410 9782int
6411int main() { 9783main ()
9784{
6412gethostbyname() 9785gethostbyname ();
9786 ;
6413; return 0; } 9787 return 0;
6414EOF 9788}
6415if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -rf conftest* 9795 rm -f conftest.er1
6417 eval "ac_cv_lib_$ac_lib_var=yes" 9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_nsl_gethostbyname=yes
6418else 9812else
6419 echo "configure: failed program was:" >&5 9813 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5 9814sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -rf conftest* 9815
6422 eval "ac_cv_lib_$ac_lib_var=no" 9816ac_cv_lib_nsl_gethostbyname=no
6423fi 9817fi
6424rm -f conftest* 9818rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
6425LIBS="$ac_save_LIBS" 9820LIBS=$ac_check_lib_save_LIBS
6426
6427fi 9821fi
6428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9822echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6429 echo "$ac_t""yes" 1>&6 9823echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9824if test $ac_cv_lib_nsl_gethostbyname = yes; then
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6431else
6432 echo "$ac_t""no" 1>&6
6433fi 9826fi
6434 9827
9828 if test $ac_cv_lib_nsl_gethostbyname = no; then
9829 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9830echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9831if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833else
9834 ac_check_lib_save_LIBS=$LIBS
9835LIBS="-lbsd $LIBS"
9836cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
9842
9843/* Override any gcc2 internal prototype to avoid an error. */
9844#ifdef __cplusplus
9845extern "C"
9846#endif
9847/* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849char gethostbyname ();
9850int
9851main ()
9852{
9853gethostbyname ();
9854 ;
9855 return 0;
9856}
9857_ACEOF
9858rm -f conftest.$ac_objext conftest$ac_exeext
9859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_bsd_gethostbyname=yes
9880else
9881 echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884ac_cv_lib_bsd_gethostbyname=no
9885fi
9886rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888LIBS=$ac_check_lib_save_LIBS
9889fi
9890echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9891echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9892if test $ac_cv_lib_bsd_gethostbyname = yes; then
9893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9894fi
9895
9896 fi
6435 fi 9897 fi
6436 9898
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9899 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT 9900 # socket/setsockopt and other routines are undefined under SCO ODT
6439 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9901 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6440 # on later versions), says simon@lia.di.epfl.ch: it contains 9902 # on later versions), says Simon Leinen: it contains gethostby*
6441 # gethostby* variants that don't use the nameserver (or something). 9903 # variants that don't use the name server (or something). -lsocket
6442 # -lsocket must be given before -lnsl if both are needed. 9904 # must be given before -lnsl if both are needed. We assume that
6443 # We assume that if connect needs -lnsl, so does gethostbyname. 9905 # if connect needs -lnsl, so does gethostbyname.
9906 echo "$as_me:$LINENO: checking for connect" >&5
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6 9907echo $ECHO_N "checking for connect... $ECHO_C" >&6
6445echo "configure:6446: checking for connect" >&5
6446if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 9908if test "${ac_cv_func_connect+set}" = set; then
6447 echo $ac_n "(cached) $ac_c" 1>&6 9909 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else 9910else
6449 cat > conftest.$ac_ext <<EOF 9911 cat >conftest.$ac_ext <<_ACEOF
6450#line 6451 "configure" 9912/* confdefs.h. */
6451#include "confdefs.h" 9913_ACEOF
9914cat confdefs.h >>conftest.$ac_ext
9915cat >>conftest.$ac_ext <<_ACEOF
9916/* end confdefs.h. */
9917/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9919#define connect innocuous_connect
9920
6452/* System header to define __stub macros and hopefully few prototypes, 9921/* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char connect(); below. */ 9922 which can conflict with char connect (); below.
9923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9924 <limits.h> exists even on freestanding compilers. */
9925
9926#ifdef __STDC__
9927# include <limits.h>
9928#else
6454#include <assert.h> 9929# include <assert.h>
9930#endif
9931
9932#undef connect
9933
6455/* Override any gcc2 internal prototype to avoid an error. */ 9934/* Override any gcc2 internal prototype to avoid an error. */
9935#ifdef __cplusplus
9936extern "C"
9937{
9938#endif
6456/* We use char because int might match the return type of a gcc2 9939/* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */ 9940 builtin and then its argument prototype would still apply. */
6458char connect(); 9941char connect ();
6459
6460int main() {
6461
6462/* The GNU C library defines this for functions which it implements 9942/* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named 9943 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */ 9944 something starting with __ and the normal name is an alias. */
6465#if defined (__stub_connect) || defined (__stub___connect) 9945#if defined (__stub_connect) || defined (__stub___connect)
6466choke me 9946choke me
6467#else 9947#else
6468connect(); 9948char (*f) () = connect;
6469#endif 9949#endif
9950#ifdef __cplusplus
9951}
9952#endif
6470 9953
9954int
9955main ()
9956{
9957return f != connect;
9958 ;
6471; return 0; } 9959 return 0;
6472EOF 9960}
6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -rf conftest* 9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
6475 eval "ac_cv_func_connect=yes" 9983 ac_cv_func_connect=yes
6476else 9984else
6477 echo "configure: failed program was:" >&5 9985 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 9986sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -rf conftest* 9987
6480 eval "ac_cv_func_connect=no" 9988ac_cv_func_connect=no
6481fi 9989fi
6482rm -f conftest* 9990rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
6483fi 9992fi
6484 9993echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6485if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9994echo "${ECHO_T}$ac_cv_func_connect" >&6
6486 echo "$ac_t""yes" 1>&6
6487 :
6488else
6489 echo "$ac_t""no" 1>&6
6490fi
6491 9995
6492 if test $ac_cv_func_connect = no; then 9996 if test $ac_cv_func_connect = no; then
9997 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9998echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6494echo "configure:6495: checking for connect in -lsocket" >&5 9999if test "${ac_cv_lib_socket_connect+set}" = set; then
6495ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6 10000 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else 10001else
6499 ac_save_LIBS="$LIBS" 10002 ac_check_lib_save_LIBS=$LIBS
6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 10003LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501cat > conftest.$ac_ext <<EOF 10004cat >conftest.$ac_ext <<_ACEOF
6502#line 6503 "configure" 10005/* confdefs.h. */
6503#include "confdefs.h" 10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */
10010
6504/* Override any gcc2 internal prototype to avoid an error. */ 10011/* Override any gcc2 internal prototype to avoid an error. */
10012#ifdef __cplusplus
10013extern "C"
10014#endif
6505/* We use char because int might match the return type of a gcc2 10015/* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */ 10016 builtin and then its argument prototype would still apply. */
6507char connect(); 10017char connect ();
6508 10018int
6509int main() { 10019main ()
10020{
6510connect() 10021connect ();
10022 ;
6511; return 0; } 10023 return 0;
6512EOF 10024}
6513if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10025_ACEOF
10026rm -f conftest.$ac_objext conftest$ac_exeext
10027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -rf conftest* 10031 rm -f conftest.er1
6515 eval "ac_cv_lib_$ac_lib_var=yes" 10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_lib_socket_connect=yes
6516else 10048else
6517 echo "configure: failed program was:" >&5 10049 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5 10050sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -rf conftest* 10051
6520 eval "ac_cv_lib_$ac_lib_var=no" 10052ac_cv_lib_socket_connect=no
6521fi 10053fi
6522rm -f conftest* 10054rm -f conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
6523LIBS="$ac_save_LIBS" 10056LIBS=$ac_check_lib_save_LIBS
6524
6525fi 10057fi
6526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10058echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6527 echo "$ac_t""yes" 1>&6 10059echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10060if test $ac_cv_lib_socket_connect = yes; then
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 10061 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6529else
6530 echo "$ac_t""no" 1>&6
6531fi 10062fi
6532 10063
6533 fi 10064 fi
6534 10065
6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 10066 # Guillermo Gomez says -lposix is necessary on A/UX.
10067 echo "$as_me:$LINENO: checking for remove" >&5
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6 10068echo $ECHO_N "checking for remove... $ECHO_C" >&6
6537echo "configure:6538: checking for remove" >&5
6538if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 10069if test "${ac_cv_func_remove+set}" = set; then
6539 echo $ac_n "(cached) $ac_c" 1>&6 10070 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else 10071else
6541 cat > conftest.$ac_ext <<EOF 10072 cat >conftest.$ac_ext <<_ACEOF
6542#line 6543 "configure" 10073/* confdefs.h. */
6543#include "confdefs.h" 10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
10078/* Define remove to an innocuous variant, in case <limits.h> declares remove.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080#define remove innocuous_remove
10081
6544/* System header to define __stub macros and hopefully few prototypes, 10082/* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char remove(); below. */ 10083 which can conflict with char remove (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10086
10087#ifdef __STDC__
10088# include <limits.h>
10089#else
6546#include <assert.h> 10090# include <assert.h>
10091#endif
10092
10093#undef remove
10094
6547/* Override any gcc2 internal prototype to avoid an error. */ 10095/* Override any gcc2 internal prototype to avoid an error. */
10096#ifdef __cplusplus
10097extern "C"
10098{
10099#endif
6548/* We use char because int might match the return type of a gcc2 10100/* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */ 10101 builtin and then its argument prototype would still apply. */
6550char remove(); 10102char remove ();
6551
6552int main() {
6553
6554/* The GNU C library defines this for functions which it implements 10103/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 10104 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 10105 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_remove) || defined (__stub___remove) 10106#if defined (__stub_remove) || defined (__stub___remove)
6558choke me 10107choke me
6559#else 10108#else
6560remove(); 10109char (*f) () = remove;
6561#endif 10110#endif
10111#ifdef __cplusplus
10112}
10113#endif
6562 10114
10115int
10116main ()
10117{
10118return f != remove;
10119 ;
6563; return 0; } 10120 return 0;
6564EOF 10121}
6565if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -rf conftest* 10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
6567 eval "ac_cv_func_remove=yes" 10144 ac_cv_func_remove=yes
6568else 10145else
6569 echo "configure: failed program was:" >&5 10146 echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5 10147sed 's/^/| /' conftest.$ac_ext >&5
6571 rm -rf conftest* 10148
6572 eval "ac_cv_func_remove=no" 10149ac_cv_func_remove=no
6573fi 10150fi
6574rm -f conftest* 10151rm -f conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
6575fi 10153fi
6576 10154echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6577if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 10155echo "${ECHO_T}$ac_cv_func_remove" >&6
6578 echo "$ac_t""yes" 1>&6
6579 :
6580else
6581 echo "$ac_t""no" 1>&6
6582fi
6583 10156
6584 if test $ac_cv_func_remove = no; then 10157 if test $ac_cv_func_remove = no; then
10158 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 10159echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6586echo "configure:6587: checking for remove in -lposix" >&5 10160if test "${ac_cv_lib_posix_remove+set}" = set; then
6587ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6 10161 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else 10162else
6591 ac_save_LIBS="$LIBS" 10163 ac_check_lib_save_LIBS=$LIBS
6592LIBS="-lposix $LIBS" 10164LIBS="-lposix $LIBS"
6593cat > conftest.$ac_ext <<EOF 10165cat >conftest.$ac_ext <<_ACEOF
6594#line 6595 "configure" 10166/* confdefs.h. */
6595#include "confdefs.h" 10167_ACEOF
10168cat confdefs.h >>conftest.$ac_ext
10169cat >>conftest.$ac_ext <<_ACEOF
10170/* end confdefs.h. */
10171
6596/* Override any gcc2 internal prototype to avoid an error. */ 10172/* Override any gcc2 internal prototype to avoid an error. */
10173#ifdef __cplusplus
10174extern "C"
10175#endif
6597/* We use char because int might match the return type of a gcc2 10176/* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */ 10177 builtin and then its argument prototype would still apply. */
6599char remove(); 10178char remove ();
6600 10179int
6601int main() { 10180main ()
10181{
6602remove() 10182remove ();
10183 ;
6603; return 0; } 10184 return 0;
6604EOF 10185}
6605if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10186_ACEOF
10187rm -f conftest.$ac_objext conftest$ac_exeext
10188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -rf conftest* 10192 rm -f conftest.er1
6607 eval "ac_cv_lib_$ac_lib_var=yes" 10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_posix_remove=yes
6608else 10209else
6609 echo "configure: failed program was:" >&5 10210 echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 10211sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -rf conftest* 10212
6612 eval "ac_cv_lib_$ac_lib_var=no" 10213ac_cv_lib_posix_remove=no
6613fi 10214fi
6614rm -f conftest* 10215rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
6615LIBS="$ac_save_LIBS" 10217LIBS=$ac_check_lib_save_LIBS
6616
6617fi 10218fi
6618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10219echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6619 echo "$ac_t""yes" 1>&6 10220echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10221if test $ac_cv_lib_posix_remove = yes; then
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 10222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6621else
6622 echo "$ac_t""no" 1>&6
6623fi 10223fi
6624 10224
6625 fi 10225 fi
6626 10226
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10227 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10228 echo "$as_me:$LINENO: checking for shmat" >&5
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6 10229echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6629echo "configure:6630: checking for shmat" >&5
6630if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 10230if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ac_n "(cached) $ac_c" 1>&6 10231 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else 10232else
6633 cat > conftest.$ac_ext <<EOF 10233 cat >conftest.$ac_ext <<_ACEOF
6634#line 6635 "configure" 10234/* confdefs.h. */
6635#include "confdefs.h" 10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h. */
10239/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10241#define shmat innocuous_shmat
10242
6636/* System header to define __stub macros and hopefully few prototypes, 10243/* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char shmat(); below. */ 10244 which can conflict with char shmat (); below.
10245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246 <limits.h> exists even on freestanding compilers. */
10247
10248#ifdef __STDC__
10249# include <limits.h>
10250#else
6638#include <assert.h> 10251# include <assert.h>
10252#endif
10253
10254#undef shmat
10255
6639/* Override any gcc2 internal prototype to avoid an error. */ 10256/* Override any gcc2 internal prototype to avoid an error. */
10257#ifdef __cplusplus
10258extern "C"
10259{
10260#endif
6640/* We use char because int might match the return type of a gcc2 10261/* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */ 10262 builtin and then its argument prototype would still apply. */
6642char shmat(); 10263char shmat ();
6643
6644int main() {
6645
6646/* The GNU C library defines this for functions which it implements 10264/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 10265 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 10266 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shmat) || defined (__stub___shmat) 10267#if defined (__stub_shmat) || defined (__stub___shmat)
6650choke me 10268choke me
6651#else 10269#else
6652shmat(); 10270char (*f) () = shmat;
6653#endif 10271#endif
10272#ifdef __cplusplus
10273}
10274#endif
6654 10275
10276int
10277main ()
10278{
10279return f != shmat;
10280 ;
6655; return 0; } 10281 return 0;
6656EOF 10282}
6657if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -rf conftest* 10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
6659 eval "ac_cv_func_shmat=yes" 10305 ac_cv_func_shmat=yes
6660else 10306else
6661 echo "configure: failed program was:" >&5 10307 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 10308sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -rf conftest* 10309
6664 eval "ac_cv_func_shmat=no" 10310ac_cv_func_shmat=no
6665fi 10311fi
6666rm -f conftest* 10312rm -f conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
6667fi 10314fi
6668 10315echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10316echo "${ECHO_T}$ac_cv_func_shmat" >&6
6670 echo "$ac_t""yes" 1>&6
6671 :
6672else
6673 echo "$ac_t""no" 1>&6
6674fi
6675 10317
6676 if test $ac_cv_func_shmat = no; then 10318 if test $ac_cv_func_shmat = no; then
10319 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10320echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6678echo "configure:6679: checking for shmat in -lipc" >&5 10321if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6679ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6 10322 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else 10323else
6683 ac_save_LIBS="$LIBS" 10324 ac_check_lib_save_LIBS=$LIBS
6684LIBS="-lipc $LIBS" 10325LIBS="-lipc $LIBS"
6685cat > conftest.$ac_ext <<EOF 10326cat >conftest.$ac_ext <<_ACEOF
6686#line 6687 "configure" 10327/* confdefs.h. */
6687#include "confdefs.h" 10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332
6688/* Override any gcc2 internal prototype to avoid an error. */ 10333/* Override any gcc2 internal prototype to avoid an error. */
10334#ifdef __cplusplus
10335extern "C"
10336#endif
6689/* We use char because int might match the return type of a gcc2 10337/* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */ 10338 builtin and then its argument prototype would still apply. */
6691char shmat(); 10339char shmat ();
6692 10340int
6693int main() { 10341main ()
10342{
6694shmat() 10343shmat ();
10344 ;
6695; return 0; } 10345 return 0;
6696EOF 10346}
6697if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10347_ACEOF
10348rm -f conftest.$ac_objext conftest$ac_exeext
10349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -rf conftest* 10353 rm -f conftest.er1
6699 eval "ac_cv_lib_$ac_lib_var=yes" 10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_lib_ipc_shmat=yes
6700else 10370else
6701 echo "configure: failed program was:" >&5 10371 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5 10372sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -rf conftest* 10373
6704 eval "ac_cv_lib_$ac_lib_var=no" 10374ac_cv_lib_ipc_shmat=no
6705fi 10375fi
6706rm -f conftest* 10376rm -f conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
6707LIBS="$ac_save_LIBS" 10378LIBS=$ac_check_lib_save_LIBS
6708
6709fi 10379fi
6710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10380echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6711 echo "$ac_t""yes" 1>&6 10381echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10382if test $ac_cv_lib_ipc_shmat = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6713else
6714 echo "$ac_t""no" 1>&6
6715fi 10384fi
6716 10385
6717 fi 10386 fi
6718 fi 10387 fi
6719 10388
6720 # Check for libraries that X11R6 Xt/Xaw programs need. 10389 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS" 10390 ac_save_LDFLAGS=$LDFLAGS
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10391 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10392 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6724 # check for ICE first), but we must link in the order -lSM -lICE or 10393 # check for ICE first), but we must link in the order -lSM -lICE or
6725 # we get undefined symbols. So assume we have SM if we have ICE. 10394 # we get undefined symbols. So assume we have SM if we have ICE.
6726 # These have to be linked with before -lX11, unlike the other 10395 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable. 10396 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10397 # John Interrante, Karl Berry
10398 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10399echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5 10400if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6731ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6 10401 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else 10402else
6735 ac_save_LIBS="$LIBS" 10403 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10404LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737cat > conftest.$ac_ext <<EOF 10405cat >conftest.$ac_ext <<_ACEOF
6738#line 6739 "configure" 10406/* confdefs.h. */
6739#include "confdefs.h" 10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411
6740/* Override any gcc2 internal prototype to avoid an error. */ 10412/* Override any gcc2 internal prototype to avoid an error. */
10413#ifdef __cplusplus
10414extern "C"
10415#endif
6741/* We use char because int might match the return type of a gcc2 10416/* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */ 10417 builtin and then its argument prototype would still apply. */
6743char IceConnectionNumber(); 10418char IceConnectionNumber ();
6744 10419int
6745int main() { 10420main ()
10421{
6746IceConnectionNumber() 10422IceConnectionNumber ();
10423 ;
6747; return 0; } 10424 return 0;
6748EOF 10425}
6749if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10426_ACEOF
10427rm -f conftest.$ac_objext conftest$ac_exeext
10428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -rf conftest* 10432 rm -f conftest.er1
6751 eval "ac_cv_lib_$ac_lib_var=yes" 10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_lib_ICE_IceConnectionNumber=yes
6752else 10449else
6753 echo "configure: failed program was:" >&5 10450 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5 10451sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -rf conftest* 10452
6756 eval "ac_cv_lib_$ac_lib_var=no" 10453ac_cv_lib_ICE_IceConnectionNumber=no
6757fi 10454fi
6758rm -f conftest* 10455rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
6759LIBS="$ac_save_LIBS" 10457LIBS=$ac_check_lib_save_LIBS
6760
6761fi 10458fi
6762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10459echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6763 echo "$ac_t""yes" 1>&6 10460echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10461if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6765else
6766 echo "$ac_t""no" 1>&6
6767fi 10463fi
6768 10464
6769 LDFLAGS="$ac_save_LDFLAGS" 10465 LDFLAGS=$ac_save_LDFLAGS
6770 10466
6771fi 10467fi
6772 10468
6773 10469
6774 10470
6775if test x$support_xpm = xyes; then 10471if test x$support_xpm = xyes; then
6776 10472
6777 10473
6778 10474
6779# Initialize some more variables set by options. 10475# Initialize some more variables set by options.
6780# The variables have the same names as the options, with 10476# The variables have the same names as the options, with
6781# dashes changed to underlines. 10477# dashes changed to underlines.
6782 10478
6783# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10479# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6784# paths, otherwise set no_xpm=yes. 10480# paths, otherwise set no_xpm=yes.
6785# Uses ac_ vars as temps to allow command line to override cache and checks. 10481# Uses ac_ vars as temps to allow command line to override cache and checks.
10482echo "$as_me:$LINENO: checking for libXpm" >&5
6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10483echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6787echo "configure:6788: checking for libXpm" >&5 10484
6788 10485
6789# Check whether --with-xpm_includes or --without-xpm_includes was given. 10486# Check whether --with-xpm_includes or --without-xpm_includes was given.
6790if test "${with_xpm_includes+set}" = set; then 10487if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes" 10488 withval="$with_xpm_includes"
6792 xpm_includes="$withval" 10489 xpm_includes="$withval"
6793else 10490else
6794 xpm_includes=NO 10491 xpm_includes=NO
6795fi 10492fi;
6796 10493
6797# Check whether --with-xpm_library or --without-xpm_library was given. 10494# Check whether --with-xpm_library or --without-xpm_library was given.
6798if test "${with_xpm_library+set}" = set; then 10495if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library" 10496 withval="$with_xpm_library"
6800 xpm_libraries="$withval" 10497 xpm_libraries="$withval"
6801else 10498else
6802 xpm_libraries=NO 10499 xpm_libraries=NO
6803fi 10500fi;
6804
6805 10501
6806# --without-xpm overrides everything else, but does not touch the cache. 10502# --without-xpm overrides everything else, but does not touch the cache.
10503
6807# Check whether --with-xpm or --without-xpm was given. 10504# Check whether --with-xpm or --without-xpm was given.
6808if test "${with_xpm+set}" = set; then 10505if test "${with_xpm+set}" = set; then
6809 withval="$with_xpm" 10506 withval="$with_xpm"
6810 : 10507
6811fi 10508fi;
6812
6813if test "$with_xpm" = no; then 10509if test "$with_xpm" = no; then
6814 have_xpm=disabled 10510 have_xpm=disabled
6815else 10511else
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10512 if test "${ac_cv_have_xpm+set}" = set; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 10513 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else 10514else
6819 10515
6820 vt_xpm_include_X11=no 10516 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then 10517 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes 10518 vt_xpm_includes=$xpm_includes
6823 else 10519 else
6824 vt_xpm_includes=NO 10520 vt_xpm_includes=NO
6834 10530
6835ac_save_CPPFLAGS="$CPPFLAGS" 10531ac_save_CPPFLAGS="$CPPFLAGS"
6836CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10532CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6837 10533
6838 # First, try using that file with no special directory specified. 10534 # First, try using that file with no special directory specified.
6839cat > conftest.$ac_ext <<EOF 10535cat >conftest.$ac_ext <<_ACEOF
6840#line 6841 "configure" 10536/* confdefs.h. */
6841#include "confdefs.h" 10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
6842#include <X11/xpm.h> 10541#include <X11/xpm.h>
6843EOF 10542_ACEOF
6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6845{ (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } >/dev/null; then
10551 if test -s conftest.err; then
10552 ac_cpp_err=$ac_cxx_preproc_warn_flag
10553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10554 else
10555 ac_cpp_err=
10556 fi
10557else
10558 ac_cpp_err=yes
10559fi
6847if test -z "$ac_err"; then 10560if test -z "$ac_cpp_err"; then
6848 rm -rf conftest*
6849 # We can compile using X headers with no special include directory. 10561 # We can compile using X headers with no special include directory.
6850vt_xpm_includes= 10562vt_xpm_includes=
6851vt_xpm_include_X11=yes 10563vt_xpm_include_X11=yes
6852else 10564else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5 10565 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5 10566sed 's/^/| /' conftest.$ac_ext >&5
6856 rm -rf conftest* 10567
6857 CPPFLAGS="$ac_save_CPPFLAGS" 10568 CPPFLAGS="$ac_save_CPPFLAGS"
6858# Look for the header file in a standard set of common directories. 10569# Look for the header file in a standard set of common directories.
6859 for ac_dir in \ 10570 for ac_dir in \
6860 /usr/X11/include \ 10571 /usr/X11/include \
6861 /usr/X11R6/include \ 10572 /usr/X11R6/include \
6902 break 10613 break
6903 fi 10614 fi
6904 fi 10615 fi
6905 done 10616 done
6906fi 10617fi
6907rm -f conftest* 10618rm -f conftest.err conftest.$ac_ext
6908fi 10619fi
6909 10620
6910if test "$vt_xpm_libraries" = NO; then 10621if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries. 10622 # Check for the libraries.
6912 10623
6913 # See if we find them without any special options. 10624 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently. 10625 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS" 10626 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10627 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917cat > conftest.$ac_ext <<EOF 10628cat >conftest.$ac_ext <<_ACEOF
6918#line 6919 "configure" 10629/* confdefs.h. */
6919#include "confdefs.h" 10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
6920 10634
6921int main() { 10635int
10636main ()
10637{
6922XpmReadFileToPixmap() 10638XpmReadFileToPixmap()
10639 ;
6923; return 0; } 10640 return 0;
6924EOF 10641}
6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10642_ACEOF
10643rm -f conftest.$ac_objext conftest$ac_exeext
10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -rf conftest* 10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
6927 LIBS="$ac_save_LIBS" 10664 LIBS="$ac_save_LIBS"
6928# We can link libXpm with no special library path. 10665# We can link libXpm with no special library path.
6929vt_xpm_libraries= 10666vt_xpm_libraries=
6930else 10667else
6931 echo "configure: failed program was:" >&5 10668 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 10669sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -rf conftest* 10670
6934 LIBS="$ac_save_LIBS" 10671LIBS="$ac_save_LIBS"
6935# First see if replacing the include by lib works. 10672# First see if replacing the include by lib works.
6936for ac_dir in \ 10673for ac_dir in \
6937 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10674 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6938 /usr/X11/lib \ 10675 /usr/X11/lib \
6939 /usr/X11R6/lib \ 10676 /usr/X11R6/lib \
6976 break 2 10713 break 2
6977 fi 10714 fi
6978 done 10715 done
6979done 10716done
6980fi 10717fi
6981rm -f conftest* 10718rm -f conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
6982fi 10720fi
6983 10721
6984 10722
6985 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10723 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6986 ac_cv_have_xpm="have_xpm=no" 10724 ac_cv_have_xpm="have_xpm=no"
6992fi 10730fi
6993 eval "$ac_cv_have_xpm" 10731 eval "$ac_cv_have_xpm"
6994fi 10732fi
6995 10733
6996if test "$have_xpm" != yes; then 10734if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6 10735 echo "$as_me:$LINENO: result: $have_xpm" >&5
10736echo "${ECHO_T}$have_xpm" >&6
6998 no_xpm=yes 10737 no_xpm=yes
6999else 10738else
7000 if test "$xpm_includes" != NO; then 10739 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then 10740 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then 10741 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes 10742 vt_xpm_include_X11=yes
7004 fi 10743 fi
7005 else 10744 else
7006 vt_xpm_include_X11=no 10745 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then 10746 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF 10747 cat >conftest.$ac_ext <<_ACEOF
7009#line 7010 "configure" 10748/* confdefs.h. */
7010#include "confdefs.h" 10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h. */
7011#include <X11/xpm.h> 10753#include <X11/xpm.h>
7012EOF 10754_ACEOF
7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7014{ (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } >/dev/null; then
10763 if test -s conftest.err; then
10764 ac_cpp_err=$ac_cxx_preproc_warn_flag
10765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10766 else
10767 ac_cpp_err=
10768 fi
10769else
10770 ac_cpp_err=yes
10771fi
7016if test -z "$ac_err"; then 10772if test -z "$ac_cpp_err"; then
7017 rm -rf conftest*
7018 vt_xpm_include_X11=yes 10773 vt_xpm_include_X11=yes
7019else 10774else
7020 echo "$ac_err" >&5
7021 echo "configure: failed program was:" >&5 10775 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5 10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778
7023fi 10779fi
7024rm -f conftest* 10780rm -f conftest.err conftest.$ac_ext
7025 else 10781 else
7026 if test -r "$xpm_includes/X11/xpm.h"; then 10782 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes 10783 vt_xpm_include_X11=yes
7028 fi 10784 fi
7029 fi 10785 fi
7036 # Update the cache value to reflect the command line values. 10792 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \ 10793 ac_cv_have_xpm="have_xpm=yes \
7038 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10794 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7039 vt_xpm_include_X11=$vt_xpm_include_X11" 10795 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 eval "$ac_cv_have_xpm" 10796 eval "$ac_cv_have_xpm"
10797 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7041 echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6 10798echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7042 if test -n "$vt_xpm_includes"; then 10799 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10800 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7044 fi 10801 fi
7045 if test -n "$vt_xpm_includes"; then 10802 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes" 10803 XPM_CFLAGS="-I$vt_xpm_includes"
7048 XPM_LIBS="-lXpm" 10805 XPM_LIBS="-lXpm"
7049 if test -n "$vt_xpm_libraries"; then 10806 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10807 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7051 fi 10808 fi
7052 if test "x$vt_xpm_include_X11" = xyes; then 10809 if test "x$vt_xpm_include_X11" = xyes; then
10810
7053 cat >> confdefs.h <<\EOF 10811cat >>confdefs.h <<\_ACEOF
7054#define XPM_INC_X11 1 10812#define XPM_INC_X11 1
7055EOF 10813_ACEOF
7056 10814
7057 fi 10815 fi
7058fi 10816fi
7059 10817
7060 10818
7064 if test x$no_xpm = xyes; then 10822 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification 10823 support_xpm=needsmanualspecification
7066 fi 10824 fi
7067fi 10825fi
7068 10826
10827echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7069echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 10828echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7070echo "configure:7071: checking for sys/wait.h that is POSIX.1 compatible" >&5
7071if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 10829if test "${ac_cv_header_sys_wait_h+set}" = set; then
7072 echo $ac_n "(cached) $ac_c" 1>&6 10830 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else 10831else
7074 cat > conftest.$ac_ext <<EOF 10832 cat >conftest.$ac_ext <<_ACEOF
7075#line 7076 "configure" 10833/* confdefs.h. */
7076#include "confdefs.h" 10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
7077#include <sys/types.h> 10838#include <sys/types.h>
7078#include <sys/wait.h> 10839#include <sys/wait.h>
7079#ifndef WEXITSTATUS 10840#ifndef WEXITSTATUS
7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10841# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7081#endif 10842#endif
7082#ifndef WIFEXITED 10843#ifndef WIFEXITED
7083#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10844# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7084#endif 10845#endif
7085int main() { 10846
10847int
10848main ()
10849{
7086int s; 10850 int s;
7087wait (&s); 10851 wait (&s);
7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10853 ;
7089; return 0; } 10854 return 0;
7090EOF 10855}
7091if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10856_ACEOF
10857rm -f conftest.$ac_objext
10858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -rf conftest* 10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
7093 ac_cv_header_sys_wait_h=yes 10878 ac_cv_header_sys_wait_h=yes
7094else 10879else
7095 echo "configure: failed program was:" >&5 10880 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 10881sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -rf conftest* 10882
7098 ac_cv_header_sys_wait_h=no 10883ac_cv_header_sys_wait_h=no
7099fi 10884fi
7100rm -f conftest* 10885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi 10886fi
7102 10887echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7103echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10888echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7104if test $ac_cv_header_sys_wait_h = yes; then 10889if test $ac_cv_header_sys_wait_h = yes; then
10890
7105 cat >> confdefs.h <<\EOF 10891cat >>confdefs.h <<\_ACEOF
7106#define HAVE_SYS_WAIT_H 1 10892#define HAVE_SYS_WAIT_H 1
7107EOF 10893_ACEOF
7108 10894
7109fi 10895fi
7110 10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
7111for ac_hdr in \ 10916for ac_header in \
7112 assert.h \ 10917 assert.h \
7113 fcntl.h \ 10918 fcntl.h \
7114 grp.h \ 10919 grp.h \
7115 libc.h \ 10920 libc.h \
7116 lastlog.h \ 10921 lastlog.h \
7128 utmp.h \ 10933 utmp.h \
7129 utmpx.h \ 10934 utmpx.h \
7130 stdint.h \ 10935 stdint.h \
7131 10936
7132do 10937do
7133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10939if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940 echo "$as_me:$LINENO: checking for $ac_header" >&5
7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135echo "configure:7136: checking for $ac_hdr" >&5 10942if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6 10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944fi
10945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138else 10947else
10948 # Is the header compilable?
10949echo "$as_me:$LINENO: checking $ac_header usability" >&5
10950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat > conftest.$ac_ext <<EOF 10951cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 10952/* confdefs.h. */
7141#include "confdefs.h" 10953_ACEOF
10954cat confdefs.h >>conftest.$ac_ext
10955cat >>conftest.$ac_ext <<_ACEOF
10956/* end confdefs.h. */
10957$ac_includes_default
7142#include <$ac_hdr> 10958#include <$ac_header>
7143EOF 10959_ACEOF
7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10960rm -f conftest.$ac_objext
7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10962 (eval $ac_compile) 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_header_compiler=yes
10982else
10983 echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986ac_header_compiler=no
10987fi
10988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990echo "${ECHO_T}$ac_header_compiler" >&6
10991
10992# Is the header present?
10993echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001#include <$ac_header>
11002_ACEOF
11003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null; then
11011 if test -s conftest.err; then
11012 ac_cpp_err=$ac_cxx_preproc_warn_flag
11013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11014 else
11015 ac_cpp_err=
11016 fi
11017else
11018 ac_cpp_err=yes
11019fi
7147if test -z "$ac_err"; then 11020if test -z "$ac_cpp_err"; then
7148 rm -rf conftest* 11021 ac_header_preproc=yes
7149 eval "ac_cv_header_$ac_safe=yes"
7150else 11022else
7151 echo "$ac_err" >&5
7152 echo "configure: failed program was:" >&5 11023 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 11024sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -rf conftest* 11025
7155 eval "ac_cv_header_$ac_safe=no" 11026 ac_header_preproc=no
7156fi 11027fi
7157rm -f conftest* 11028rm -f conftest.err conftest.$ac_ext
11029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030echo "${ECHO_T}$ac_header_preproc" >&6
11031
11032# So? What about this header?
11033case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11034 yes:no: )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11040 ;;
11041 no:yes:* )
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11054 (
11055 cat <<\_ASBOX
11056## ------------------------------------------ ##
11057## Report this to the AC_PACKAGE_NAME lists. ##
11058## ------------------------------------------ ##
11059_ASBOX
11060 ) |
11061 sed "s/^/$as_me: WARNING: /" >&2
11062 ;;
11063esac
11064echo "$as_me:$LINENO: checking for $ac_header" >&5
11065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066if eval "test \"\${$as_ac_Header+set}\" = set"; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 eval "$as_ac_Header=\$ac_header_preproc"
7158fi 11070fi
7159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "$ac_t""yes" 1>&6 11072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 11073
11074fi
11075if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >> confdefs.h <<EOF 11076 cat >>confdefs.h <<_ACEOF
7163#define $ac_tr_hdr 1 11077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164EOF 11078_ACEOF
7165 11079
7166else
7167 echo "$ac_t""no" 1>&6
7168fi 11080fi
11081
7169done 11082done
7170 11083
7171 11084
11085echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7172echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 11086echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7173echo "configure:7174: checking whether time.h and sys/time.h may both be included" >&5
7174if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 11087if test "${ac_cv_header_time+set}" = set; then
7175 echo $ac_n "(cached) $ac_c" 1>&6 11088 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else 11089else
7177 cat > conftest.$ac_ext <<EOF 11090 cat >conftest.$ac_ext <<_ACEOF
7178#line 7179 "configure" 11091/* confdefs.h. */
7179#include "confdefs.h" 11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
7180#include <sys/types.h> 11096#include <sys/types.h>
7181#include <sys/time.h> 11097#include <sys/time.h>
7182#include <time.h> 11098#include <time.h>
7183int main() { 11099
7184struct tm *tp; 11100int
11101main ()
11102{
11103if ((struct tm *) 0)
11104return 0;
11105 ;
7185; return 0; } 11106 return 0;
7186EOF 11107}
7187if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11108_ACEOF
11109rm -f conftest.$ac_objext
11110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11111 (eval $ac_compile) 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -rf conftest* 11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
7189 ac_cv_header_time=yes 11130 ac_cv_header_time=yes
7190else 11131else
7191 echo "configure: failed program was:" >&5 11132 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 11133sed 's/^/| /' conftest.$ac_ext >&5
7193 rm -rf conftest* 11134
7194 ac_cv_header_time=no 11135ac_cv_header_time=no
7195fi 11136fi
7196rm -f conftest* 11137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi 11138fi
7198 11139echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7199echo "$ac_t""$ac_cv_header_time" 1>&6 11140echo "${ECHO_T}$ac_cv_header_time" >&6
7200if test $ac_cv_header_time = yes; then 11141if test $ac_cv_header_time = yes; then
11142
7201 cat >> confdefs.h <<\EOF 11143cat >>confdefs.h <<\_ACEOF
7202#define TIME_WITH_SYS_TIME 1 11144#define TIME_WITH_SYS_TIME 1
7203EOF 11145_ACEOF
7204 11146
7205fi 11147fi
7206 11148
7207 11149
11150echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7208echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6 11151echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7209echo "configure:7210: checking whether termios.h and sys/ioctl.h may both be included" >&5
7210if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then 11152if test "${rxvt_cv_header_sysioctl+set}" = set; then
7211 echo $ac_n "(cached) $ac_c" 1>&6 11153 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else 11154else
7213 cat > conftest.$ac_ext <<EOF 11155 cat >conftest.$ac_ext <<_ACEOF
7214#line 7215 "configure" 11156/* confdefs.h. */
7215#include "confdefs.h" 11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
7216#include <stdio.h> 11161#include <stdio.h>
7217#include <sys/ioctl.h> 11162#include <sys/ioctl.h>
7218#ifdef HAVE_TERMIOS_H 11163#ifdef HAVE_TERMIOS_H
7219#include <termios.h> 11164#include <termios.h>
7220#endif 11165#endif
7221int main() { 11166int
11167main ()
11168{
7222int a = ECHO; 11169int a = ECHO;
11170 ;
7223; return 0; } 11171 return 0;
7224EOF 11172}
7225if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11173_ACEOF
11174rm -f conftest.$ac_objext
11175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -rf conftest* 11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
7227 rxvt_cv_header_sysioctl=yes 11195 rxvt_cv_header_sysioctl=yes
7228else 11196else
7229 echo "configure: failed program was:" >&5 11197 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 11198sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest* 11199
7232 rxvt_cv_header_sysioctl=no 11200rxvt_cv_header_sysioctl=no
7233fi 11201fi
7234rm -f conftest* 11202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi 11203fi
7236 11204echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7237echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 11205echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7238 11206
7239if test -n "$GCC"; then 11207if test -n "$GCC"; then
7240 LDARG="-Wl," 11208 LDARG="-Wl,"
7241else 11209else
7242 LDARG="" 11210 LDARG=""
7245 11213
7246ac_save_CFLAGS=$CFLAGS 11214ac_save_CFLAGS=$CFLAGS
7247ac_save_LIBS=$LIBS 11215ac_save_LIBS=$LIBS
7248CFLAGS="$CFLAGS $X_CFLAGS" 11216CFLAGS="$CFLAGS $X_CFLAGS"
7249LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 11217LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11218echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7250echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6 11219echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7251echo "configure:7252: checking for -rpath dynamic library path recording" >&5
7252if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then 11220if test "${rxvt_cv_rpath+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 11221 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 11222else
7255 if test "$cross_compiling" = yes; then 11223 if test "$cross_compiling" = yes; then
11224 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7256 echo "configure: warning: You may need to check the LIBS line" 1>&2 11225echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7257else 11226else
7258 cat > conftest.$ac_ext <<EOF 11227 cat >conftest.$ac_ext <<_ACEOF
7259#line 7260 "configure" 11228/* confdefs.h. */
7260#include "confdefs.h" 11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
7261 11233
7262main() 11234main()
7263{ 11235{
7264 exit(0); 11236 exit(0);
7265 (void) XOpenDisplay("foobar"); 11237 (void) XOpenDisplay("foobar");
7266} 11238}
7267EOF 11239_ACEOF
7268if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11240rm -f conftest$ac_exeext
7269then 11241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
7270 rxvt_cv_rpath=yes 11251 rxvt_cv_rpath=yes
7271else 11252else
11253 echo "$as_me: program exited with status $ac_status" >&5
7272 echo "configure: failed program was:" >&5 11254echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 11255sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -fr conftest* 11256
11257( exit $ac_status )
7275 rxvt_cv_rpath=no 11258rxvt_cv_rpath=no
7276fi 11259fi
7277rm -fr conftest* 11260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278fi 11261fi
7279
7280fi 11262fi
7281 11263echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7282echo "$ac_t""$rxvt_cv_rpath" 1>&6 11264echo "${ECHO_T}$rxvt_cv_rpath" >&6
7283if test x$rxvt_cv_rpath != xyes; then 11265if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11266 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7285 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 11267 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11268 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7286 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6 11269echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7287echo "configure:7288: checking for -R dynamic library path recording" >&5
7288if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then 11270if test "${rxvt_cv_R+set}" = set; then
7289 echo $ac_n "(cached) $ac_c" 1>&6 11271 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else 11272else
7291 if test "$cross_compiling" = yes; then 11273 if test "$cross_compiling" = yes; then
7292 rxvt_cv_R=no 11274 rxvt_cv_R=no
7293else 11275else
7294 cat > conftest.$ac_ext <<EOF 11276 cat >conftest.$ac_ext <<_ACEOF
7295#line 7296 "configure" 11277/* confdefs.h. */
7296#include "confdefs.h" 11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
7297 11282
7298main() 11283main()
7299{ 11284{
7300 exit(0); 11285 exit(0);
7301 (void) XOpenDisplay("foobar"); 11286 (void) XOpenDisplay("foobar");
7302} 11287}
7303EOF 11288_ACEOF
7304if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11289rm -f conftest$ac_exeext
7305then 11290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
7306 rxvt_cv_R=yes 11300 rxvt_cv_R=yes
7307else 11301else
11302 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "configure: failed program was:" >&5 11303echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5 11304sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -fr conftest* 11305
11306( exit $ac_status )
7311 rxvt_cv_R=no 11307rxvt_cv_R=no
7312fi 11308fi
7313rm -fr conftest* 11309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7314fi 11310fi
7315
7316fi 11311fi
7317 11312echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7318echo "$ac_t""$rxvt_cv_R" 1>&6 11313echo "${ECHO_T}$rxvt_cv_R" >&6
7319 if test x$rxvt_cv_R != xyes; then 11314 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11315 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7321 fi 11316 fi
7322fi 11317fi
7323 11318
11319echo "$as_me:$LINENO: checking for XPointer" >&5
7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11320echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7325echo "configure:7326: checking for XPointer" >&5
7326if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then 11321if test "${rxvt_cv_xpointer+set}" = set; then
7327 echo $ac_n "(cached) $ac_c" 1>&6 11322 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else 11323else
7329 cat > conftest.$ac_ext <<EOF 11324 cat >conftest.$ac_ext <<_ACEOF
7330#line 7331 "configure" 11325/* confdefs.h. */
7331#include "confdefs.h" 11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
7332#include <X11/Xlib.h> 11330#include <X11/Xlib.h>
7333int main() { 11331int
11332main ()
11333{
7334XPointer dummy; 11334XPointer dummy;
11335 ;
7335; return 0; } 11336 return 0;
7336EOF 11337}
7337if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11338_ACEOF
11339rm -f conftest.$ac_objext
11340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -rf conftest* 11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest.$ac_objext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
7339 rxvt_cv_xpointer=yes 11360 rxvt_cv_xpointer=yes
7340else 11361else
7341 echo "configure: failed program was:" >&5 11362 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5 11363sed 's/^/| /' conftest.$ac_ext >&5
7343 rm -rf conftest* 11364
7344 rxvt_cv_xpointer=no 11365rxvt_cv_xpointer=no
7345fi 11366fi
7346rm -f conftest* 11367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi 11368fi
7348 11369echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7349echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11370echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7350if test x$rxvt_cv_xpointer = xyes; then 11371if test x$rxvt_cv_xpointer = xyes; then
11372
7351 cat >> confdefs.h <<\EOF 11373cat >>confdefs.h <<\_ACEOF
7352#define HAVE_XPOINTER 1 11374#define HAVE_XPOINTER 1
7353EOF 11375_ACEOF
7354 11376
7355fi 11377fi
7356LIBS=$ac_save_LIBS 11378LIBS=$ac_save_LIBS
7357CFLAGS=$ac_save_CFLAGS 11379CFLAGS=$ac_save_CFLAGS
7358 11380
7359 11381
7360echo $ac_n "checking for working const""... $ac_c" 1>&6 11382echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361echo "configure:7362: checking for working const" >&5 11383echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11384if test "${ac_cv_c_const+set}" = set; then
7363 echo $ac_n "(cached) $ac_c" 1>&6 11385 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else 11386else
7365 cat > conftest.$ac_ext <<EOF 11387 cat >conftest.$ac_ext <<_ACEOF
7366#line 7367 "configure" 11388/* confdefs.h. */
7367#include "confdefs.h" 11389_ACEOF
11390cat confdefs.h >>conftest.$ac_ext
11391cat >>conftest.$ac_ext <<_ACEOF
11392/* end confdefs.h. */
7368 11393
7369int main() { 11394int
7370 11395main ()
11396{
11397/* FIXME: Include the comments suggested by Paul. */
11398#ifndef __cplusplus
7371/* Ultrix mips cc rejects this. */ 11399 /* Ultrix mips cc rejects this. */
7372typedef int charset[2]; const charset x; 11400 typedef int charset[2];
11401 const charset x;
7373/* SunOS 4.1.1 cc rejects this. */ 11402 /* SunOS 4.1.1 cc rejects this. */
7374char const *const *ccp; 11403 char const *const *ccp;
7375char **p; 11404 char **p;
7376/* NEC SVR4.0.2 mips cc rejects this. */ 11405 /* NEC SVR4.0.2 mips cc rejects this. */
7377struct point {int x, y;}; 11406 struct point {int x, y;};
7378static struct point const zero = {0,0}; 11407 static struct point const zero = {0,0};
7379/* AIX XL C 1.02.0.0 rejects this. 11408 /* AIX XL C 1.02.0.0 rejects this.
7380 It does not let you subtract one const X* pointer from another in an arm 11409 It does not let you subtract one const X* pointer from another in
7381 of an if-expression whose if-part is not a constant expression */ 11410 an arm of an if-expression whose if-part is not a constant
11411 expression */
7382const char *g = "string"; 11412 const char *g = "string";
7383ccp = &g + (g ? g-g : 0); 11413 ccp = &g + (g ? g-g : 0);
7384/* HPUX 7.0 cc rejects these. */ 11414 /* HPUX 7.0 cc rejects these. */
7385++ccp; 11415 ++ccp;
7386p = (char**) ccp; 11416 p = (char**) ccp;
7387ccp = (char const *const *) p; 11417 ccp = (char const *const *) p;
7388{ /* SCO 3.2v4 cc rejects this. */ 11418 { /* SCO 3.2v4 cc rejects this. */
7389 char *t; 11419 char *t;
7390 char const *s = 0 ? (char *) 0 : (char const *) 0; 11420 char const *s = 0 ? (char *) 0 : (char const *) 0;
7391 11421
7392 *t++ = 0; 11422 *t++ = 0;
11423 }
11424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11425 int x[] = {25, 17};
11426 const int *foo = &x[0];
11427 ++foo;
11428 }
11429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11430 typedef const int *iptr;
11431 iptr p = 0;
11432 ++p;
11433 }
11434 { /* AIX XL C 1.02.0.0 rejects this saying
11435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11436 struct s { int j; const int *ap[3]; };
11437 struct s *b; b->j = 5;
11438 }
11439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11440 const int foo = 10;
11441 }
11442#endif
11443
11444 ;
11445 return 0;
7393} 11446}
7394{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11447_ACEOF
7395 int x[] = {25, 17}; 11448rm -f conftest.$ac_objext
7396 const int *foo = &x[0]; 11449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 ++foo; 11450 (eval $ac_compile) 2>conftest.er1
7398} 11451 ac_status=$?
7399{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11452 grep -v '^ *+' conftest.er1 >conftest.err
7400 typedef const int *iptr;
7401 iptr p = 0;
7402 ++p;
7403}
7404{ /* AIX XL C 1.02.0.0 rejects this saying
7405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7406 struct s { int j; const int *ap[3]; };
7407 struct s *b; b->j = 5;
7408}
7409{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7410 const int foo = 10;
7411}
7412
7413; return 0; }
7414EOF
7415if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7416 rm -rf conftest* 11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
7417 ac_cv_c_const=yes 11469 ac_cv_c_const=yes
7418else 11470else
7419 echo "configure: failed program was:" >&5 11471 echo "$as_me: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 11472sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -rf conftest* 11473
7422 ac_cv_c_const=no 11474ac_cv_c_const=no
7423fi 11475fi
7424rm -f conftest* 11476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi 11477fi
7426 11478echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7427echo "$ac_t""$ac_cv_c_const" 1>&6 11479echo "${ECHO_T}$ac_cv_c_const" >&6
7428if test $ac_cv_c_const = no; then 11480if test $ac_cv_c_const = no; then
11481
7429 cat >> confdefs.h <<\EOF 11482cat >>confdefs.h <<\_ACEOF
7430#define const 11483#define const
7431EOF 11484_ACEOF
7432 11485
7433fi 11486fi
7434 11487
11488echo "$as_me:$LINENO: checking for inline" >&5
7435echo $ac_n "checking for inline""... $ac_c" 1>&6 11489echo $ECHO_N "checking for inline... $ECHO_C" >&6
7436echo "configure:7437: checking for inline" >&5
7437if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 11490if test "${ac_cv_c_inline+set}" = set; then
7438 echo $ac_n "(cached) $ac_c" 1>&6 11491 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 11492else
7440 ac_cv_c_inline=no 11493 ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do 11494for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF 11495 cat >conftest.$ac_ext <<_ACEOF
7443#line 7444 "configure" 11496/* confdefs.h. */
7444#include "confdefs.h" 11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501#ifndef __cplusplus
11502typedef int foo_t;
11503static $ac_kw foo_t static_foo () {return 0; }
11504$ac_kw foo_t foo () {return 0; }
11505#endif
7445 11506
7446int main() { 11507_ACEOF
7447} $ac_kw foo() { 11508rm -f conftest.$ac_objext
7448; return 0; } 11509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449EOF 11510 (eval $ac_compile) 2>conftest.er1
7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -rf conftest* 11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest.$ac_objext'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
7452 ac_cv_c_inline=$ac_kw; break 11529 ac_cv_c_inline=$ac_kw; break
7453else 11530else
7454 echo "configure: failed program was:" >&5 11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534fi
11535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11536done
11537
11538fi
11539echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11540echo "${ECHO_T}$ac_cv_c_inline" >&6
11541
11542
11543case $ac_cv_c_inline in
11544 inline | yes) ;;
11545 *)
11546 case $ac_cv_c_inline in
11547 no) ac_val=;;
11548 *) ac_val=$ac_cv_c_inline;;
11549 esac
11550 cat >>confdefs.h <<_ACEOF
11551#ifndef __cplusplus
11552#define inline $ac_val
11553#endif
11554_ACEOF
11555 ;;
11556esac
11557
11558
11559
11560echo "$as_me:$LINENO: checking for mode_t" >&5
11561echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11562if test "${ac_cv_type_mode_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 cat >conftest.$ac_ext <<_ACEOF
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
11571$ac_includes_default
11572int
11573main ()
11574{
11575if ((mode_t *) 0)
11576 return 0;
11577if (sizeof (mode_t))
11578 return 0;
11579 ;
11580 return 0;
11581}
11582_ACEOF
11583rm -f conftest.$ac_objext
11584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
7455 cat conftest.$ac_ext >&5 11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_type_mode_t=yes
11605else
11606 echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609ac_cv_type_mode_t=no
11610fi
11611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11612fi
11613echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11614echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11615if test $ac_cv_type_mode_t = yes; then
11616 :
11617else
11618
11619cat >>confdefs.h <<_ACEOF
11620#define mode_t int
11621_ACEOF
11622
11623fi
11624
11625echo "$as_me:$LINENO: checking for pid_t" >&5
11626echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11627if test "${ac_cv_type_pid_t+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636$ac_includes_default
11637int
11638main ()
11639{
11640if ((pid_t *) 0)
11641 return 0;
11642if (sizeof (pid_t))
11643 return 0;
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext
11649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_type_pid_t=yes
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674ac_cv_type_pid_t=no
11675fi
11676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11679echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11680if test $ac_cv_type_pid_t = yes; then
11681 :
11682else
11683
11684cat >>confdefs.h <<_ACEOF
11685#define pid_t int
11686_ACEOF
11687
11688fi
11689
11690echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11691echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11692if test "${ac_cv_type_uid_t+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 cat >conftest.$ac_ext <<_ACEOF
11696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
11701#include <sys/types.h>
11702
11703_ACEOF
11704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705 $EGREP "uid_t" >/dev/null 2>&1; then
11706 ac_cv_type_uid_t=yes
11707else
11708 ac_cv_type_uid_t=no
7456fi 11709fi
7457rm -f conftest* 11710rm -f conftest*
11711
11712fi
11713echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11714echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11715if test $ac_cv_type_uid_t = no; then
11716
11717cat >>confdefs.h <<\_ACEOF
11718#define uid_t int
11719_ACEOF
11720
11721
11722cat >>confdefs.h <<\_ACEOF
11723#define gid_t int
11724_ACEOF
11725
11726fi
11727
11728
11729
11730echo "$as_me:$LINENO: checking for char" >&5
11731echo $ECHO_N "checking for char... $ECHO_C" >&6
11732if test "${ac_cv_type_char+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741$ac_includes_default
11742int
11743main ()
11744{
11745if ((char *) 0)
11746 return 0;
11747if (sizeof (char))
11748 return 0;
11749 ;
11750 return 0;
11751}
11752_ACEOF
11753rm -f conftest.$ac_objext
11754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_type_char=yes
11775else
11776 echo "$as_me: failed program was:" >&5
11777sed 's/^/| /' conftest.$ac_ext >&5
11778
11779ac_cv_type_char=no
11780fi
11781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782fi
11783echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11784echo "${ECHO_T}$ac_cv_type_char" >&6
11785
11786echo "$as_me:$LINENO: checking size of char" >&5
11787echo $ECHO_N "checking size of char... $ECHO_C" >&6
11788if test "${ac_cv_sizeof_char+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 if test "$ac_cv_type_char" = yes; then
11792 # The cast to unsigned long works around a bug in the HP C Compiler
11793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11795 # This bug is HP SR number 8606223364.
11796 if test "$cross_compiling" = yes; then
11797 # Depending upon the size, compute the lo and hi bounds.
11798cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804$ac_includes_default
11805int
11806main ()
11807{
11808static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11809test_array [0] = 0
11810
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext
11816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_lo=0 ac_mid=0
11837 while :; do
11838 cat >conftest.$ac_ext <<_ACEOF
11839/* confdefs.h. */
11840_ACEOF
11841cat confdefs.h >>conftest.$ac_ext
11842cat >>conftest.$ac_ext <<_ACEOF
11843/* end confdefs.h. */
11844$ac_includes_default
11845int
11846main ()
11847{
11848static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11849test_array [0] = 0
11850
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext
11856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_hi=$ac_mid; break
11877else
11878 echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881ac_lo=`expr $ac_mid + 1`
11882 if test $ac_lo -le $ac_mid; then
11883 ac_lo= ac_hi=
11884 break
11885 fi
11886 ac_mid=`expr 2 '*' $ac_mid + 1`
11887fi
11888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11889 done
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900$ac_includes_default
11901int
11902main ()
11903{
11904static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11905test_array [0] = 0
11906
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest.$ac_objext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 ac_hi=-1 ac_mid=-1
11933 while :; do
11934 cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940$ac_includes_default
11941int
11942main ()
11943{
11944static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11945test_array [0] = 0
11946
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_lo=$ac_mid; break
11973else
11974 echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977ac_hi=`expr '(' $ac_mid ')' - 1`
11978 if test $ac_mid -le $ac_hi; then
11979 ac_lo= ac_hi=
11980 break
11981 fi
11982 ac_mid=`expr 2 '*' $ac_mid`
11983fi
11984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11985 done
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_lo= ac_hi=
11991fi
11992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993fi
11994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995# Binary search between lo and hi bounds.
11996while test "x$ac_lo" != "x$ac_hi"; do
11997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11998 cat >conftest.$ac_ext <<_ACEOF
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
12004$ac_includes_default
12005int
12006main ()
12007{
12008static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12009test_array [0] = 0
12010
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext
12016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_hi=$ac_mid
12037else
12038 echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041ac_lo=`expr '(' $ac_mid ')' + 1`
12042fi
12043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458done 12044done
7459 12045case $ac_lo in
7460fi 12046?*) ac_cv_sizeof_char=$ac_lo;;
7461 12047'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7462echo "$ac_t""$ac_cv_c_inline" 1>&6 12048See \`config.log' for more details." >&5
7463case "$ac_cv_c_inline" in 12049echo "$as_me: error: cannot compute sizeof (char), 77
7464 inline | yes) ;; 12050See \`config.log' for more details." >&2;}
7465 no) cat >> confdefs.h <<\EOF 12051 { (exit 1); exit 1; }; } ;;
7466#define inline
7467EOF
7468 ;;
7469 *) cat >> confdefs.h <<EOF
7470#define inline $ac_cv_c_inline
7471EOF
7472 ;;
7473esac 12052esac
7474
7475
7476
7477echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7478echo "configure:7479: checking for ANSI C header files" >&5
7479if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7481else 12053else
12054 if test "$cross_compiling" = yes; then
12055 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12056echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12057 { (exit 1); exit 1; }; }
12058else
7482 cat > conftest.$ac_ext <<EOF 12059 cat >conftest.$ac_ext <<_ACEOF
7483#line 7484 "configure" 12060/* confdefs.h. */
7484#include "confdefs.h" 12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065$ac_includes_default
12066long longval () { return (long) (sizeof (char)); }
12067unsigned long ulongval () { return (long) (sizeof (char)); }
12068#include <stdio.h>
7485#include <stdlib.h> 12069#include <stdlib.h>
7486#include <stdarg.h> 12070int
7487#include <string.h> 12071main ()
7488#include <float.h> 12072{
7489EOF 12073
7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12074 FILE *f = fopen ("conftest.val", "w");
7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12075 if (! f)
7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12076 exit (1);
7493if test -z "$ac_err"; then 12077 if (((long) (sizeof (char))) < 0)
7494 rm -rf conftest* 12078 {
7495 ac_cv_header_stdc=yes 12079 long i = longval ();
12080 if (i != ((long) (sizeof (char))))
12081 exit (1);
12082 fprintf (f, "%ld\n", i);
12083 }
7496else 12084 else
7497 echo "$ac_err" >&5 12085 {
12086 unsigned long i = ulongval ();
12087 if (i != ((long) (sizeof (char))))
12088 exit (1);
12089 fprintf (f, "%lu\n", i);
12090 }
12091 exit (ferror (f) || fclose (f) != 0);
12092
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097rm -f conftest$ac_exeext
12098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_sizeof_char=`cat conftest.val`
12109else
12110 echo "$as_me: program exited with status $ac_status" >&5
7498 echo "configure: failed program was:" >&5 12111echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5 12112sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -rf conftest* 12113
7501 ac_cv_header_stdc=no 12114( exit $ac_status )
12115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12116See \`config.log' for more details." >&5
12117echo "$as_me: error: cannot compute sizeof (char), 77
12118See \`config.log' for more details." >&2;}
12119 { (exit 1); exit 1; }; }
7502fi 12120fi
12121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12122fi
12123fi
7503rm -f conftest* 12124rm -f conftest.val
12125else
12126 ac_cv_sizeof_char=0
12127fi
12128fi
12129echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12130echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12131cat >>confdefs.h <<_ACEOF
12132#define SIZEOF_CHAR $ac_cv_sizeof_char
12133_ACEOF
7504 12134
12135
12136echo "$as_me:$LINENO: checking for short" >&5
12137echo $ECHO_N "checking for short... $ECHO_C" >&6
12138if test "${ac_cv_type_short+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
12147$ac_includes_default
12148int
12149main ()
12150{
12151if ((short *) 0)
12152 return 0;
12153if (sizeof (short))
12154 return 0;
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159rm -f conftest.$ac_objext
12160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_type_short=yes
12181else
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185ac_cv_type_short=no
12186fi
12187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12188fi
12189echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12190echo "${ECHO_T}$ac_cv_type_short" >&6
12191
12192echo "$as_me:$LINENO: checking size of short" >&5
12193echo $ECHO_N "checking size of short... $ECHO_C" >&6
12194if test "${ac_cv_sizeof_short+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
7505if test $ac_cv_header_stdc = yes; then 12197 if test "$ac_cv_type_short" = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12198 # The cast to unsigned long works around a bug in the HP C Compiler
12199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12201 # This bug is HP SR number 8606223364.
12202 if test "$cross_compiling" = yes; then
12203 # Depending upon the size, compute the lo and hi bounds.
7507cat > conftest.$ac_ext <<EOF 12204cat >conftest.$ac_ext <<_ACEOF
7508#line 7509 "configure" 12205/* confdefs.h. */
7509#include "confdefs.h" 12206_ACEOF
7510#include <string.h> 12207cat confdefs.h >>conftest.$ac_ext
7511EOF 12208cat >>conftest.$ac_ext <<_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12209/* end confdefs.h. */
7513 egrep "memchr" >/dev/null 2>&1; then 12210$ac_includes_default
7514 : 12211int
7515else 12212main ()
12213{
12214static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12215test_array [0] = 0
12216
12217 ;
12218 return 0;
12219}
12220_ACEOF
12221rm -f conftest.$ac_objext
12222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -rf conftest* 12226 rm -f conftest.er1
7517 ac_cv_header_stdc=no 12227 cat conftest.err >&5
7518fi 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 ac_lo=0 ac_mid=0
12243 while :; do
12244 cat >conftest.$ac_ext <<_ACEOF
12245/* confdefs.h. */
12246_ACEOF
12247cat confdefs.h >>conftest.$ac_ext
12248cat >>conftest.$ac_ext <<_ACEOF
12249/* end confdefs.h. */
12250$ac_includes_default
12251int
12252main ()
12253{
12254static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12255test_array [0] = 0
12256
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261rm -f conftest.$ac_objext
12262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263 (eval $ac_compile) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
7519rm -f conftest* 12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_hi=$ac_mid; break
12283else
12284 echo "$as_me: failed program was:" >&5
12285sed 's/^/| /' conftest.$ac_ext >&5
7520 12286
12287ac_lo=`expr $ac_mid + 1`
12288 if test $ac_lo -le $ac_mid; then
12289 ac_lo= ac_hi=
12290 break
12291 fi
12292 ac_mid=`expr 2 '*' $ac_mid + 1`
7521fi 12293fi
12294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 done
12296else
12297 echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
7522 12299
7523if test $ac_cv_header_stdc = yes; then
7524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7525cat > conftest.$ac_ext <<EOF 12300cat >conftest.$ac_ext <<_ACEOF
7526#line 7527 "configure" 12301/* confdefs.h. */
7527#include "confdefs.h" 12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306$ac_includes_default
12307int
12308main ()
12309{
12310static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12311test_array [0] = 0
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
12318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_hi=-1 ac_mid=-1
12339 while :; do
12340 cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346$ac_includes_default
12347int
12348main ()
12349{
12350static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12351test_array [0] = 0
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_lo=$ac_mid; break
12379else
12380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383ac_hi=`expr '(' $ac_mid ')' - 1`
12384 if test $ac_mid -le $ac_hi; then
12385 ac_lo= ac_hi=
12386 break
12387 fi
12388 ac_mid=`expr 2 '*' $ac_mid`
12389fi
12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 done
12392else
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396ac_lo= ac_hi=
12397fi
12398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12399fi
12400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401# Binary search between lo and hi bounds.
12402while test "x$ac_lo" != "x$ac_hi"; do
12403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410$ac_includes_default
12411int
12412main ()
12413{
12414static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12415test_array [0] = 0
12416
12417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_hi=$ac_mid
12443else
12444 echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447ac_lo=`expr '(' $ac_mid ')' + 1`
12448fi
12449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12450done
12451case $ac_lo in
12452?*) ac_cv_sizeof_short=$ac_lo;;
12453'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12454See \`config.log' for more details." >&5
12455echo "$as_me: error: cannot compute sizeof (short), 77
12456See \`config.log' for more details." >&2;}
12457 { (exit 1); exit 1; }; } ;;
12458esac
12459else
12460 if test "$cross_compiling" = yes; then
12461 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12462echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12463 { (exit 1); exit 1; }; }
12464else
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
12472long longval () { return (long) (sizeof (short)); }
12473unsigned long ulongval () { return (long) (sizeof (short)); }
12474#include <stdio.h>
7528#include <stdlib.h> 12475#include <stdlib.h>
7529EOF 12476int
7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12477main ()
7531 egrep "free" >/dev/null 2>&1; then 12478{
7532 : 12479
12480 FILE *f = fopen ("conftest.val", "w");
12481 if (! f)
12482 exit (1);
12483 if (((long) (sizeof (short))) < 0)
12484 {
12485 long i = longval ();
12486 if (i != ((long) (sizeof (short))))
12487 exit (1);
12488 fprintf (f, "%ld\n", i);
12489 }
7533else 12490 else
7534 rm -rf conftest* 12491 {
7535 ac_cv_header_stdc=no 12492 unsigned long i = ulongval ();
12493 if (i != ((long) (sizeof (short))))
12494 exit (1);
12495 fprintf (f, "%lu\n", i);
12496 }
12497 exit (ferror (f) || fclose (f) != 0);
12498
12499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_sizeof_short=`cat conftest.val`
12515else
12516 echo "$as_me: program exited with status $ac_status" >&5
12517echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520( exit $ac_status )
12521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12522See \`config.log' for more details." >&5
12523echo "$as_me: error: cannot compute sizeof (short), 77
12524See \`config.log' for more details." >&2;}
12525 { (exit 1); exit 1; }; }
7536fi 12526fi
12527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12528fi
12529fi
7537rm -f conftest* 12530rm -f conftest.val
7538 12531else
12532 ac_cv_sizeof_short=0
7539fi 12533fi
12534fi
12535echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12536echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12537cat >>confdefs.h <<_ACEOF
12538#define SIZEOF_SHORT $ac_cv_sizeof_short
12539_ACEOF
7540 12540
12541
12542echo "$as_me:$LINENO: checking for int" >&5
12543echo $ECHO_N "checking for int... $ECHO_C" >&6
12544if test "${ac_cv_type_int+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547 cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553$ac_includes_default
12554int
12555main ()
12556{
12557if ((int *) 0)
12558 return 0;
12559if (sizeof (int))
12560 return 0;
12561 ;
12562 return 0;
12563}
12564_ACEOF
12565rm -f conftest.$ac_objext
12566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_type_int=yes
12587else
12588 echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591ac_cv_type_int=no
12592fi
12593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594fi
12595echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12596echo "${ECHO_T}$ac_cv_type_int" >&6
12597
12598echo "$as_me:$LINENO: checking size of int" >&5
12599echo $ECHO_N "checking size of int... $ECHO_C" >&6
12600if test "${ac_cv_sizeof_int+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
7541if test $ac_cv_header_stdc = yes; then 12603 if test "$ac_cv_type_int" = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12604 # The cast to unsigned long works around a bug in the HP C Compiler
12605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12607 # This bug is HP SR number 8606223364.
7543if test "$cross_compiling" = yes; then 12608 if test "$cross_compiling" = yes; then
7544 : 12609 # Depending upon the size, compute the lo and hi bounds.
12610cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616$ac_includes_default
12617int
12618main ()
12619{
12620static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12621test_array [0] = 0
12622
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_lo=0 ac_mid=0
12649 while :; do
12650 cat >conftest.$ac_ext <<_ACEOF
12651/* confdefs.h. */
12652_ACEOF
12653cat confdefs.h >>conftest.$ac_ext
12654cat >>conftest.$ac_ext <<_ACEOF
12655/* end confdefs.h. */
12656$ac_includes_default
12657int
12658main ()
12659{
12660static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12661test_array [0] = 0
12662
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667rm -f conftest.$ac_objext
12668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_hi=$ac_mid; break
7545else 12689else
12690 echo "$as_me: failed program was:" >&5
12691sed 's/^/| /' conftest.$ac_ext >&5
12692
12693ac_lo=`expr $ac_mid + 1`
12694 if test $ac_lo -le $ac_mid; then
12695 ac_lo= ac_hi=
12696 break
12697 fi
12698 ac_mid=`expr 2 '*' $ac_mid + 1`
12699fi
12700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701 done
12702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706cat >conftest.$ac_ext <<_ACEOF
12707/* confdefs.h. */
12708_ACEOF
12709cat confdefs.h >>conftest.$ac_ext
12710cat >>conftest.$ac_ext <<_ACEOF
12711/* end confdefs.h. */
12712$ac_includes_default
12713int
12714main ()
12715{
12716static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12717test_array [0] = 0
12718
12719 ;
12720 return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext
12724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_hi=-1 ac_mid=-1
12745 while :; do
12746 cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752$ac_includes_default
12753int
12754main ()
12755{
12756static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12757test_array [0] = 0
12758
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763rm -f conftest.$ac_objext
12764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_lo=$ac_mid; break
12785else
12786 echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
12789ac_hi=`expr '(' $ac_mid ')' - 1`
12790 if test $ac_mid -le $ac_hi; then
12791 ac_lo= ac_hi=
12792 break
12793 fi
12794 ac_mid=`expr 2 '*' $ac_mid`
12795fi
12796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797 done
12798else
12799 echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
12802ac_lo= ac_hi=
12803fi
12804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805fi
12806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12807# Binary search between lo and hi bounds.
12808while test "x$ac_lo" != "x$ac_hi"; do
12809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7546 cat > conftest.$ac_ext <<EOF 12810 cat >conftest.$ac_ext <<_ACEOF
7547#line 7548 "configure" 12811/* confdefs.h. */
7548#include "confdefs.h" 12812_ACEOF
7549#include <ctype.h> 12813cat confdefs.h >>conftest.$ac_ext
7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12814cat >>conftest.$ac_ext <<_ACEOF
7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12815/* end confdefs.h. */
7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12816$ac_includes_default
7553int main () { int i; for (i = 0; i < 256; i++) 12817int
7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12818main ()
7555exit (0); } 12819{
12820static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12821test_array [0] = 0
7556 12822
7557EOF 12823 ;
7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12824 return 0;
7559then 12825}
7560 : 12826_ACEOF
12827rm -f conftest.$ac_objext
12828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_hi=$ac_mid
7561else 12849else
7562 echo "configure: failed program was:" >&5 12850 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 12851sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -fr conftest*
7565 ac_cv_header_stdc=no
7566fi
7567rm -fr conftest*
7568fi
7569 12852
12853ac_lo=`expr '(' $ac_mid ')' + 1`
7570fi 12854fi
7571fi 12855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 12856done
7573echo "$ac_t""$ac_cv_header_stdc" 1>&6 12857case $ac_lo in
7574if test $ac_cv_header_stdc = yes; then 12858?*) ac_cv_sizeof_int=$ac_lo;;
7575 cat >> confdefs.h <<\EOF 12859'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7576#define STDC_HEADERS 1 12860See \`config.log' for more details." >&5
7577EOF 12861echo "$as_me: error: cannot compute sizeof (int), 77
7578 12862See \`config.log' for more details." >&2;}
7579fi 12863 { (exit 1); exit 1; }; } ;;
7580 12864esac
7581echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7582echo "configure:7583: checking for mode_t" >&5
7583if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585else 12865else
12866 if test "$cross_compiling" = yes; then
12867 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12868echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12869 { (exit 1); exit 1; }; }
12870else
7586 cat > conftest.$ac_ext <<EOF 12871 cat >conftest.$ac_ext <<_ACEOF
7587#line 7588 "configure" 12872/* confdefs.h. */
7588#include "confdefs.h" 12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877$ac_includes_default
12878long longval () { return (long) (sizeof (int)); }
12879unsigned long ulongval () { return (long) (sizeof (int)); }
7589#include <sys/types.h> 12880#include <stdio.h>
7590#if STDC_HEADERS
7591#include <stdlib.h> 12881#include <stdlib.h>
7592#include <stddef.h> 12882int
7593#endif 12883main ()
7594EOF 12884{
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12885
7596 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12886 FILE *f = fopen ("conftest.val", "w");
7597 rm -rf conftest* 12887 if (! f)
7598 ac_cv_type_mode_t=yes 12888 exit (1);
12889 if (((long) (sizeof (int))) < 0)
12890 {
12891 long i = longval ();
12892 if (i != ((long) (sizeof (int))))
12893 exit (1);
12894 fprintf (f, "%ld\n", i);
12895 }
7599else 12896 else
7600 rm -rf conftest* 12897 {
7601 ac_cv_type_mode_t=no 12898 unsigned long i = ulongval ();
12899 if (i != ((long) (sizeof (int))))
12900 exit (1);
12901 fprintf (f, "%lu\n", i);
12902 }
12903 exit (ferror (f) || fclose (f) != 0);
12904
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909rm -f conftest$ac_exeext
12910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911 (eval $ac_link) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_sizeof_int=`cat conftest.val`
12921else
12922 echo "$as_me: program exited with status $ac_status" >&5
12923echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926( exit $ac_status )
12927{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12928See \`config.log' for more details." >&5
12929echo "$as_me: error: cannot compute sizeof (int), 77
12930See \`config.log' for more details." >&2;}
12931 { (exit 1); exit 1; }; }
7602fi 12932fi
12933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12934fi
12935fi
7603rm -f conftest* 12936rm -f conftest.val
7604 12937else
12938 ac_cv_sizeof_int=0
7605fi 12939fi
7606echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12940fi
7607if test $ac_cv_type_mode_t = no; then 12941echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12942echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7608 cat >> confdefs.h <<\EOF 12943cat >>confdefs.h <<_ACEOF
7609#define mode_t int 12944#define SIZEOF_INT $ac_cv_sizeof_int
7610EOF 12945_ACEOF
7611 12946
7612fi
7613 12947
7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12948echo "$as_me:$LINENO: checking for long" >&5
7615echo "configure:7616: checking for pid_t" >&5 12949echo $ECHO_N "checking for long... $ECHO_C" >&6
7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12950if test "${ac_cv_type_long+set}" = set; then
7617 echo $ac_n "(cached) $ac_c" 1>&6 12951 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else 12952else
7619 cat > conftest.$ac_ext <<EOF 12953 cat >conftest.$ac_ext <<_ACEOF
7620#line 7621 "configure" 12954/* confdefs.h. */
7621#include "confdefs.h" 12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
12958/* end confdefs.h. */
12959$ac_includes_default
12960int
12961main ()
12962{
12963if ((long *) 0)
12964 return 0;
12965if (sizeof (long))
12966 return 0;
12967 ;
12968 return 0;
12969}
12970_ACEOF
12971rm -f conftest.$ac_objext
12972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12973 (eval $ac_compile) 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_type_long=yes
12993else
12994 echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
12997ac_cv_type_long=no
12998fi
12999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000fi
13001echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13002echo "${ECHO_T}$ac_cv_type_long" >&6
13003
13004echo "$as_me:$LINENO: checking size of long" >&5
13005echo $ECHO_N "checking size of long... $ECHO_C" >&6
13006if test "${ac_cv_sizeof_long+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 if test "$ac_cv_type_long" = yes; then
13010 # The cast to unsigned long works around a bug in the HP C Compiler
13011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13013 # This bug is HP SR number 8606223364.
13014 if test "$cross_compiling" = yes; then
13015 # Depending upon the size, compute the lo and hi bounds.
13016cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
13022$ac_includes_default
13023int
13024main ()
13025{
13026static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13027test_array [0] = 0
13028
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext
13034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035 (eval $ac_compile) 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_lo=0 ac_mid=0
13055 while :; do
13056 cat >conftest.$ac_ext <<_ACEOF
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
13061/* end confdefs.h. */
13062$ac_includes_default
13063int
13064main ()
13065{
13066static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13067test_array [0] = 0
13068
13069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext
13074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest.$ac_objext'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_hi=$ac_mid; break
13095else
13096 echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
13098
13099ac_lo=`expr $ac_mid + 1`
13100 if test $ac_lo -le $ac_mid; then
13101 ac_lo= ac_hi=
13102 break
13103 fi
13104 ac_mid=`expr 2 '*' $ac_mid + 1`
13105fi
13106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13107 done
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h. */
13118$ac_includes_default
13119int
13120main ()
13121{
13122static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13123test_array [0] = 0
13124
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext
13130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_hi=-1 ac_mid=-1
13151 while :; do
13152 cat >conftest.$ac_ext <<_ACEOF
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158$ac_includes_default
13159int
13160main ()
13161{
13162static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13163test_array [0] = 0
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
13170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_lo=$ac_mid; break
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195ac_hi=`expr '(' $ac_mid ')' - 1`
13196 if test $ac_mid -le $ac_hi; then
13197 ac_lo= ac_hi=
13198 break
13199 fi
13200 ac_mid=`expr 2 '*' $ac_mid`
13201fi
13202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13203 done
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_lo= ac_hi=
13209fi
13210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13211fi
13212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13213# Binary search between lo and hi bounds.
13214while test "x$ac_lo" != "x$ac_hi"; do
13215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13216 cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
13222$ac_includes_default
13223int
13224main ()
13225{
13226static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13227test_array [0] = 0
13228
13229 ;
13230 return 0;
13231}
13232_ACEOF
13233rm -f conftest.$ac_objext
13234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_hi=$ac_mid
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259ac_lo=`expr '(' $ac_mid ')' + 1`
13260fi
13261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262done
13263case $ac_lo in
13264?*) ac_cv_sizeof_long=$ac_lo;;
13265'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13266See \`config.log' for more details." >&5
13267echo "$as_me: error: cannot compute sizeof (long), 77
13268See \`config.log' for more details." >&2;}
13269 { (exit 1); exit 1; }; } ;;
13270esac
13271else
13272 if test "$cross_compiling" = yes; then
13273 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13274echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13275 { (exit 1); exit 1; }; }
13276else
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283$ac_includes_default
13284long longval () { return (long) (sizeof (long)); }
13285unsigned long ulongval () { return (long) (sizeof (long)); }
7622#include <sys/types.h> 13286#include <stdio.h>
7623#if STDC_HEADERS
7624#include <stdlib.h> 13287#include <stdlib.h>
7625#include <stddef.h> 13288int
7626#endif 13289main ()
7627EOF 13290{
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13291
7629 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13292 FILE *f = fopen ("conftest.val", "w");
7630 rm -rf conftest* 13293 if (! f)
7631 ac_cv_type_pid_t=yes 13294 exit (1);
13295 if (((long) (sizeof (long))) < 0)
13296 {
13297 long i = longval ();
13298 if (i != ((long) (sizeof (long))))
13299 exit (1);
13300 fprintf (f, "%ld\n", i);
13301 }
7632else 13302 else
7633 rm -rf conftest* 13303 {
7634 ac_cv_type_pid_t=no 13304 unsigned long i = ulongval ();
13305 if (i != ((long) (sizeof (long))))
13306 exit (1);
13307 fprintf (f, "%lu\n", i);
13308 }
13309 exit (ferror (f) || fclose (f) != 0);
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest$ac_exeext
13316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_sizeof_long=`cat conftest.val`
13327else
13328 echo "$as_me: program exited with status $ac_status" >&5
13329echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332( exit $ac_status )
13333{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13334See \`config.log' for more details." >&5
13335echo "$as_me: error: cannot compute sizeof (long), 77
13336See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }
7635fi 13338fi
13339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13340fi
13341fi
7636rm -f conftest* 13342rm -f conftest.val
7637 13343else
13344 ac_cv_sizeof_long=0
7638fi 13345fi
7639echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13346fi
7640if test $ac_cv_type_pid_t = no; then 13347echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13348echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7641 cat >> confdefs.h <<\EOF 13349cat >>confdefs.h <<_ACEOF
7642#define pid_t int 13350#define SIZEOF_LONG $ac_cv_sizeof_long
7643EOF 13351_ACEOF
7644 13352
7645fi
7646 13353
7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13354echo "$as_me:$LINENO: checking for long long" >&5
7648echo "configure:7649: checking for uid_t in sys/types.h" >&5 13355echo $ECHO_N "checking for long long... $ECHO_C" >&6
7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13356if test "${ac_cv_type_long_long+set}" = set; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 13357 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else 13358else
7652 cat > conftest.$ac_ext <<EOF 13359 cat >conftest.$ac_ext <<_ACEOF
7653#line 7654 "configure" 13360/* confdefs.h. */
7654#include "confdefs.h" 13361_ACEOF
7655#include <sys/types.h> 13362cat confdefs.h >>conftest.$ac_ext
7656EOF 13363cat >>conftest.$ac_ext <<_ACEOF
7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13364/* end confdefs.h. */
7658 egrep "uid_t" >/dev/null 2>&1; then 13365$ac_includes_default
13366int
13367main ()
13368{
13369if ((long long *) 0)
13370 return 0;
13371if (sizeof (long long))
13372 return 0;
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377rm -f conftest.$ac_objext
13378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -rf conftest* 13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
7660 ac_cv_type_uid_t=yes 13398 ac_cv_type_long_long=yes
7661else 13399else
7662 rm -rf conftest* 13400 echo "$as_me: failed program was:" >&5
7663 ac_cv_type_uid_t=no 13401sed 's/^/| /' conftest.$ac_ext >&5
7664fi
7665rm -f conftest*
7666 13402
13403ac_cv_type_long_long=no
7667fi 13404fi
7668 13405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7670if test $ac_cv_type_uid_t = no; then
7671 cat >> confdefs.h <<\EOF
7672#define uid_t int
7673EOF
7674
7675 cat >> confdefs.h <<\EOF
7676#define gid_t int
7677EOF
7678
7679fi 13406fi
13407echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13408echo "${ECHO_T}$ac_cv_type_long_long" >&6
7680 13409
7681 13410echo "$as_me:$LINENO: checking size of long long" >&5
7682 13411echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7683echo $ac_n "checking size of char""... $ac_c" 1>&6 13412if test "${ac_cv_sizeof_long_long+set}" = set; then
7684echo "configure:7685: checking size of char" >&5
7685if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6 13413 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else 13414else
13415 if test "$ac_cv_type_long_long" = yes; then
13416 # The cast to unsigned long works around a bug in the HP C Compiler
13417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13419 # This bug is HP SR number 8606223364.
7688 if test "$cross_compiling" = yes; then 13420 if test "$cross_compiling" = yes; then
7689 ac_cv_sizeof_char=1 13421 # Depending upon the size, compute the lo and hi bounds.
13422cat >conftest.$ac_ext <<_ACEOF
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
13428$ac_includes_default
13429int
13430main ()
13431{
13432static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13433test_array [0] = 0
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext
13440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13441 (eval $ac_compile) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_lo=0 ac_mid=0
13461 while :; do
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468$ac_includes_default
13469int
13470main ()
13471{
13472static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13473test_array [0] = 0
13474
13475 ;
13476 return 0;
13477}
13478_ACEOF
13479rm -f conftest.$ac_objext
13480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_hi=$ac_mid; break
7690else 13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505ac_lo=`expr $ac_mid + 1`
13506 if test $ac_lo -le $ac_mid; then
13507 ac_lo= ac_hi=
13508 break
13509 fi
13510 ac_mid=`expr 2 '*' $ac_mid + 1`
13511fi
13512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13513 done
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524$ac_includes_default
13525int
13526main ()
13527{
13528static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13529test_array [0] = 0
13530
13531 ;
13532 return 0;
13533}
13534_ACEOF
13535rm -f conftest.$ac_objext
13536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_hi=-1 ac_mid=-1
13557 while :; do
13558 cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564$ac_includes_default
13565int
13566main ()
13567{
13568static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13569test_array [0] = 0
13570
13571 ;
13572 return 0;
13573}
13574_ACEOF
13575rm -f conftest.$ac_objext
13576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_lo=$ac_mid; break
13597else
13598 echo "$as_me: failed program was:" >&5
13599sed 's/^/| /' conftest.$ac_ext >&5
13600
13601ac_hi=`expr '(' $ac_mid ')' - 1`
13602 if test $ac_mid -le $ac_hi; then
13603 ac_lo= ac_hi=
13604 break
13605 fi
13606 ac_mid=`expr 2 '*' $ac_mid`
13607fi
13608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13609 done
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614ac_lo= ac_hi=
13615fi
13616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13617fi
13618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619# Binary search between lo and hi bounds.
13620while test "x$ac_lo" != "x$ac_hi"; do
13621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7691 cat > conftest.$ac_ext <<EOF 13622 cat >conftest.$ac_ext <<_ACEOF
7692#line 7693 "configure" 13623/* confdefs.h. */
7693#include "confdefs.h" 13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628$ac_includes_default
13629int
13630main ()
13631{
13632static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13633test_array [0] = 0
13634
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext
13640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_hi=$ac_mid
13661else
13662 echo "$as_me: failed program was:" >&5
13663sed 's/^/| /' conftest.$ac_ext >&5
13664
13665ac_lo=`expr '(' $ac_mid ')' + 1`
13666fi
13667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13668done
13669case $ac_lo in
13670?*) ac_cv_sizeof_long_long=$ac_lo;;
13671'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13672See \`config.log' for more details." >&5
13673echo "$as_me: error: cannot compute sizeof (long long), 77
13674See \`config.log' for more details." >&2;}
13675 { (exit 1); exit 1; }; } ;;
13676esac
13677else
13678 if test "$cross_compiling" = yes; then
13679 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13680echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13681 { (exit 1); exit 1; }; }
13682else
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689$ac_includes_default
13690long longval () { return (long) (sizeof (long long)); }
13691unsigned long ulongval () { return (long) (sizeof (long long)); }
7694#include <stdio.h> 13692#include <stdio.h>
7695#include <sys/types.h> 13693#include <stdlib.h>
13694int
7696main() 13695main ()
7697{ 13696{
13697
7698 FILE *f=fopen("conftestval", "w"); 13698 FILE *f = fopen ("conftest.val", "w");
7699 if (!f) exit(1); 13699 if (! f)
7700 fprintf(f, "%d\n", sizeof(char));
7701 exit(0); 13700 exit (1);
13701 if (((long) (sizeof (long long))) < 0)
13702 {
13703 long i = longval ();
13704 if (i != ((long) (sizeof (long long))))
13705 exit (1);
13706 fprintf (f, "%ld\n", i);
13707 }
13708 else
13709 {
13710 unsigned long i = ulongval ();
13711 if (i != ((long) (sizeof (long long))))
13712 exit (1);
13713 fprintf (f, "%lu\n", i);
13714 }
13715 exit (ferror (f) || fclose (f) != 0);
13716
13717 ;
13718 return 0;
7702} 13719}
7703EOF 13720_ACEOF
7704if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13721rm -f conftest$ac_exeext
7705then 13722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_char=`cat conftestval` 13732 ac_cv_sizeof_long_long=`cat conftest.val`
7707else 13733else
13734 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "configure: failed program was:" >&5 13735echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5 13736sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -fr conftest* 13737
7711 ac_cv_sizeof_char=0 13738( exit $ac_status )
13739{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13740See \`config.log' for more details." >&5
13741echo "$as_me: error: cannot compute sizeof (long long), 77
13742See \`config.log' for more details." >&2;}
13743 { (exit 1); exit 1; }; }
7712fi 13744fi
13745rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746fi
13747fi
7713rm -fr conftest* 13748rm -f conftest.val
13749else
13750 ac_cv_sizeof_long_long=0
7714fi 13751fi
7715
7716fi 13752fi
7717echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13753echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13754echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7718cat >> confdefs.h <<EOF 13755cat >>confdefs.h <<_ACEOF
7719#define SIZEOF_CHAR $ac_cv_sizeof_char 13756#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7720EOF 13757_ACEOF
7721 13758
7722 13759
7723echo $ac_n "checking size of short""... $ac_c" 1>&6 13760echo "$as_me:$LINENO: checking for int *" >&5
7724echo "configure:7725: checking size of short" >&5 13761echo $ECHO_N "checking for int *... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13762if test "${ac_cv_type_int_p+set}" = set; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 13763 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 13764else
13765 cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
13771$ac_includes_default
13772int
13773main ()
13774{
13775if ((int * *) 0)
13776 return 0;
13777if (sizeof (int *))
13778 return 0;
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_type_int_p=yes
13805else
13806 echo "$as_me: failed program was:" >&5
13807sed 's/^/| /' conftest.$ac_ext >&5
13808
13809ac_cv_type_int_p=no
13810fi
13811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812fi
13813echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13814echo "${ECHO_T}$ac_cv_type_int_p" >&6
13815
13816echo "$as_me:$LINENO: checking size of int *" >&5
13817echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13818if test "${ac_cv_sizeof_int_p+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 if test "$ac_cv_type_int_p" = yes; then
13822 # The cast to unsigned long works around a bug in the HP C Compiler
13823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825 # This bug is HP SR number 8606223364.
7728 if test "$cross_compiling" = yes; then 13826 if test "$cross_compiling" = yes; then
7729 ac_cv_sizeof_short=2 13827 # Depending upon the size, compute the lo and hi bounds.
13828cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834$ac_includes_default
13835int
13836main ()
13837{
13838static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13839test_array [0] = 0
13840
13841 ;
13842 return 0;
13843}
13844_ACEOF
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_lo=0 ac_mid=0
13867 while :; do
13868 cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874$ac_includes_default
13875int
13876main ()
13877{
13878static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13879test_array [0] = 0
13880
13881 ;
13882 return 0;
13883}
13884_ACEOF
13885rm -f conftest.$ac_objext
13886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest.$ac_objext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_hi=$ac_mid; break
7730else 13907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911ac_lo=`expr $ac_mid + 1`
13912 if test $ac_lo -le $ac_mid; then
13913 ac_lo= ac_hi=
13914 break
13915 fi
13916 ac_mid=`expr 2 '*' $ac_mid + 1`
13917fi
13918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13919 done
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930$ac_includes_default
13931int
13932main ()
13933{
13934static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13935test_array [0] = 0
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_hi=-1 ac_mid=-1
13963 while :; do
13964 cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
13970$ac_includes_default
13971int
13972main ()
13973{
13974static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13975test_array [0] = 0
13976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest.$ac_objext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_lo=$ac_mid; break
14003else
14004 echo "$as_me: failed program was:" >&5
14005sed 's/^/| /' conftest.$ac_ext >&5
14006
14007ac_hi=`expr '(' $ac_mid ')' - 1`
14008 if test $ac_mid -le $ac_hi; then
14009 ac_lo= ac_hi=
14010 break
14011 fi
14012 ac_mid=`expr 2 '*' $ac_mid`
14013fi
14014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14015 done
14016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020ac_lo= ac_hi=
14021fi
14022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14023fi
14024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14025# Binary search between lo and hi bounds.
14026while test "x$ac_lo" != "x$ac_hi"; do
14027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat > conftest.$ac_ext <<EOF 14028 cat >conftest.$ac_ext <<_ACEOF
7732#line 7733 "configure" 14029/* confdefs.h. */
7733#include "confdefs.h" 14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
14033/* end confdefs.h. */
14034$ac_includes_default
14035int
14036main ()
14037{
14038static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14039test_array [0] = 0
14040
14041 ;
14042 return 0;
14043}
14044_ACEOF
14045rm -f conftest.$ac_objext
14046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_hi=$ac_mid
14067else
14068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
14071ac_lo=`expr '(' $ac_mid ')' + 1`
14072fi
14073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074done
14075case $ac_lo in
14076?*) ac_cv_sizeof_int_p=$ac_lo;;
14077'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14078See \`config.log' for more details." >&5
14079echo "$as_me: error: cannot compute sizeof (int *), 77
14080See \`config.log' for more details." >&2;}
14081 { (exit 1); exit 1; }; } ;;
14082esac
14083else
14084 if test "$cross_compiling" = yes; then
14085 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14086echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14087 { (exit 1); exit 1; }; }
14088else
14089 cat >conftest.$ac_ext <<_ACEOF
14090/* confdefs.h. */
14091_ACEOF
14092cat confdefs.h >>conftest.$ac_ext
14093cat >>conftest.$ac_ext <<_ACEOF
14094/* end confdefs.h. */
14095$ac_includes_default
14096long longval () { return (long) (sizeof (int *)); }
14097unsigned long ulongval () { return (long) (sizeof (int *)); }
7734#include <stdio.h> 14098#include <stdio.h>
7735#include <sys/types.h> 14099#include <stdlib.h>
14100int
7736main() 14101main ()
7737{ 14102{
14103
7738 FILE *f=fopen("conftestval", "w"); 14104 FILE *f = fopen ("conftest.val", "w");
7739 if (!f) exit(1); 14105 if (! f)
7740 fprintf(f, "%d\n", sizeof(short));
7741 exit(0); 14106 exit (1);
14107 if (((long) (sizeof (int *))) < 0)
14108 {
14109 long i = longval ();
14110 if (i != ((long) (sizeof (int *))))
14111 exit (1);
14112 fprintf (f, "%ld\n", i);
14113 }
14114 else
14115 {
14116 unsigned long i = ulongval ();
14117 if (i != ((long) (sizeof (int *))))
14118 exit (1);
14119 fprintf (f, "%lu\n", i);
14120 }
14121 exit (ferror (f) || fclose (f) != 0);
14122
14123 ;
14124 return 0;
7742} 14125}
7743EOF 14126_ACEOF
7744if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 14127rm -f conftest$ac_exeext
7745then 14128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14129 (eval $ac_link) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
7746 ac_cv_sizeof_short=`cat conftestval` 14138 ac_cv_sizeof_int_p=`cat conftest.val`
7747else 14139else
14140 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "configure: failed program was:" >&5 14141echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5 14142sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -fr conftest* 14143
7751 ac_cv_sizeof_short=0 14144( exit $ac_status )
14145{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14146See \`config.log' for more details." >&5
14147echo "$as_me: error: cannot compute sizeof (int *), 77
14148See \`config.log' for more details." >&2;}
14149 { (exit 1); exit 1; }; }
7752fi 14150fi
14151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14152fi
14153fi
7753rm -fr conftest* 14154rm -f conftest.val
14155else
14156 ac_cv_sizeof_int_p=0
7754fi 14157fi
7755
7756fi 14158fi
7757echo "$ac_t""$ac_cv_sizeof_short" 1>&6 14159echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14160echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7758cat >> confdefs.h <<EOF 14161cat >>confdefs.h <<_ACEOF
7759#define SIZEOF_SHORT $ac_cv_sizeof_short 14162#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7760EOF 14163_ACEOF
7761 14164
7762 14165
7763echo $ac_n "checking size of int""... $ac_c" 1>&6 14166
7764echo "configure:7765: checking size of int" >&5 14167
7765if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 14168echo "$as_me:$LINENO: checking for int16_t" >&5
14169echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
14170if test "${rxvt_cv_int16_t+set}" = set; then
7766 echo $ac_n "(cached) $ac_c" 1>&6 14171 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else 14172else
7768 if test "$cross_compiling" = yes; then
7769 ac_cv_sizeof_int=4
7770else
7771 cat > conftest.$ac_ext <<EOF 14173 cat >conftest.$ac_ext <<_ACEOF
7772#line 7773 "configure" 14174/* confdefs.h. */
7773#include "confdefs.h" 14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
7774#include <stdio.h> 14179#include <stdint.h>
7775#include <sys/types.h> 14180int
7776main() 14181main ()
7777{ 14182{
7778 FILE *f=fopen("conftestval", "w"); 14183int16_t dummy;
7779 if (!f) exit(1); 14184 ;
7780 fprintf(f, "%d\n", sizeof(int)); 14185 return 0;
7781 exit(0);
7782} 14186}
7783EOF 14187_ACEOF
7784if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 14188rm -f conftest.$ac_objext
7785then 14189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 ac_cv_sizeof_int=`cat conftestval` 14190 (eval $ac_compile) 2>conftest.er1
7787else 14191 ac_status=$?
7788 echo "configure: failed program was:" >&5 14192 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.$ac_ext >&5
7790 rm -fr conftest* 14193 rm -f conftest.er1
7791 ac_cv_sizeof_int=0
7792fi
7793rm -fr conftest*
7794fi
7795
7796fi
7797echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7798cat >> confdefs.h <<EOF
7799#define SIZEOF_INT $ac_cv_sizeof_int
7800EOF
7801
7802
7803echo $ac_n "checking size of long""... $ac_c" 1>&6
7804echo "configure:7805: checking size of long" >&5
7805if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807else
7808 if test "$cross_compiling" = yes; then
7809 ac_cv_sizeof_long=4
7810else
7811 cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure"
7813#include "confdefs.h"
7814#include <stdio.h>
7815#include <sys/types.h>
7816main()
7817{
7818 FILE *f=fopen("conftestval", "w");
7819 if (!f) exit(1);
7820 fprintf(f, "%d\n", sizeof(long));
7821 exit(0);
7822}
7823EOF
7824if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7825then
7826 ac_cv_sizeof_long=`cat conftestval`
7827else
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5 14194 cat conftest.err >&5
7830 rm -fr conftest* 14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ac_cv_sizeof_long=0 14196 (exit $ac_status); } &&
7832fi 14197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7833rm -fr conftest* 14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834fi 14199 (eval $ac_try) 2>&5
7835 14200 ac_status=$?
7836fi 14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837echo "$ac_t""$ac_cv_sizeof_long" 1>&6 14202 (exit $ac_status); }; } &&
7838cat >> confdefs.h <<EOF 14203 { ac_try='test -s conftest.$ac_objext'
7839#define SIZEOF_LONG $ac_cv_sizeof_long 14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840EOF 14205 (eval $ac_try) 2>&5
7841 14206 ac_status=$?
7842 14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843echo $ac_n "checking size of long long""... $ac_c" 1>&6 14208 (exit $ac_status); }; }; then
7844echo "configure:7845: checking size of long long" >&5
7845if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7847else
7848 if test "$cross_compiling" = yes; then
7849 ac_cv_sizeof_long_long=8
7850else
7851 cat > conftest.$ac_ext <<EOF
7852#line 7853 "configure"
7853#include "confdefs.h"
7854#include <stdio.h>
7855#include <sys/types.h>
7856main()
7857{
7858 FILE *f=fopen("conftestval", "w");
7859 if (!f) exit(1);
7860 fprintf(f, "%d\n", sizeof(long long));
7861 exit(0);
7862}
7863EOF
7864if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7865then
7866 ac_cv_sizeof_long_long=`cat conftestval`
7867else
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7870 rm -fr conftest*
7871 ac_cv_sizeof_long_long=0
7872fi
7873rm -fr conftest*
7874fi
7875
7876fi
7877echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7878cat >> confdefs.h <<EOF
7879#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7880EOF
7881
7882
7883echo $ac_n "checking size of int *""... $ac_c" 1>&6
7884echo "configure:7885: checking size of int *" >&5
7885if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887else
7888 if test "$cross_compiling" = yes; then
7889 ac_cv_sizeof_int_p=4
7890else
7891 cat > conftest.$ac_ext <<EOF
7892#line 7893 "configure"
7893#include "confdefs.h"
7894#include <stdio.h>
7895#include <sys/types.h>
7896main()
7897{
7898 FILE *f=fopen("conftestval", "w");
7899 if (!f) exit(1);
7900 fprintf(f, "%d\n", sizeof(int *));
7901 exit(0);
7902}
7903EOF
7904if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7905then
7906 ac_cv_sizeof_int_p=`cat conftestval`
7907else
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 rm -fr conftest*
7911 ac_cv_sizeof_int_p=0
7912fi
7913rm -fr conftest*
7914fi
7915
7916fi
7917echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7918cat >> confdefs.h <<EOF
7919#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7920EOF
7921
7922
7923
7924
7925echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7926echo "configure:7927: checking for int16_t" >&5
7927if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929else
7930 cat > conftest.$ac_ext <<EOF
7931#line 7932 "configure"
7932#include "confdefs.h"
7933#include <stdint.h>
7934int main() {
7935int16_t dummy;
7936; return 0; }
7937EOF
7938if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7939 rm -rf conftest*
7940 rxvt_cv_int16_t=yes 14209 rxvt_cv_int16_t=yes
7941else 14210else
7942 echo "configure: failed program was:" >&5 14211 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5 14212sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -rf conftest* 14213
7945 if test $ac_cv_sizeof_char -ge 2; then 14214if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char" 14215 rxvt_cv_int16_t=" char"
7947else 14216else
7948 if test $ac_cv_sizeof_short -ge 2; then 14217 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short" 14218 rxvt_cv_int16_t=" short"
7950 else 14219 else
7962 fi 14231 fi
7963 fi 14232 fi
7964 fi 14233 fi
7965fi 14234fi
7966fi 14235fi
7967rm -f conftest* 14236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi 14237fi
7969 14238echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7970echo "$ac_t""$rxvt_cv_int16_t" 1>&6 14239echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7971if test x"$rxvt_cv_int16_t" != xyes; then 14240if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14241 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7973else 14242else
7974 if test x"" = x; then 14243 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */" 14244 rxvt_int16_typedef="/* typedef short int16_t; */"
7976 else 14245 else
7977 rxvt_int16_typedef="/* typedef short int16_t; */" 14246 rxvt_int16_typedef="/* typedef short int16_t; */"
7978 fi 14247 fi
7979fi 14248fi
7980 14249
14250echo "$as_me:$LINENO: checking for uint16_t" >&5
7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14251echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7982echo "configure:7983: checking for uint16_t" >&5
7983if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then 14252if test "${rxvt_cv_uint16_t+set}" = set; then
7984 echo $ac_n "(cached) $ac_c" 1>&6 14253 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else 14254else
7986 cat > conftest.$ac_ext <<EOF 14255 cat >conftest.$ac_ext <<_ACEOF
7987#line 7988 "configure" 14256/* confdefs.h. */
7988#include "confdefs.h" 14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
7989#include <stdint.h> 14261#include <stdint.h>
7990int main() { 14262int
14263main ()
14264{
7991uint16_t dummy; 14265uint16_t dummy;
14266 ;
7992; return 0; } 14267 return 0;
7993EOF 14268}
7994if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -rf conftest* 14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
7996 rxvt_cv_uint16_t=yes 14291 rxvt_cv_uint16_t=yes
7997else 14292else
7998 echo "configure: failed program was:" >&5 14293 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 14294sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -rf conftest* 14295
8001 if test $ac_cv_sizeof_char -ge 2; then 14296if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char" 14297 rxvt_cv_uint16_t="unsigned char"
8003else 14298else
8004 if test $ac_cv_sizeof_short -ge 2; then 14299 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short" 14300 rxvt_cv_uint16_t="unsigned short"
8006 else 14301 else
8018 fi 14313 fi
8019 fi 14314 fi
8020 fi 14315 fi
8021fi 14316fi
8022fi 14317fi
8023rm -f conftest* 14318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi 14319fi
8025 14320echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8026echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14321echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8027if test x"$rxvt_cv_uint16_t" != xyes; then 14322if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14323 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8029else 14324else
8030 if test x"unsigned" = x; then 14325 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14326 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8032 else 14327 else
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14328 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8034 fi 14329 fi
8035fi 14330fi
8036 14331
14332echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14333echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8038echo "configure:8039: checking for int32_t" >&5
8039if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then 14334if test "${rxvt_cv_int32_t+set}" = set; then
8040 echo $ac_n "(cached) $ac_c" 1>&6 14335 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else 14336else
8042 cat > conftest.$ac_ext <<EOF 14337 cat >conftest.$ac_ext <<_ACEOF
8043#line 8044 "configure" 14338/* confdefs.h. */
8044#include "confdefs.h" 14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
8045#include <stdint.h> 14343#include <stdint.h>
8046int main() { 14344int
14345main ()
14346{
8047int32_t dummy; 14347int32_t dummy;
14348 ;
8048; return 0; } 14349 return 0;
8049EOF 14350}
8050if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14351_ACEOF
14352rm -f conftest.$ac_objext
14353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -rf conftest* 14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
8052 rxvt_cv_int32_t=yes 14373 rxvt_cv_int32_t=yes
8053else 14374else
8054 echo "configure: failed program was:" >&5 14375 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5 14376sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -rf conftest* 14377
8057 if test $ac_cv_sizeof_char -ge 4; then 14378if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char" 14379 rxvt_cv_int32_t=" char"
8059else 14380else
8060 if test $ac_cv_sizeof_short -ge 4; then 14381 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short" 14382 rxvt_cv_int32_t=" short"
8062 else 14383 else
8074 fi 14395 fi
8075 fi 14396 fi
8076 fi 14397 fi
8077fi 14398fi
8078fi 14399fi
8079rm -f conftest* 14400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi 14401fi
8081 14402echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8082echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14403echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8083if test x"$rxvt_cv_int32_t" != xyes; then 14404if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14405 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8085else 14406else
8086 if test x"" = x; then 14407 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */" 14408 rxvt_int32_typedef="/* typedef int int32_t; */"
8088 else 14409 else
8089 rxvt_int32_typedef="/* typedef int int32_t; */" 14410 rxvt_int32_typedef="/* typedef int int32_t; */"
8090 fi 14411 fi
8091fi 14412fi
8092 14413
14414echo "$as_me:$LINENO: checking for uint32_t" >&5
8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14415echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8094echo "configure:8095: checking for uint32_t" >&5
8095if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then 14416if test "${rxvt_cv_uint32_t+set}" = set; then
8096 echo $ac_n "(cached) $ac_c" 1>&6 14417 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else 14418else
8098 cat > conftest.$ac_ext <<EOF 14419 cat >conftest.$ac_ext <<_ACEOF
8099#line 8100 "configure" 14420/* confdefs.h. */
8100#include "confdefs.h" 14421_ACEOF
14422cat confdefs.h >>conftest.$ac_ext
14423cat >>conftest.$ac_ext <<_ACEOF
14424/* end confdefs.h. */
8101#include <stdint.h> 14425#include <stdint.h>
8102int main() { 14426int
14427main ()
14428{
8103uint32_t dummy; 14429uint32_t dummy;
14430 ;
8104; return 0; } 14431 return 0;
8105EOF 14432}
8106if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14433_ACEOF
14434rm -f conftest.$ac_objext
14435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -rf conftest* 14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
8108 rxvt_cv_uint32_t=yes 14455 rxvt_cv_uint32_t=yes
8109else 14456else
8110 echo "configure: failed program was:" >&5 14457 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5 14458sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest* 14459
8113 if test $ac_cv_sizeof_char -ge 4; then 14460if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char" 14461 rxvt_cv_uint32_t="unsigned char"
8115else 14462else
8116 if test $ac_cv_sizeof_short -ge 4; then 14463 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short" 14464 rxvt_cv_uint32_t="unsigned short"
8118 else 14465 else
8130 fi 14477 fi
8131 fi 14478 fi
8132 fi 14479 fi
8133fi 14480fi
8134fi 14481fi
8135rm -f conftest* 14482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi 14483fi
8137 14484echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8138echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14485echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8139if test x"$rxvt_cv_uint32_t" != xyes; then 14486if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14487 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8141else 14488else
8142 if test x"unsigned" = x; then 14489 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14490 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8144 else 14491 else
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14492 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8146 fi 14493 fi
8147fi 14494fi
8148 14495
8149if test $ac_cv_sizeof_int_p -eq 8; then 14496if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t" 14497 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14498 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8152else 14499else
8164 fi 14511 fi
8165fi 14512fi
8166 14513
8167 14514
8168 14515
14516echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14517echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8170echo "configure:8171: checking return type of signal handlers" >&5
8171if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 14518if test "${ac_cv_type_signal+set}" = set; then
8172 echo $ac_n "(cached) $ac_c" 1>&6 14519 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else 14520else
8174 cat > conftest.$ac_ext <<EOF 14521 cat >conftest.$ac_ext <<_ACEOF
8175#line 8176 "configure" 14522/* confdefs.h. */
8176#include "confdefs.h" 14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
8177#include <sys/types.h> 14527#include <sys/types.h>
8178#include <signal.h> 14528#include <signal.h>
8179#ifdef signal 14529#ifdef signal
8180#undef signal 14530# undef signal
8181#endif 14531#endif
8182#ifdef __cplusplus 14532#ifdef __cplusplus
8183extern "C" void (*signal (int, void (*)(int)))(int); 14533extern "C" void (*signal (int, void (*)(int)))(int);
8184#else 14534#else
8185void (*signal ()) (); 14535void (*signal ()) ();
8186#endif 14536#endif
8187 14537
8188int main() { 14538int
14539main ()
14540{
8189int i; 14541int i;
14542 ;
8190; return 0; } 14543 return 0;
8191EOF 14544}
8192if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14545_ACEOF
14546rm -f conftest.$ac_objext
14547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548 (eval $ac_compile) 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -rf conftest* 14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
8194 ac_cv_type_signal=void 14567 ac_cv_type_signal=void
8195else 14568else
8196 echo "configure: failed program was:" >&5 14569 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5 14570sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -rf conftest* 14571
8199 ac_cv_type_signal=int 14572ac_cv_type_signal=int
8200fi 14573fi
8201rm -f conftest* 14574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi 14575fi
8203 14576echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8204echo "$ac_t""$ac_cv_type_signal" 1>&6 14577echo "${ECHO_T}$ac_cv_type_signal" >&6
14578
8205cat >> confdefs.h <<EOF 14579cat >>confdefs.h <<_ACEOF
8206#define RETSIGTYPE $ac_cv_type_signal 14580#define RETSIGTYPE $ac_cv_type_signal
8207EOF 14581_ACEOF
8208 14582
8209 14583
8210 14584
8211case "$host_alias" in 14585case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;; 14586 *ultrix) ac_cv_func_setsid='no' ;;
8213 *) break;; 14587 *) break;;
8214esac 14588esac
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
8215 14607
8216for ac_func in \ 14608for ac_func in \
8217 atexit \ 14609 atexit \
8218 revoke \ 14610 revoke \
8219 unsetenv \ 14611 unsetenv \
8232 nanosleep \ 14624 nanosleep \
8233 updwtmp \ 14625 updwtmp \
8234 ttyslot \ 14626 ttyslot \
8235 14627
8236do 14628do
14629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14630echo "$as_me:$LINENO: checking for $ac_func" >&5
8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8238echo "configure:8239: checking for $ac_func" >&5 14632if eval "test \"\${$as_ac_var+set}\" = set"; then
8239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6 14633 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else 14634else
8242 cat > conftest.$ac_ext <<EOF 14635 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 14636/* confdefs.h. */
8244#include "confdefs.h" 14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14643#define $ac_func innocuous_$ac_func
14644
8245/* System header to define __stub macros and hopefully few prototypes, 14645/* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */ 14646 which can conflict with char $ac_func (); below.
14647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14648 <limits.h> exists even on freestanding compilers. */
14649
14650#ifdef __STDC__
14651# include <limits.h>
14652#else
8247#include <assert.h> 14653# include <assert.h>
14654#endif
14655
14656#undef $ac_func
14657
8248/* Override any gcc2 internal prototype to avoid an error. */ 14658/* Override any gcc2 internal prototype to avoid an error. */
14659#ifdef __cplusplus
14660extern "C"
14661{
14662#endif
8249/* We use char because int might match the return type of a gcc2 14663/* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */ 14664 builtin and then its argument prototype would still apply. */
8251char $ac_func(); 14665char $ac_func ();
8252
8253int main() {
8254
8255/* The GNU C library defines this for functions which it implements 14666/* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named 14667 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */ 14668 something starting with __ and the normal name is an alias. */
8258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259choke me 14670choke me
8260#else 14671#else
8261$ac_func(); 14672char (*f) () = $ac_func;
8262#endif 14673#endif
14674#ifdef __cplusplus
14675}
14676#endif
8263 14677
14678int
14679main ()
14680{
14681return f != $ac_func;
14682 ;
8264; return 0; } 14683 return 0;
8265EOF 14684}
8266if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14685_ACEOF
14686rm -f conftest.$ac_objext conftest$ac_exeext
14687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -rf conftest* 14691 rm -f conftest.er1
8268 eval "ac_cv_func_$ac_func=yes" 14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest$ac_exeext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 eval "$as_ac_var=yes"
8269else 14708else
8270 echo "configure: failed program was:" >&5 14709 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5 14710sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8274fi
8275rm -f conftest*
8276fi
8277 14711
8278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14712eval "$as_ac_var=no"
8279 echo "$ac_t""yes" 1>&6 14713fi
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14714rm -f conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14716fi
14717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14719if test `eval echo '${'$as_ac_var'}'` = yes; then
8281 cat >> confdefs.h <<EOF 14720 cat >>confdefs.h <<_ACEOF
8282#define $ac_tr_func 1 14721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8283EOF 14722_ACEOF
8284 14723
8285else
8286 echo "$ac_t""no" 1>&6
8287fi 14724fi
8288done 14725done
8289 14726
8290 14727
8291 14728
8292ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14729if test "${ac_cv_header_utmp_h+set}" = set; then
14730 echo "$as_me:$LINENO: checking for utmp.h" >&5
8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14731echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8294echo "configure:8295: checking for utmp.h" >&5 14732if test "${ac_cv_header_utmp_h+set}" = set; then
8295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6 14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734fi
14735echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14736echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8297else 14737else
14738 # Is the header compilable?
14739echo "$as_me:$LINENO: checking utmp.h usability" >&5
14740echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8298 cat > conftest.$ac_ext <<EOF 14741cat >conftest.$ac_ext <<_ACEOF
8299#line 8300 "configure" 14742/* confdefs.h. */
8300#include "confdefs.h" 14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
8301#include <utmp.h> 14748#include <utmp.h>
8302EOF 14749_ACEOF
8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14750rm -f conftest.$ac_objext
8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14752 (eval $ac_compile) 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_header_compiler=yes
14772else
14773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
14776ac_header_compiler=no
14777fi
14778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780echo "${ECHO_T}$ac_header_compiler" >&6
14781
14782# Is the header present?
14783echo "$as_me:$LINENO: checking utmp.h presence" >&5
14784echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14785cat >conftest.$ac_ext <<_ACEOF
14786/* confdefs.h. */
14787_ACEOF
14788cat confdefs.h >>conftest.$ac_ext
14789cat >>conftest.$ac_ext <<_ACEOF
14790/* end confdefs.h. */
14791#include <utmp.h>
14792_ACEOF
14793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } >/dev/null; then
14801 if test -s conftest.err; then
14802 ac_cpp_err=$ac_cxx_preproc_warn_flag
14803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14804 else
14805 ac_cpp_err=
14806 fi
14807else
14808 ac_cpp_err=yes
14809fi
8306if test -z "$ac_err"; then 14810if test -z "$ac_cpp_err"; then
8307 rm -rf conftest* 14811 ac_header_preproc=yes
8308 eval "ac_cv_header_$ac_safe=yes"
8309else 14812else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5 14813 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5 14814sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -rf conftest* 14815
8314 eval "ac_cv_header_$ac_safe=no" 14816 ac_header_preproc=no
8315fi 14817fi
8316rm -f conftest* 14818rm -f conftest.err conftest.$ac_ext
14819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820echo "${ECHO_T}$ac_header_preproc" >&6
14821
14822# So? What about this header?
14823case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14824 yes:no: )
14825 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14828echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14830 ;;
14831 no:yes:* )
14832 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14833echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14835echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14837echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14839echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14841echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14843echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14844 (
14845 cat <<\_ASBOX
14846## ------------------------------------------ ##
14847## Report this to the AC_PACKAGE_NAME lists. ##
14848## ------------------------------------------ ##
14849_ASBOX
14850 ) |
14851 sed "s/^/$as_me: WARNING: /" >&2
14852 ;;
14853esac
14854echo "$as_me:$LINENO: checking for utmp.h" >&5
14855echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14856if test "${ac_cv_header_utmp_h+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858else
14859 ac_cv_header_utmp_h=$ac_header_preproc
8317fi 14860fi
8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14861echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8319 echo "$ac_t""yes" 1>&6 14862echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14863
14864fi
14865if test $ac_cv_header_utmp_h = yes; then
14866 echo "$as_me:$LINENO: checking for struct utmp" >&5
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14867echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
8321echo "configure:8322: checking for struct utmp" >&5
8322if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then 14868if test "${rxvt_cv_struct_utmp+set}" = set; then
8323 echo $ac_n "(cached) $ac_c" 1>&6 14869 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else 14870else
8325 cat > conftest.$ac_ext <<EOF 14871 cat >conftest.$ac_ext <<_ACEOF
8326#line 8327 "configure" 14872/* confdefs.h. */
8327#include "confdefs.h" 14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
8328#include <sys/types.h> 14877#include <sys/types.h>
8329#include <stdint.h> 14878#include <stdint.h>
8330#include <utmp.h> 14879#include <utmp.h>
8331int main() { 14880int
14881main ()
14882{
8332struct utmp ut; 14883struct utmp ut;
14884 ;
8333; return 0; } 14885 return 0;
8334EOF 14886}
8335if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -rf conftest* 14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
8337 rxvt_cv_struct_utmp=yes 14909 rxvt_cv_struct_utmp=yes
8338else 14910else
8339 echo "configure: failed program was:" >&5 14911 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 14912sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -rf conftest* 14913
8342 rxvt_cv_struct_utmp=no 14914rxvt_cv_struct_utmp=no
8343fi 14915fi
8344rm -f conftest* 14916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi 14917fi
8346 14918echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8347echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14919echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8348if test x$rxvt_cv_struct_utmp = xyes; then 14920if test x$rxvt_cv_struct_utmp = xyes; then
14921
8349 cat >> confdefs.h <<\EOF 14922cat >>confdefs.h <<\_ACEOF
8350#define HAVE_STRUCT_UTMP 1 14923#define HAVE_STRUCT_UTMP 1
8351EOF 14924_ACEOF
8352 14925
8353fi 14926fi
8354 14927
8355 14928
14929echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
8356echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6 14930echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
8357echo "configure:8358: checking for ut_host in utmp struct" >&5
8358if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then 14931if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8359 echo $ac_n "(cached) $ac_c" 1>&6 14932 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else 14933else
8361 cat > conftest.$ac_ext <<EOF 14934 cat >conftest.$ac_ext <<_ACEOF
8362#line 8363 "configure" 14935/* confdefs.h. */
8363#include "confdefs.h" 14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
8364#include <sys/types.h> 14940#include <sys/types.h>
8365#include <utmp.h> 14941#include <utmp.h>
8366int main() { 14942int
14943main ()
14944{
8367struct utmp ut; ut.ut_host; 14945struct utmp ut; ut.ut_host;
14946 ;
8368; return 0; } 14947 return 0;
8369EOF 14948}
8370if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14949_ACEOF
14950rm -f conftest.$ac_objext
14951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -rf conftest* 14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
8372 rxvt_cv_struct_utmp_host=yes 14971 rxvt_cv_struct_utmp_host=yes
8373else 14972else
8374 echo "configure: failed program was:" >&5 14973 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5 14974sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -rf conftest* 14975
8377 rxvt_cv_struct_utmp_host=no 14976rxvt_cv_struct_utmp_host=no
8378fi 14977fi
8379rm -f conftest* 14978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi 14979fi
8381 14980echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8382echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14981echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8383if test x$rxvt_cv_struct_utmp_host = xyes; then 14982if test x$rxvt_cv_struct_utmp_host = xyes; then
14983
8384 cat >> confdefs.h <<\EOF 14984cat >>confdefs.h <<\_ACEOF
8385#define HAVE_UTMP_HOST 1 14985#define HAVE_UTMP_HOST 1
8386EOF 14986_ACEOF
8387 14987
8388fi 14988fi
8389 14989
14990echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
8390echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6 14991echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
8391echo "configure:8392: checking for ut_pid in utmp struct" >&5
8392if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then 14992if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8393 echo $ac_n "(cached) $ac_c" 1>&6 14993 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else 14994else
8395 cat > conftest.$ac_ext <<EOF 14995 cat >conftest.$ac_ext <<_ACEOF
8396#line 8397 "configure" 14996/* confdefs.h. */
8397#include "confdefs.h" 14997_ACEOF
14998cat confdefs.h >>conftest.$ac_ext
14999cat >>conftest.$ac_ext <<_ACEOF
15000/* end confdefs.h. */
8398#include <sys/types.h> 15001#include <sys/types.h>
8399#include <utmp.h> 15002#include <utmp.h>
8400int main() { 15003int
15004main ()
15005{
8401struct utmp ut; ut.ut_pid; 15006struct utmp ut; ut.ut_pid;
15007 ;
8402; return 0; } 15008 return 0;
8403EOF 15009}
8404if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15010_ACEOF
15011rm -f conftest.$ac_objext
15012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -rf conftest* 15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
8406 rxvt_cv_struct_utmp_pid=yes 15032 rxvt_cv_struct_utmp_pid=yes
8407else 15033else
8408 echo "configure: failed program was:" >&5 15034 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5 15035sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -rf conftest* 15036
8411 rxvt_cv_struct_utmp_pid=no 15037rxvt_cv_struct_utmp_pid=no
8412fi 15038fi
8413rm -f conftest* 15039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi 15040fi
8415 15041echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8416echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 15042echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8417if test x$rxvt_cv_struct_utmp_pid = xyes; then 15043if test x$rxvt_cv_struct_utmp_pid = xyes; then
15044
8418 cat >> confdefs.h <<\EOF 15045cat >>confdefs.h <<\_ACEOF
8419#define HAVE_UTMP_PID 1 15046#define HAVE_UTMP_PID 1
8420EOF 15047_ACEOF
8421 15048
8422fi 15049fi
8423 15050
8424else
8425 echo "$ac_t""no" 1>&6
8426fi 15051fi
8427
8428 15052
8429ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15053
15054
15055if test "${ac_cv_header_utmpx_h+set}" = set; then
15056 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 15057echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8431echo "configure:8432: checking for utmpx.h" >&5 15058if test "${ac_cv_header_utmpx_h+set}" = set; then
8432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6 15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060fi
15061echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
15062echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8434else 15063else
15064 # Is the header compilable?
15065echo "$as_me:$LINENO: checking utmpx.h usability" >&5
15066echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8435 cat > conftest.$ac_ext <<EOF 15067cat >conftest.$ac_ext <<_ACEOF
8436#line 8437 "configure" 15068/* confdefs.h. */
8437#include "confdefs.h" 15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073$ac_includes_default
8438#include <utmpx.h> 15074#include <utmpx.h>
8439EOF 15075_ACEOF
8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15076rm -f conftest.$ac_objext
8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15078 (eval $ac_compile) 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_header_compiler=yes
15098else
15099 echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
15102ac_header_compiler=no
15103fi
15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15106echo "${ECHO_T}$ac_header_compiler" >&6
15107
15108# Is the header present?
15109echo "$as_me:$LINENO: checking utmpx.h presence" >&5
15110echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
15111cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117#include <utmpx.h>
15118_ACEOF
15119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } >/dev/null; then
15127 if test -s conftest.err; then
15128 ac_cpp_err=$ac_cxx_preproc_warn_flag
15129 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15130 else
15131 ac_cpp_err=
15132 fi
15133else
15134 ac_cpp_err=yes
15135fi
8443if test -z "$ac_err"; then 15136if test -z "$ac_cpp_err"; then
8444 rm -rf conftest* 15137 ac_header_preproc=yes
8445 eval "ac_cv_header_$ac_safe=yes"
8446else 15138else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5 15139 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 15140sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest* 15141
8451 eval "ac_cv_header_$ac_safe=no" 15142 ac_header_preproc=no
8452fi 15143fi
8453rm -f conftest* 15144rm -f conftest.err conftest.$ac_ext
15145echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15146echo "${ECHO_T}$ac_header_preproc" >&6
15147
15148# So? What about this header?
15149case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15150 yes:no: )
15151 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
15152echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
15154echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
15155 ac_header_preproc=yes
15156 ;;
15157 no:yes:* )
15158 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
15159echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
15161echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
15163echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
15165echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
15167echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
15169echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
15170 (
15171 cat <<\_ASBOX
15172## ------------------------------------------ ##
15173## Report this to the AC_PACKAGE_NAME lists. ##
15174## ------------------------------------------ ##
15175_ASBOX
15176 ) |
15177 sed "s/^/$as_me: WARNING: /" >&2
15178 ;;
15179esac
15180echo "$as_me:$LINENO: checking for utmpx.h" >&5
15181echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
15182if test "${ac_cv_header_utmpx_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184else
15185 ac_cv_header_utmpx_h=$ac_header_preproc
8454fi 15186fi
8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 15187echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8456 echo "$ac_t""yes" 1>&6 15188echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
15189
15190fi
15191if test $ac_cv_header_utmpx_h = yes; then
15192 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 15193echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
8458echo "configure:8459: checking for struct utmpx" >&5
8459if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then 15194if test "${rxvt_cv_struct_utmpx+set}" = set; then
8460 echo $ac_n "(cached) $ac_c" 1>&6 15195 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else 15196else
8462 cat > conftest.$ac_ext <<EOF 15197 cat >conftest.$ac_ext <<_ACEOF
8463#line 8464 "configure" 15198/* confdefs.h. */
8464#include "confdefs.h" 15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
8465#include <sys/types.h> 15203#include <sys/types.h>
8466#include <utmpx.h> 15204#include <utmpx.h>
8467int main() { 15205int
15206main ()
15207{
8468struct utmpx ut; 15208struct utmpx ut;
15209 ;
8469; return 0; } 15210 return 0;
8470EOF 15211}
8471if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15212_ACEOF
15213rm -f conftest.$ac_objext
15214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -rf conftest* 15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
8473 rxvt_cv_struct_utmpx=yes 15234 rxvt_cv_struct_utmpx=yes
8474else 15235else
8475 echo "configure: failed program was:" >&5 15236 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5 15237sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -rf conftest* 15238
8478 rxvt_cv_struct_utmpx=no 15239rxvt_cv_struct_utmpx=no
8479fi 15240fi
8480rm -f conftest* 15241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi 15242fi
8482 15243echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8483echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15244echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8484if test x$rxvt_cv_struct_utmpx = xyes; then 15245if test x$rxvt_cv_struct_utmpx = xyes; then
15246
8485 cat >> confdefs.h <<\EOF 15247cat >>confdefs.h <<\_ACEOF
8486#define HAVE_STRUCT_UTMPX 1 15248#define HAVE_STRUCT_UTMPX 1
8487EOF 15249_ACEOF
8488 15250
8489fi 15251fi
8490 15252
8491 15253
15254echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15255echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
8493echo "configure:8494: checking for host in utmpx struct" >&5
8494if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then 15256if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8495 echo $ac_n "(cached) $ac_c" 1>&6 15257 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else 15258else
8497 cat > conftest.$ac_ext <<EOF 15259 cat >conftest.$ac_ext <<_ACEOF
8498#line 8499 "configure" 15260/* confdefs.h. */
8499#include "confdefs.h" 15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
8500#include <sys/types.h> 15265#include <sys/types.h>
8501#include <utmpx.h> 15266#include <utmpx.h>
8502int main() { 15267int
15268main ()
15269{
8503struct utmpx utx; utx.ut_host; 15270struct utmpx utx; utx.ut_host;
15271 ;
8504; return 0; } 15272 return 0;
8505EOF 15273}
8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -rf conftest* 15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest.$ac_objext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
8508 rxvt_cv_struct_utmpx_host=yes 15296 rxvt_cv_struct_utmpx_host=yes
8509else 15297else
8510 echo "configure: failed program was:" >&5 15298 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5 15299sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest* 15300
8513 rxvt_cv_struct_utmpx_host=no 15301rxvt_cv_struct_utmpx_host=no
8514fi 15302fi
8515rm -f conftest* 15303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi 15304fi
8517 15305echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8518echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15306echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8519if test x$rxvt_cv_struct_utmpx_host = xyes; then 15307if test x$rxvt_cv_struct_utmpx_host = xyes; then
15308
8520 cat >> confdefs.h <<\EOF 15309cat >>confdefs.h <<\_ACEOF
8521#define HAVE_UTMPX_HOST 1 15310#define HAVE_UTMPX_HOST 1
8522EOF 15311_ACEOF
8523 15312
8524fi 15313fi
8525 15314
8526else
8527 echo "$ac_t""no" 1>&6
8528fi 15315fi
8529
8530 15316
15317
15318
15319echo "$as_me:$LINENO: checking for struct lastlog" >&5
8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15320echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
8532echo "configure:8533: checking for struct lastlog" >&5
8533if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then 15321if test "${rxvt_cv_struct_lastlog+set}" = set; then
8534 echo $ac_n "(cached) $ac_c" 1>&6 15322 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else 15323else
8536 cat > conftest.$ac_ext <<EOF 15324 cat >conftest.$ac_ext <<_ACEOF
8537#line 8538 "configure" 15325/* confdefs.h. */
8538#include "confdefs.h" 15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
8539#include <sys/types.h> 15330#include <sys/types.h>
8540#include <utmp.h> 15331#include <utmp.h>
8541#ifdef HAVE_LASTLOG_H 15332#ifdef HAVE_LASTLOG_H
8542#include <lastlog.h> 15333#include <lastlog.h>
8543#endif 15334#endif
8544 15335
8545int main() { 15336int
15337main ()
15338{
8546struct lastlog ll; 15339struct lastlog ll;
15340 ;
8547; return 0; } 15341 return 0;
8548EOF 15342}
8549if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -rf conftest* 15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
8551 rxvt_cv_struct_lastlog=yes 15365 rxvt_cv_struct_lastlog=yes
8552else 15366else
8553 echo "configure: failed program was:" >&5 15367 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 15368sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -rf conftest* 15369
8556 rxvt_cv_struct_lastlog=no 15370rxvt_cv_struct_lastlog=no
8557fi 15371fi
8558rm -f conftest* 15372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi 15373fi
8560 15374echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8561echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15375echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8562if test x$rxvt_cv_struct_lastlog = xyes; then 15376if test x$rxvt_cv_struct_lastlog = xyes; then
15377
8563 cat >> confdefs.h <<\EOF 15378cat >>confdefs.h <<\_ACEOF
8564#define HAVE_STRUCT_LASTLOG 1 15379#define HAVE_STRUCT_LASTLOG 1
8565EOF 15380_ACEOF
8566 15381
8567fi 15382fi
8568 15383
15384echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15385echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
8570echo "configure:8571: checking for struct lastlogx" >&5
8571if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then 15386if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8572 echo $ac_n "(cached) $ac_c" 1>&6 15387 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else 15388else
8574 cat > conftest.$ac_ext <<EOF 15389 cat >conftest.$ac_ext <<_ACEOF
8575#line 8576 "configure" 15390/* confdefs.h. */
8576#include "confdefs.h" 15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h. */
8577#include <sys/types.h> 15395#include <sys/types.h>
8578#include <utmpx.h> 15396#include <utmpx.h>
8579#ifdef HAVE_LASTLOG_H 15397#ifdef HAVE_LASTLOG_H
8580#include <lastlog.h> 15398#include <lastlog.h>
8581#endif 15399#endif
8582 15400
8583int main() { 15401int
15402main ()
15403{
8584struct lastlogx ll; 15404struct lastlogx ll;
15405 ;
8585; return 0; } 15406 return 0;
8586EOF 15407}
8587if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -rf conftest* 15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
8589 rxvt_cv_struct_lastlogx=yes 15430 rxvt_cv_struct_lastlogx=yes
8590else 15431else
8591 echo "configure: failed program was:" >&5 15432 echo "$as_me: failed program was:" >&5
8592 cat conftest.$ac_ext >&5 15433sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -rf conftest* 15434
8594 rxvt_cv_struct_lastlogx=no 15435rxvt_cv_struct_lastlogx=no
8595fi 15436fi
8596rm -f conftest* 15437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi 15438fi
8598 15439echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8599echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15440echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8600if test x$rxvt_cv_struct_lastlogx = xyes; then 15441if test x$rxvt_cv_struct_lastlogx = xyes; then
15442
8601 cat >> confdefs.h <<\EOF 15443cat >>confdefs.h <<\_ACEOF
8602#define HAVE_STRUCT_LASTLOGX 1 15444#define HAVE_STRUCT_LASTLOGX 1
8603EOF 15445_ACEOF
8604 15446
8605fi 15447fi
8606 15448
8607 15449
15450echo "$as_me:$LINENO: checking where utmp is located" >&5
8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15451echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
8609echo "configure:8610: checking where utmp is located" >&5
8610if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then 15452if test "${rxvt_cv_path_utmp+set}" = set; then
8611 echo $ac_n "(cached) $ac_c" 1>&6 15453 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else 15454else
8613 if test "$cross_compiling" = yes; then 15455 if test "$cross_compiling" = yes; then
15456 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
8614 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2 15457echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8615else 15458else
8616 cat > conftest.$ac_ext <<EOF 15459 cat >conftest.$ac_ext <<_ACEOF
8617#line 8618 "configure" 15460/* confdefs.h. */
8618#include "confdefs.h" 15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
8619#include <stdio.h> 15465#include <stdio.h>
8620#include <sys/types.h> 15466#include <sys/types.h>
8621#include <utmp.h> 15467#include <utmp.h>
8622#include <errno.h> 15468#include <errno.h>
8623main() 15469main()
8640 exit(0); 15486 exit(0);
8641 } 15487 }
8642 } 15488 }
8643 exit(0); 15489 exit(0);
8644} 15490}
8645EOF 15491_ACEOF
8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15492rm -f conftest$ac_exeext
8647then 15493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
8648 rxvt_cv_path_utmp=`cat conftestval` 15503 rxvt_cv_path_utmp=`cat conftestval`
8649else 15504else
15505 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "configure: failed program was:" >&5 15506echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5 15507sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -fr conftest* 15508
15509( exit $ac_status )
8653 rxvt_cv_path_utmp= 15510rxvt_cv_path_utmp=
8654fi 15511fi
8655rm -fr conftest* 15512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi 15513fi
8657
8658fi 15514fi
8659 15515echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8660echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15516echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8661if test x$rxvt_cv_path_utmp != x; then 15517if test x$rxvt_cv_path_utmp != x; then
15518
8662 cat >> confdefs.h <<EOF 15519cat >>confdefs.h <<_ACEOF
8663#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15520#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8664EOF 15521_ACEOF
8665 15522
8666fi 15523fi
8667 15524
8668 15525
15526echo "$as_me:$LINENO: checking where utmpx is located" >&5
8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15527echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
8670echo "configure:8671: checking where utmpx is located" >&5
8671if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then 15528if test "${rxvt_cv_path_utmpx+set}" = set; then
8672 echo $ac_n "(cached) $ac_c" 1>&6 15529 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else 15530else
8674 if test "$cross_compiling" = yes; then 15531 if test "$cross_compiling" = yes; then
15532 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
8675 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2 15533echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8676else 15534else
8677 cat > conftest.$ac_ext <<EOF 15535 cat >conftest.$ac_ext <<_ACEOF
8678#line 8679 "configure" 15536/* confdefs.h. */
8679#include "confdefs.h" 15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
8680#include <stdio.h> 15541#include <stdio.h>
8681#include <sys/types.h> 15542#include <sys/types.h>
8682#include <utmpx.h> 15543#include <utmpx.h>
8683#include <errno.h> 15544#include <errno.h>
8684#include <sys/stat.h> 15545#include <sys/stat.h>
8711 exit(0); 15572 exit(0);
8712 } 15573 }
8713 } 15574 }
8714 exit(0); 15575 exit(0);
8715} 15576}
8716EOF 15577_ACEOF
8717if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15578rm -f conftest$ac_exeext
8718then 15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
8719 rxvt_cv_path_utmpx=`cat conftestval` 15589 rxvt_cv_path_utmpx=`cat conftestval`
8720else 15590else
15591 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "configure: failed program was:" >&5 15592echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5 15593sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -fr conftest* 15594
15595( exit $ac_status )
8724 rxvt_cv_path_utmpx= 15596rxvt_cv_path_utmpx=
8725fi 15597fi
8726rm -fr conftest* 15598rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727fi 15599fi
8728
8729fi 15600fi
8730 15601echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8731echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15602echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8732if test x$rxvt_cv_path_utmpx != x; then 15603if test x$rxvt_cv_path_utmpx != x; then
15604
8733 cat >> confdefs.h <<EOF 15605cat >>confdefs.h <<_ACEOF
8734#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15606#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8735EOF 15607_ACEOF
8736 15608
8737fi 15609fi
8738 15610
8739 15611
15612echo "$as_me:$LINENO: checking where wtmp is located" >&5
8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15613echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
8741echo "configure:8742: checking where wtmp is located" >&5
8742if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then 15614if test "${rxvt_cv_path_wtmp+set}" = set; then
8743 echo $ac_n "(cached) $ac_c" 1>&6 15615 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else 15616else
8745 if test "$cross_compiling" = yes; then 15617 if test "$cross_compiling" = yes; then
15618 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
8746 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2 15619echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8747else 15620else
8748 cat > conftest.$ac_ext <<EOF 15621 cat >conftest.$ac_ext <<_ACEOF
8749#line 8750 "configure" 15622/* confdefs.h. */
8750#include "confdefs.h" 15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
8751#include <stdio.h> 15627#include <stdio.h>
8752#include <sys/types.h> 15628#include <sys/types.h>
8753#ifdef HAVE_UTMP_H 15629#ifdef HAVE_UTMP_H
8754#include <utmp.h> 15630#include <utmp.h>
8755#endif 15631#endif
8756#include <errno.h> 15632#include <errno.h>
8757main() 15633main()
8758{ 15634{
8759 char **w, *wtmplist[] = { 15635 char **w, *wtmplist[] = {
8760 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15636 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8761 FILE *a, *f=fopen("conftestval", "w"); 15637 FILE *a, *f=fopen("conftestval", "w");
8762 if (!f) exit(1); 15638 if (!f) exit(1);
8763#ifdef WTMP_FILE 15639#ifdef WTMP_FILE
8764 fprintf(f, "%s\n", WTMP_FILE); 15640 fprintf(f, "%s\n", WTMP_FILE);
8765 exit(0); 15641 exit(0);
8774 exit(0); 15650 exit(0);
8775 } 15651 }
8776 } 15652 }
8777 exit(0); 15653 exit(0);
8778} 15654}
8779EOF 15655_ACEOF
8780if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15656rm -f conftest$ac_exeext
8781then 15657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658 (eval $ac_link) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
8782 rxvt_cv_path_wtmp=`cat conftestval` 15667 rxvt_cv_path_wtmp=`cat conftestval`
8783else 15668else
15669 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "configure: failed program was:" >&5 15670echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5 15671sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -fr conftest* 15672
15673( exit $ac_status )
8787 rxvt_cv_path_wtmp= 15674rxvt_cv_path_wtmp=
8788fi 15675fi
8789rm -fr conftest* 15676rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790fi 15677fi
8791
8792fi 15678fi
8793 15679echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8794echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15680echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8795if test x$rxvt_cv_path_wtmp != x; then 15681if test x$rxvt_cv_path_wtmp != x; then
15682
8796 cat >> confdefs.h <<EOF 15683cat >>confdefs.h <<_ACEOF
8797#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15684#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8798EOF 15685_ACEOF
8799 15686
8800fi 15687fi
8801 15688
15689echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15690echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
8803echo "configure:8804: checking where wtmpx is located" >&5
8804if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then 15691if test "${rxvt_cv_path_wtmpx+set}" = set; then
8805 echo $ac_n "(cached) $ac_c" 1>&6 15692 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else 15693else
8807 if test "$cross_compiling" = yes; then 15694 if test "$cross_compiling" = yes; then
15695 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
8808 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2 15696echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8809else 15697else
8810 cat > conftest.$ac_ext <<EOF 15698 cat >conftest.$ac_ext <<_ACEOF
8811#line 8812 "configure" 15699/* confdefs.h. */
8812#include "confdefs.h" 15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
8813#include <stdio.h> 15704#include <stdio.h>
8814#ifdef HAVE_UTMPX_H 15705#ifdef HAVE_UTMPX_H
8815#include <utmpx.h> 15706#include <utmpx.h>
8816#endif 15707#endif
8817#include <errno.h> 15708#include <errno.h>
8818main() 15709main()
8819{ 15710{
8820 char **w, *wtmplist[] = { 15711 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15712 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w"); 15713 FILE *a, *f=fopen("conftestval", "w");
8823 if (!f) exit(1); 15714 if (!f) exit(1);
8824#ifdef WTMPX_FILE 15715#ifdef WTMPX_FILE
8825 fprintf(f, "%s\n", WTMPX_FILE); 15716 fprintf(f, "%s\n", WTMPX_FILE);
8826 exit(0); 15717 exit(0);
8835 exit(0); 15726 exit(0);
8836 } 15727 }
8837 } 15728 }
8838 exit(0); 15729 exit(0);
8839} 15730}
8840EOF 15731_ACEOF
8841if { (eval echo configure:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15732rm -f conftest$ac_exeext
8842then 15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
8843 rxvt_cv_path_wtmpx=`cat conftestval` 15743 rxvt_cv_path_wtmpx=`cat conftestval`
8844else 15744else
15745 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "configure: failed program was:" >&5 15746echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5 15747sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -fr conftest* 15748
15749( exit $ac_status )
8848 rxvt_cv_path_wtmpx= 15750rxvt_cv_path_wtmpx=
8849fi 15751fi
8850rm -fr conftest* 15752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851fi 15753fi
8852
8853fi 15754fi
8854 15755echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8855echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15756echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8856if test x$rxvt_cv_path_wtmpx != x; then 15757if test x$rxvt_cv_path_wtmpx != x; then
15758
8857 cat >> confdefs.h <<EOF 15759cat >>confdefs.h <<_ACEOF
8858#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15760#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8859EOF 15761_ACEOF
8860 15762
8861fi 15763fi
8862 15764
15765echo "$as_me:$LINENO: checking where lastlog is located" >&5
8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15766echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
8864echo "configure:8865: checking where lastlog is located" >&5
8865if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then 15767if test "${rxvt_cv_path_lastlog+set}" = set; then
8866 echo $ac_n "(cached) $ac_c" 1>&6 15768 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else 15769else
8868 if test "$cross_compiling" = yes; then 15770 if test "$cross_compiling" = yes; then
15771 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
8869 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2 15772echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8870else 15773else
8871 cat > conftest.$ac_ext <<EOF 15774 cat >conftest.$ac_ext <<_ACEOF
8872#line 8873 "configure" 15775/* confdefs.h. */
8873#include "confdefs.h" 15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
8874#include <stdio.h> 15780#include <stdio.h>
8875#include <sys/types.h> 15781#include <sys/types.h>
8876#ifdef HAVE_UTMPX_H 15782#ifdef HAVE_UTMPX_H
8877#include <utmpx.h> 15783#include <utmpx.h>
8878#elif defined(HAVE_UTMP_H) 15784#elif defined(HAVE_UTMP_H)
8901 exit(0); 15807 exit(0);
8902 } 15808 }
8903 } 15809 }
8904 exit(0); 15810 exit(0);
8905} 15811}
8906EOF 15812_ACEOF
8907if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15813rm -f conftest$ac_exeext
8908then 15814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
8909 rxvt_cv_path_lastlog=`cat conftestval` 15824 rxvt_cv_path_lastlog=`cat conftestval`
8910else 15825else
15826 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "configure: failed program was:" >&5 15827echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5 15828sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -fr conftest* 15829
15830( exit $ac_status )
8914 rxvt_cv_path_lastlog= 15831rxvt_cv_path_lastlog=
8915fi 15832fi
8916rm -fr conftest* 15833rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917fi 15834fi
8918
8919fi 15835fi
8920 15836echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8921echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15837echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8922if test x$rxvt_cv_path_lastlog != x; then 15838if test x$rxvt_cv_path_lastlog != x; then
15839
8923 cat >> confdefs.h <<EOF 15840cat >>confdefs.h <<_ACEOF
8924#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15841#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8925EOF 15842_ACEOF
8926 15843
8927 if test -d "$rxvt_cv_path_lastlog"; then 15844 if test -d "$rxvt_cv_path_lastlog"; then
15845
8928 cat >> confdefs.h <<\EOF 15846cat >>confdefs.h <<\_ACEOF
8929#define LASTLOG_IS_DIR 1 15847#define LASTLOG_IS_DIR 1
8930EOF 15848_ACEOF
8931 15849
8932 fi 15850 fi
8933fi 15851fi
8934 15852
15853echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15854echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
8936echo "configure:8937: checking where lastlogx is located" >&5
8937if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then 15855if test "${rxvt_cv_path_lastlogx+set}" = set; then
8938 echo $ac_n "(cached) $ac_c" 1>&6 15856 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else 15857else
8940 if test "$cross_compiling" = yes; then 15858 if test "$cross_compiling" = yes; then
15859 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
8941 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2 15860echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8942else 15861else
8943 cat > conftest.$ac_ext <<EOF 15862 cat >conftest.$ac_ext <<_ACEOF
8944#line 8945 "configure" 15863/* confdefs.h. */
8945#include "confdefs.h" 15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
8946#include <stdio.h> 15868#include <stdio.h>
8947#ifdef HAVE_UTMPX_H 15869#ifdef HAVE_UTMPX_H
8948#include <utmpx.h> 15870#include <utmpx.h>
8949#endif 15871#endif
8950#include <errno.h> 15872#include <errno.h>
8967 exit(0); 15889 exit(0);
8968 } 15890 }
8969 } 15891 }
8970 exit(0); 15892 exit(0);
8971} 15893}
8972EOF 15894_ACEOF
8973if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15895rm -f conftest$ac_exeext
8974then 15896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
8975 rxvt_cv_path_lastlogx=`cat conftestval` 15906 rxvt_cv_path_lastlogx=`cat conftestval`
8976else 15907else
15908 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "configure: failed program was:" >&5 15909echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5 15910sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -fr conftest* 15911
15912( exit $ac_status )
8980 rxvt_cv_path_lastlogx= 15913rxvt_cv_path_lastlogx=
8981fi 15914fi
8982rm -fr conftest* 15915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi 15916fi
8984
8985fi 15917fi
8986 15918echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8987echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15919echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8988if test x$rxvt_cv_path_lastlogx != x; then 15920if test x$rxvt_cv_path_lastlogx != x; then
15921
8989 cat >> confdefs.h <<EOF 15922cat >>confdefs.h <<_ACEOF
8990#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15923#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8991EOF 15924_ACEOF
8992 15925
8993fi 15926fi
8994 15927
8995 15928
15929echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15930echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
8997echo "configure:8998: checking where ttys/ttytab is located" >&5
8998if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then 15931if test "${rxvt_cv_path_ttytab+set}" = set; then
8999 echo $ac_n "(cached) $ac_c" 1>&6 15932 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else 15933else
9001 for ttys_file in /etc/ttys /etc/ttytab; 15934 for ttys_file in /etc/ttys /etc/ttytab;
9002do 15935do
9003 if test -f "$ttys_file" ; then 15936 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file 15937 rxvt_cv_path_ttytab=$ttys_file
9005 break 15938 break
9006 fi 15939 fi
9007done 15940done
9008 15941
9009fi 15942fi
9010 15943echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
9011echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15944echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
9012if test x$rxvt_cv_path_ttytab != x; then 15945if test x$rxvt_cv_path_ttytab != x; then
15946
9013 cat >> confdefs.h <<EOF 15947cat >>confdefs.h <<_ACEOF
9014#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15948#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9015EOF 15949_ACEOF
9016 15950
9017fi 15951fi
9018 15952
9019 15953
9020ac_save_LIBS=$LIBS 15954ac_save_LIBS=$LIBS
9022CFLAGS="$CFLAGS $X_CFLAGS" 15956CFLAGS="$CFLAGS $X_CFLAGS"
9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15957LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15958if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15959 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9026fi 15960fi
15961echo "$as_me:$LINENO: checking for working Xlocale" >&5
9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15962echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
9028echo "configure:9029: checking for working Xlocale" >&5
9029if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then 15963if test "${rxvt_cv_func_xlocale+set}" = set; then
9030 echo $ac_n "(cached) $ac_c" 1>&6 15964 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else 15965else
9032 if test "$cross_compiling" = yes; then 15966 if test "$cross_compiling" = yes; then
15967 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
9033 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2 15968echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9034else 15969else
9035 cat > conftest.$ac_ext <<EOF 15970 cat >conftest.$ac_ext <<_ACEOF
9036#line 9037 "configure" 15971/* confdefs.h. */
9037#include "confdefs.h" 15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
9038#include <X11/Xlib.h> 15976#include <X11/Xlib.h>
9039main() { 15977main() {
9040char *p; 15978char *p;
9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15979if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042exit (XSupportsLocale() ? 0 : 1); 15980exit (XSupportsLocale() ? 0 : 1);
9043else 15981else
9044exit (1);} 15982exit (1);}
9045EOF 15983_ACEOF
9046if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15984rm -f conftest$ac_exeext
9047then 15985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
9048 rxvt_cv_func_xlocale=yes 15995 rxvt_cv_func_xlocale=yes
9049else 15996else
15997 echo "$as_me: program exited with status $ac_status" >&5
9050 echo "configure: failed program was:" >&5 15998echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 15999sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -fr conftest* 16000
16001( exit $ac_status )
9053 rxvt_cv_func_xlocale=no 16002rxvt_cv_func_xlocale=no
9054fi 16003fi
9055rm -fr conftest* 16004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056fi 16005fi
9057
9058fi 16006fi
9059 16007echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9060echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 16008echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9061if test x$rxvt_cv_func_xlocale = xyes; then 16009if test x$rxvt_cv_func_xlocale = xyes; then
16010
9062 cat >> confdefs.h <<\EOF 16011cat >>confdefs.h <<\_ACEOF
9063#define HAVE_XLOCALE 1 16012#define HAVE_XLOCALE 1
9064EOF 16013_ACEOF
9065 16014
9066fi 16015fi
9067 16016
16017echo "$as_me:$LINENO: checking for working X setlocale" >&5
9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 16018echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
9069echo "configure:9070: checking for working X setlocale" >&5
9070if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then 16019if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9071 echo $ac_n "(cached) $ac_c" 1>&6 16020 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else 16021else
9073 cat > conftest.$ac_ext <<EOF 16022 cat >conftest.$ac_ext <<_ACEOF
9074#line 9075 "configure" 16023/* confdefs.h. */
9075#include "confdefs.h" 16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h. */
9076#define X_LOCALE 1 16028#define X_LOCALE 1
9077#include <X11/Xlocale.h> 16029#include <X11/Xlocale.h>
9078int main() { 16030int
16031main ()
16032{
9079setlocale(LC_CTYPE, ""); 16033setlocale(LC_CTYPE, "");
16034 ;
9080; return 0; } 16035 return 0;
9081EOF 16036}
9082if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16037_ACEOF
16038rm -f conftest.$ac_objext conftest$ac_exeext
16039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -rf conftest* 16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
9084 rxvt_cv_func_xsetlocale=yes 16059 rxvt_cv_func_xsetlocale=yes
9085else 16060else
9086 echo "configure: failed program was:" >&5 16061 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5 16062sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest* 16063
9089 rxvt_cv_func_xsetlocale=no 16064rxvt_cv_func_xsetlocale=no
9090fi 16065fi
9091rm -f conftest* 16066rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
9092fi 16068fi
9093 16069echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9094echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 16070echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9095if test x$rxvt_cv_func_xsetlocale = xyes; then 16071if test x$rxvt_cv_func_xsetlocale = xyes; then
16072
9096 cat >> confdefs.h <<\EOF 16073cat >>confdefs.h <<\_ACEOF
9097#define HAVE_XSETLOCALE 1 16074#define HAVE_XSETLOCALE 1
9098EOF 16075_ACEOF
9099 16076
9100fi 16077fi
9101LIBS=$ac_save_LIBS 16078LIBS=$ac_save_LIBS
9102CFLAGS=$ac_save_CFLAGS 16079CFLAGS=$ac_save_CFLAGS
9103 16080
16081echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 16082echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
9105echo "configure:9106: checking for working plain setlocale" >&5
9106if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then 16083if test "${rxvt_cv_func_setlocale+set}" = set; then
9107 echo $ac_n "(cached) $ac_c" 1>&6 16084 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else 16085else
9109 cat > conftest.$ac_ext <<EOF 16086 cat >conftest.$ac_ext <<_ACEOF
9110#line 9111 "configure" 16087/* confdefs.h. */
9111#include "confdefs.h" 16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
9112#include <locale.h> 16092#include <clocale>
9113int main() { 16093int
16094main ()
16095{
9114setlocale(LC_CTYPE, ""); 16096setlocale(LC_CTYPE, "");
16097 ;
9115; return 0; } 16098 return 0;
9116EOF 16099}
9117if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16100_ACEOF
16101rm -f conftest.$ac_objext conftest$ac_exeext
16102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103 (eval $ac_link) 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -rf conftest* 16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
9119 rxvt_cv_func_setlocale=yes 16122 rxvt_cv_func_setlocale=yes
9120else 16123else
9121 echo "configure: failed program was:" >&5 16124 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 16125sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -rf conftest* 16126
9124 rxvt_cv_func_setlocale=no 16127rxvt_cv_func_setlocale=no
9125fi 16128fi
9126rm -f conftest* 16129rm -f conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
9127fi 16131fi
9128 16132echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9129echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 16133echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9130if test x$rxvt_cv_func_setlocale = xyes; then 16134if test x$rxvt_cv_func_setlocale = xyes; then
16135
9131 cat >> confdefs.h <<\EOF 16136cat >>confdefs.h <<\_ACEOF
9132#define HAVE_SETLOCALE 1 16137#define HAVE_SETLOCALE 1
9133EOF 16138_ACEOF
9134 16139
9135fi 16140fi
9136 16141
16142echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 16143echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
9138echo "configure:9139: checking for working nl_langinfo" >&5
9139if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then 16144if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9140 echo $ac_n "(cached) $ac_c" 1>&6 16145 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else 16146else
9142 cat > conftest.$ac_ext <<EOF 16147 cat >conftest.$ac_ext <<_ACEOF
9143#line 9144 "configure" 16148/* confdefs.h. */
9144#include "confdefs.h" 16149_ACEOF
16150cat confdefs.h >>conftest.$ac_ext
16151cat >>conftest.$ac_ext <<_ACEOF
16152/* end confdefs.h. */
9145#include <langinfo.h> 16153#include <langinfo.h>
9146int main() { 16154int
16155main ()
16156{
9147nl_langinfo(CODESET); 16157nl_langinfo(CODESET);
16158 ;
9148; return 0; } 16159 return 0;
9149EOF 16160}
9150if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16161_ACEOF
16162rm -f conftest.$ac_objext conftest$ac_exeext
16163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -rf conftest* 16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
9152 rxvt_cv_func_nl_langinfo=yes 16183 rxvt_cv_func_nl_langinfo=yes
9153else 16184else
9154 echo "configure: failed program was:" >&5 16185 echo "$as_me: failed program was:" >&5
9155 cat conftest.$ac_ext >&5 16186sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -rf conftest* 16187
9157 rxvt_cv_func_nl_langinfo=no 16188rxvt_cv_func_nl_langinfo=no
9158fi 16189fi
9159rm -f conftest* 16190rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
9160fi 16192fi
9161 16193echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9162echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 16194echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9163if test x$rxvt_cv_func_nl_langinfo = xyes; then 16195if test x$rxvt_cv_func_nl_langinfo = xyes; then
16196
9164 cat >> confdefs.h <<\EOF 16197cat >>confdefs.h <<\_ACEOF
9165#define HAVE_NL_LANGINFO 1 16198#define HAVE_NL_LANGINFO 1
9166EOF 16199_ACEOF
9167 16200
9168fi 16201fi
9169 16202
9170echo $ac_n "checking for getpt""... $ac_c" 1>&6 16203echo "$as_me:$LINENO: checking for broken XIM callback" >&5
9171echo "configure:9172: checking for getpt" >&5 16204echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
9172if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 16205if test "${rxvt_broken_ximcb+set}" = set; then
9173 echo $ac_n "(cached) $ac_c" 1>&6 16206 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else 16207else
9175 cat > conftest.$ac_ext <<EOF 16208 cat >conftest.$ac_ext <<_ACEOF
9176#line 9177 "configure" 16209
9177#include "confdefs.h" 16210#include <X11/Xlib.h>
16211
16212void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16213
16214void f() {
16215 XIMCallback cb;
16216 cb.callback = im_destroy_cb;
16217}
16218
16219_ACEOF
16220rm -f conftest.$ac_objext
16221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 rxvt_broken_ximcb=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246rxvt_broken_ximcb=no
16247fi
16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249fi
16250echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16251echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16252
16253if test x$rxvt_broken_ximcb = xyes; then
16254
16255cat >>confdefs.h <<\_ACEOF
16256#define XIMCB_PROTO_BROKEN 1
16257_ACEOF
16258
16259fi
16260
16261echo "$as_me:$LINENO: checking for getpt" >&5
16262echo $ECHO_N "checking for getpt... $ECHO_C" >&6
16263if test "${rxvt_cv_func_getpt+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265else
16266 cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
9178#define _GNU_SOURCE 16272#define _GNU_SOURCE
9179#ifdef HAVE_STDLIB_H 16273#ifdef HAVE_STDLIB_H
9180# include <stdlib.h> 16274# include <cstdlib>
9181#endif 16275#endif
9182int main() { 16276int
16277main ()
16278{
9183(void)getpt(); 16279(void)getpt();
16280 ;
9184; return 0; } 16281 return 0;
9185EOF 16282}
9186if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16283_ACEOF
16284rm -f conftest.$ac_objext conftest$ac_exeext
16285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16286 (eval $ac_link) 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -rf conftest* 16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
9188 rxvt_cv_func_getpt=yes 16305 rxvt_cv_func_getpt=yes
9189else 16306else
9190 echo "configure: failed program was:" >&5 16307 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 16308sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -rf conftest* 16309
9193 rxvt_cv_func_getpt=no 16310rxvt_cv_func_getpt=no
9194fi 16311fi
9195rm -f conftest* 16312rm -f conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
9196fi 16314fi
9197 16315echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9198echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16316echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9199if test x$rxvt_cv_func_getpt = xyes; then 16317if test x$rxvt_cv_func_getpt = xyes; then
16318
9200 cat >> confdefs.h <<\EOF 16319cat >>confdefs.h <<\_ACEOF
9201#define HAVE_GETPT 1 16320#define HAVE_GETPT 1
9202EOF 16321_ACEOF
9203 16322
9204fi 16323fi
9205 16324
16325echo "$as_me:$LINENO: checking for pty/tty type" >&5
9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16326echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
9207echo "configure:9208: checking for pty/tty type" >&5
9208if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then 16327if test "${rxvt_cv_ptys+set}" = set; then
9209 echo $ac_n "(cached) $ac_c" 1>&6 16328 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else 16329else
9211 if test x$ac_cv_func_openpty = xyes; then 16330 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY 16331 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then 16332 else if test x$ac_cv_func__getpty = xyes; then
9214 rxvt_cv_ptys=SGI4 16333 rxvt_cv_ptys=SGI4
9237fi 16356fi
9238fi 16357fi
9239fi 16358fi
9240 16359
9241fi 16360fi
9242 16361echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9243echo "$ac_t""$rxvt_cv_ptys" 1>&6 16362echo "${ECHO_T}$rxvt_cv_ptys" >&6
9244 16363
9245if test x$rxvt_cv_ptys = xOPENPTY; then 16364if test x$rxvt_cv_ptys = xOPENPTY; then
16365
9246 cat >> confdefs.h <<\EOF 16366cat >>confdefs.h <<\_ACEOF
9247#define PTYS_ARE_OPENPTY 1 16367#define PTYS_ARE_OPENPTY 1
9248EOF 16368_ACEOF
9249 16369
9250fi 16370fi
9251if test x$rxvt_cv_ptys = xSCO; then 16371if test x$rxvt_cv_ptys = xSCO; then
16372
9252 cat >> confdefs.h <<\EOF 16373cat >>confdefs.h <<\_ACEOF
9253#define PTYS_ARE_NUMERIC 1 16374#define PTYS_ARE_NUMERIC 1
9254EOF 16375_ACEOF
9255 16376
9256fi 16377fi
9257if test x$rxvt_cv_ptys = xSTREAMS; then 16378if test x$rxvt_cv_ptys = xSTREAMS; then
16379
9258 cat >> confdefs.h <<\EOF 16380cat >>confdefs.h <<\_ACEOF
9259#define PTYS_ARE_PTMX 1 16381#define PTYS_ARE_PTMX 1
9260EOF 16382_ACEOF
9261 16383
9262fi 16384fi
9263if test x$rxvt_cv_ptys = xPTC; then 16385if test x$rxvt_cv_ptys = xPTC; then
16386
9264 cat >> confdefs.h <<\EOF 16387cat >>confdefs.h <<\_ACEOF
9265#define PTYS_ARE_PTC 1 16388#define PTYS_ARE_PTC 1
9266EOF 16389_ACEOF
9267 16390
9268fi 16391fi
9269if test x$rxvt_cv_ptys = xSGI4; then 16392if test x$rxvt_cv_ptys = xSGI4; then
16393
9270 cat >> confdefs.h <<\EOF 16394cat >>confdefs.h <<\_ACEOF
9271#define PTYS_ARE__GETPTY 1 16395#define PTYS_ARE__GETPTY 1
9272EOF 16396_ACEOF
9273 16397
9274fi 16398fi
9275if test x$rxvt_cv_ptys = xCONVEX; then 16399if test x$rxvt_cv_ptys = xCONVEX; then
16400
9276 cat >> confdefs.h <<\EOF 16401cat >>confdefs.h <<\_ACEOF
9277#define PTYS_ARE_GETPTY 1 16402#define PTYS_ARE_GETPTY 1
9278EOF 16403_ACEOF
9279 16404
9280fi 16405fi
9281if test x$rxvt_cv_ptys = xGLIBC; then 16406if test x$rxvt_cv_ptys = xGLIBC; then
16407
9282 cat >> confdefs.h <<\EOF 16408cat >>confdefs.h <<\_ACEOF
9283#define PTYS_ARE_GETPT 1 16409#define PTYS_ARE_GETPT 1
9284EOF 16410_ACEOF
9285 16411
9286fi 16412fi
9287if test x$rxvt_cv_ptys = xHPUX; then 16413if test x$rxvt_cv_ptys = xHPUX; then
16414
9288 cat >> confdefs.h <<\EOF 16415cat >>confdefs.h <<\_ACEOF
9289#define PTYS_ARE_CLONE 1 16416#define PTYS_ARE_CLONE 1
9290EOF 16417_ACEOF
9291 16418
9292fi 16419fi
9293if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16420if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16421
9294 cat >> confdefs.h <<\EOF 16422cat >>confdefs.h <<\_ACEOF
9295#define PTYS_ARE_SEARCHED 1 16423#define PTYS_ARE_SEARCHED 1
9296EOF 16424_ACEOF
9297 16425
9298fi 16426fi
9299 16427
9300 16428
16429{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9301echo "checking for pty ranges" 1>&6 16430echo "$as_me: checking for pty ranges..." >&6;}
9302echo "configure:9303: checking for pty ranges" >&5
9303ptys=`echo /dev/pty??` 16431ptys=`echo /dev/pty??`
9304pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16432pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9305pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 16433pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9306if test x$pch1 != x; then 16434if test x$pch1 != x; then
16435
9307 cat >> confdefs.h <<EOF 16436cat >>confdefs.h <<_ACEOF
9308#define PTYCHAR1 "$pch1" 16437#define PTYCHAR1 "$pch1"
9309EOF 16438_ACEOF
9310 16439
9311fi 16440fi
9312if test x$pch2 != x; then 16441if test x$pch2 != x; then
16442
9313 cat >> confdefs.h <<EOF 16443cat >>confdefs.h <<_ACEOF
9314#define PTYCHAR2 "$pch2" 16444#define PTYCHAR2 "$pch2"
9315EOF 16445_ACEOF
9316 16446
9317fi 16447fi
9318 16448
9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9320echo "configure:9321: checking for setlocale in -lxpg4" >&5
9321ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9324else
9325 ac_save_LIBS="$LIBS"
9326LIBS="-lxpg4 $LIBS"
9327cat > conftest.$ac_ext <<EOF
9328#line 9329 "configure"
9329#include "confdefs.h"
9330/* Override any gcc2 internal prototype to avoid an error. */
9331/* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9333char setlocale();
9334
9335int main() {
9336setlocale()
9337; return 0; }
9338EOF
9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9340 rm -rf conftest*
9341 eval "ac_cv_lib_$ac_lib_var=yes"
9342else
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 rm -rf conftest*
9346 eval "ac_cv_lib_$ac_lib_var=no"
9347fi
9348rm -f conftest*
9349LIBS="$ac_save_LIBS"
9350
9351fi
9352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 LIBS="$LIBS -lxpg4"
9355else
9356 echo "$ac_t""no" 1>&6
9357fi
9358
9359
9360if test x$support_graphics = xyes; then 16449if test x$support_8bitctrls = xyes; then
16450
9361 cat >> confdefs.h <<\EOF 16451cat >>confdefs.h <<\_ACEOF
9362#define RXVT_GRAPHICS 1 16452#define EIGHT_BIT_CONTROLS 1
9363EOF 16453_ACEOF
16454
16455fi
16456if test x$support_fading = xyes; then
16457
16458cat >>confdefs.h <<\_ACEOF
16459#define OFF_FOCUS_FADING 1
16460_ACEOF
16461
16462fi
16463if test x$support_tinting = xyes; then
16464
16465cat >>confdefs.h <<\_ACEOF
16466#define TINTING 1
16467_ACEOF
9364 16468
9365fi 16469fi
9366if test x$support_inheritpixmap = xyes; then 16470if test x$support_inheritpixmap = xyes; then
16471
9367 cat >> confdefs.h <<\EOF 16472cat >>confdefs.h <<\_ACEOF
9368#define TRANSPARENT 1 16473#define TRANSPARENT 1
9369EOF 16474_ACEOF
9370 16475
9371fi 16476fi
9372if test x$support_keepscrolling = xno; then 16477if test x$support_keepscrolling = xno; then
16478
9373 cat >> confdefs.h <<\EOF 16479cat >>confdefs.h <<\_ACEOF
9374#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16480#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9375EOF 16481_ACEOF
9376 16482
9377fi 16483fi
9378if test x$support_selectionscrolling = xyes; then 16484if test x$support_selectionscrolling = xyes; then
16485
9379 cat >> confdefs.h <<\EOF 16486cat >>confdefs.h <<\_ACEOF
9380#define SELECTION_SCROLLING 1 16487#define SELECTION_SCROLLING 1
9381EOF 16488_ACEOF
9382 16489
9383fi 16490fi
9384if test x$support_menubar = xyes; then 16491if test x$support_menubar = xyes; then
16492
9385 cat >> confdefs.h <<\EOF 16493cat >>confdefs.h <<\_ACEOF
9386#define MENUBAR 1 16494#define MENUBAR 1
9387EOF 16495_ACEOF
9388 16496
9389fi 16497fi
9390if test x$support_frills = xno; then 16498if test x$support_frills = xno; then
16499
9391 cat >> confdefs.h <<\EOF 16500cat >>confdefs.h <<\_ACEOF
9392#define NO_FRILLS 1 16501#define NO_FRILLS 1
9393EOF 16502_ACEOF
9394 16503
9395fi 16504fi
9396if test x$support_linespace = xno; then 16505if test x$support_linespace = xno; then
16506
9397 cat >> confdefs.h <<\EOF 16507cat >>confdefs.h <<\_ACEOF
9398#define NO_LINESPACE 1 16508#define NO_LINESPACE 1
9399EOF 16509_ACEOF
9400 16510
9401fi 16511fi
9402if test x$support_24bit = xyes; then 16512if test x$support_24bit = xyes; then
16513
9403 cat >> confdefs.h <<\EOF 16514cat >>confdefs.h <<\_ACEOF
9404#define PREFER_24BIT 1 16515#define PREFER_24BIT 1
9405EOF 16516_ACEOF
9406 16517
9407fi 16518fi
9408if test x$support_mousewheel = xyes; then 16519if test x$support_mousewheel = xyes; then
16520
9409 cat >> confdefs.h <<\EOF 16521cat >>confdefs.h <<\_ACEOF
9410#define MOUSE_WHEEL 1 16522#define MOUSE_WHEEL 1
9411EOF 16523_ACEOF
9412 16524
9413fi 16525fi
9414if test x$support_mouseslipwheel = xyes; then 16526if test x$support_mouseslipwheel = xyes; then
16527
9415 cat >> confdefs.h <<\EOF 16528cat >>confdefs.h <<\_ACEOF
9416#define MOUSE_SLIP_WHEELING 1 16529#define MOUSE_SLIP_WHEELING 1
9417EOF 16530_ACEOF
9418
9419fi
9420if test x$support_oldselection = xno; then
9421 cat >> confdefs.h <<\EOF
9422#define NO_OLD_SELECTION 1
9423EOF
9424 16531
9425fi 16532fi
9426if test x$support_utmp = xyes; then 16533if test x$support_utmp = xyes; then
16534
9427 cat >> confdefs.h <<\EOF 16535cat >>confdefs.h <<\_ACEOF
9428#define UTMP_SUPPORT 1 16536#define UTMP_SUPPORT 1
9429EOF 16537_ACEOF
9430 16538
9431fi 16539fi
9432if test x$support_wtmp = xyes; then 16540if test x$support_wtmp = xyes; then
16541
9433 cat >> confdefs.h <<\EOF 16542cat >>confdefs.h <<\_ACEOF
9434#define WTMP_SUPPORT 1 16543#define WTMP_SUPPORT 1
9435EOF 16544_ACEOF
9436 16545
9437fi 16546fi
9438if test x$support_lastlog = xyes; then 16547if test x$support_lastlog = xyes; then
16548
9439 cat >> confdefs.h <<\EOF 16549cat >>confdefs.h <<\_ACEOF
9440#define LASTLOG_SUPPORT 1 16550#define LASTLOG_SUPPORT 1
9441EOF 16551_ACEOF
9442 16552
9443fi 16553fi
9444if test x$support_xim = xyes -o x$multichar_set = xyes; then 16554if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then 16555 if test x$rxvt_cv_func_xlocale = xyes; then
16556
9446 cat >> confdefs.h <<\EOF 16557cat >>confdefs.h <<\_ACEOF
9447#define USE_XIM 1 16558#define USE_XIM 1
9448EOF 16559_ACEOF
9449 16560
9450 fi 16561 fi
9451fi 16562fi
9452if test x$support_xpm = xyes; then 16563if test x$support_xpm = xyes; then
16564
9453 cat >> confdefs.h <<\EOF 16565cat >>confdefs.h <<\_ACEOF
9454#define XPM_BACKGROUND 1 16566#define XPM_BACKGROUND 1
9455EOF 16567_ACEOF
9456 16568
9457fi 16569fi
9458if test x$support_scroll_rxvt = xyes; then 16570if test x$support_scroll_rxvt = xyes; then
16571
9459 cat >> confdefs.h <<\EOF 16572cat >>confdefs.h <<\_ACEOF
9460#define RXVT_SCROLLBAR 1 16573#define RXVT_SCROLLBAR 1
9461EOF 16574_ACEOF
9462 16575
9463 scrolltypes="rxvt" 16576 scrolltypes="rxvt"
9464fi 16577fi
9465if test x$support_scroll_next = xyes; then 16578if test x$support_scroll_next = xyes; then
16579
9466 cat >> confdefs.h <<\EOF 16580cat >>confdefs.h <<\_ACEOF
9467#define NEXT_SCROLLBAR 1 16581#define NEXT_SCROLLBAR 1
9468EOF 16582_ACEOF
9469 16583
9470 scrolltypes="$scrolltypes next" 16584 scrolltypes="$scrolltypes next"
9471fi 16585fi
9472if test x$support_scroll_xterm = xyes; then 16586if test x$support_scroll_xterm = xyes; then
16587
9473 cat >> confdefs.h <<\EOF 16588cat >>confdefs.h <<\_ACEOF
9474#define XTERM_SCROLLBAR 1 16589#define XTERM_SCROLLBAR 1
9475EOF 16590_ACEOF
9476 16591
9477 scrolltypes="$scrolltypes xterm" 16592 scrolltypes="$scrolltypes xterm"
9478fi 16593fi
16594if test x$support_scroll_plain = xyes; then
16595
16596cat >>confdefs.h <<\_ACEOF
16597#define PLAIN_SCROLLBAR 1
16598_ACEOF
16599
16600 scrolltypes="$scrolltypes plain"
16601fi
9479if test x$support_pointer_blank = xyes; then 16602if test x$support_pointer_blank = xyes; then
16603
9480 cat >> confdefs.h <<\EOF 16604cat >>confdefs.h <<\_ACEOF
9481#define POINTER_BLANK 1 16605#define POINTER_BLANK 1
9482EOF 16606_ACEOF
9483 16607
9484fi 16608fi
9485if test x$support_cursor_blink = xyes; then 16609if test x$support_cursor_blink = xyes; then
16610
9486 cat >> confdefs.h <<\EOF 16611cat >>confdefs.h <<\_ACEOF
9487#define CURSOR_BLINK 1 16612#define CURSOR_BLINK 1
9488EOF 16613_ACEOF
16614
16615fi
16616if test x$support_text_blink = xyes; then
16617
16618cat >>confdefs.h <<\_ACEOF
16619#define TEXT_BLINK 1
16620_ACEOF
9489 16621
9490fi 16622fi
9491if test x$support_unicode3 = xyes; then 16623if test x$support_unicode3 = xyes; then
16624
9492 cat >> confdefs.h <<\EOF 16625cat >>confdefs.h <<\_ACEOF
9493#define UNICODE_3 1 16626#define UNICODE_3 1
9494EOF 16627_ACEOF
16628
16629fi
16630if test x$support_combining = xyes; then
16631
16632cat >>confdefs.h <<\_ACEOF
16633#define ENABLE_COMBINING 1
16634_ACEOF
9495 16635
9496fi 16636fi
9497if test x$codesets = xall; then 16637if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16638 codesets=jp,jp-ext,kr,cn,cn-ext
9499fi 16639fi
9500for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16640for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16641
9501 cat >> confdefs.h <<\EOF 16642cat >>confdefs.h <<\_ACEOF
9502#define ENCODING_EU 1 16643#define ENCODING_EU 1
9503EOF 16644_ACEOF
16645
16646
16647cat >>confdefs.h <<\_ACEOF
16648#define ENCODING_VN 1
16649_ACEOF
9504 16650
9505 case "$codeset" in 16651 case "$codeset" in
9506 VN ) cat >> confdefs.h <<\EOF 16652 JP )
16653cat >>confdefs.h <<\_ACEOF
9507#define ENCODING_VN 1 16654#define ENCODING_JP 1
9508EOF 16655_ACEOF
9509 ;; 16656 ;;
9510 JP ) cat >> confdefs.h <<\EOF 16657 JP_EXT )
16658cat >>confdefs.h <<\_ACEOF
9511#define ENCODING_JP 1 16659#define ENCODING_JP_EXT 1
9512EOF 16660_ACEOF
9513 ;; 16661 ;;
9514 JP_EXT ) cat >> confdefs.h <<\EOF 16662 KR )
16663cat >>confdefs.h <<\_ACEOF
9515#define ENCODING_JP_EXT 1 16664#define ENCODING_KR 1
9516EOF 16665_ACEOF
9517 ;; 16666 ;;
9518 KR ) cat >> confdefs.h <<\EOF 16667 CN )
16668cat >>confdefs.h <<\_ACEOF
9519#define ENCODING_KR 1 16669#define ENCODING_CN 1
9520EOF 16670_ACEOF
9521 ;; 16671 ;;
9522 CN ) cat >> confdefs.h <<\EOF 16672 CN_EXT )
9523#define ENCODING_CN 1 16673cat >>confdefs.h <<\_ACEOF
9524EOF
9525 ;;
9526 CN_EXT ) cat >> confdefs.h <<\EOF
9527#define ENCODING_CN_EXT 1 16674#define ENCODING_CN_EXT 1
9528EOF 16675_ACEOF
9529 ;; 16676 ;;
9530 esac 16677 esac
9531done 16678done
9532 16679
9533 16680
9553 16700
9554 16701
9555 16702
9556 16703
9557if test x$support_addstrings = xno; then 16704if test x$support_addstrings = xno; then
16705
9558 cat >> confdefs.h <<\EOF 16706cat >>confdefs.h <<\_ACEOF
9559#define NO_STRINGS 1 16707#define NO_STRINGS 1
9560EOF 16708_ACEOF
9561 16709
9562fi 16710fi
9563 16711
9564MCOMMON=./autoconf/Make.common 16712MCOMMON=./autoconf/Make.common
9565 16713
9566 16714
9567if test "$program_transform_name" = s,x,x,; then
9568 program_transform_name=
9569else
9570 # Double any \ or $. echo might interpret backslashes.
9571 cat <<\EOF_SED > conftestsed
9572s,\\,\\\\,g; s,\$,$$,g
9573EOF_SED
9574 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9575 rm -f conftestsed
9576fi
9577test "$program_prefix" != NONE && 16715test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16716 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9579# Use a double $ so make ignores it. 16717# Use a double $ so make ignores it.
9580test "$program_suffix" != NONE && 16718test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16719 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9582 16720# Double any \ or $. echo might interpret backslashes.
9583# sed with no file args requires a program. 16721# By default was `s,x,x', remove it if useless.
9584test "$program_transform_name" = "" && program_transform_name="s,x,x," 16722cat <<\_ACEOF >conftest.sed
9585 16723s/[\\$]/&&/g;s/;s,x,x,$//
9586 16724_ACEOF
9587RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16725program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16726rm conftest.sed
9588 16727
9589 16728
9590 16729
9591 16730
9592 16731
9593if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16732if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>" 16733 include_stdint_h="#include <stdint.h>"
9595else 16734else
9596 include_stdint_h="/* #include <stdint.h> */" 16735 include_stdint_h="/* #include <stdint.h> */"
9597fi 16736fi
9598if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16737if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>" 16738 include_stdarg_h="#include <cstdarg>"
9600else 16739else
9601 include_stdarg_h="/* #include <stdarg.h> */" 16740 include_stdarg_h="/* #include <cstdarg> */"
9602fi 16741fi
9603if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16742if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>" 16743 include_stdlib_h="#include <cstdlib>"
9605else 16744else
9606 include_stdlib_h="/* #include <stdlib.h> */" 16745 include_stdlib_h="/* #include <cstdlib> */"
9607fi 16746fi
9608if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16747if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>" 16748 include_unistd_h="#include <unistd.h>"
9610else 16749else
9611 include_unistd_h="/* #include <unistd.h> */" 16750 include_unistd_h="/* #include <unistd.h> */"
9612fi 16751fi
9613if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16752if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>" 16753 include_string_h="#include <cstring>"
9615else 16754else
9616 include_string_h="/* #include <string.h> */" 16755 include_string_h="/* #include <cstring> */"
9617fi 16756fi
9618if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16757if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>" 16758 include_fcntl_h="#include <fcntl.h>"
9620else 16759else
9621 include_fcntl_h="/* #include <fcntl.h> */" 16760 include_fcntl_h="/* #include <fcntl.h> */"
9622fi 16761fi
9623if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16762if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>" 16763 include_util_h="#include <util.h>"
9625else 16764else
9626 include_util_h="/* #include <util.h> */" 16765 include_util_h="/* #include <util.h> */"
9627fi 16766fi
9628if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16767if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>" 16768 include_assert_h="#include <assert.h>"
9630else 16769else
9631 include_assert_h="/* #include <assert.h> */" 16770 include_assert_h="/* #include <assert.h> */"
9632fi 16771fi
9633if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16772if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>" 16773 include_sys_ioctl_h="#include <sys/ioctl.h>"
9635else 16774else
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16775 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9637fi 16776fi
9638if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16777if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9639 include_sys_select_h="#include <sys/select.h>" 16778 include_sys_select_h="#include <sys/select.h>"
9640else 16779else
9641 include_sys_select_h="/* #include <sys/select.h> */" 16780 include_sys_select_h="/* #include <sys/select.h> */"
9642fi 16781fi
9643if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16782if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9644 include_sys_strredir_h="#include <sys/strredir.h>" 16783 include_sys_strredir_h="#include <sys/strredir.h>"
9645else 16784else
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16785 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9647fi 16786fi
9648if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16787if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9649 include_sys_time_h="#include <sys/time.h>" 16788 include_sys_time_h="#include <sys/time.h>"
9650else 16789else
9651 include_sys_time_h="/* #include <sys/time.h> */" 16790 include_sys_time_h="/* #include <sys/time.h> */"
9652fi 16791fi
9653if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16792if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9654 include_time_h="#include <time.h>" 16793 include_time_h="#include <time.h>"
9655else 16794else
9656 include_time_h="/* #include <time.h> */" 16795 include_time_h="/* #include <time.h> */"
9657fi 16796fi
9658 16797
9659if test x$support_xft = xyes; then 16798if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`" 16799 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16800 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16801 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9663 16802
16803
9664 for ac_hdr in X11/Xft/Xft.h 16804for ac_header in X11/Xft/Xft.h
9665do 16805do
9666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16807if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668echo "configure:9669: checking for $ac_hdr" >&5 16810if eval "test \"\${$as_ac_Header+set}\" = set"; then
9669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6 16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812fi
16813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671else 16815else
16816 # Is the header compilable?
16817echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9672 cat > conftest.$ac_ext <<EOF 16819cat >conftest.$ac_ext <<_ACEOF
9673#line 9674 "configure" 16820/* confdefs.h. */
9674#include "confdefs.h" 16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825$ac_includes_default
9675#include <$ac_hdr> 16826#include <$ac_header>
9676EOF 16827_ACEOF
9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16828rm -f conftest.$ac_objext
9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16830 (eval $ac_compile) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854ac_header_compiler=no
16855fi
16856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858echo "${ECHO_T}$ac_header_compiler" >&6
16859
16860# Is the header present?
16861echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16863cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869#include <$ac_header>
16870_ACEOF
16871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_cxx_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16882 else
16883 ac_cpp_err=
16884 fi
16885else
16886 ac_cpp_err=yes
16887fi
9680if test -z "$ac_err"; then 16888if test -z "$ac_cpp_err"; then
9681 rm -rf conftest* 16889 ac_header_preproc=yes
9682 eval "ac_cv_header_$ac_safe=yes"
9683else 16890else
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5 16891 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5 16892sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -rf conftest* 16893
9688 eval "ac_cv_header_$ac_safe=no" 16894 ac_header_preproc=no
9689fi 16895fi
9690rm -f conftest* 16896rm -f conftest.err conftest.$ac_ext
16897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16898echo "${ECHO_T}$ac_header_preproc" >&6
16899
16900# So? What about this header?
16901case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16902 yes:no: )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16907 ac_header_preproc=yes
16908 ;;
16909 no:yes:* )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16922 (
16923 cat <<\_ASBOX
16924## ------------------------------------------ ##
16925## Report this to the AC_PACKAGE_NAME lists. ##
16926## ------------------------------------------ ##
16927_ASBOX
16928 ) |
16929 sed "s/^/$as_me: WARNING: /" >&2
16930 ;;
16931esac
16932echo "$as_me:$LINENO: checking for $ac_header" >&5
16933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16934if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937 eval "$as_ac_Header=\$ac_header_preproc"
9691fi 16938fi
9692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "$ac_t""yes" 1>&6 16940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16941
16942fi
16943if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >> confdefs.h <<EOF 16944 cat >>confdefs.h <<_ACEOF
9696#define $ac_tr_hdr 1 16945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697EOF 16946_ACEOF
9698 16947
9699else 16948else
9700 echo "$ac_t""no" 1>&6
9701support_xft=no 16949 support_xft=no
9702fi 16950fi
16951
9703done 16952done
9704 16953
16954
16955echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16956echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5 16957if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
9707ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6 16958 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else 16959else
9711 ac_save_LIBS="$LIBS" 16960 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-lXft $LIBS" 16961LIBS="-lXft $LIBS"
9713cat > conftest.$ac_ext <<EOF 16962cat >conftest.$ac_ext <<_ACEOF
9714#line 9715 "configure" 16963/* confdefs.h. */
9715#include "confdefs.h" 16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
16968
9716/* Override any gcc2 internal prototype to avoid an error. */ 16969/* Override any gcc2 internal prototype to avoid an error. */
16970#ifdef __cplusplus
16971extern "C"
16972#endif
9717/* We use char because int might match the return type of a gcc2 16973/* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */ 16974 builtin and then its argument prototype would still apply. */
9719char XftDrawString32(); 16975char XftDrawString32 ();
9720 16976int
9721int main() { 16977main ()
16978{
9722XftDrawString32() 16979XftDrawString32 ();
16980 ;
9723; return 0; } 16981 return 0;
9724EOF 16982}
9725if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16983_ACEOF
16984rm -f conftest.$ac_objext conftest$ac_exeext
16985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -rf conftest* 16989 rm -f conftest.er1
9727 eval "ac_cv_lib_$ac_lib_var=yes" 16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_lib_Xft_XftDrawString32=yes
9728else 17006else
9729 echo "configure: failed program was:" >&5 17007 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5 17008sed 's/^/| /' conftest.$ac_ext >&5
9731 rm -rf conftest* 17009
9732 eval "ac_cv_lib_$ac_lib_var=no" 17010ac_cv_lib_Xft_XftDrawString32=no
9733fi 17011fi
9734rm -f conftest* 17012rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
9735LIBS="$ac_save_LIBS" 17014LIBS=$ac_check_lib_save_LIBS
9736
9737fi 17015fi
9738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 17016echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9739 echo "$ac_t""yes" 1>&6 17017echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 17018if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF 17019 cat >>confdefs.h <<_ACEOF
9743#define $ac_tr_lib 1 17020#define HAVE_LIBXFT 1
9744EOF 17021_ACEOF
9745 17022
9746 LIBS="-lXft $LIBS" 17023 LIBS="-lXft $LIBS"
9747 17024
9748else 17025else
9749 echo "$ac_t""no" 1>&6
9750support_xft=no 17026 support_xft=no
9751fi 17027fi
9752 17028
9753 17029
9754 if test x$support_xft = xyes; then 17030 if test x$support_xft = xyes; then
17031
9755 cat >> confdefs.h <<\EOF 17032cat >>confdefs.h <<\_ACEOF
9756#define XFT 1 17033#define XFT 1
9757EOF 17034_ACEOF
9758 17035
9759 fi 17036 fi
9760fi 17037fi
9761 17038
9762trap '' 1 2 15 17039 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
9763cat > confcache <<\EOF 17040cat >confcache <<\_ACEOF
9764# This file is a shell script that caches the results of configure 17041# This file is a shell script that caches the results of configure
9765# tests run on this system so they can be shared between configure 17042# tests run on this system so they can be shared between configure
9766# scripts and configure runs. It is not useful on other systems. 17043# scripts and configure runs, see configure's option --config-cache.
9767# If it contains results you don't want to keep, you may remove or edit it. 17044# It is not useful on other systems. If it contains results you don't
17045# want to keep, you may remove or edit it.
9768# 17046#
9769# By default, configure uses ./config.cache as the cache file,
9770# creating it if it does not exist already. You can give configure
9771# the --cache-file=FILE option to use a different cache file; that is
9772# what configure does when it calls configure scripts in
9773# subdirectories, so they share the cache.
9774# Giving --cache-file=/dev/null disables caching, for debugging configure.
9775# config.status only pays attention to the cache file if you give it the 17047# config.status only pays attention to the cache file if you give it
9776# --recheck option to rerun configure. 17048# the --recheck option to rerun configure.
9777# 17049#
9778EOF 17050# `ac_cv_env_foo' variables (set or unset) will be overridden when
17051# loading this file, other *unset* `ac_cv_foo' will be assigned the
17052# following values.
17053
17054_ACEOF
17055
9779# The following way of writing the cache mishandles newlines in values, 17056# The following way of writing the cache mishandles newlines in values,
9780# but we know of no workaround that is simple, portable, and efficient. 17057# but we know of no workaround that is simple, portable, and efficient.
9781# So, don't put newlines in cache variables' values. 17058# So, don't put newlines in cache variables' values.
9782# Ultrix sh set writes to stderr and can't be redirected directly, 17059# Ultrix sh set writes to stderr and can't be redirected directly,
9783# and sets the high bit in the cache file unless we assign to the vars. 17060# and sets the high bit in the cache file unless we assign to the vars.
17061{
9784(set) 2>&1 | 17062 (set) 2>&1 |
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in 17063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9786 *ac_space=\ *) 17064 *ac_space=\ *)
9787 # `set' does not quote correctly, so add quotes (double-quote substitution 17065 # `set' does not quote correctly, so add quotes (double-quote
9788 # turns \\\\ into \\, and sed turns \\ into \). 17066 # substitution turns \\\\ into \\, and sed turns \\ into \).
9789 sed -n \ 17067 sed -n \
9790 -e "s/'/'\\\\''/g" \ 17068 "s/'/'\\\\''/g;
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 17069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9792 ;; 17070 ;;
9793 *) 17071 *)
9794 # `set' quotes correctly as required by POSIX, so do not add quotes. 17072 # `set' quotes correctly as required by POSIX, so do not add quotes.
9795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 17073 sed -n \
17074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9796 ;; 17075 ;;
9797 esac >> confcache 17076 esac;
9798if cmp -s $cache_file confcache; then 17077} |
9799 : 17078 sed '
9800else 17079 t clear
17080 : clear
17081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17082 t end
17083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17084 : end' >>confcache
17085if diff $cache_file confcache >/dev/null 2>&1; then :; else
9801 if test -w $cache_file; then 17086 if test -w $cache_file; then
9802 echo "updating cache $cache_file" 17087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9803 cat confcache > $cache_file 17088 cat confcache >$cache_file
9804 else 17089 else
9805 echo "not updating unwritable cache $cache_file" 17090 echo "not updating unwritable cache $cache_file"
9806 fi 17091 fi
9807fi 17092fi
9808rm -f confcache 17093rm -f confcache
9809 17094
9810trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9811
9812test "x$prefix" = xNONE && prefix=$ac_default_prefix 17095test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813# Let make expand exec_prefix. 17096# Let make expand exec_prefix.
9814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9815 17098
9816# Any assignment to VPATH causes Sun make to only execute 17099# VPATH may cause trouble with some makes, so we remove $(srcdir),
9817# the first set of double-colon rules, so remove it if not needed. 17100# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9818# If there is a colon in the path, we need to keep it. 17101# trailing colons and then remove the whole line if VPATH becomes empty
17102# (actually we leave an empty line to preserve line numbers).
9819if test "x$srcdir" = x.; then 17103if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 17104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17105s/:*\$(srcdir):*/:/;
17106s/:*\${srcdir}:*/:/;
17107s/:*@srcdir@:*/:/;
17108s/^\([^=]*=[ ]*\):*/\1/;
17109s/:*$//;
17110s/^[^=]*=[ ]*$//;
17111}'
9821fi 17112fi
9822
9823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9824 17113
9825DEFS=-DHAVE_CONFIG_H 17114DEFS=-DHAVE_CONFIG_H
9826 17115
9827# Without the "./", some shells look in PATH for config.status. 17116ac_libobjs=
17117ac_ltlibobjs=
17118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17119 # 1. Remove the extension, and $U if already installed.
17120 ac_i=`echo "$ac_i" |
17121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17122 # 2. Add them.
17123 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17124 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17125done
17126LIBOBJS=$ac_libobjs
17127
17128LTLIBOBJS=$ac_ltlibobjs
17129
17130
17131
9828: ${CONFIG_STATUS=./config.status} 17132: ${CONFIG_STATUS=./config.status}
9829 17133ac_clean_files_save=$ac_clean_files
17134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9830echo creating $CONFIG_STATUS 17136echo "$as_me: creating $CONFIG_STATUS" >&6;}
9831rm -f $CONFIG_STATUS
9832cat > $CONFIG_STATUS <<EOF 17137cat >$CONFIG_STATUS <<_ACEOF
9833#! /bin/sh 17138#! $SHELL
9834# Generated automatically by configure. 17139# Generated by $as_me.
9835# Run this file to recreate the current configuration. 17140# Run this file to recreate the current configuration.
9836# This directory was configured as follows,
9837# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9838#
9839# $0 $ac_configure_args
9840#
9841# Compiler output produced by configure, useful for debugging 17141# Compiler output produced by configure, useful for debugging
9842# configure, is in ./config.log if it exists. 17142# configure, is in config.log if it exists.
9843 17143
9844ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 17144debug=false
9845for ac_option 17145ac_cs_recheck=false
17146ac_cs_silent=false
17147SHELL=\${CONFIG_SHELL-$SHELL}
17148_ACEOF
17149
17150cat >>$CONFIG_STATUS <<\_ACEOF
17151## --------------------- ##
17152## M4sh Initialization. ##
17153## --------------------- ##
17154
17155# Be Bourne compatible
17156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17157 emulate sh
17158 NULLCMD=:
17159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17160 # is contrary to our usage. Disable this feature.
17161 alias -g '${1+"$@"}'='"$@"'
17162elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17163 set -o posix
17164fi
17165DUALCASE=1; export DUALCASE # for MKS sh
17166
17167# Support unset when possible.
17168if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17169 as_unset=unset
17170else
17171 as_unset=false
17172fi
17173
17174
17175# Work around bugs in pre-3.0 UWIN ksh.
17176$as_unset ENV MAIL MAILPATH
17177PS1='$ '
17178PS2='> '
17179PS4='+ '
17180
17181# NLS nuisances.
17182for as_var in \
17183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17185 LC_TELEPHONE LC_TIME
9846do 17186do
17187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17188 eval $as_var=C; export $as_var
17189 else
17190 $as_unset $as_var
17191 fi
17192done
17193
17194# Required to use basename.
17195if expr a : '\(a\)' >/dev/null 2>&1; then
17196 as_expr=expr
17197else
17198 as_expr=false
17199fi
17200
17201if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17202 as_basename=basename
17203else
17204 as_basename=false
17205fi
17206
17207
17208# Name of the executable.
17209as_me=`$as_basename "$0" ||
17210$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17211 X"$0" : 'X\(//\)$' \| \
17212 X"$0" : 'X\(/\)$' \| \
17213 . : '\(.\)' 2>/dev/null ||
17214echo X/"$0" |
17215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17216 /^X\/\(\/\/\)$/{ s//\1/; q; }
17217 /^X\/\(\/\).*/{ s//\1/; q; }
17218 s/.*/./; q'`
17219
17220
17221# PATH needs CR, and LINENO needs CR and PATH.
17222# Avoid depending upon Character Ranges.
17223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17226as_cr_digits='0123456789'
17227as_cr_alnum=$as_cr_Letters$as_cr_digits
17228
17229# The user is always right.
17230if test "${PATH_SEPARATOR+set}" != set; then
17231 echo "#! /bin/sh" >conf$$.sh
17232 echo "exit 0" >>conf$$.sh
17233 chmod +x conf$$.sh
17234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17235 PATH_SEPARATOR=';'
17236 else
17237 PATH_SEPARATOR=:
17238 fi
17239 rm -f conf$$.sh
17240fi
17241
17242
17243 as_lineno_1=$LINENO
17244 as_lineno_2=$LINENO
17245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17246 test "x$as_lineno_1" != "x$as_lineno_2" &&
17247 test "x$as_lineno_3" = "x$as_lineno_2" || {
17248 # Find who we are. Look in the path if we contain no path at all
17249 # relative or not.
17250 case $0 in
17251 *[\\/]* ) as_myself=$0 ;;
17252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17253for as_dir in $PATH
17254do
17255 IFS=$as_save_IFS
17256 test -z "$as_dir" && as_dir=.
17257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17258done
17259
17260 ;;
17261 esac
17262 # We did not find ourselves, most probably we were run as `sh COMMAND'
17263 # in which case we are not to be found in the path.
17264 if test "x$as_myself" = x; then
17265 as_myself=$0
17266 fi
17267 if test ! -f "$as_myself"; then
17268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17269echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17270 { (exit 1); exit 1; }; }
17271 fi
17272 case $CONFIG_SHELL in
17273 '')
17274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17275for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17276do
17277 IFS=$as_save_IFS
17278 test -z "$as_dir" && as_dir=.
17279 for as_base in sh bash ksh sh5; do
17280 case $as_dir in
17281 /*)
17282 if ("$as_dir/$as_base" -c '
17283 as_lineno_1=$LINENO
17284 as_lineno_2=$LINENO
17285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17286 test "x$as_lineno_1" != "x$as_lineno_2" &&
17287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17290 CONFIG_SHELL=$as_dir/$as_base
17291 export CONFIG_SHELL
17292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17293 fi;;
17294 esac
17295 done
17296done
17297;;
17298 esac
17299
17300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17301 # uniformly replaced by the line number. The first 'sed' inserts a
17302 # line-number line before each line; the second 'sed' does the real
17303 # work. The second script uses 'N' to pair each line-number line
17304 # with the numbered line, and appends trailing '-' during
17305 # substitution so that $LINENO is not a special case at line end.
17306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17308 sed '=' <$as_myself |
17309 sed '
17310 N
17311 s,$,-,
17312 : loop
17313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17314 t loop
17315 s,-$,,
17316 s,^['$as_cr_digits']*\n,,
17317 ' >$as_me.lineno &&
17318 chmod +x $as_me.lineno ||
17319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17320echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17321 { (exit 1); exit 1; }; }
17322
17323 # Don't try to exec as it changes $[0], causing all sort of problems
17324 # (the dirname of $[0] is not the place where we might find the
17325 # original and so on. Autoconf is especially sensible to this).
17326 . ./$as_me.lineno
17327 # Exit status is that of the last command.
17328 exit
17329}
17330
17331
17332case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17333 *c*,-n*) ECHO_N= ECHO_C='
17334' ECHO_T=' ' ;;
17335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17337esac
17338
17339if expr a : '\(a\)' >/dev/null 2>&1; then
17340 as_expr=expr
17341else
17342 as_expr=false
17343fi
17344
17345rm -f conf$$ conf$$.exe conf$$.file
17346echo >conf$$.file
17347if ln -s conf$$.file conf$$ 2>/dev/null; then
17348 # We could just check for DJGPP; but this test a) works b) is more generic
17349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17350 if test -f conf$$.exe; then
17351 # Don't use ln at all; we don't have any links
17352 as_ln_s='cp -p'
17353 else
17354 as_ln_s='ln -s'
17355 fi
17356elif ln conf$$.file conf$$ 2>/dev/null; then
17357 as_ln_s=ln
17358else
17359 as_ln_s='cp -p'
17360fi
17361rm -f conf$$ conf$$.exe conf$$.file
17362
17363if mkdir -p . 2>/dev/null; then
17364 as_mkdir_p=:
17365else
17366 test -d ./-p && rmdir ./-p
17367 as_mkdir_p=false
17368fi
17369
17370as_executable_p="test -f"
17371
17372# Sed expression to map a string onto a valid CPP name.
17373as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17374
17375# Sed expression to map a string onto a valid variable name.
17376as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17377
17378
17379# IFS
17380# We need space, tab and new line, in precisely that order.
17381as_nl='
17382'
17383IFS=" $as_nl"
17384
17385# CDPATH.
17386$as_unset CDPATH
17387
17388exec 6>&1
17389
17390# Open the log real soon, to keep \$[0] and so on meaningful, and to
17391# report actual input values of CONFIG_FILES etc. instead of their
17392# values after options handling. Logging --version etc. is OK.
17393exec 5>>config.log
17394{
17395 echo
17396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17397## Running $as_me. ##
17398_ASBOX
17399} >&5
17400cat >&5 <<_CSEOF
17401
17402This file was extended by $as_me, which was
17403generated by GNU Autoconf 2.59. Invocation command line was
17404
17405 CONFIG_FILES = $CONFIG_FILES
17406 CONFIG_HEADERS = $CONFIG_HEADERS
17407 CONFIG_LINKS = $CONFIG_LINKS
17408 CONFIG_COMMANDS = $CONFIG_COMMANDS
17409 $ $0 $@
17410
17411_CSEOF
17412echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17413echo >&5
17414_ACEOF
17415
17416# Files that config.status was made for.
17417if test -n "$ac_config_files"; then
17418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17419fi
17420
17421if test -n "$ac_config_headers"; then
17422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17423fi
17424
17425if test -n "$ac_config_links"; then
17426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17427fi
17428
17429if test -n "$ac_config_commands"; then
17430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17431fi
17432
17433cat >>$CONFIG_STATUS <<\_ACEOF
17434
17435ac_cs_usage="\
17436\`$as_me' instantiates files from templates according to the
17437current configuration.
17438
17439Usage: $0 [OPTIONS] [FILE]...
17440
17441 -h, --help print this help, then exit
17442 -V, --version print version number, then exit
17443 -q, --quiet do not print progress messages
17444 -d, --debug don't remove temporary files
17445 --recheck update $as_me by reconfiguring in the same conditions
17446 --file=FILE[:TEMPLATE]
17447 instantiate the configuration file FILE
17448 --header=FILE[:TEMPLATE]
17449 instantiate the configuration header FILE
17450
17451Configuration files:
17452$config_files
17453
17454Configuration headers:
17455$config_headers
17456
17457Report bugs to <bug-autoconf@gnu.org>."
17458_ACEOF
17459
17460cat >>$CONFIG_STATUS <<_ACEOF
17461ac_cs_version="\\
17462config.status
17463configured by $0, generated by GNU Autoconf 2.59,
17464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17465
17466Copyright (C) 2003 Free Software Foundation, Inc.
17467This config.status script is free software; the Free Software Foundation
17468gives unlimited permission to copy, distribute and modify it."
17469srcdir=$srcdir
17470INSTALL="$INSTALL"
17471_ACEOF
17472
17473cat >>$CONFIG_STATUS <<\_ACEOF
17474# If no file are specified by the user, then we need to provide default
17475# value. By we need to know if files were specified by the user.
17476ac_need_defaults=:
17477while test $# != 0
17478do
17479 case $1 in
17480 --*=*)
17481 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17482 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17483 ac_shift=:
17484 ;;
17485 -*)
17486 ac_option=$1
17487 ac_optarg=$2
17488 ac_shift=shift
17489 ;;
17490 *) # This is not an option, so the user has probably given explicit
17491 # arguments.
17492 ac_option=$1
17493 ac_need_defaults=false;;
17494 esac
17495
9847 case "\$ac_option" in 17496 case $ac_option in
17497 # Handling of the options.
17498_ACEOF
17499cat >>$CONFIG_STATUS <<\_ACEOF
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17501 ac_cs_recheck=: ;;
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17502 --version | --vers* | -V )
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17503 echo "$ac_cs_version"; exit 0 ;;
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17504 --he | --h)
9853 exit 0 ;; 17505 # Conflict between --help and --header
9854 -help | --help | --hel | --he | --h) 17506 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17507Try \`$0 --help' for more information." >&5
17508echo "$as_me: error: ambiguous option: $1
17509Try \`$0 --help' for more information." >&2;}
17510 { (exit 1); exit 1; }; };;
17511 --help | --hel | -h )
9855 echo "\$ac_cs_usage"; exit 0 ;; 17512 echo "$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;; 17513 --debug | --d* | -d )
17514 debug=: ;;
17515 --file | --fil | --fi | --f )
17516 $ac_shift
17517 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17518 ac_need_defaults=false;;
17519 --header | --heade | --head | --hea )
17520 $ac_shift
17521 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17522 ac_need_defaults=false;;
17523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17525 ac_cs_silent=: ;;
17526
17527 # This is an error.
17528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17529Try \`$0 --help' for more information." >&5
17530echo "$as_me: error: unrecognized option: $1
17531Try \`$0 --help' for more information." >&2;}
17532 { (exit 1); exit 1; }; } ;;
17533
17534 *) ac_config_targets="$ac_config_targets $1" ;;
17535
17536 esac
17537 shift
17538done
17539
17540ac_configure_extra_args=
17541
17542if $ac_cs_silent; then
17543 exec 6>/dev/null
17544 ac_configure_extra_args="$ac_configure_extra_args --silent"
17545fi
17546
17547_ACEOF
17548cat >>$CONFIG_STATUS <<_ACEOF
17549if \$ac_cs_recheck; then
17550 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17551 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17552fi
17553
17554_ACEOF
17555
17556
17557
17558
17559
17560cat >>$CONFIG_STATUS <<\_ACEOF
17561for ac_config_target in $ac_config_targets
17562do
17563 case "$ac_config_target" in
17564 # Handling of arguments.
17565 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17566 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17567 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17568 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17569 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17570 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17571 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17572 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17574echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17575 { (exit 1); exit 1; }; };;
9857 esac 17576 esac
9858done 17577done
9859 17578
9860ac_given_srcdir=$srcdir 17579# If the user did not use the arguments to specify the items to instantiate,
9861ac_given_INSTALL="$INSTALL" 17580# then the envvar interface is used. Set only those that are not.
17581# We use the long form for the default assignment because of an extremely
17582# bizarre bug on SunOS 4.1.3.
17583if $ac_need_defaults; then
17584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17586fi
9862 17587
9863trap 'rm -fr `echo "autoconf/Make.common \ 17588# Have a temporary directory for convenience. Make it in the build tree
9864Makefile \ 17589# simply because there is no reason to put it here, and in addition,
9865doc/Makefile \ 17590# creating and moving files from /tmp can sometimes cause problems.
9866src/Makefile \ 17591# Create a temporary directory, and hook for its removal unless debugging.
9867src/graphics/Makefile \ 17592$debug ||
9868src/test/Makefile \ 17593{
9869src/rxvtlib.h \ 17594 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9870W11/Makefile \ 17595 trap '{ (exit 1); exit 1; }' 1 2 13 15
9871 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17596}
9872EOF 17597
17598# Create a (secure) tmp directory for tmp files.
17599
17600{
17601 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17602 test -n "$tmp" && test -d "$tmp"
17603} ||
17604{
17605 tmp=./confstat$$-$RANDOM
17606 (umask 077 && mkdir $tmp)
17607} ||
17608{
17609 echo "$me: cannot create a temporary directory in ." >&2
17610 { (exit 1); exit 1; }
17611}
17612
17613_ACEOF
17614
9873cat >> $CONFIG_STATUS <<EOF 17615cat >>$CONFIG_STATUS <<_ACEOF
9874 17616
17617#
17618# CONFIG_FILES section.
17619#
17620
17621# No need to generate the scripts if there are no CONFIG_FILES.
17622# This happens for instance when ./config.status config.h
17623if test -n "\$CONFIG_FILES"; then
9875# Protect against being on the right side of a sed subst in config.status. 17624 # Protect against being on the right side of a sed subst in config.status.
9876sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17625 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17626 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9878$ac_vpsub 17627s,@SHELL@,$SHELL,;t t
17628s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17629s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17630s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17631s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17632s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17633s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17634s,@exec_prefix@,$exec_prefix,;t t
17635s,@prefix@,$prefix,;t t
17636s,@program_transform_name@,$program_transform_name,;t t
17637s,@bindir@,$bindir,;t t
17638s,@sbindir@,$sbindir,;t t
17639s,@libexecdir@,$libexecdir,;t t
17640s,@datadir@,$datadir,;t t
17641s,@sysconfdir@,$sysconfdir,;t t
17642s,@sharedstatedir@,$sharedstatedir,;t t
17643s,@localstatedir@,$localstatedir,;t t
17644s,@libdir@,$libdir,;t t
17645s,@includedir@,$includedir,;t t
17646s,@oldincludedir@,$oldincludedir,;t t
17647s,@infodir@,$infodir,;t t
17648s,@mandir@,$mandir,;t t
17649s,@build_alias@,$build_alias,;t t
17650s,@host_alias@,$host_alias,;t t
17651s,@target_alias@,$target_alias,;t t
17652s,@DEFS@,$DEFS,;t t
17653s,@ECHO_C@,$ECHO_C,;t t
17654s,@ECHO_N@,$ECHO_N,;t t
17655s,@ECHO_T@,$ECHO_T,;t t
17656s,@LIBS@,$LIBS,;t t
17657s,@VERSION@,$VERSION,;t t
17658s,@DATE@,$DATE,;t t
17659s,@LSMDATE@,$LSMDATE,;t t
17660s,@LIBVERSION@,$LIBVERSION,;t t
17661s,@CC@,$CC,;t t
17662s,@CFLAGS@,$CFLAGS,;t t
17663s,@LDFLAGS@,$LDFLAGS,;t t
17664s,@CPPFLAGS@,$CPPFLAGS,;t t
17665s,@ac_ct_CC@,$ac_ct_CC,;t t
17666s,@EXEEXT@,$EXEEXT,;t t
17667s,@OBJEXT@,$OBJEXT,;t t
17668s,@CXX@,$CXX,;t t
17669s,@CXXFLAGS@,$CXXFLAGS,;t t
17670s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17671s,@CPP@,$CPP,;t t
17672s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17673s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17674s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17675s,@AWK@,$AWK,;t t
17676s,@LINKER@,$LINKER,;t t
17677s,@CXXCPP@,$CXXCPP,;t t
17678s,@EGREP@,$EGREP,;t t
17679s,@build@,$build,;t t
17680s,@build_cpu@,$build_cpu,;t t
17681s,@build_vendor@,$build_vendor,;t t
17682s,@build_os@,$build_os,;t t
17683s,@host@,$host,;t t
17684s,@host_cpu@,$host_cpu,;t t
17685s,@host_vendor@,$host_vendor,;t t
17686s,@host_os@,$host_os,;t t
17687s,@LN_S@,$LN_S,;t t
17688s,@ECHO@,$ECHO,;t t
17689s,@RANLIB@,$RANLIB,;t t
17690s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17691s,@STRIP@,$STRIP,;t t
17692s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17693s,@LIBTOOL@,$LIBTOOL,;t t
17694s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17695s,@RXVTNAME@,$RXVTNAME,;t t
17696s,@MV@,$MV,;t t
17697s,@RM@,$RM,;t t
17698s,@CP@,$CP,;t t
17699s,@LN@,$LN,;t t
17700s,@SED@,$SED,;t t
17701s,@CMP@,$CMP,;t t
17702s,@TBL@,$TBL,;t t
17703s,@X_CFLAGS@,$X_CFLAGS,;t t
17704s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17705s,@X_LIBS@,$X_LIBS,;t t
17706s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17707s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17708s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17709s,@XPM_LIBS@,$XPM_LIBS,;t t
17710s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17711s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17712s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17713s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17714s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17715s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17716s,@DEBUG@,$DEBUG,;t t
17717s,@DINCLUDE@,$DINCLUDE,;t t
17718s,@DLIB@,$DLIB,;t t
17719s,@include_stdint_h@,$include_stdint_h,;t t
17720s,@include_stdarg_h@,$include_stdarg_h,;t t
17721s,@include_stdlib_h@,$include_stdlib_h,;t t
17722s,@include_unistd_h@,$include_unistd_h,;t t
17723s,@include_string_h@,$include_string_h,;t t
17724s,@include_fcntl_h@,$include_fcntl_h,;t t
17725s,@include_util_h@,$include_util_h,;t t
17726s,@include_assert_h@,$include_assert_h,;t t
17727s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17728s,@include_sys_select_h@,$include_sys_select_h,;t t
17729s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17730s,@include_sys_time_h@,$include_sys_time_h,;t t
17731s,@include_time_h@,$include_time_h,;t t
17732s,@LIBOBJS@,$LIBOBJS,;t t
17733s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17734/@MCOMMON@/r $MCOMMON
17735s,@MCOMMON@,,;t t
17736CEOF
17737
17738_ACEOF
17739
17740 cat >>$CONFIG_STATUS <<\_ACEOF
17741 # Split the substitutions into bite-sized pieces for seds with
17742 # small command number limits, like on Digital OSF/1 and HP-UX.
17743 ac_max_sed_lines=48
17744 ac_sed_frag=1 # Number of current file.
17745 ac_beg=1 # First line for current file.
17746 ac_end=$ac_max_sed_lines # Line after last line for current file.
17747 ac_more_lines=:
17748 ac_sed_cmds=
17749 while $ac_more_lines; do
17750 if test $ac_beg -gt 1; then
17751 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17752 else
17753 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17754 fi
17755 if test ! -s $tmp/subs.frag; then
17756 ac_more_lines=false
17757 else
17758 # The purpose of the label and of the branching condition is to
17759 # speed up the sed processing (if there are no `@' at all, there
17760 # is no need to browse any of the substitutions).
17761 # These are the two extra sed commands mentioned above.
17762 (echo ':t
17763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17764 if test -z "$ac_sed_cmds"; then
17765 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17766 else
17767 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17768 fi
17769 ac_sed_frag=`expr $ac_sed_frag + 1`
17770 ac_beg=$ac_end
17771 ac_end=`expr $ac_end + $ac_max_sed_lines`
17772 fi
17773 done
17774 if test -z "$ac_sed_cmds"; then
17775 ac_sed_cmds=cat
17776 fi
17777fi # test -n "$CONFIG_FILES"
17778
17779_ACEOF
17780cat >>$CONFIG_STATUS <<\_ACEOF
17781for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17783 case $ac_file in
17784 - | *:- | *:-:* ) # input from stdin
17785 cat >$tmp/stdin
17786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17790 * ) ac_file_in=$ac_file.in ;;
17791 esac
17792
17793 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796 X"$ac_file" : 'X\(//\)[^/]' \| \
17797 X"$ac_file" : 'X\(//\)$' \| \
17798 X"$ac_file" : 'X\(/\)' \| \
17799 . : '\(.\)' 2>/dev/null ||
17800echo X"$ac_file" |
17801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17803 /^X\(\/\/\)$/{ s//\1/; q; }
17804 /^X\(\/\).*/{ s//\1/; q; }
17805 s/.*/./; q'`
17806 { if $as_mkdir_p; then
17807 mkdir -p "$ac_dir"
17808 else
17809 as_dir="$ac_dir"
17810 as_dirs=
17811 while test ! -d "$as_dir"; do
17812 as_dirs="$as_dir $as_dirs"
17813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17815 X"$as_dir" : 'X\(//\)[^/]' \| \
17816 X"$as_dir" : 'X\(//\)$' \| \
17817 X"$as_dir" : 'X\(/\)' \| \
17818 . : '\(.\)' 2>/dev/null ||
17819echo X"$as_dir" |
17820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17822 /^X\(\/\/\)$/{ s//\1/; q; }
17823 /^X\(\/\).*/{ s//\1/; q; }
17824 s/.*/./; q'`
17825 done
17826 test ! -n "$as_dirs" || mkdir $as_dirs
17827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17829 { (exit 1); exit 1; }; }; }
17830
17831 ac_builddir=.
17832
17833if test "$ac_dir" != .; then
17834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17835 # A "../" for each directory in $ac_dir_suffix.
17836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17837else
17838 ac_dir_suffix= ac_top_builddir=
17839fi
17840
17841case $srcdir in
17842 .) # No --srcdir option. We are building in place.
17843 ac_srcdir=.
17844 if test -z "$ac_top_builddir"; then
17845 ac_top_srcdir=.
17846 else
17847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17848 fi ;;
17849 [\\/]* | ?:[\\/]* ) # Absolute path.
17850 ac_srcdir=$srcdir$ac_dir_suffix;
17851 ac_top_srcdir=$srcdir ;;
17852 *) # Relative path.
17853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17855esac
17856
17857# Do not use `cd foo && pwd` to compute absolute paths, because
17858# the directories may not exist.
17859case `pwd` in
17860.) ac_abs_builddir="$ac_dir";;
17861*)
17862 case "$ac_dir" in
17863 .) ac_abs_builddir=`pwd`;;
17864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17866 esac;;
17867esac
17868case $ac_abs_builddir in
17869.) ac_abs_top_builddir=${ac_top_builddir}.;;
17870*)
17871 case ${ac_top_builddir}. in
17872 .) ac_abs_top_builddir=$ac_abs_builddir;;
17873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17875 esac;;
17876esac
17877case $ac_abs_builddir in
17878.) ac_abs_srcdir=$ac_srcdir;;
17879*)
17880 case $ac_srcdir in
17881 .) ac_abs_srcdir=$ac_abs_builddir;;
17882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17884 esac;;
17885esac
17886case $ac_abs_builddir in
17887.) ac_abs_top_srcdir=$ac_top_srcdir;;
17888*)
17889 case $ac_top_srcdir in
17890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17893 esac;;
17894esac
17895
17896
17897 case $INSTALL in
17898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17900 esac
17901
17902 # Let's still pretend it is `configure' which instantiates (i.e., don't
17903 # use $as_me), people would be surprised to read:
17904 # /* config.h. Generated by config.status. */
17905 if test x"$ac_file" = x-; then
17906 configure_input=
17907 else
17908 configure_input="$ac_file. "
17909 fi
17910 configure_input=$configure_input"Generated from `echo $ac_file_in |
17911 sed 's,.*/,,'` by configure."
17912
17913 # First look for the input files in the build tree, otherwise in the
17914 # src tree.
17915 ac_file_inputs=`IFS=:
17916 for f in $ac_file_in; do
17917 case $f in
17918 -) echo $tmp/stdin ;;
17919 [\\/$]*)
17920 # Absolute (can't be DOS-style, as IFS=:)
17921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17922echo "$as_me: error: cannot find input file: $f" >&2;}
17923 { (exit 1); exit 1; }; }
17924 echo "$f";;
17925 *) # Relative
17926 if test -f "$f"; then
17927 # Build tree
17928 echo "$f"
17929 elif test -f "$srcdir/$f"; then
17930 # Source tree
17931 echo "$srcdir/$f"
17932 else
17933 # /dev/null tree
17934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17935echo "$as_me: error: cannot find input file: $f" >&2;}
17936 { (exit 1); exit 1; }; }
17937 fi;;
17938 esac
17939 done` || { (exit 1); exit 1; }
17940
17941 if test x"$ac_file" != x-; then
17942 { echo "$as_me:$LINENO: creating $ac_file" >&5
17943echo "$as_me: creating $ac_file" >&6;}
17944 rm -f "$ac_file"
17945 fi
17946_ACEOF
17947cat >>$CONFIG_STATUS <<_ACEOF
17948 sed "$ac_vpsub
9879$extrasub 17949$extrasub
9880s%@SHELL@%$SHELL%g
9881s%@CFLAGS@%$CFLAGS%g
9882s%@CPPFLAGS@%$CPPFLAGS%g
9883s%@CXXFLAGS@%$CXXFLAGS%g
9884s%@FFLAGS@%$FFLAGS%g
9885s%@DEFS@%$DEFS%g
9886s%@LDFLAGS@%$LDFLAGS%g
9887s%@LIBS@%$LIBS%g
9888s%@exec_prefix@%$exec_prefix%g
9889s%@prefix@%$prefix%g
9890s%@program_transform_name@%$program_transform_name%g
9891s%@bindir@%$bindir%g
9892s%@sbindir@%$sbindir%g
9893s%@libexecdir@%$libexecdir%g
9894s%@datadir@%$datadir%g
9895s%@sysconfdir@%$sysconfdir%g
9896s%@sharedstatedir@%$sharedstatedir%g
9897s%@localstatedir@%$localstatedir%g
9898s%@libdir@%$libdir%g
9899s%@includedir@%$includedir%g
9900s%@oldincludedir@%$oldincludedir%g
9901s%@infodir@%$infodir%g
9902s%@mandir@%$mandir%g
9903s%@VERSION@%$VERSION%g
9904s%@DATE@%$DATE%g
9905s%@LSMDATE@%$LSMDATE%g
9906s%@LIBVERSION@%$LIBVERSION%g
9907s%@CC@%$CC%g
9908s%@CXX@%$CXX%g
9909s%@CPP@%$CPP%g
9910s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9911s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9912s%@INSTALL_DATA@%$INSTALL_DATA%g
9913s%@AWK@%$AWK%g
9914s%@host@%$host%g
9915s%@host_alias@%$host_alias%g
9916s%@host_cpu@%$host_cpu%g
9917s%@host_vendor@%$host_vendor%g
9918s%@host_os@%$host_os%g
9919s%@build@%$build%g
9920s%@build_alias@%$build_alias%g
9921s%@build_cpu@%$build_cpu%g
9922s%@build_vendor@%$build_vendor%g
9923s%@build_os@%$build_os%g
9924s%@LN_S@%$LN_S%g
9925s%@OBJEXT@%$OBJEXT%g
9926s%@EXEEXT@%$EXEEXT%g
9927s%@ECHO@%$ECHO%g
9928s%@RANLIB@%$RANLIB%g
9929s%@STRIP@%$STRIP%g
9930s%@LIBTOOL@%$LIBTOOL%g
9931s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9932s%@MV@%$MV%g
9933s%@RM@%$RM%g
9934s%@CP@%$CP%g
9935s%@LN@%$LN%g
9936s%@SED@%$SED%g
9937s%@CMP@%$CMP%g
9938s%@TBL@%$TBL%g
9939s%@X_CFLAGS@%$X_CFLAGS%g
9940s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9941s%@X_LIBS@%$X_LIBS%g
9942s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9943s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9944s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9945s%@XPM_LIBS@%$XPM_LIBS%g
9946s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9947s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9948s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9949s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9950s%@rxvt_intp_define@%$rxvt_intp_define%g
9951s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9952s%@DEBUG@%$DEBUG%g
9953s%@DINCLUDE@%$DINCLUDE%g
9954s%@DLIB@%$DLIB%g
9955/@MCOMMON@/r $MCOMMON
9956s%@MCOMMON@%%g
9957s%@RXVTNAME@%$RXVTNAME%g
9958s%@include_stdint_h@%$include_stdint_h%g
9959s%@include_stdarg_h@%$include_stdarg_h%g
9960s%@include_stdlib_h@%$include_stdlib_h%g
9961s%@include_unistd_h@%$include_unistd_h%g
9962s%@include_string_h@%$include_string_h%g
9963s%@include_fcntl_h@%$include_fcntl_h%g
9964s%@include_util_h@%$include_util_h%g
9965s%@include_assert_h@%$include_assert_h%g
9966s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9967s%@include_sys_select_h@%$include_sys_select_h%g
9968s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9969s%@include_sys_time_h@%$include_sys_time_h%g
9970s%@include_time_h@%$include_time_h%g
9971
9972CEOF 17950_ACEOF
9973EOF
9974
9975cat >> $CONFIG_STATUS <<\EOF 17951cat >>$CONFIG_STATUS <<\_ACEOF
9976 17952:t
9977# Split the substitutions into bite-sized pieces for seds with 17953/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9978# small command number limits, like on Digital OSF/1 and HP-UX. 17954s,@configure_input@,$configure_input,;t t
9979ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17955s,@srcdir@,$ac_srcdir,;t t
9980ac_file=1 # Number of current file. 17956s,@abs_srcdir@,$ac_abs_srcdir,;t t
9981ac_beg=1 # First line for current file. 17957s,@top_srcdir@,$ac_top_srcdir,;t t
9982ac_end=$ac_max_sed_cmds # Line after last line for current file. 17958s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9983ac_more_lines=: 17959s,@builddir@,$ac_builddir,;t t
9984ac_sed_cmds="" 17960s,@abs_builddir@,$ac_abs_builddir,;t t
9985while $ac_more_lines; do 17961s,@top_builddir@,$ac_top_builddir,;t t
9986 if test $ac_beg -gt 1; then 17962s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17963s,@INSTALL@,$ac_INSTALL,;t t
17964" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17965 rm -f $tmp/stdin
17966 if test x"$ac_file" != x-; then
17967 mv $tmp/out $ac_file
9988 else 17968 else
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17969 cat $tmp/out
17970 rm -f $tmp/out
9990 fi 17971 fi
9991 if test ! -s conftest.s$ac_file; then 17972
9992 ac_more_lines=false
9993 rm -f conftest.s$ac_file
9994 else
9995 if test -z "$ac_sed_cmds"; then
9996 ac_sed_cmds="sed -f conftest.s$ac_file"
9997 else
9998 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9999 fi
10000 ac_file=`expr $ac_file + 1`
10001 ac_beg=$ac_end
10002 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10003 fi
10004done 17973done
10005if test -z "$ac_sed_cmds"; then 17974_ACEOF
10006 ac_sed_cmds=cat
10007fi
10008EOF
10009
10010cat >> $CONFIG_STATUS <<EOF
10011
10012CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10013Makefile \
10014doc/Makefile \
10015src/Makefile \
10016src/graphics/Makefile \
10017src/test/Makefile \
10018src/rxvtlib.h \
10019W11/Makefile \
10020"}
10021EOF
10022cat >> $CONFIG_STATUS <<\EOF 17975cat >>$CONFIG_STATUS <<\_ACEOF
10023for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10025 case "$ac_file" in
10026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10028 *) ac_file_in="${ac_file}.in" ;;
10029 esac
10030 17976
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17977#
10032 17978# CONFIG_HEADER section.
10033 # Remove last slash and all that follows it. Not all systems have dirname. 17979#
10034 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10036 # The file is in a subdirectory.
10037 test ! -d "$ac_dir" && mkdir "$ac_dir"
10038 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10039 # A "../" for each directory in $ac_dir_suffix.
10040 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10041 else
10042 ac_dir_suffix= ac_dots=
10043 fi
10044
10045 case "$ac_given_srcdir" in
10046 .) srcdir=.
10047 if test -z "$ac_dots"; then top_srcdir=.
10048 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10049 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10050 *) # Relative path.
10051 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10052 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10053 esac
10054
10055 case "$ac_given_INSTALL" in
10056 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10057 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10058 esac
10059
10060 echo creating "$ac_file"
10061 rm -f "$ac_file"
10062 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10063 case "$ac_file" in
10064 *Makefile*) ac_comsub="1i\\
10065# $configure_input" ;;
10066 *) ac_comsub= ;;
10067 esac
10068
10069 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10070 sed -e "$ac_comsub
10071s%@configure_input@%$configure_input%g
10072s%@srcdir@%$srcdir%g
10073s%@top_srcdir@%$top_srcdir%g
10074s%@INSTALL@%$INSTALL%g
10075" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10076fi; done
10077rm -f conftest.s*
10078 17980
10079# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17981# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10080# NAME is the cpp macro being defined and VALUE is the value it is being given. 17982# NAME is the cpp macro being defined and VALUE is the value it is being given.
10081# 17983#
10082# ac_d sets the value in "#define NAME VALUE" lines. 17984# ac_d sets the value in "#define NAME VALUE" lines.
10083ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17985ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17986ac_dB='[ ].*$,\1#\2'
10085ac_dC='\3' 17987ac_dC=' '
10086ac_dD='%g' 17988ac_dD=',;t'
10087# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17989# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10088ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17990ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089ac_uB='\([ ]\)%\1#\2define\3' 17991ac_uB='$,\1#\2define\3'
10090ac_uC=' ' 17992ac_uC=' '
10091ac_uD='\4%g' 17993ac_uD=',;t'
10092# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10093ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10094ac_eB='$%\1#\2define\3'
10095ac_eC=' '
10096ac_eD='%g'
10097 17994
10098if test "${CONFIG_HEADERS+set}" != set; then
10099EOF
10100cat >> $CONFIG_STATUS <<EOF
10101 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10102EOF
10103cat >> $CONFIG_STATUS <<\EOF
10104fi
10105for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 17995for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10107 case "$ac_file" in 17997 case $ac_file in
17998 - | *:- | *:-:* ) # input from stdin
17999 cat >$tmp/stdin
18000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 18002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10110 *) ac_file_in="${ac_file}.in" ;; 18004 * ) ac_file_in=$ac_file.in ;;
10111 esac 18005 esac
10112 18006
10113 echo creating $ac_file 18007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18008echo "$as_me: creating $ac_file" >&6;}
10114 18009
10115 rm -f conftest.frag conftest.in conftest.out 18010 # First look for the input files in the build tree, otherwise in the
10116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 18011 # src tree.
10117 cat $ac_file_inputs > conftest.in 18012 ac_file_inputs=`IFS=:
18013 for f in $ac_file_in; do
18014 case $f in
18015 -) echo $tmp/stdin ;;
18016 [\\/$]*)
18017 # Absolute (can't be DOS-style, as IFS=:)
18018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18019echo "$as_me: error: cannot find input file: $f" >&2;}
18020 { (exit 1); exit 1; }; }
18021 # Do quote $f, to prevent DOS paths from being IFS'd.
18022 echo "$f";;
18023 *) # Relative
18024 if test -f "$f"; then
18025 # Build tree
18026 echo "$f"
18027 elif test -f "$srcdir/$f"; then
18028 # Source tree
18029 echo "$srcdir/$f"
18030 else
18031 # /dev/null tree
18032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18033echo "$as_me: error: cannot find input file: $f" >&2;}
18034 { (exit 1); exit 1; }; }
18035 fi;;
18036 esac
18037 done` || { (exit 1); exit 1; }
18038 # Remove the trailing spaces.
18039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10118 18040
10119EOF 18041_ACEOF
10120 18042
10121# Transform confdefs.h into a sed script conftest.vals that substitutes 18043# Transform confdefs.h into two sed scripts, `conftest.defines' and
10122# the proper values into config.h.in to produce config.h. And first: 18044# `conftest.undefs', that substitutes the proper values into
18045# config.h.in to produce config.h. The first handles `#define'
18046# templates, and the second `#undef' templates.
10123# Protect against being on the right side of a sed subst in config.status. 18047# And first: Protect against being on the right side of a sed subst in
10124# Protect against being in an unquoted here document in config.status. 18048# config.status. Protect against being in an unquoted here document
10125rm -f conftest.vals 18049# in config.status.
10126cat > conftest.hdr <<\EOF 18050rm -f conftest.defines conftest.undefs
18051# Using a here document instead of a string reduces the quoting nightmare.
18052# Putting comments in sed scripts is not portable.
18053#
18054# `end' is used to avoid that the second main sed command (meant for
18055# 0-ary CPP macros) applies to n-ary macro definitions.
18056# See the Autoconf documentation for `clear'.
18057cat >confdef2sed.sed <<\_ACEOF
10127s/[\\&%]/\\&/g 18058s/[\\&,]/\\&/g
10128s%[\\$`]%\\&%g 18059s,[\\$`],\\&,g
10129s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 18060t clear
10130s%ac_d%ac_u%gp 18061: clear
10131s%ac_u%ac_e%gp 18062s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10132EOF 18063t end
10133sed -n -f conftest.hdr confdefs.h > conftest.vals 18064s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10134rm -f conftest.hdr 18065: end
18066_ACEOF
18067# If some macros were called several times there might be several times
18068# the same #defines, which is useless. Nevertheless, we may not want to
18069# sort them, since we want the *last* AC-DEFINE to be honored.
18070uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18071sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18072rm -f confdef2sed.sed
10135 18073
10136# This sed command replaces #undef with comments. This is necessary, for 18074# This sed command replaces #undef with comments. This is necessary, for
10137# example, in the case of _POSIX_SOURCE, which is predefined and required 18075# example, in the case of _POSIX_SOURCE, which is predefined and required
10138# on some systems where configure will not decide to define it. 18076# on some systems where configure will not decide to define it.
10139cat >> conftest.vals <<\EOF 18077cat >>conftest.undefs <<\_ACEOF
10140s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 18078s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10141EOF 18079_ACEOF
10142 18080
10143# Break up conftest.vals because some shells have a limit on 18081# Break up conftest.defines because some shells have a limit on the size
10144# the size of here documents, and old seds have small limits too. 18082# of here documents, and old seds have small limits too (100 cmds).
10145 18083echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18084echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18085echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18086echo ' :' >>$CONFIG_STATUS
10146rm -f conftest.tail 18087rm -f conftest.tail
10147while : 18088while grep . conftest.defines >/dev/null
10148do 18089do
10149 ac_lines=`grep -c . conftest.vals`
10150 # grep -c gives empty output for an empty file on some AIX systems.
10151 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10152 # Write a limited-size here document to conftest.frag. 18090 # Write a limited-size here document to $tmp/defines.sed.
10153 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 18091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18092 # Speed up: don't consider the non `#define' lines.
18093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18094 # Work around the forget-to-reset-the-flag bug.
18095 echo 't clr' >>$CONFIG_STATUS
18096 echo ': clr' >>$CONFIG_STATUS
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 18097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10155 echo 'CEOF 18098 echo 'CEOF
10156 sed -f conftest.frag conftest.in > conftest.out 18099 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10157 rm -f conftest.in 18100 rm -f $tmp/in
10158 mv conftest.out conftest.in 18101 mv $tmp/out $tmp/in
10159' >> $CONFIG_STATUS 18102' >>$CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 18103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10161 rm -f conftest.vals 18104 rm -f conftest.defines
10162 mv conftest.tail conftest.vals 18105 mv conftest.tail conftest.defines
10163done 18106done
18107rm -f conftest.defines
18108echo ' fi # grep' >>$CONFIG_STATUS
18109echo >>$CONFIG_STATUS
18110
18111# Break up conftest.undefs because some shells have a limit on the size
18112# of here documents, and old seds have small limits too (100 cmds).
18113echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10164rm -f conftest.vals 18114rm -f conftest.tail
18115while grep . conftest.undefs >/dev/null
18116do
18117 # Write a limited-size here document to $tmp/undefs.sed.
18118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18119 # Speed up: don't consider the non `#undef'
18120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18121 # Work around the forget-to-reset-the-flag bug.
18122 echo 't clr' >>$CONFIG_STATUS
18123 echo ': clr' >>$CONFIG_STATUS
18124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18125 echo 'CEOF
18126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18127 rm -f $tmp/in
18128 mv $tmp/out $tmp/in
18129' >>$CONFIG_STATUS
18130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18131 rm -f conftest.undefs
18132 mv conftest.tail conftest.undefs
18133done
18134rm -f conftest.undefs
10165 18135
10166cat >> $CONFIG_STATUS <<\EOF 18136cat >>$CONFIG_STATUS <<\_ACEOF
10167 rm -f conftest.frag conftest.h 18137 # Let's still pretend it is `configure' which instantiates (i.e., don't
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 18138 # use $as_me), people would be surprised to read:
10169 cat conftest.in >> conftest.h 18139 # /* config.h. Generated by config.status. */
10170 rm -f conftest.in 18140 if test x"$ac_file" = x-; then
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then 18141 echo "/* Generated by configure. */" >$tmp/config.h
10172 echo "$ac_file is unchanged"
10173 rm -f conftest.h
10174 else 18142 else
10175 # Remove last slash and all that follows it. Not all systems have dirname. 18143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 18144 fi
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 18145 cat $tmp/in >>$tmp/config.h
10178 # The file is in a subdirectory. 18146 rm -f $tmp/in
18147 if test x"$ac_file" != x-; then
18148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18150echo "$as_me: $ac_file is unchanged" >&6;}
18151 else
18152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18154 X"$ac_file" : 'X\(//\)[^/]' \| \
18155 X"$ac_file" : 'X\(//\)$' \| \
18156 X"$ac_file" : 'X\(/\)' \| \
18157 . : '\(.\)' 2>/dev/null ||
18158echo X"$ac_file" |
18159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18161 /^X\(\/\/\)$/{ s//\1/; q; }
18162 /^X\(\/\).*/{ s//\1/; q; }
18163 s/.*/./; q'`
18164 { if $as_mkdir_p; then
18165 mkdir -p "$ac_dir"
18166 else
18167 as_dir="$ac_dir"
18168 as_dirs=
18169 while test ! -d "$as_dir"; do
18170 as_dirs="$as_dir $as_dirs"
18171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18173 X"$as_dir" : 'X\(//\)[^/]' \| \
18174 X"$as_dir" : 'X\(//\)$' \| \
18175 X"$as_dir" : 'X\(/\)' \| \
18176 . : '\(.\)' 2>/dev/null ||
18177echo X"$as_dir" |
18178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18180 /^X\(\/\/\)$/{ s//\1/; q; }
18181 /^X\(\/\).*/{ s//\1/; q; }
18182 s/.*/./; q'`
18183 done
10179 test ! -d "$ac_dir" && mkdir "$ac_dir" 18184 test ! -n "$as_dirs" || mkdir $as_dirs
18185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18186echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18187 { (exit 1); exit 1; }; }; }
18188
18189 rm -f $ac_file
18190 mv $tmp/config.h $ac_file
10180 fi 18191 fi
10181 rm -f $ac_file 18192 else
10182 mv conftest.h $ac_file 18193 cat $tmp/config.h
18194 rm -f $tmp/config.h
10183 fi 18195 fi
10184fi; done 18196done
18197_ACEOF
10185 18198
10186EOF
10187cat >> $CONFIG_STATUS <<EOF
10188
10189EOF
10190cat >> $CONFIG_STATUS <<\EOF 18199cat >>$CONFIG_STATUS <<\_ACEOF
10191 18200
10192exit 0 18201{ (exit 0); exit 0; }
10193EOF 18202_ACEOF
10194chmod +x $CONFIG_STATUS 18203chmod +x $CONFIG_STATUS
10195rm -fr confdefs* $ac_clean_files 18204ac_clean_files=$ac_clean_files_save
10196test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 18205
18206
18207# configure is writing to config.log, and then calls config.status.
18208# config.status does its own redirection, appending to config.log.
18209# Unfortunately, on DOS this fails, as config.log is still kept open
18210# by configure, so config.status won't be able to write to it; its
18211# output is simply discarded. So we exec the FD to /dev/null,
18212# effectively closing config.log, so it can be properly (re)opened and
18213# appended to by config.status. When coming back to configure, we
18214# need to make the FD available again.
18215if test "$no_create" != yes; then
18216 ac_cs_success=:
18217 ac_config_status_args=
18218 test "$silent" = yes &&
18219 ac_config_status_args="$ac_config_status_args --quiet"
18220 exec 5>/dev/null
18221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18222 exec 5>>config.log
18223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224 # would make configure fail if this is the last instruction.
18225 $ac_cs_success || { (exit 1); exit 1; }
18226fi
10197 18227
10198 18228
10199echo "Configuration: 18229echo "Configuration:
10200 18230
10201 Rxvt version: $VERSION : $DATE 18231 Rxvt version: $VERSION : $DATE
10202 Source code location: $srcdir 18232 Source code location: $srcdir
10203 Install path: ${prefix}/bin 18233 Install path: ${prefix}/bin
10204 Compiler: $CC 18234 Compiler: $CXX
10205 Compiler flags: $CFLAGS" 18235 Compiler flags: $CFLAGS
18236 Linker: $LINKER"
10206 18237
10207if test "$MALLOC_TYPE" = S; then 18238if test "$MALLOC_TYPE" = S; then
10208 echo " malloc support: system default" 18239 echo " malloc support: system default"
10209fi 18240fi
10210if test "$MALLOC_TYPE" = G; then 18241if test "$MALLOC_TYPE" = G; then
10221echo " 18252echo "
10222The following are set in config.h 18253The following are set in config.h
10223" 18254"
10224echo " pty/tty type: "$rxvt_cv_ptys 18255echo " pty/tty type: "$rxvt_cv_ptys
10225if test x$support_utmp != xyes; then 18256if test x$support_utmp != xyes; then
10226 echo " utmp support: disabled 18257 echo " utmp support: disabled"
10227" 18258 echo
10228else 18259else
10229 echo " utmp support: enabled 18260 echo " utmp support: enabled
10230 utmp file: $rxvt_cv_path_utmp 18261 utmp file: $rxvt_cv_path_utmp
10231 utmpx file: $rxvt_cv_path_utmpx 18262 utmpx file: $rxvt_cv_path_utmpx
10232 wtmp file: $rxvt_cv_path_wtmp 18263 wtmp file: $rxvt_cv_path_wtmp
10233 wtmpx file: $rxvt_cv_path_wtmpx 18264 wtmpx file: $rxvt_cv_path_wtmpx
10234 lastlog file: $rxvt_cv_path_lastlog 18265 lastlog file: $rxvt_cv_path_lastlog
10235 ttys/ttytab file: $rxvt_cv_path_ttytab 18266 ttys/ttytab file: $rxvt_cv_path_ttytab"
10236" 18267 echo
10237fi 18268fi
10238if test x$term != x; then 18269if test x$term != x; then
10239 echo " set TERM to: $term 18270 echo " set TERM to: $term"
10240"
10241fi 18271fi
10242if test x$terminfo != x; then 18272if test x$terminfo != x; then
10243 echo " set TERMINFO to: $terminfo 18273 echo " set TERMINFO to: $terminfo"
10244"
10245fi 18274fi
18275echo " default resource name: $RESNAME"
18276echo " resource class: $RESCLASS"
18277if test x$RESFALLBACK != x; then
18278 echo " resource class fallback: $RESFALLBACK"
18279fi
18280echo
10246if test x$rxvt_cv_ptys = xUNKNOWN; then 18281if test x$rxvt_cv_ptys = xUNKNOWN; then
10247 echo ".----------------------------------------------------------------." 18282 echo ".----------------------------------------------------------------."
10248 echo ". WARNING: could not determine pty/tty type. Do not build until ." 18283 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10249 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 18284 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10250 echo ".----------------------------------------------------------------." 18285 echo ".----------------------------------------------------------------."
10264 echo ". WARNING: --enable-xim was specified however the locale support ." 18299 echo ". WARNING: --enable-xim was specified however the locale support ."
10265 echo ". functions could not be found. ." 18300 echo ". functions could not be found. ."
10266 echo ". XIM is now being DISABLED! ." 18301 echo ". XIM is now being DISABLED! ."
10267 echo ".----------------------------------------------------------------." 18302 echo ".----------------------------------------------------------------."
10268fi 18303fi
18304
10269echo " *** Please check src/feature.h for further options *** 18305echo " *** Please check src/feature.h for further options ***"
10270" 18306echo
18307
18308echo ".----------------------------------------------------------------."
18309echo ". NOTE: most features are disabled by default, try ."
18310echo ". configure --help to get an idea of the optional features ."
18311echo ".----------------------------------------------------------------."
18312echo
18313

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines