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.15 by pcg, Wed Mar 3 04:07:45 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-xft enable xft support on systems that have it
1035 --enable-utmp enable utmp (utmpx) support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps
1039 --enable-transparency enable transparent backgrounds
1040 --enable-menubar enable menubar
1041 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar
1044 --enable-plain-scroll enable plain style scrollbar
1045 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1046 --enable-xim XIM (X Input Method) protocol support
1047 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking
1051 --enable-xgetdefault enable resources via X instead of our small version
1052 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1053 --enable-strings enable some replacement system functions
1054 --disable-swapscreen disable swap screen support
1055 --enable-frills enable support for rarely used features
1056 --enable-linespace enable support for linespace
1057 --enable-24bit enable support for using 24bit visuals if available
1058 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1059 --enable-selectionscrolling enable scrolling during selections
1060 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1061 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1062 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1063 --disable-new-selection disable new mouse (xterm) selection style support
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072
1073Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1079 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=NAME use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH
1084 --with-x use the X Window System
1085 --with-xpm-includes=DIR use XPM includes in DIR
1086 --with-xpm-library=DIR use XPM library in DIR
1087 --with-xpm use XPM
1088
1089Some influential environment variables:
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CXX C++ compiler command
1097 CXXFLAGS C++ compiler flags
1098 CPP C preprocessor
1099 CXXCPP C++ preprocessor
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
1104_ACEOF
1105fi
1106
1107if test "$ac_init_help" = "recursive"; then
1108 # If there are subdirs, report their specific --help.
1109 ac_popdir=`pwd`
1110 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111 test -d $ac_dir || continue
1112 ac_builddir=.
1113
1114if test "$ac_dir" != .; then
1115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116 # A "../" for each directory in $ac_dir_suffix.
1117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118else
1119 ac_dir_suffix= ac_top_builddir=
1120fi
1121
1122case $srcdir in
1123 .) # No --srcdir option. We are building in place.
1124 ac_srcdir=.
1125 if test -z "$ac_top_builddir"; then
1126 ac_top_srcdir=.
1127 else
1128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129 fi ;;
1130 [\\/]* | ?:[\\/]* ) # Absolute path.
1131 ac_srcdir=$srcdir$ac_dir_suffix;
1132 ac_top_srcdir=$srcdir ;;
1133 *) # Relative path.
1134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136esac
1137
1138# Do not use `cd foo && pwd` to compute absolute paths, because
1139# the directories may not exist.
1140case `pwd` in
1141.) ac_abs_builddir="$ac_dir";;
1142*)
1143 case "$ac_dir" in
1144 .) ac_abs_builddir=`pwd`;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_builddir=${ac_top_builddir}.;;
1151*)
1152 case ${ac_top_builddir}. in
1153 .) ac_abs_top_builddir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156 esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_srcdir=$ac_srcdir;;
1160*)
1161 case $ac_srcdir in
1162 .) ac_abs_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165 esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_srcdir=$ac_top_srcdir;;
1169*)
1170 case $ac_top_srcdir in
1171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174 esac;;
1175esac
1176
1177 cd $ac_dir
1178 # Check for guested configure; otherwise get Cygnus style configure.
1179 if test -f $ac_srcdir/configure.gnu; then
1180 echo
1181 $SHELL $ac_srcdir/configure.gnu --help=recursive
1182 elif test -f $ac_srcdir/configure; then
1183 echo
1184 $SHELL $ac_srcdir/configure --help=recursive
1185 elif test -f $ac_srcdir/configure.ac ||
1186 test -f $ac_srcdir/configure.in; then
1187 echo
1188 $ac_configure --help
1189 else
1190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191 fi
1192 cd "$ac_popdir"
1193 done
1194fi
1195
1196test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then
1198 cat <<\_ACEOF
1199
1200Copyright (C) 2003 Free Software Foundation, Inc.
1201This configure script is free software; the Free Software Foundation
1202gives unlimited permission to copy, distribute and modify it.
1203_ACEOF
1204 exit 0
1205fi
1206exec 5>config.log
1207cat >&5 <<_ACEOF
1208This file contains any messages produced by compilers while
1209running configure, to aid debugging if configure makes a mistake.
1210
1211It was created by $as_me, which was
1212generated by GNU Autoconf 2.59. Invocation command line was
1213
1214 $ $0 $@
1215
1216_ACEOF
1217{
1218cat <<_ASUNAME
1219## --------- ##
1220## Platform. ##
1221## --------- ##
1222
1223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1224uname -m = `(uname -m) 2>/dev/null || echo unknown`
1225uname -r = `(uname -r) 2>/dev/null || echo unknown`
1226uname -s = `(uname -s) 2>/dev/null || echo unknown`
1227uname -v = `(uname -v) 2>/dev/null || echo unknown`
1228
1229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1230/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1231
1232/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1233/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1235hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1236/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1237/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1238/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239
1240_ASUNAME
1241
1242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243for as_dir in $PATH
1244do
1245 IFS=$as_save_IFS
1246 test -z "$as_dir" && as_dir=.
1247 echo "PATH: $as_dir"
1248done
1249
1250} >&5
1251
1252cat >&5 <<_ACEOF
1253
1254
1255## ----------- ##
1256## Core tests. ##
1257## ----------- ##
1258
1259_ACEOF
1260
1261
1262# Keep a trace of the command line.
1263# Strip out --no-create and --no-recursion so they do not pile up.
1264# Strip out --silent because we don't want to record it for future runs.
1265# Also quote any args containing shell meta-characters.
1266# Make two passes to allow for proper duplicate-argument suppression.
1267ac_configure_args=
1268ac_configure_args0=
1269ac_configure_args1=
1270ac_sep=
1271ac_must_keep_next=false
1272for ac_pass in 1 2
1273do
1274 for ac_arg
1275 do
1276 case $ac_arg in
1277 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 continue ;;
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 esac
1284 case $ac_pass in
1285 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1286 2)
1287 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1288 if test $ac_must_keep_next = true; then
1289 ac_must_keep_next=false # Got value, back to normal.
1290 else
1291 case $ac_arg in
1292 *=* | --config-cache | -C | -disable-* | --disable-* \
1293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1295 | -with-* | --with-* | -without-* | --without-* | --x)
1296 case "$ac_configure_args0 " in
1297 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1298 esac
1299 ;;
1300 -* ) ac_must_keep_next=true ;;
1301 esac
1302 fi
1303 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1304 # Get rid of the leading space.
1305 ac_sep=" "
1306 ;;
1307 esac
1308 done
1309done
1310$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1311$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1312
1313# When interrupted or exit'd, cleanup temporary files, and complete
1314# config.log. We remove comments because anyway the quotes in there
1315# would cause problems or look ugly.
1316# WARNING: Be sure not to use single quotes in there, as some shells,
1317# such as our DU 5.0 friend, will then `close' the trap.
1318trap 'exit_status=$?
1319 # Save into config.log some information that might help in debugging.
1320 {
1321 echo
1322
1323 cat <<\_ASBOX
1324## ---------------- ##
1325## Cache variables. ##
1326## ---------------- ##
1327_ASBOX
1328 echo
1329 # The following way of writing the cache mishandles newlines in values,
1330{
1331 (set) 2>&1 |
1332 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1333 *ac_space=\ *)
1334 sed -n \
1335 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1337 ;;
1338 *)
1339 sed -n \
1340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1341 ;;
1342 esac;
1343}
1344 echo
1345
1346 cat <<\_ASBOX
1347## ----------------- ##
1348## Output variables. ##
1349## ----------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_vars
1353 do
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1356 done | sort
1357 echo
1358
1359 if test -n "$ac_subst_files"; then
1360 cat <<\_ASBOX
1361## ------------- ##
1362## Output files. ##
1363## ------------- ##
1364_ASBOX
1365 echo
1366 for ac_var in $ac_subst_files
1367 do
1368 eval ac_val=$`echo $ac_var`
1369 echo "$ac_var='"'"'$ac_val'"'"'"
1370 done | sort
1371 echo
1372 fi
1373
1374 if test -s confdefs.h; then
1375 cat <<\_ASBOX
1376## ----------- ##
1377## confdefs.h. ##
1378## ----------- ##
1379_ASBOX
1380 echo
1381 sed "/^$/d" confdefs.h | sort
1382 echo
1383 fi
1384 test "$ac_signal" != 0 &&
1385 echo "$as_me: caught signal $ac_signal"
1386 echo "$as_me: exit $exit_status"
1387 } >&5
1388 rm -f core *.core &&
1389 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1390 exit $exit_status
1391 ' 0
1392for ac_signal in 1 2 13 15; do
1393 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394done
1395ac_signal=0
1396
1397# confdefs.h avoids OS command line length limits that DEFS can exceed.
1398rm -rf conftest* confdefs.h
1399# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1400echo >confdefs.h
1401
1402# Predefined preprocessor variables.
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_NAME "$PACKAGE_NAME"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_VERSION "$PACKAGE_VERSION"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_STRING "$PACKAGE_STRING"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426_ACEOF
1427
1428
1429# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1430# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1431if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1432 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1433 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1434 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1435 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1436 fi
753fi 1437fi
754for ac_site_file in $CONFIG_SITE; do 1438for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1439 if test -r "$ac_site_file"; then
1440 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1441echo "$as_me: loading site script $ac_site_file" >&6;}
1442 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1443 . "$ac_site_file"
758 fi 1444 fi
759done 1445done
760 1446
761if test -r "$cache_file"; then 1447if test -r "$cache_file"; then
1448 # Some versions of bash will fail to source /dev/null (special
1449 # files actually), so we avoid doing that.
1450 if test -f "$cache_file"; then
1451 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1452echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1453 case $cache_file in
1454 [\\/]* | ?:[\\/]* ) . $cache_file;;
1455 *) . ./$cache_file;;
1456 esac
1457 fi
764else 1458else
1459 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1460echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1461 >$cache_file
1462fi
1463
1464# Check that the precious variables saved in the cache have kept the same
1465# value.
1466ac_cache_corrupted=false
1467for ac_var in `(set) 2>&1 |
1468 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1470 eval ac_new_set=\$ac_env_${ac_var}_set
1471 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1472 eval ac_new_val="\$ac_env_${ac_var}_value"
1473 case $ac_old_set,$ac_new_set in
1474 set,)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,set)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,);;
1483 *)
1484 if test "x$ac_old_val" != "x$ac_new_val"; then
1485 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1486echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1487 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1488echo "$as_me: former value: $ac_old_val" >&2;}
1489 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1490echo "$as_me: current value: $ac_new_val" >&2;}
1491 ac_cache_corrupted=:
1492 fi;;
1493 esac
1494 # Pass precious variables to config.status.
1495 if test "$ac_new_set" = set; then
1496 case $ac_new_val in
1497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1498 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 *) ac_arg=$ac_var=$ac_new_val ;;
1500 esac
1501 case " $ac_configure_args " in
1502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1503 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 esac
1505 fi
1506done
1507if $ac_cache_corrupted; then
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
767fi 1513fi
768 1514
769ac_ext=c 1515ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1516ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1517ac_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' 1518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1519ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1520
776ac_exeext= 1521
777ac_objext=o 1522
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1523
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1524
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1525
781 ac_n= ac_c=' 1526
782' ac_t=' ' 1527
783 else 1528
784 ac_n=-n ac_c= ac_t= 1529
785 fi 1530
786else 1531
787 ac_n= ac_c='\c' ac_t= 1532
788fi 1533
1534
1535
1536
789 1537
790 1538
791ac_aux_dir= 1539ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1540for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1541 if test -f $ac_dir/install-sh; then
796 break 1544 break
797 elif test -f $ac_dir/install.sh; then 1545 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1546 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1547 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
801 fi 1553 fi
802done 1554done
803if test -z "$ac_aux_dir"; then 1555if test -z "$ac_aux_dir"; then
1556 { { 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; } 1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558 { (exit 1); exit 1; }; }
805fi 1559fi
806ac_config_guess=$ac_aux_dir/config.guess 1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1563
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1565
811 1566
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1567VERSION=`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` 1568DATE=`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` 1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1571echo ""
817echo "configuring for rxvt $VERSION" 1572echo "configuring for rxvt $VERSION"
818echo "" 1573echo ""
819 1574
820 1575
1576ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1580ac_compiler_gnu=$ac_cv_c_compiler_gnu
1581if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1583set dummy ${ac_tool_prefix}gcc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1585echo $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 1586if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1587 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1588else
828 if test -n "$CC"; then 1589 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1590 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1591else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1593for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1594do
1595 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1596 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1597 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1601 break 2
838 fi 1602 fi
839 done 1603done
840 IFS="$ac_save_ifs" 1604done
1605
841fi 1606fi
842fi 1607fi
843CC="$ac_cv_prog_CC" 1608CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1609if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1610 echo "$as_me:$LINENO: result: $CC" >&5
1611echo "${ECHO_T}$CC" >&6
846else 1612else
847 echo "$ac_t""no" 1>&6 1613 echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
848fi 1615fi
849 1616
1617fi
1618if test -z "$ac_cv_prog_CC"; then
1619 ac_ct_CC=$CC
1620 # Extract the first word of "gcc", so it can be a program name with args.
1621set dummy gcc; ac_word=$2
1622echo "$as_me:$LINENO: checking for $ac_word" >&5
1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 if test -n "$ac_ct_CC"; then
1628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629else
1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_CC="gcc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641done
1642done
1643
1644fi
1645fi
1646ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647if test -n "$ac_ct_CC"; then
1648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649echo "${ECHO_T}$ac_ct_CC" >&6
1650else
1651 echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
1653fi
1654
1655 CC=$ac_ct_CC
1656else
1657 CC="$ac_cv_prog_CC"
1658fi
1659
1660if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1663set dummy ${ac_tool_prefix}cc; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="${ac_tool_prefix}cc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
1684done
1685
1686fi
1687fi
1688CC=$ac_cv_prog_CC
1689if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691echo "${ECHO_T}$CC" >&6
1692else
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697fi
1698if test -z "$ac_cv_prog_CC"; then
1699 ac_ct_CC=$CC
1700 # Extract the first word of "cc", so it can be a program name with args.
1701set dummy cc; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="cc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
1722done
1723
1724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735 CC=$ac_ct_CC
1736else
1737 CC="$ac_cv_prog_CC"
1738fi
1739
1740fi
850if test -z "$CC"; then 1741if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1742 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1743set dummy cc; ac_word=$2
1744echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1745echo $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 1746if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1747 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1748else
858 if test -n "$CC"; then 1749 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1750 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1751else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1752 ac_prog_rejected=no
863 ac_dummy="$PATH" 1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1757 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1761 ac_prog_rejected=yes
869 continue 1762 continue
870 fi 1763 fi
871 ac_cv_prog_CC="cc" 1764 ac_cv_prog_CC="cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1766 break 2
873 fi 1767 fi
874 done 1768done
875 IFS="$ac_save_ifs" 1769done
1770
876if test $ac_prog_rejected = yes; then 1771if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1772 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1773 set dummy $ac_cv_prog_CC
879 shift 1774 shift
880 if test $# -gt 0; then 1775 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1776 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1777 # 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. 1778 # first if we set CC to just the basename; use the full file name.
884 shift 1779 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1781 fi
889fi 1782fi
890fi 1783fi
891fi 1784fi
892CC="$ac_cv_prog_CC" 1785CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1786if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1787 echo "$as_me:$LINENO: result: $CC" >&5
1788echo "${ECHO_T}$CC" >&6
895else 1789else
896 echo "$ac_t""no" 1>&6 1790 echo "$as_me:$LINENO: result: no" >&5
1791echo "${ECHO_T}no" >&6
897fi 1792fi
898 1793
1794fi
899 if test -z "$CC"; then 1795if test -z "$CC"; then
900 case "`uname -s`" in 1796 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1797 for ac_prog in cl
1798 do
902 # Extract the first word of "cl", so it can be a program name with args. 1799 # 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 1800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1802echo $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 1803if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1804 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1805else
909 if test -n "$CC"; then 1806 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1807 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1808else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1810for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1811do
1812 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1813 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1814 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1818 break 2
1819 fi
1820done
1821done
1822
1823fi
1824fi
1825CC=$ac_cv_prog_CC
1826if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828echo "${ECHO_T}$CC" >&6
1829else
1830 echo "$as_me:$LINENO: result: no" >&5
1831echo "${ECHO_T}no" >&6
1832fi
1833
1834 test -n "$CC" && break
1835 done
1836fi
1837if test -z "$CC"; then
1838 ac_ct_CC=$CC
1839 for ac_prog in cl
1840do
1841 # Extract the first word of "$ac_prog", so it can be a program name with args.
1842set dummy $ac_prog; ac_word=$2
1843echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="$ac_prog"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862done
1863done
1864
1865fi
1866fi
1867ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870echo "${ECHO_T}$ac_ct_CC" >&6
1871else
1872 echo "$as_me:$LINENO: result: no" >&5
1873echo "${ECHO_T}no" >&6
1874fi
1875
1876 test -n "$ac_ct_CC" && break
1877done
1878
1879 CC=$ac_ct_CC
1880fi
1881
1882fi
1883
1884
1885test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1886See \`config.log' for more details." >&5
1887echo "$as_me: error: no acceptable C compiler found in \$PATH
1888See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1890
1891# Provide some information about the compiler.
1892echo "$as_me:$LINENO:" \
1893 "checking for C compiler version" >&5
1894ac_compiler=`set X $ac_compile; echo $2`
1895{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1896 (eval $ac_compiler --version </dev/null >&5) 2>&5
1897 ac_status=$?
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }
1900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1901 (eval $ac_compiler -v </dev/null >&5) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }
1905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1906 (eval $ac_compiler -V </dev/null >&5) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910
1911cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926ac_clean_files_save=$ac_clean_files
1927ac_clean_files="$ac_clean_files a.out a.exe b.out"
1928# Try to create an executable without -o first, disregard a.out.
1929# It will help us diagnose broken compilers, and finding out an intuition
1930# of exeext.
1931echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1932echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1933ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1934if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1935 (eval $ac_link_default) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 # Find the output, starting from the most likely. This scheme is
1940# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1941# resort.
1942
1943# Be careful to initialize this variable, since it used to be cached.
1944# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1945ac_cv_exeext=
1946# b.out is created by i960 compilers.
1947for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1948do
1949 test -f "$ac_file" || continue
1950 case $ac_file in
1951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1952 ;;
1953 conftest.$ac_ext )
1954 # This is the source file.
1955 ;;
1956 [ab].out )
1957 # We found the default executable, but exeext='' is most
1958 # certainly right.
1959 break;;
1960 *.* )
1961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1962 # FIXME: I believe we export ac_cv_exeext for Libtool,
1963 # but it would be cool to find out if it's true. Does anybody
1964 # maintain Libtool? --akim.
1965 export ac_cv_exeext
1966 break;;
1967 * )
1968 break;;
1969 esac
1970done
1971else
1972 echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1976See \`config.log' for more details." >&5
1977echo "$as_me: error: C compiler cannot create executables
1978See \`config.log' for more details." >&2;}
1979 { (exit 77); exit 77; }; }
1980fi
1981
1982ac_exeext=$ac_cv_exeext
1983echo "$as_me:$LINENO: result: $ac_file" >&5
1984echo "${ECHO_T}$ac_file" >&6
1985
1986# Check the compiler produces executables we can run. If not, either
1987# the compiler is broken, or we cross compile.
1988echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1989echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1990# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1991# If not cross compiling, check that we can run a simple program.
1992if test "$cross_compiling" != yes; then
1993 if { ac_try='./$ac_file'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 cross_compiling=no
2000 else
2001 if test "$cross_compiling" = maybe; then
2002 cross_compiling=yes
2003 else
2004 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2005If you meant to cross compile, use \`--host'.
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: cannot run C compiled programs.
2008If you meant to cross compile, use \`--host'.
2009See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
919 fi 2011 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 2012 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2013fi
2014echo "$as_me:$LINENO: result: yes" >&5
2015echo "${ECHO_T}yes" >&6
935 2016
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2017rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2018ac_clean_files=$ac_clean_files_save
2019# Check the compiler produces executables we can run. If not, either
2020# the compiler is broken, or we cross compile.
2021echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2022echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2023echo "$as_me:$LINENO: result: $cross_compiling" >&5
2024echo "${ECHO_T}$cross_compiling" >&6
938 2025
939ac_ext=c 2026echo "$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. 2027echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2029 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2030 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2034# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2035# work properly (i.e., refer to `conftest.exe'), while it won't with
2036# `rm'.
2037for ac_file in conftest.exe conftest conftest.*; do
2038 test -f "$ac_file" || continue
2039 case $ac_file in
2040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042 export ac_cv_exeext
2043 break;;
2044 * ) break;;
2045 esac
2046done
2047else
2048 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2051See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2053fi
945 2054
2055rm -f conftest$ac_cv_exeext
2056echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2057echo "${ECHO_T}$ac_cv_exeext" >&6
2058
2059rm -f conftest.$ac_ext
2060EXEEXT=$ac_cv_exeext
2061ac_exeext=$EXEEXT
2062echo "$as_me:$LINENO: checking for suffix of object files" >&5
2063echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2064if test "${ac_cv_objext+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 cat >conftest.$ac_ext <<_ACEOF
2068/* confdefs.h. */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h. */
947 2073
948#line 949 "configure" 2074int
949#include "confdefs.h" 2075main ()
2076{
950 2077
951main(){return(0);} 2078 ;
952EOF 2079 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2080}
954 ac_cv_prog_cc_works=yes 2081_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2082rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2084 (eval $ac_compile) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; then
2088 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2089 case $ac_file in
2090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2092 break;;
2093 esac
2094done
958 else 2095else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2096 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2097sed '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 2098
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2099{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2100See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2101echo "$as_me: error: cannot compute suffix of object files: cannot compile
2102See \`config.log' for more details." >&2;}
2103 { (exit 1); exit 1; }; }
977fi 2104fi
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 2105
2106rm -f conftest.$ac_cv_objext conftest.$ac_ext
2107fi
2108echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2109echo "${ECHO_T}$ac_cv_objext" >&6
2110OBJEXT=$ac_cv_objext
2111ac_objext=$OBJEXT
2112echo "$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 2113echo $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 2114if 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 2115 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2116else
988 cat > conftest.c <<EOF 2117 cat >conftest.$ac_ext <<_ACEOF
2118/* confdefs.h. */
2119_ACEOF
2120cat confdefs.h >>conftest.$ac_ext
2121cat >>conftest.$ac_ext <<_ACEOF
2122/* end confdefs.h. */
2123
2124int
2125main ()
2126{
989#ifdef __GNUC__ 2127#ifndef __GNUC__
990 yes; 2128 choke me
991#endif 2129#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 2130
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2131 ;
1001 2132 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2133}
1003 GCC=yes 2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2138 ac_status=$?
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_compiler_gnu=yes
1004else 2157else
1005 GCC= 2158 echo "$as_me: failed program was:" >&5
1006fi 2159sed 's/^/| /' conftest.$ac_ext >&5
1007 2160
2161ac_compiler_gnu=no
2162fi
2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164ac_cv_c_compiler_gnu=$ac_compiler_gnu
2165
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2168echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2169GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2170ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2171ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2172CFLAGS="-g"
2173echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2174echo $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 2175if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2176 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2177else
1016 echo 'void f(){}' > conftest.c 2178 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2179/* confdefs.h. */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h. */
2184
2185int
2186main ()
2187{
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
1018 ac_cv_prog_cc_g=yes 2214 ac_cv_prog_cc_g=yes
1019else 2215else
2216 echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
1020 ac_cv_prog_cc_g=no 2219ac_cv_prog_cc_g=no
1021fi 2220fi
1022rm -f conftest* 2221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2222fi
1025 2223echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2224echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2225if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2226 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2227elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2228 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2229 CFLAGS="-g -O2"
1032 else 2230 else
1033 CFLAGS="-g" 2231 CFLAGS="-g"
1037 CFLAGS="-O2" 2235 CFLAGS="-O2"
1038 else 2236 else
1039 CFLAGS= 2237 CFLAGS=
1040 fi 2238 fi
1041fi 2239fi
2240echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2241echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2242if test "${ac_cv_prog_cc_stdc+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245 ac_cv_prog_cc_stdc=no
2246ac_save_CC=$CC
2247cat >conftest.$ac_ext <<_ACEOF
2248/* confdefs.h. */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
2252/* end confdefs.h. */
2253#include <stdarg.h>
2254#include <stdio.h>
2255#include <sys/types.h>
2256#include <sys/stat.h>
2257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2258struct buf { int x; };
2259FILE * (*rcsopen) (struct buf *, struct stat *, int);
2260static char *e (p, i)
2261 char **p;
2262 int i;
2263{
2264 return p[i];
2265}
2266static char *f (char * (*g) (char **, int), char **p, ...)
2267{
2268 char *s;
2269 va_list v;
2270 va_start (v,p);
2271 s = g (p, va_arg (v,int));
2272 va_end (v);
2273 return s;
2274}
1042 2275
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2277 function prototypes and stuff, but not '\xHH' hex character constants.
2278 These don't provoke an error unfortunately, instead are silently treated
2279 as 'x'. The following induces an error, until -std1 is added to get
2280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2281 array size at least. It's necessary to write '\x00'==0 to get something
2282 that's true only with -std1. */
2283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2284
2285int test (int i, double x);
2286struct s1 {int (*f) (int a);};
2287struct s2 {int (*f) (double a);};
2288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2289int argc;
2290char **argv;
2291int
2292main ()
2293{
2294return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299# Don't try gcc -ansi; that turns off useful extensions and
2300# breaks some systems' header files.
2301# AIX -qlanglvl=ansi
2302# Ultrix and OSF/1 -std1
2303# HP-UX 10.20 and later -Ae
2304# HP-UX older versions -Aa -D_HPUX_SOURCE
2305# SVR4 -Xc -D__EXTENSIONS__
2306for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2307do
2308 CC="$ac_save_CC $ac_arg"
2309 rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 ac_cv_prog_cc_stdc=$ac_arg
2331break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
2337rm -f conftest.err conftest.$ac_objext
2338done
2339rm -f conftest.$ac_ext conftest.$ac_objext
2340CC=$ac_save_CC
2341
2342fi
2343
2344case "x$ac_cv_prog_cc_stdc" in
2345 x|xno)
2346 echo "$as_me:$LINENO: result: none needed" >&5
2347echo "${ECHO_T}none needed" >&6 ;;
2348 *)
2349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2350echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2351 CC="$CC $ac_cv_prog_cc_stdc" ;;
2352esac
2353
2354# Some people use a C++ compiler to compile C. Since we use `exit',
2355# in C++ we need to declare it. In case someone uses the same compiler
2356# for both compiling C and C++ we need to have the C++ compiler decide
2357# the declaration of exit, since it's the most demanding environment.
2358cat >conftest.$ac_ext <<_ACEOF
2359#ifndef __cplusplus
2360 choke me
2361#endif
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>conftest.er1
2366 ac_status=$?
2367 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 for ac_declaration in \
2385 '' \
2386 'extern "C" void std::exit (int) throw (); using std::exit;' \
2387 'extern "C" void std::exit (int); using std::exit;' \
2388 'extern "C" void exit (int) throw ();' \
2389 'extern "C" void exit (int);' \
2390 'void exit (int);'
2391do
2392 cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h. */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h. */
2398$ac_declaration
2399#include <stdlib.h>
2400int
2401main ()
2402{
2403exit (42);
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 :
2430else
2431 echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434continue
2435fi
2436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
2443$ac_declaration
2444int
2445main ()
2446{
2447exit (42);
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 break
2474else
2475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480done
2481rm -f conftest*
2482if test -n "$ac_declaration"; then
2483 echo '#ifdef __cplusplus' >>confdefs.h
2484 echo $ac_declaration >>confdefs.h
2485 echo '#endif' >>confdefs.h
2486fi
2487
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494ac_ext=c
2495ac_cpp='$CPP $CPPFLAGS'
2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500ac_ext=cc
2501ac_cpp='$CXXCPP $CPPFLAGS'
2502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2505if test -n "$ac_tool_prefix"; then
2506 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2507 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2508 # 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 2509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2511echo $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 2512if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2513 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2514else
1052 if test -n "$CXX"; then 2515 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2516 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2517else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2519for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2520do
2521 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2522 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2525 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2527 break 2
1062 fi 2528 fi
2529done
2530done
2531
2532fi
2533fi
2534CXX=$ac_cv_prog_CXX
2535if test -n "$CXX"; then
2536 echo "$as_me:$LINENO: result: $CXX" >&5
2537echo "${ECHO_T}$CXX" >&6
2538else
2539 echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6
2541fi
2542
2543 test -n "$CXX" && break
1063 done 2544 done
1064 IFS="$ac_save_ifs"
1065fi 2545fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2546if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2547 ac_ct_CXX=$CXX
2548 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2549do
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551set dummy $ac_prog; ac_word=$2
2552echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2556else
1071 echo "$ac_t""no" 1>&6 2557 if test -n "$ac_ct_CXX"; then
1072fi 2558 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2559else
1074test -n "$CXX" && break 2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_CXX="$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
1075done 2571done
2572done
2573
2574fi
2575fi
2576ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2577if test -n "$ac_ct_CXX"; then
2578 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2579echo "${ECHO_T}$ac_ct_CXX" >&6
2580else
2581 echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6
2583fi
2584
2585 test -n "$ac_ct_CXX" && break
2586done
1076test -n "$CXX" || CXX="gcc" 2587test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2588
2589 CXX=$ac_ct_CXX
2590fi
1078 2591
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 2592
1082ac_ext=C 2593# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2594echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2595 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2596ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2597{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2598 (eval $ac_compiler --version </dev/null >&5) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev/null >&5) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
1088 2612
2613echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2614echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2615if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
1090 2624
1091#line 1092 "configure" 2625int
1092#include "confdefs.h" 2626main ()
1093 2627{
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__ 2628#ifndef __GNUC__
1133 yes; 2629 choke me
1134#endif 2630#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 2631
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2632 ;
1144 2633 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2634}
1146 GXX=yes 2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_compiler_gnu=yes
1147else 2658else
1148 GXX= 2659 echo "$as_me: failed program was:" >&5
1149fi 2660sed 's/^/| /' conftest.$ac_ext >&5
1150 2661
2662ac_compiler_gnu=no
2663fi
2664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2669echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2670GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2671ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2672ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2673CXXFLAGS="-g"
2674echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2675echo $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 2676if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2677 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2678else
1159 echo 'void f(){}' > conftest.cc 2679 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
2685
2686int
2687main ()
2688{
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
1161 ac_cv_prog_cxx_g=yes 2715 ac_cv_prog_cxx_g=yes
1162else 2716else
2717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
1163 ac_cv_prog_cxx_g=no 2720ac_cv_prog_cxx_g=no
1164fi 2721fi
1165rm -f conftest* 2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2723fi
1168 2724echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2725echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2726if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2727 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2728elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2729 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2730 CXXFLAGS="-g -O2"
1175 else 2731 else
1176 CXXFLAGS="-g" 2732 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2736 CXXFLAGS="-O2"
1181 else 2737 else
1182 CXXFLAGS= 2738 CXXFLAGS=
1183 fi 2739 fi
1184fi 2740fi
2741for ac_declaration in \
2742 '' \
2743 'extern "C" void std::exit (int) throw (); using std::exit;' \
2744 'extern "C" void std::exit (int); using std::exit;' \
2745 'extern "C" void exit (int) throw ();' \
2746 'extern "C" void exit (int);' \
2747 'void exit (int);'
2748do
2749 cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
2755$ac_declaration
2756#include <stdlib.h>
2757int
2758main ()
2759{
2760exit (42);
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 :
2787else
2788 echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
1185 2790
2791continue
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h. */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h. */
2800$ac_declaration
2801int
2802main ()
2803{
2804exit (42);
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 break
2831else
2832 echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835fi
2836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837done
2838rm -f conftest*
2839if test -n "$ac_declaration"; then
2840 echo '#ifdef __cplusplus' >>confdefs.h
2841 echo $ac_declaration >>confdefs.h
2842 echo '#endif' >>confdefs.h
2843fi
2844
2845ac_ext=c
2846ac_cpp='$CPP $CPPFLAGS'
2847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850
2851ac_ext=c
2852ac_cpp='$CPP $CPPFLAGS'
2853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856echo "$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 2857echo $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. 2858# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2859if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2860 CPP=
1191fi 2861fi
1192if test -z "$CPP"; then 2862if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2863 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2864 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2865else
1196 # This must be in double quotes, not single quotes, because CPP may get 2866 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2868 do
2869 ac_preproc_ok=false
2870for ac_c_preproc_warn_flag in '' yes
2871do
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2876 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2877 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2878 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2879/* confdefs.h. */
1203#include "confdefs.h" 2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884#ifdef __STDC__
2885# include <limits.h>
2886#else
1204#include <assert.h> 2887# include <assert.h>
1205Syntax Error 2888#endif
1206EOF 2889 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2890_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2904 fi
2905else
2906 ac_cpp_err=yes
2907fi
1210if test -z "$ac_err"; then 2908if test -z "$ac_cpp_err"; then
1211 : 2909 :
1212else 2910else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2911 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2912sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2913
1217 CPP="${CC-cc} -E -traditional-cpp" 2914 # Broken: fails on valid input.
2915continue
2916fi
2917rm -f conftest.err conftest.$ac_ext
2918
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2921 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2922/* confdefs.h. */
1220#include "confdefs.h" 2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 else
2941 ac_cpp_err=
2942 fi
2943else
2944 ac_cpp_err=yes
2945fi
2946if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948continue
2949else
2950 echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 # Passes both tests.
2954ac_preproc_ok=:
2955break
2956fi
2957rm -f conftest.err conftest.$ac_ext
2958
2959done
2960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961rm -f conftest.err conftest.$ac_ext
2962if $ac_preproc_ok; then
2963 break
2964fi
2965
2966 done
2967 ac_cv_prog_CPP=$CPP
2968
2969fi
2970 CPP=$ac_cv_prog_CPP
2971else
2972 ac_cv_prog_CPP=$CPP
2973fi
2974echo "$as_me:$LINENO: result: $CPP" >&5
2975echo "${ECHO_T}$CPP" >&6
2976ac_preproc_ok=false
2977for ac_c_preproc_warn_flag in '' yes
2978do
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h. */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h. */
2991#ifdef __STDC__
2992# include <limits.h>
2993#else
1221#include <assert.h> 2994# include <assert.h>
1222Syntax Error 2995#endif
1223EOF 2996 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2997_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3011 fi
3012else
3013 ac_cpp_err=yes
3014fi
1227if test -z "$ac_err"; then 3015if test -z "$ac_cpp_err"; then
1228 : 3016 :
1229else 3017else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3018 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3019sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3020
1234 CPP="${CC-cc} -nologo -E" 3021 # Broken: fails on valid input.
3022continue
3023fi
3024rm -f conftest.err conftest.$ac_ext
3025
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3028 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3029/* confdefs.h. */
1237#include "confdefs.h" 3030_ACEOF
1238#include <assert.h> 3031cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3032cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3033/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3034#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3035_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 else
3048 ac_cpp_err=
3049 fi
3050else
3051 ac_cpp_err=yes
3052fi
1244if test -z "$ac_err"; then 3053if test -z "$ac_cpp_err"; then
3054 # Broken: success on invalid input.
3055continue
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 # Passes both tests.
3061ac_preproc_ok=:
3062break
3063fi
3064rm -f conftest.err conftest.$ac_ext
3065
3066done
3067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068rm -f conftest.err conftest.$ac_ext
3069if $ac_preproc_ok; then
1245 : 3070 :
1246else 3071else
1247 echo "$ac_err" >&5 3072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3073See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3074echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3075See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3076 { (exit 1); exit 1; }; }
1252fi 3077fi
1253rm -f conftest* 3078
1254fi 3079ac_ext=c
1255rm -f conftest* 3080ac_cpp='$CPP $CPPFLAGS'
1256fi 3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3083ac_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 3084
1266# Find a good install program. We prefer a C program (faster), 3085# 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 3086# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3087# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3088# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3089# SunOS /usr/etc/install
1271# IRIX /sbin/install 3090# IRIX /sbin/install
1272# AIX /bin/install 3091# AIX /bin/install
3092# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3093# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3094# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3095# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3096# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3097# ./install, which can be erroneously created by make from ./install.sh.
3098echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3099echo $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 3100if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3101if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3102 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3103else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3109 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3110case $as_dir/ in
3111 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3113 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3114 /usr/ucb/* ) ;;
1288 *) 3115 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3116 # 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 3117 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3118 # by default.
1292 for ac_prog in ginstall scoinst install; do 3119 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3122 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3124 # AIX install. It has an incompatible calling convention.
1297 : 3125 :
3126 elif test $ac_prog = install &&
3127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3128 # program-specific install script used by HP pwplus--don't use.
3129 :
1298 else 3130 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3132 break 3
1301 fi 3133 fi
1302 fi 3134 fi
1303 done 3135 done
1304 ;;
1305 esac
1306 done 3136 done
1307 IFS="$ac_save_IFS" 3137 ;;
3138esac
3139done
3140
1308 3141
1309fi 3142fi
1310 if test "${ac_cv_path_install+set}" = set; then 3143 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3144 INSTALL=$ac_cv_path_install
1312 else 3145 else
1313 # As a last resort, use the slow shell script. We don't cache a 3146 # 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 3147 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3148 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3149 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3150 INSTALL=$ac_install_sh
1318 fi 3151 fi
1319fi 3152fi
3153echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3154echo "${ECHO_T}$INSTALL" >&6
1321 3155
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3157# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3159
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3161
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3163
1330for ac_prog in mawk gawk nawk awk 3164for ac_prog in gawk mawk nawk awk
1331do 3165do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3169echo $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 3170if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3171 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3172else
1339 if test -n "$AWK"; then 3173 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3175else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3177for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3178do
3179 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3180 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3185 break 2
3186 fi
3187done
3188done
3189
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285if test x$GXX = xyes; then
3286 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3287fi
3288
3289ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3294
3295
3296
3297ac_ext=cc
3298ac_cpp='$CXXCPP $CPPFLAGS'
3299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3302echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3303echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3304if test -z "$CXXCPP"; then
3305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308 # Double quotes because CXXCPP needs to be expanded
3309 for CXXCPP in "$CXX -E" "/lib/cpp"
3310 do
3311 ac_preproc_ok=false
3312for ac_cxx_preproc_warn_flag in '' yes
3313do
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#ifdef __STDC__
3327# include <limits.h>
3328#else
3329# include <assert.h>
3330#endif
3331 Syntax error
3332_ACEOF
3333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_cxx_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3344 else
3345 ac_cpp_err=
3346 fi
3347else
3348 ac_cpp_err=yes
3349fi
3350if test -z "$ac_cpp_err"; then
3351 :
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 # Broken: fails on valid input.
3357continue
3358fi
3359rm -f conftest.err conftest.$ac_ext
3360
3361 # OK, works on sane cases. Now check whether non-existent headers
3362 # can be detected and how.
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#include <ac_nonexistent.h>
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_cxx_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
3385else
3386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 # Broken: success on invalid input.
3390continue
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 # Passes both tests.
3396ac_preproc_ok=:
3397break
3398fi
3399rm -f conftest.err conftest.$ac_ext
3400
3401done
3402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403rm -f conftest.err conftest.$ac_ext
3404if $ac_preproc_ok; then
3405 break
3406fi
3407
3408 done
3409 ac_cv_prog_CXXCPP=$CXXCPP
3410
3411fi
3412 CXXCPP=$ac_cv_prog_CXXCPP
3413else
3414 ac_cv_prog_CXXCPP=$CXXCPP
3415fi
3416echo "$as_me:$LINENO: result: $CXXCPP" >&5
3417echo "${ECHO_T}$CXXCPP" >&6
3418ac_preproc_ok=false
3419for ac_cxx_preproc_warn_flag in '' yes
3420do
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438 Syntax error
3439_ACEOF
3440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_cxx_preproc_warn_flag
3450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3451 else
3452 ac_cpp_err=
3453 fi
3454else
3455 ac_cpp_err=yes
3456fi
3457if test -z "$ac_cpp_err"; then
3458 :
3459else
3460 echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 # Broken: fails on valid input.
3464continue
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468 # OK, works on sane cases. Now check whether non-existent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476#include <ac_nonexistent.h>
3477_ACEOF
3478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_cxx_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3489 else
3490 ac_cpp_err=
3491 fi
3492else
3493 ac_cpp_err=yes
3494fi
3495if test -z "$ac_cpp_err"; then
3496 # Broken: success on invalid input.
3497continue
3498else
3499 echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 # Passes both tests.
3503ac_preproc_ok=:
3504break
3505fi
3506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512 :
3513else
3514 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3515See \`config.log' for more details." >&5
3516echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3517See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3519fi
3520
3521ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526
3527
3528echo "$as_me:$LINENO: checking for egrep" >&5
3529echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3530if test "${ac_cv_prog_egrep+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3534 then ac_cv_prog_egrep='grep -E'
3535 else ac_cv_prog_egrep='egrep'
1349 fi 3536 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3537fi
1353fi 3538echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3539echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3540 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3541
1361test -n "$AWK" && break
1362done
1363 3542
1364 3543
3544echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3545echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3546cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3547/* confdefs.h. */
1369#include "confdefs.h" 3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
1370#ifdef _AIX 3552#ifdef _AIX
1371 yes 3553 yes
1372#endif 3554#endif
1373 3555
1374EOF 3556_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3558 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3559 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3560echo "${ECHO_T}yes" >&6
3561cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3562#define _ALL_SOURCE 1
1380EOF 3563_ACEOF
1381 3564
1382else 3565else
1383 rm -rf conftest* 3566 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3567echo "${ECHO_T}no" >&6
1385fi 3568fi
1386rm -f conftest* 3569rm -f conftest*
1387 3570
1388 3571
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3572echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3573echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3574if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3575 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 3576else
1403 CC="$CC -Xp" 3577 ac_func_search_save_LIBS=$LIBS
1404 fi 3578ac_cv_search_strerror=no
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586/* Override any gcc2 internal prototype to avoid an error. */
3587#ifdef __cplusplus
3588extern "C"
3589#endif
3590/* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3592char strerror ();
3593int
3594main ()
3595{
3596strerror ();
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest$ac_exeext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_search_strerror="none required"
1405else 3623else
1406 echo "$ac_t""no" 1>&6 3624 echo "$as_me: failed program was:" >&5
1407 ISC= 3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext \
3629 conftest$ac_exeext conftest.$ac_ext
3630if test "$ac_cv_search_strerror" = no; then
3631 for ac_lib in cposix; do
3632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639
3640/* Override any gcc2 internal prototype to avoid an error. */
3641#ifdef __cplusplus
3642extern "C"
3643#endif
3644/* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646char strerror ();
3647int
3648main ()
3649{
3650strerror ();
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext conftest$ac_exeext
3656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_search_strerror="-l$ac_lib"
3677break
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 done
3686fi
3687LIBS=$ac_func_search_save_LIBS
3688fi
3689echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3690echo "${ECHO_T}$ac_cv_search_strerror" >&6
3691if test "$ac_cv_search_strerror" != no; then
3692 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3693
1408fi 3694fi
1409 3695
1410 3696
1411# Check whether --enable-shared or --disable-shared was given. 3697# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3698if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3713 IFS="$ac_save_ifs"
1428 ;; 3714 ;;
1429esac 3715esac
1430else 3716else
1431 enable_shared=no 3717 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3718fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3719if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3720 enableval="$enable_static"
1436 p=${PACKAGE-default} 3721 p=${PACKAGE-default}
1437case "$enableval" in 3722case "$enableval" in
1438yes) enable_static=yes ;; 3723yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3734 IFS="$ac_save_ifs"
1450 ;; 3735 ;;
1451esac 3736esac
1452else 3737else
1453 enable_static=yes 3738 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. 3739fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3740if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3741 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3742 p=${PACKAGE-default}
1521case "$enableval" in 3743case "$enableval" in
1522yes) enable_fast_install=yes ;; 3744yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3755 IFS="$ac_save_ifs"
1534 ;; 3756 ;;
1535esac 3757esac
1536else 3758else
1537 enable_fast_install=yes 3759 enable_fast_install=yes
1538fi 3760fi;
1539
1540
1541# Make sure we can run config.sub. 3761# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3762$ac_config_sub sun4 >/dev/null 2>&1 ||
3763 { { 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; } 3764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3765 { (exit 1); exit 1; }; }
1545 3766
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3767echo "$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 3768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3769if test "${ac_cv_build+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_cv_build_alias=$build_alias
3773test -z "$ac_cv_build_alias" &&
3774 ac_cv_build_alias=`$ac_config_guess`
3775test -z "$ac_cv_build_alias" &&
3776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3778 { (exit 1); exit 1; }; }
3779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3782 { (exit 1); exit 1; }; }
1569 3783
1570build_alias=$build 3784fi
1571case "$build_alias" in 3785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3786echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3787build=$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/'` 3788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3791
3792
3793echo "$as_me:$LINENO: checking host system type" >&5
3794echo $ECHO_N "checking host system type... $ECHO_C" >&6
3795if test "${ac_cv_host+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_cv_host_alias=$host_alias
3799test -z "$ac_cv_host_alias" &&
3800 ac_cv_host_alias=$ac_cv_build_alias
3801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3808echo "${ECHO_T}$ac_cv_host" >&6
3809host=$ac_cv_host
3810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3813
3814
1584 3815
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3816# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3817if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3818 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3819 test "$withval" = no || with_gnu_ld=yes
1589else 3820else
1590 with_gnu_ld=no 3821 with_gnu_ld=no
1591fi 3822fi;
1592
1593ac_prog=ld 3823ac_prog=ld
1594if test "$GCC" = yes; then 3824if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3825 # Check if gcc -print-prog-name=ld gives a path.
3826 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 3827echo $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 3828 case $host in
1599 *-*-mingw*) 3829 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3830 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3832 *)
1621 # If it is relative, then search for the first ld in PATH. 3851 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3852 with_gnu_ld=unknown
1623 ;; 3853 ;;
1624 esac 3854 esac
1625elif test "$with_gnu_ld" = yes; then 3855elif test "$with_gnu_ld" = yes; then
3856 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3857echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3858else
3859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3860echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3861fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3862if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3863 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3864else
1635 if test -z "$LD"; then 3865 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3867 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3868 test -z "$ac_dir" && ac_dir=.
1654fi 3884fi
1655fi 3885fi
1656 3886
1657LD="$lt_cv_path_LD" 3887LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3888if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3889 echo "$as_me:$LINENO: result: $LD" >&5
3890echo "${ECHO_T}$LD" >&6
1660else 3891else
1661 echo "$ac_t""no" 1>&6 3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
1662fi 3894fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3895test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3896echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3897 { (exit 1); exit 1; }; }
3898echo "$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 3899echo $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 3900if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3901 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3902else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3903 # 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 3904if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3905 lt_cv_prog_gnu_ld=yes
1672else 3906else
1673 lt_cv_prog_gnu_ld=no 3907 lt_cv_prog_gnu_ld=no
1674fi 3908fi
1675fi 3909fi
1676 3910echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3911echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3912with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3913
1680 3914
3915echo "$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 3916echo $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 3917if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3918 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3919else
1686 lt_cv_ld_reload_flag='-r' 3920 lt_cv_ld_reload_flag='-r'
1687fi 3921fi
1688 3922echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3923echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3924reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3925test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3926
3927echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3928echo $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 3929if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3930 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3931else
1698 if test -n "$NM"; then 3932 if test -n "$NM"; then
1699 # Let the user override the test. 3933 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3934 lt_cv_path_NM="$NM"
1701else 3935else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3958 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3959fi
1726fi 3960fi
1727 3961
1728NM="$lt_cv_path_NM" 3962NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3963echo "$as_me:$LINENO: result: $NM" >&5
3964echo "${ECHO_T}$NM" >&6
1730 3965
3966echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3967echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3968LN_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 3969if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
1748else 3972else
1749 echo "$ac_t""no" 1>&6 3973 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3974echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3975fi
1751 3976
3977echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3978echo $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 3979if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3980 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3981else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3982 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3983lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3984lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3985# Need to set the preceding variable on all platforms that support
1906 esac 4131 esac
1907 ;; 4132 ;;
1908esac 4133esac
1909 4134
1910fi 4135fi
1911 4136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4138file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4139deplibs_check_method=$lt_cv_deplibs_check_method
1915 4140
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 4141
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4142
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 4143
1979 4144
1980 4145
1981 4146
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4147# Check for command to grab the raw symbol name followed by C symbol from nm.
4148echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4149echo $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 4150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4151 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4152else
1988 4153
1989# These are sane defaults that work on at least a few old systems. 4154# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4155# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4156
1992# Character class describing NM global symbol codes. 4157# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4158symcode='[BCDEGRST]'
2055} 4220}
2056#endif 4221#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4222main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4223EOF
2059 4224
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4230 # Now try to grab the symbols.
2062 nlist=conftest.nm 4231 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 4232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4237 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4238 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4239 mv -f "$nlist"T "$nlist"
2067 else 4240 else
2068 rm -f "$nlist"T 4241 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4282 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4283 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4284 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4285 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4286 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4292 pipe_works=yes
2116 fi 4293 fi
2117 LIBS="$save_LIBS" 4294 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4295 CFLAGS="$save_CFLAGS"
2119 else 4296 else
2146 global_symbol_to_cdecl= 4323 global_symbol_to_cdecl=
2147else 4324else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4325 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4326fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4327if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4328 echo "$as_me:$LINENO: result: failed" >&5
4329echo "${ECHO_T}failed" >&6
4330else
4331 echo "$as_me:$LINENO: result: ok" >&5
4332echo "${ECHO_T}ok" >&6
4333fi
4334
4335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4337if test "${ac_cv_header_stdc+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_header_stdc=yes
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_header_stdc=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389if test $ac_cv_header_stdc = yes; then
4390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4391 cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then
4402 :
4403else
4404 ac_cv_header_stdc=no
4405fi
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <stdlib.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then
4423 :
4424else
4425 ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then
4434 :
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <ctype.h>
4443#if ((' ' & 0x0FF) == 0x020)
4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4446#else
2153 echo "$ac_t""ok" 1>&6 4447# define ISLOWER(c) \
2154fi 4448 (('a' <= (c) && (c) <= 'i') \
4449 || ('j' <= (c) && (c) <= 'r') \
4450 || ('s' <= (c) && (c) <= 'z'))
4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452#endif
2155 4453
2156for ac_hdr in dlfcn.h 4454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455int
4456main ()
4457{
4458 int i;
4459 for (i = 0; i < 256; i++)
4460 if (XOR (islower (i), ISLOWER (i))
4461 || toupper (i) != TOUPPER (i))
4462 exit(2);
4463 exit (0);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 :
4478else
4479 echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_header_stdc=no
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511 inttypes.h stdint.h unistd.h
2157do 4512do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4516if 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 4517 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4518else
2164 cat > conftest.$ac_ext <<EOF 4519 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4520/* confdefs.h. */
2166#include "confdefs.h" 4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526
2167#include <$ac_hdr> 4527#include <$ac_header>
2168EOF 4528_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4529rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 eval "$as_ac_Header=yes"
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555eval "$as_ac_Header=no"
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558fi
4559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
4570
4571
4572for ac_header in dlfcn.h
4573do
4574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580fi
4581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583else
4584 # Is the header compilable?
4585echo "$as_me:$LINENO: checking $ac_header usability" >&5
4586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593$ac_includes_default
4594#include <$ac_header>
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_header_compiler=yes
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622ac_header_compiler=no
4623fi
4624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626echo "${ECHO_T}$ac_header_compiler" >&6
4627
4628# Is the header present?
4629echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#include <$ac_header>
4638_ACEOF
4639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_cxx_preproc_warn_flag
4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4650 else
4651 ac_cpp_err=
4652 fi
4653else
4654 ac_cpp_err=yes
4655fi
2172if test -z "$ac_err"; then 4656if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4657 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4658else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4659 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4660sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4661
2180 eval "ac_cv_header_$ac_safe=no" 4662 ac_header_preproc=no
2181fi 4663fi
2182rm -f conftest* 4664rm -f conftest.err conftest.$ac_ext
4665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4666echo "${ECHO_T}$ac_header_preproc" >&6
4667
4668# So? What about this header?
4669case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4670 yes:no: )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4675 ac_header_preproc=yes
4676 ;;
4677 no:yes:* )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4690 (
4691 cat <<\_ASBOX
4692## ------------------------------------------ ##
4693## Report this to the AC_PACKAGE_NAME lists. ##
4694## ------------------------------------------ ##
4695_ASBOX
4696 ) |
4697 sed "s/^/$as_me: WARNING: /" >&2
4698 ;;
4699esac
4700echo "$as_me:$LINENO: checking for $ac_header" >&5
4701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4706fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4709
4710fi
4711if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4712 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4714_ACEOF
2190 4715
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4716fi
4717
2194done 4718done
2195 4719
2196 4720
2197 4721
2198 4722
2199 4723
2200# Only perform the check for file, if the check method requires it 4724# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4725case "$deplibs_check_method" in
2202file_magic*) 4726file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4728 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 4729echo $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 4730if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4731 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4732else
2209 case "$MAGIC_CMD" in 4733 case "$MAGIC_CMD" in
2210 /*) 4734 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4736 ;;
2254esac 4778esac
2255fi 4779fi
2256 4780
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4781MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4782if test -n "$MAGIC_CMD"; then
4783 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4784echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4785else
2261 echo "$ac_t""no" 1>&6 4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
2262fi 4788fi
2263 4789
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4790if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4791 if test -n "$ac_tool_prefix"; then
4792 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4793echo $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 4794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4795 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4796else
2271 case "$MAGIC_CMD" in 4797 case "$MAGIC_CMD" in
2272 /*) 4798 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4800 ;;
2316esac 4842esac
2317fi 4843fi
2318 4844
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4846if test -n "$MAGIC_CMD"; then
4847 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4848echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4849else
2323 echo "$ac_t""no" 1>&6 4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
2324fi 4852fi
2325 4853
2326 else 4854 else
2327 MAGIC_CMD=: 4855 MAGIC_CMD=:
2328 fi 4856 fi
2330 4858
2331 fi 4859 fi
2332 ;; 4860 ;;
2333esac 4861esac
2334 4862
4863if 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. 4864 # 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 4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4867echo $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 4868if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4869 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4870else
2342 if test -n "$RANLIB"; then 4871 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4873else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4875for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4876do
4877 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4878 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4883 break 2
2352 fi 4884 fi
2353 done 4885done
2354 IFS="$ac_save_ifs" 4886done
4887
2355fi 4888fi
2356fi 4889fi
2357RANLIB="$ac_cv_prog_RANLIB" 4890RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4891if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893echo "${ECHO_T}$RANLIB" >&6
2360else 4894else
2361 echo "$ac_t""no" 1>&6 4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
2362fi 4897fi
2363 4898
2364 4899fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4900if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4901 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4902 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4903set dummy ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4905echo $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 4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4907 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4908else
2374 if test -n "$RANLIB"; then 4909 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4911else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4913for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4914do
4915 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4916 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4921 break 2
2384 fi 4922 fi
2385 done 4923done
2386 IFS="$ac_save_ifs" 4924done
4925
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4927fi
2389fi 4928fi
4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938 RANLIB=$ac_ct_RANLIB
4939else
2390RANLIB="$ac_cv_prog_RANLIB" 4940 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 4941fi
2396 4942
2397else 4943if 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. 4944 # 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 4945set dummy ${ac_tool_prefix}strip; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4947echo $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 4948if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4949 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4950else
2409 if test -n "$STRIP"; then 4951 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4953else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4955for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4956do
4957 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4958 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4963 break 2
2419 fi 4964 fi
2420 done 4965done
2421 IFS="$ac_save_ifs" 4966done
4967
2422fi 4968fi
2423fi 4969fi
2424STRIP="$ac_cv_prog_STRIP" 4970STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4971if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4972 echo "$as_me:$LINENO: result: $STRIP" >&5
4973echo "${ECHO_T}$STRIP" >&6
2427else 4974else
2428 echo "$ac_t""no" 1>&6 4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
2429fi 4977fi
2430 4978
2431 4979fi
2432if test -z "$ac_cv_prog_STRIP"; then 4980if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4981 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4982 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4983set dummy strip; ac_word=$2
4984echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4985echo $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 4986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4987 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4988else
2441 if test -n "$STRIP"; then 4989 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4991else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4993for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4994do
4995 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4996 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4999 ac_cv_prog_ac_ct_STRIP="strip"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 5001 break 2
2451 fi 5002 fi
2452 done 5003done
2453 IFS="$ac_save_ifs" 5004done
5005
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5007fi
2456fi 5008fi
5009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5010if test -n "$ac_ct_STRIP"; then
5011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5012echo "${ECHO_T}$ac_ct_STRIP" >&6
5013else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016fi
5017
5018 STRIP=$ac_ct_STRIP
5019else
2457STRIP="$ac_cv_prog_STRIP" 5020 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 5021fi
2468 5022
2469 5023
2470enable_dlopen=no 5024enable_dlopen=no
2471enable_win32_dll=no 5025enable_win32_dll=no
2472 5026
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5028if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5029 enableval="$enable_libtool_lock"
2476 : 5030
2477fi 5031fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5033
2481# Some flags need to be propagated to the compiler or linker for good 5034# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5035# libtool support.
2483case "$host" in 5036case "$host" in
2484*-*-irix6*) 5037*-*-irix6*)
2485 # Find out which ABI we are using. 5038 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5039 echo '#line 5039 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5045 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5046 *32-bit*)
2490 LD="${LD-ld} -32" 5047 LD="${LD-ld} -32"
2491 ;; 5048 ;;
2492 *N32*) 5049 *N32*)
2502 5059
2503*-*-sco3.2v5*) 5060*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5062 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5063 CFLAGS="$CFLAGS -belf"
5064 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 5065echo $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 5066if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5067 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5068else
2512 5069
5070
2513 ac_ext=c 5071 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5072ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5073ac_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' 5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5076
2520 cat > conftest.$ac_ext <<EOF 5077 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5078/* confdefs.h. */
2522#include "confdefs.h" 5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
2523 5083
2524int main() { 5084int
5085main ()
5086{
2525 5087
5088 ;
2526; return 0; } 5089 return 0;
2527EOF 5090}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5113 lt_cv_cc_needs_belf=yes
2531else 5114else
2532 echo "configure: failed program was:" >&5 5115 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5116sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5117
2535 lt_cv_cc_needs_belf=no 5118lt_cv_cc_needs_belf=no
2536fi 5119fi
2537rm -f conftest* 5120rm -f conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5122 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5123ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5124ac_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' 5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5127
2545fi 5128fi
2546 5129echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5130echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5131 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 5132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5133 CFLAGS="$SAVE_CFLAGS"
2551 fi 5134 fi
2552 ;; 5135 ;;
2637set dummy $CC 5220set dummy $CC
2638compiler="$2" 5221compiler="$2"
2639 5222
2640## FIXME: this should be a separate macro 5223## FIXME: this should be a separate macro
2641## 5224##
5225echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5226echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5227rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5228mkdir .libs 2>/dev/null
2646if test -d .libs; then 5229if test -d .libs; then
2647 objdir=.libs 5230 objdir=.libs
2648else 5231else
2649 # MS-DOS does not allow filenames that begin with a dot. 5232 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5233 objdir=_libs
2651fi 5234fi
2652rmdir .libs 2>/dev/null 5235rmdir .libs 2>/dev/null
5236echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5237echo "${ECHO_T}$objdir" >&6
2654## 5238##
2655## END FIXME 5239## END FIXME
2656 5240
2657 5241
2658## FIXME: this should be a separate macro 5242## FIXME: this should be a separate macro
2659## 5243##
5244
2660# Check whether --with-pic or --without-pic was given. 5245# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5246if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5247 withval="$with_pic"
2663 pic_mode="$withval" 5248 pic_mode="$withval"
2664else 5249else
2665 pic_mode=default 5250 pic_mode=default
2666fi 5251fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5252test -z "$pic_mode" && pic_mode=default
2669 5253
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5254# 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 5255# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5256# the associated values are set (in the cache) correctly too.
5257echo "$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 5258echo $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 5259if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5260 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5261else
2678 lt_cv_prog_cc_pic= 5262 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5263 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5264 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5265 lt_cv_prog_cc_static=
2804 fi 5388 fi
2805 5389
2806fi 5390fi
2807 5391
2808if test -z "$lt_cv_prog_cc_pic"; then 5392if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5393 echo "$as_me:$LINENO: result: none" >&5
5394echo "${ECHO_T}none" >&6
2810else 5395else
5396 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5397echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5398
2813 # Check to make sure the pic_flag actually works. 5399 # Check to make sure the pic_flag actually works.
5400 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 5401echo $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 5402 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5403 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5404else
2819 save_CFLAGS="$CFLAGS" 5405 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5406 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5407 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5408/* confdefs.h. */
2823#include "confdefs.h" 5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
2824 5413
2825int main() { 5414int
5415main ()
5416{
2826 5417
5418 ;
2827; return 0; } 5419 return 0;
2828EOF 5420}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
2831 case "$host_os" in 5443 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5444 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5445 # 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 5446 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5447 # assume that PIC is not supported.
2841 ;; 5453 ;;
2842 *) 5454 *)
2843 lt_cv_prog_cc_pic_works=yes 5455 lt_cv_prog_cc_pic_works=yes
2844 ;; 5456 ;;
2845 esac 5457 esac
2846 5458
2847else 5459else
2848 echo "configure: failed program was:" >&5 5460 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5461sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5462
2851 lt_cv_prog_cc_pic_works=no 5463 lt_cv_prog_cc_pic_works=no
2852 5464
2853fi 5465fi
2854rm -f conftest* 5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5467 CFLAGS="$save_CFLAGS"
2856 5468
2857fi 5469fi
2858 5470
2859 5471
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5472 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5473 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5474 lt_cv_prog_cc_can_build_shared=no
2863 else 5475 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5476 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5477 fi
2866 5478
5479 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5480echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5481fi
2869## 5482##
2870## END FIXME 5483## END FIXME
2871 5484
2872# Check for any special shared library compilation flags. 5485# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5486if test -n "$lt_cv_prog_cc_shlib"; then
5487 { 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 5488echo "$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 : 5489 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5490 else
5491 { 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 5492echo "$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 5493 lt_cv_prog_cc_can_build_shared=no
2879 fi 5494 fi
2880fi 5495fi
2881 5496
2882## FIXME: this should be a separate macro 5497## FIXME: this should be a separate macro
2883## 5498##
5499echo "$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 5500echo $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 5501if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5502 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5503else
2889 lt_cv_prog_cc_static_works=no 5504 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5505 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5506 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5507 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5508/* confdefs.h. */
2894#include "confdefs.h" 5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
2895 5513
2896int main() { 5514int
5515main ()
5516{
2897 5517
5518 ;
2898; return 0; } 5519 return 0;
2899EOF 5520}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5521_ACEOF
5522rm -f conftest.$ac_objext conftest$ac_exeext
5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5543 lt_cv_prog_cc_static_works=yes
2903else 5544else
2904 echo "configure: failed program was:" >&5 5545 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5546sed 's/^/| /' conftest.$ac_ext >&5
5547
2906fi 5548fi
2907rm -f conftest* 5549rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5551 LDFLAGS="$save_LDFLAGS"
2909 5552
2910fi 5553fi
2911 5554
2912 5555
2913# Belt *and* braces to stop my trousers falling down: 5556# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5557test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5559echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5560
2917pic_flag="$lt_cv_prog_cc_pic" 5561pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5562special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5563wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5564link_static_flag="$lt_cv_prog_cc_static"
2925 5569
2926 5570
2927## FIXME: this should be a separate macro 5571## FIXME: this should be a separate macro
2928## 5572##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5573# Check to see if options -o and -c are simultaneously supported by compiler
5574echo "$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 5575echo $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 5576$rm -r conftest 2>/dev/null
2933mkdir conftest 5577mkdir conftest
2934cd conftest 5578cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5579echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5580mkdir out
2941# builds. 5585# builds.
2942chmod -w . 5586chmod -w .
2943save_CFLAGS="$CFLAGS" 5587save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5588CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5589compiler_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 5590if { (eval echo configure:5590: \"$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 5591 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5592 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5593 if test -s out/conftest.err; then
2950 compiler_c_o=no 5594 compiler_c_o=no
2951 else 5595 else
2954else 5598else
2955 # Append any errors to the config.log. 5599 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5600 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5601 compiler_c_o=no
2958fi 5602fi
5603echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5604echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5605CFLAGS="$save_CFLAGS"
2961chmod u+w . 5606chmod u+w .
2962$rm conftest* out/* 5607$rm conftest* out/*
2963rmdir out 5608rmdir out
2964cd .. 5609cd ..
2965rmdir conftest 5610rmdir conftest
2966$rm -r conftest 2>/dev/null 5611$rm -r conftest 2>/dev/null
2967 5612
2968if test x"$compiler_c_o" = x"yes"; then 5613if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5614 # Check to see if we can write to a .lo
5615 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 5616echo $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 5617 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5618 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5619 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5620 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5621/* confdefs.h. */
2977#include "confdefs.h" 5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
2978 5626
2979int main() { 5627int
5628main ()
5629{
2980int some_variable = 0; 5630int some_variable = 0;
5631 ;
2981; return 0; } 5632 return 0;
2982EOF 5633}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5656 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5657 # So say no if there are warnings
2987 if test -s conftest.err; then 5658 if test -s conftest.err; then
2988 compiler_o_lo=no 5659 compiler_o_lo=no
2989 else 5660 else
2990 compiler_o_lo=yes 5661 compiler_o_lo=yes
2991 fi 5662 fi
2992 5663
2993else 5664else
2994 echo "configure: failed program was:" >&5 5665 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5666sed 's/^/| /' conftest.$ac_ext >&5
5667
2996fi 5668fi
2997rm -f conftest* 5669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5671echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5672 CFLAGS="$save_CFLAGS"
3000else 5673else
3001 compiler_o_lo=no 5674 compiler_o_lo=no
3002fi 5675fi
3003## 5676##
3007## 5680##
3008# Check to see if we can do hard links to lock some files if needed 5681# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5682hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5683if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5684 # do not overwrite the value of need_locks provided by the user
5685 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 5686echo $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 5687 hard_links=yes
3015 $rm conftest* 5688 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5690 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5691 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5693 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5694echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5695 if test "$hard_links" = no; then
5696 { 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 5697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5698 need_locks=warn
3024 fi 5699 fi
3025else 5700else
3026 need_locks=no 5701 need_locks=no
3027fi 5702fi
3030 5705
3031## FIXME: this should be a separate macro 5706## FIXME: this should be a separate macro
3032## 5707##
3033if test "$GCC" = yes; then 5708if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5709 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5710 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 5711echo $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 5712 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5713 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5714 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5715 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5716 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5717/* confdefs.h. */
3043#include "confdefs.h" 5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
3044 5722
3045int main() { 5723int
5724main ()
5725{
3046int some_variable = 0; 5726int some_variable = 0;
5727 ;
3047; return 0; } 5728 return 0;
3048EOF 5729}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5752 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5753 # So say no if there are warnings
3053 if test -s conftest.err; then 5754 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5755 compiler_rtti_exceptions=no
3055 else 5756 else
3056 compiler_rtti_exceptions=yes 5757 compiler_rtti_exceptions=yes
3057 fi 5758 fi
3058 5759
3059else 5760else
3060 echo "configure: failed program was:" >&5 5761 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5762sed 's/^/| /' conftest.$ac_ext >&5
5763
3062fi 5764fi
3063rm -f conftest* 5765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5766 CFLAGS="$save_CFLAGS"
5767 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5768echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5769
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5770 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5771 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5772 else
3070 no_builtin_flag=' -fno-builtin' 5773 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5777## END FIXME
3075 5778
3076## FIXME: this should be a separate macro 5779## FIXME: this should be a separate macro
3077## 5780##
3078# See if the linker supports building shared libraries. 5781# See if the linker supports building shared libraries.
5782echo "$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 5783echo $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 5784
3082allow_undefined_flag= 5785allow_undefined_flag=
3083no_undefined_flag= 5786no_undefined_flag=
3084need_lib_prefix=unknown 5787need_lib_prefix=unknown
3085need_version=unknown 5788need_version=unknown
3632 *) 6335 *)
3633 ld_shlibs=no 6336 ld_shlibs=no
3634 ;; 6337 ;;
3635 esac 6338 esac
3636fi 6339fi
6340echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6341echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6342test "$ld_shlibs" = no && can_build_shared=no
3639## 6343##
3640## END FIXME 6344## END FIXME
3641 6345
3642## FIXME: this should be a separate macro 6346## FIXME: this should be a separate macro
3643## 6347##
3644# Check hardcoding attributes. 6348# Check hardcoding attributes.
6349echo "$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 6350echo $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= 6351hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6352if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6353 test -n "$runpath_var"; then
3650 6354
3651 # We can hardcode non-existant directories. 6355 # We can hardcode non-existant directories.
3664else 6368else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6369 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6370 # directories.
3667 hardcode_action=unsupported 6371 hardcode_action=unsupported
3668fi 6372fi
6373echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6374echo "${ECHO_T}$hardcode_action" >&6
3670## 6375##
3671## END FIXME 6376## END FIXME
3672 6377
3673## FIXME: this should be a separate macro 6378## FIXME: this should be a separate macro
3674## 6379##
3675striplib= 6380striplib=
3676old_striplib= 6381old_striplib=
6382echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6383echo $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 6384if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6387 echo "$as_me:$LINENO: result: yes" >&5
6388echo "${ECHO_T}yes" >&6
3683else 6389else
3684 echo "$ac_t""no" 1>&6 6390 echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
3685fi 6392fi
3686## 6393##
3687## END FIXME 6394## END FIXME
3688 6395
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6396reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6398
3692## FIXME: this should be a separate macro 6399## FIXME: this should be a separate macro
3693## 6400##
3694# PORTME Fill in your ld.so characteristics 6401# PORTME Fill in your ld.so characteristics
6402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6404library_names_spec=
3698libname_spec='lib$name' 6405libname_spec='lib$name'
3699soname_spec= 6406soname_spec=
3700postinstall_cmds= 6407postinstall_cmds=
3701postuninstall_cmds= 6408postuninstall_cmds=
4017 6724
4018*) 6725*)
4019 dynamic_linker=no 6726 dynamic_linker=no
4020 ;; 6727 ;;
4021esac 6728esac
6729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6730echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6731test "$dynamic_linker" = no && can_build_shared=no
4024## 6732##
4025## END FIXME 6733## END FIXME
4026 6734
4027## FIXME: this should be a separate macro 6735## FIXME: this should be a separate macro
4028## 6736##
4029# Report the final consequences. 6737# Report the final consequences.
6738echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6739echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6740echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6741echo "${ECHO_T}$can_build_shared" >&6
4033## 6742##
4034## END FIXME 6743## END FIXME
4035 6744
4036if test "$hardcode_action" = relink; then 6745if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6746 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6775 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6776 lt_cv_dlopen_libs=
4068 ;; 6777 ;;
4069 6778
4070 *) 6779 *)
6780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6782if 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 6783 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6784else
4077 ac_save_LIBS="$LIBS" 6785 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6786LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6787cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6788/* confdefs.h. */
4081#include "confdefs.h" 6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793
4082/* Override any gcc2 internal prototype to avoid an error. */ 6794/* Override any gcc2 internal prototype to avoid an error. */
6795#ifdef __cplusplus
6796extern "C"
6797#endif
4083/* We use char because int might match the return type of a gcc2 6798/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6799 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6800char dlopen ();
4086 6801int
4087int main() { 6802main ()
6803{
4088dlopen() 6804dlopen ();
6805 ;
4089; return 0; } 6806 return 0;
4090EOF 6807}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6814 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_lib_dl_dlopen=yes
4094else 6831else
4095 echo "configure: failed program was:" >&5 6832 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6833sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6834
4098 eval "ac_cv_lib_$ac_lib_var=no" 6835ac_cv_lib_dl_dlopen=no
4099fi 6836fi
4100rm -f conftest* 6837rm -f conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6839LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6840fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6841echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6842echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6843if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6845else
4108 echo "$ac_t""no" 1>&6 6846 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6847echo $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 6848if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6849 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6850else
4114 cat > conftest.$ac_ext <<EOF 6851 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6852/* confdefs.h. */
4116#include "confdefs.h" 6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6859#define dlopen innocuous_dlopen
6860
4117/* System header to define __stub macros and hopefully few prototypes, 6861/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6862 which can conflict with char dlopen (); below.
6863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 <limits.h> exists even on freestanding compilers. */
6865
6866#ifdef __STDC__
6867# include <limits.h>
6868#else
4119#include <assert.h> 6869# include <assert.h>
6870#endif
6871
6872#undef dlopen
6873
4120/* Override any gcc2 internal prototype to avoid an error. */ 6874/* Override any gcc2 internal prototype to avoid an error. */
6875#ifdef __cplusplus
6876extern "C"
6877{
6878#endif
4121/* We use char because int might match the return type of a gcc2 6879/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6880 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6881char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6882/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6883 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6884 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6885#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6886choke me
4132#else 6887#else
4133dlopen(); 6888char (*f) () = dlopen;
4134#endif 6889#endif
6890#ifdef __cplusplus
6891}
6892#endif
4135 6893
6894int
6895main ()
6896{
6897return f != dlopen;
6898 ;
4136; return 0; } 6899 return 0;
4137EOF 6900}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
6903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try='test -s conftest$ac_exeext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6923 ac_cv_func_dlopen=yes
4141else 6924else
4142 echo "configure: failed program was:" >&5 6925 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6926sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6927
4145 eval "ac_cv_func_dlopen=no" 6928ac_cv_func_dlopen=no
4146fi 6929fi
4147rm -f conftest* 6930rm -f conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
4148fi 6932fi
4149 6933echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6934echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6935if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6936 lt_cv_dlopen="dlopen"
4153else 6937else
4154 echo "$ac_t""no" 1>&6 6938 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6939echo $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 6940if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6941 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6942else
4160 cat > conftest.$ac_ext <<EOF 6943 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6944/* confdefs.h. */
4162#include "confdefs.h" 6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6951#define shl_load innocuous_shl_load
6952
4163/* System header to define __stub macros and hopefully few prototypes, 6953/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6954 which can conflict with char shl_load (); below.
6955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956 <limits.h> exists even on freestanding compilers. */
6957
6958#ifdef __STDC__
6959# include <limits.h>
6960#else
4165#include <assert.h> 6961# include <assert.h>
6962#endif
6963
6964#undef shl_load
6965
4166/* Override any gcc2 internal prototype to avoid an error. */ 6966/* Override any gcc2 internal prototype to avoid an error. */
6967#ifdef __cplusplus
6968extern "C"
6969{
6970#endif
4167/* We use char because int might match the return type of a gcc2 6971/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6972 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6973char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6974/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6975 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6976 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6977#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6978choke me
4178#else 6979#else
4179shl_load(); 6980char (*f) () = shl_load;
4180#endif 6981#endif
6982#ifdef __cplusplus
6983}
6984#endif
4181 6985
6986int
6987main ()
6988{
6989return f != shl_load;
6990 ;
4182; return 0; } 6991 return 0;
4183EOF 6992}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6993_ACEOF
6994rm -f conftest.$ac_objext conftest$ac_exeext
6995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7015 ac_cv_func_shl_load=yes
4187else 7016else
4188 echo "configure: failed program was:" >&5 7017 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7018sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7019
4191 eval "ac_cv_func_shl_load=no" 7020ac_cv_func_shl_load=no
4192fi 7021fi
4193rm -f conftest* 7022rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
4194fi 7024fi
4195 7025echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7026echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7027if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7028 lt_cv_dlopen="shl_load"
4199else 7029else
4200 echo "$ac_t""no" 1>&6 7030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7032if 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 7033 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7034else
4207 ac_save_LIBS="$LIBS" 7035 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7036LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7037cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7038/* confdefs.h. */
4211#include "confdefs.h" 7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043
4212/* Override any gcc2 internal prototype to avoid an error. */ 7044/* Override any gcc2 internal prototype to avoid an error. */
7045#ifdef __cplusplus
7046extern "C"
7047#endif
4213/* We use char because int might match the return type of a gcc2 7048/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7049 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7050char dlopen ();
4216 7051int
4217int main() { 7052main ()
7053{
4218dlopen() 7054dlopen ();
7055 ;
4219; return 0; } 7056 return 0;
4220EOF 7057}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7058_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext
7060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7064 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; } &&
7074 { ac_try='test -s conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_lib_svld_dlopen=yes
4224else 7081else
4225 echo "configure: failed program was:" >&5 7082 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7083sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7084
4228 eval "ac_cv_lib_$ac_lib_var=no" 7085ac_cv_lib_svld_dlopen=no
4229fi 7086fi
4230rm -f conftest* 7087rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7089LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7090fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7093if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7095else
4238 echo "$ac_t""no" 1>&6 7096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7098if 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 7099 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7100else
4245 ac_save_LIBS="$LIBS" 7101 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7102LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7103cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7104/* confdefs.h. */
4249#include "confdefs.h" 7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h. */
7109
4250/* Override any gcc2 internal prototype to avoid an error. */ 7110/* Override any gcc2 internal prototype to avoid an error. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
4251/* We use char because int might match the return type of a gcc2 7114/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7115 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7116char shl_load ();
4254 7117int
4255int main() { 7118main ()
7119{
4256shl_load() 7120shl_load ();
7121 ;
4257; return 0; } 7122 return 0;
4258EOF 7123}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7130 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_lib_dld_shl_load=yes
4262else 7147else
4263 echo "configure: failed program was:" >&5 7148 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7149sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7150
4266 eval "ac_cv_lib_$ac_lib_var=no" 7151ac_cv_lib_dld_shl_load=no
4267fi 7152fi
4268rm -f conftest* 7153rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7155LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7156fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7158echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7159if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7161fi
4278 7162
4279
4280fi
4281 7163
4282
4283fi 7164fi
4284 7165
4285
4286fi
4287 7166
4288 7167fi
7168
7169
7170fi
7171
7172
4289fi 7173fi
4290 7174
4291 ;; 7175 ;;
4292 esac 7176 esac
4293 7177
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7191
4308 save_LIBS="$LIBS" 7192 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7193 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7194
7195 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 7196echo $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 7197if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7199else
4316 if test "$cross_compiling" = yes; then : 7200 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7201 lt_cv_dlopen_self=cross
4318else 7202else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7204 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7205 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7206#line 7206 "configure"
4323#include "confdefs.h" 7207#include "confdefs.h"
4324 7208
4325#if HAVE_DLFCN_H 7209#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7210#include <dlfcn.h>
4327#endif 7211#endif
4378 } 7262 }
4379 7263
4380 exit (status); 7264 exit (status);
4381} 7265}
4382EOF 7266EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7272 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7273 lt_status=$?
4386 case x$lt_status in 7274 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7281 lt_cv_dlopen_self=no
4394 fi 7282 fi
4395fi 7283fi
4396rm -fr conftest* 7284rm -fr conftest*
4397 7285
4398
4399fi
4400 7286
7287fi
7288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7289echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7290
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7291 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7292 LDFLAGS="$LDFLAGS $link_static_flag"
7293 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 7294echo $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 7295if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7296 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7297else
4410 if test "$cross_compiling" = yes; then : 7298 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7299 lt_cv_dlopen_self_static=cross
4412else 7300else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7302 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7303 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7304#line 7304 "configure"
4417#include "confdefs.h" 7305#include "confdefs.h"
4418 7306
4419#if HAVE_DLFCN_H 7307#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7308#include <dlfcn.h>
4421#endif 7309#endif
4472 } 7360 }
4473 7361
4474 exit (status); 7362 exit (status);
4475} 7363}
4476EOF 7364EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7370 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7371 lt_status=$?
4480 case x$lt_status in 7372 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7379 lt_cv_dlopen_self_static=no
4488 fi 7380 fi
4489fi 7381fi
4490rm -fr conftest* 7382rm -fr conftest*
4491 7383
4492
4493fi
4494 7384
7385fi
7386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7387echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7388 fi
4497 7389
4498 CPPFLAGS="$save_CPPFLAGS" 7390 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7391 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7392 LIBS="$save_LIBS"
4522 ;; 7414 ;;
4523 '$CC '*) 7415 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7416 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7418 # to ld, don't add -lc before -lgcc.
7419 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 7420echo $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 7421 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7422 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7423else
4532 $rm conftest* 7424 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7425 echo 'static int dummy;' > conftest.$ac_ext
4534 7426
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; then
4536 soname=conftest 7432 soname=conftest
4537 lib=conftest 7433 lib=conftest
4538 libobjs=conftest.$ac_objext 7434 libobjs=conftest.$ac_objext
4539 deplibs= 7435 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7436 wl=$lt_cv_prog_cc_wl
4543 verstring= 7439 verstring=
4544 output_objdir=. 7440 output_objdir=.
4545 libname=conftest 7441 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7442 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7443 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; } 7444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7445 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }
4549 then 7449 then
4550 lt_cv_archive_cmds_need_lc=no 7450 lt_cv_archive_cmds_need_lc=no
4551 else 7451 else
4552 lt_cv_archive_cmds_need_lc=yes 7452 lt_cv_archive_cmds_need_lc=yes
4553 fi 7453 fi
4555 else 7455 else
4556 cat conftest.err 1>&5 7456 cat conftest.err 1>&5
4557 fi 7457 fi
4558fi 7458fi
4559 7459
7460 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7461echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7462 ;;
4562 esac 7463 esac
4563fi 7464fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7465need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7466##
5130 8031
5131MALLOC_TYPE=S 8032MALLOC_TYPE=S
5132support_addstrings=no 8033support_addstrings=no
5133support_frills=no 8034support_frills=no
5134support_linespace=no 8035support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8036support_inheritpixmap=no
5137support_keepscrolling=no 8037support_keepscrolling=no
5138support_selectionscrolling=no 8038support_selectionscrolling=no
5139support_menubar=no 8039support_menubar=no
5140support_mousewheel=no 8040support_mousewheel=no
5141support_mouseslipwheel=no 8041support_mouseslipwheel=no
5142support_oldselection=no 8042support_oldselection=no
5143support_utmp=no 8043support_utmp=no
5144support_wtmp=no 8044support_wtmp=no
5145support_lastlog=no 8045support_lastlog=no
5146support_cursor_blink=no 8046support_cursor_blink=no
8047support_text_blink=no
5147support_pointer_blank=no 8048support_pointer_blank=no
5148support_scroll_rxvt=no 8049support_scroll_rxvt=no
5149support_scroll_next=no 8050support_scroll_next=no
5150support_scroll_xterm=no 8051support_scroll_xterm=no
8052support_scroll_plain=no
5151support_xim=no 8053support_xim=no
5152support_xpm=no 8054support_xpm=no
5153support_xft=no 8055support_xft=no
5154support_unicode3=no 8056support_unicode3=no
5155codesets= 8057codesets=
5156 8058
5157 8059
5158if test "x$enable_shared" = xyes; then 8060if test "x$enable_shared" = xyes; then
8061
5159 cat >> confdefs.h <<\EOF 8062cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8063#define LIBRXVT 1
5161EOF 8064_ACEOF
5162 8065
5163 INSTALL_LIBRXVT=yes 8066 INSTALL_LIBRXVT=yes
5164fi 8067fi
5165 8068
5166 8069
5169 enableval="$enable_everything" 8072 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8073 if test x$enableval = xyes; then
5171 support_24bit=yes 8074 support_24bit=yes
5172 support_frills=yes 8075 support_frills=yes
5173 support_linespace=yes 8076 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8077 support_inheritpixmap=yes
5176 support_keepscrolling=yes 8078 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8079 support_selectionscrolling=yes
5178 support_lastlog=yes 8080 support_lastlog=yes
5179 support_menubar=yes 8081 support_menubar=yes
5180 support_mousewheel=yes 8082 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8083 support_mouseslipwheel=yes
5182 support_oldselection=yes 8084 support_oldselection=yes
5183 support_cursor_blink=yes 8085 support_cursor_blink=yes
8086 support_text_blink=yes
5184 support_pointer_blank=yes 8087 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8088 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8089 support_scroll_next=yes
5187 support_scroll_xterm=yes 8090 support_scroll_xterm=yes
8091 support_scroll_plain=yes
5188 support_utmp=yes 8092 support_utmp=yes
5189 support_wtmp=yes 8093 support_wtmp=yes
5190 support_xim=yes 8094 support_xim=yes
5191 support_xpm=yes 8095 support_xpm=yes
5192 support_xft=yes 8096 support_xft=yes
5193 support_unicode3=yes 8097 support_unicode3=yes
5194 codesets=all 8098 codesets=all
5195 fi 8099 fi
5196fi 8100fi;
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 8101
5218# Check whether --enable-unicode3 or --disable-unicode3 was given. 8102# Check whether --enable-unicode3 or --disable-unicode3 was given.
5219if test "${enable_unicode3+set}" = set; then 8103if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3" 8104 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then 8105 if test x$enableval = xyes -o x$enableval = xno; then
5222 support_unicode3=yes 8106 support_unicode3=yes
5223 fi 8107 fi
5224fi 8108fi;
5225
5226 8109
5227# Check whether --enable-xft or --disable-xft was given. 8110# Check whether --enable-xft or --disable-xft was given.
5228if test "${enable_xft+set}" = set; then 8111if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft" 8112 enableval="$enable_xft"
5230 if test x$enableval = xyes; then 8113 if test x$enableval = xyes -o x$enableval = xno; then
5231 support_xft=yes 8114 support_xft=yes
5232 fi 8115 fi
5233fi 8116fi;
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 8117
5258# Check whether --enable-utmp or --disable-utmp was given. 8118# Check whether --enable-utmp or --disable-utmp was given.
5259if test "${enable_utmp+set}" = set; then 8119if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp" 8120 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then 8121 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval 8122 support_utmp=$enableval
5263 fi 8123 fi
5264fi 8124fi;
5265
5266 8125
5267# Check whether --enable-wtmp or --disable-wtmp was given. 8126# Check whether --enable-wtmp or --disable-wtmp was given.
5268if test "${enable_wtmp+set}" = set; then 8127if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp" 8128 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then 8129 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval 8130 support_wtmp=$enableval
5272 fi 8131 fi
5273fi 8132fi;
5274
5275 8133
5276# Check whether --enable-lastlog or --disable-lastlog was given. 8134# Check whether --enable-lastlog or --disable-lastlog was given.
5277if test "${enable_lastlog+set}" = set; then 8135if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog" 8136 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then 8137 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval 8138 support_lastlog=$enableval
5281 fi 8139 fi
5282fi 8140fi;
5283
5284 8141
5285# Check whether --enable-xpm-background or --disable-xpm-background was given. 8142# Check whether --enable-xpm-background or --disable-xpm-background was given.
5286if test "${enable_xpm_background+set}" = set; then 8143if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background" 8144 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then 8145 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval 8146 support_xpm=$enableval
5290 fi 8147 fi
5291fi 8148fi;
5292
5293 8149
5294# Check whether --enable-transparency or --disable-transparency was given. 8150# Check whether --enable-transparency or --disable-transparency was given.
5295if test "${enable_transparency+set}" = set; then 8151if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency" 8152 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then 8153 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval 8154 support_inheritpixmap=$enableval
5299 fi 8155 fi
5300fi 8156fi;
5301
5302 8157
5303# Check whether --enable-menubar or --disable-menubar was given. 8158# Check whether --enable-menubar or --disable-menubar was given.
5304if test "${enable_menubar+set}" = set; then 8159if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar" 8160 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then 8161 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval 8162 support_menubar=$enableval
5308 fi 8163 fi
5309fi 8164fi;
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 8165
5321# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8166# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322if test "${enable_rxvt_scroll+set}" = set; then 8167if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll" 8168 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then 8169 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval 8170 support_scroll_rxvt=$enableval
5326 fi 8171 fi
5327fi 8172fi;
5328
5329 8173
5330# Check whether --enable-next-scroll or --disable-next-scroll was given. 8174# Check whether --enable-next-scroll or --disable-next-scroll was given.
5331if test "${enable_next_scroll+set}" = set; then 8175if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll" 8176 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then 8177 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval 8178 support_scroll_next=$enableval
5335 fi 8179 fi
5336fi 8180fi;
5337
5338 8181
5339# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8182# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340if test "${enable_xterm_scroll+set}" = set; then 8183if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll" 8184 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then 8185 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval 8186 support_scroll_xterm=$enableval
5344 fi 8187 fi
5345fi 8188fi;
5346 8189
8190# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8191if test "${enable_plain_scroll+set}" = set; then
8192 enableval="$enable_plain_scroll"
8193 if test x$enableval = xyes -o x$enableval = xno; then
8194 support_scroll_plain=$enableval
8195 fi
8196fi;
5347 8197
5348# Check whether --enable-half-shadow or --disable-half-shadow was given. 8198# Check whether --enable-half-shadow or --disable-half-shadow was given.
5349if test "${enable_half_shadow+set}" = set; then 8199if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow" 8200 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then 8201 if test x$enableval = xyes; then
8202
5352 cat >> confdefs.h <<\EOF 8203cat >>confdefs.h <<\_ACEOF
5353#define HALFSHADOW 1 8204#define HALFSHADOW 1
5354EOF 8205_ACEOF
5355 8206
5356 fi 8207 fi
5357fi 8208fi;
5358 8209
8210
8211# Check whether --with-codesets or --without-codesets was given.
8212if test "${with_codesets+set}" = set; then
8213 withval="$with_codesets"
8214 codesets="$withval"
8215fi;
5359 8216
5360# Check whether --enable-xim or --disable-xim was given. 8217# Check whether --enable-xim or --disable-xim was given.
5361if test "${enable_xim+set}" = set; then 8218if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim" 8219 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then 8220 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval 8221 support_xim=$enableval
5365 fi 8222 fi
5366fi 8223fi;
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 8224
5381# Check whether --enable-ttygid or --disable-ttygid was given. 8225# Check whether --enable-ttygid or --disable-ttygid was given.
5382if test "${enable_ttygid+set}" = set; then 8226if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid" 8227 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then 8228 if test x$enableval = xyes; then
8229
5385 cat >> confdefs.h <<\EOF 8230cat >>confdefs.h <<\_ACEOF
5386#define TTY_GID_SUPPORT 1 8231#define TTY_GID_SUPPORT 1
5387EOF 8232_ACEOF
5388 8233
5389 fi 8234 fi
5390fi 8235fi;
5391
5392 8236
5393# Check whether --enable-backspace-key or --disable-backspace-key was given. 8237# Check whether --enable-backspace-key or --disable-backspace-key was given.
5394if test "${enable_backspace_key+set}" = set; then 8238if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key" 8239 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then 8240 if test x$enableval = xno; then
8241
5397 cat >> confdefs.h <<\EOF 8242cat >>confdefs.h <<\_ACEOF
5398#define NO_BACKSPACE_KEY 1 8243#define NO_BACKSPACE_KEY 1
5399EOF 8244_ACEOF
5400 8245
5401 fi 8246 fi
5402fi 8247fi;
5403
5404 8248
5405# Check whether --enable-delete-key or --disable-delete-key was given. 8249# Check whether --enable-delete-key or --disable-delete-key was given.
5406if test "${enable_delete_key+set}" = set; then 8250if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key" 8251 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then 8252 if test x$enableval = xno; then
8253
5409 cat >> confdefs.h <<\EOF 8254cat >>confdefs.h <<\_ACEOF
5410#define NO_DELETE_KEY 1 8255#define NO_DELETE_KEY 1
5411EOF 8256_ACEOF
5412 8257
5413 fi 8258 fi
5414fi 8259fi;
5415
5416 8260
5417# Check whether --enable-resources or --disable-resources was given. 8261# Check whether --enable-resources or --disable-resources was given.
5418if test "${enable_resources+set}" = set; then 8262if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources" 8263 enableval="$enable_resources"
5420 if test x$enableval = xno; then 8264 if test x$enableval = xno; then
8265
5421 cat >> confdefs.h <<\EOF 8266cat >>confdefs.h <<\_ACEOF
5422#define NO_RESOURCES 1 8267#define NO_RESOURCES 1
5423EOF 8268_ACEOF
5424 8269
5425 fi 8270 fi
5426fi 8271fi;
5427
5428 8272
5429# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8273# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430if test "${enable_xgetdefault+set}" = set; then 8274if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault" 8275 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then 8276 if test x$enableval = xyes; then
8277
5433 cat >> confdefs.h <<\EOF 8278cat >>confdefs.h <<\_ACEOF
5434#define USE_XGETDEFAULT 1 8279#define USE_XGETDEFAULT 1
5435EOF 8280_ACEOF
5436 8281
5437 fi 8282 fi
5438fi 8283fi;
8284
8285RESFALLBACK=Rxvt
8286# Check whether --enable-fallback or --disable-fallback was given.
8287if test "${enable_fallback+set}" = set; then
8288 enableval="$enable_fallback"
8289
8290 test x$enableval = xyes && enableval=Rxvt
8291 test x$enableval = xno && enableval=
8292 RESFALLBACK="$enableval"
8293
8294fi;
8295
8296if test x$RESFALLBACK != x; then
8297
8298cat >>confdefs.h <<_ACEOF
8299#define RESFALLBACK "$RESFALLBACK"
8300_ACEOF
8301
8302fi
8303
8304RESNAME=urxvt
8305
8306# Check whether --with-res-name or --without-res-name was given.
8307if test "${with_res_name+set}" = set; then
8308 withval="$with_res_name"
8309 RESNAME="$withval"
8310fi;
8311
8312cat >>confdefs.h <<_ACEOF
8313#define RESNAME "$RESNAME"
8314_ACEOF
8315
8316
8317RESCLASS=URxvt
8318
8319# Check whether --with-res-class or --without-res-class was given.
8320if test "${with_res_class+set}" = set; then
8321 withval="$with_res_class"
8322 RESCLASS="$withval"
8323fi;
8324
8325cat >>confdefs.h <<_ACEOF
8326#define RESCLASS "$RESCLASS"
8327_ACEOF
8328
8329
8330RXVTNAME=urxvt
8331
8332# Check whether --with-name or --without-name was given.
8333if test "${with_name+set}" = set; then
8334 withval="$with_name"
8335 RXVTNAME="$withval"
8336fi;
8337
8338RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5439 8339
5440 8340
5441# Check whether --enable-strings or --disable-strings was given. 8341# Check whether --enable-strings or --disable-strings was given.
5442if test "${enable_strings+set}" = set; then 8342if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings" 8343 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then 8344 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval 8345 support_addstrings=$enableval
5446 fi 8346 fi
5447fi 8347fi;
5448
5449 8348
5450# Check whether --enable-swapscreen or --disable-swapscreen was given. 8349# Check whether --enable-swapscreen or --disable-swapscreen was given.
5451if test "${enable_swapscreen+set}" = set; then 8350if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen" 8351 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then 8352 if test x$enableval = xno; then
8353
5454 cat >> confdefs.h <<\EOF 8354cat >>confdefs.h <<\_ACEOF
5455#define NO_SECONDARY_SCREEN 1 8355#define NO_SECONDARY_SCREEN 1
5456EOF 8356_ACEOF
5457 8357
5458 fi 8358 fi
5459fi 8359fi;
5460
5461 8360
5462# Check whether --enable-frills or --disable-frills was given. 8361# Check whether --enable-frills or --disable-frills was given.
5463if test "${enable_frills+set}" = set; then 8362if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills" 8363 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then 8364 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval 8365 support_frills=$enableval
5467 fi 8366 fi
5468fi 8367fi;
5469
5470 8368
5471# Check whether --enable-linespace or --disable-linespace was given. 8369# Check whether --enable-linespace or --disable-linespace was given.
5472if test "${enable_linespace+set}" = set; then 8370if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace" 8371 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then 8372 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval 8373 support_linespace=$enableval
5476 fi 8374 fi
5477fi 8375fi;
5478
5479 8376
5480# Check whether --enable-24bit or --disable-24bit was given. 8377# Check whether --enable-24bit or --disable-24bit was given.
5481if test "${enable_24bit+set}" = set; then 8378if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit" 8379 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then 8380 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval 8381 support_24bit=$enableval
5485 fi 8382 fi
5486fi 8383fi;
5487
5488 8384
5489# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8385# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490if test "${enable_keepscrolling+set}" = set; then 8386if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling" 8387 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then 8388 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval 8389 support_keepscrolling=$enableval
5494 fi 8390 fi
5495fi 8391fi;
5496
5497 8392
5498# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8393# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499if test "${enable_selectionscrolling+set}" = set; then 8394if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling" 8395 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then 8396 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval 8397 support_selectionscrolling=$enableval
5503 fi 8398 fi
5504fi 8399fi;
5505
5506 8400
5507# Check whether --enable-mousewheel or --disable-mousewheel was given. 8401# Check whether --enable-mousewheel or --disable-mousewheel was given.
5508if test "${enable_mousewheel+set}" = set; then 8402if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel" 8403 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then 8404 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval 8405 support_mousewheel=$enableval
5512 fi 8406 fi
5513fi 8407fi;
5514
5515 8408
5516# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8409# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517if test "${enable_slipwheeling+set}" = set; then 8410if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling" 8411 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then 8412 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval 8413 support_mouseslipwheel=$enableval
5521 fi 8414 fi
5522fi 8415fi;
5523
5524 8416
5525# Check whether --enable-old-selection or --disable-old-selection was given. 8417# Check whether --enable-old-selection or --disable-old-selection was given.
5526if test "${enable_old_selection+set}" = set; then 8418if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection" 8419 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then 8420 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval 8421 support_oldselection=$enableval
5530 fi 8422 fi
5531fi 8423fi;
5532
5533 8424
5534# Check whether --enable-new-selection or --disable-new-selection was given. 8425# Check whether --enable-new-selection or --disable-new-selection was given.
5535if test "${enable_new_selection+set}" = set; then 8426if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection" 8427 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then 8428 if test x$enableval = xno; then
8429
5538 cat >> confdefs.h <<\EOF 8430cat >>confdefs.h <<\_ACEOF
5539#define NO_NEW_SELECTION 1 8431#define NO_NEW_SELECTION 1
5540EOF 8432_ACEOF
5541 8433
5542 fi 8434 fi
5543fi 8435fi;
5544
5545 8436
5546# Check whether --enable-dmalloc or --disable-dmalloc was given. 8437# Check whether --enable-dmalloc or --disable-dmalloc was given.
5547if test "${enable_dmalloc+set}" = set; then 8438if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc" 8439 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then 8440 if test x$enableval = xyes; then
5550 MALLOC_TYPE=G 8441 MALLOC_TYPE=G
5551 DEBUG=-DDEBUG_MALLOC 8442 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc" 8443 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include 8444 DINCLUDE=-I/usr/local/include
5554 fi 8445 fi
5555fi 8446fi;
5556
5557 8447
5558# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8448# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559if test "${enable_dlmalloc+set}" = set; then 8449if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc" 8450 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then 8451 if test x$enableval = xyes; then
5562 MALLOC_TYPE=D 8452 MALLOC_TYPE=D
5563 DEBUG= 8453 DEBUG=
5564 DLIB="-L/usr/local/lib -ldlmalloc" 8454 DLIB="-L/usr/local/lib -ldlmalloc"
5565 DINCLUDE= 8455 DINCLUDE=
5566 fi 8456 fi
5567fi 8457fi;
5568
5569 8458
5570# Check whether --enable-smart-resize or --disable-smart-resize was given. 8459# Check whether --enable-smart-resize or --disable-smart-resize was given.
5571if test "${enable_smart_resize+set}" = set; then 8460if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize" 8461 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then 8462 if test x$enableval = xyes; then
8463
5574 cat >> confdefs.h <<\EOF 8464cat >>confdefs.h <<\_ACEOF
5575#define SMART_RESIZE 1 8465#define SMART_RESIZE 1
5576EOF 8466_ACEOF
5577 8467
5578 fi 8468 fi
5579fi 8469fi;
5580
5581 8470
5582# Check whether --enable-256-color or --disable-256-color was given. 8471# Check whether --enable-256-color or --disable-256-color was given.
5583if test "${enable_256_color+set}" = set; then 8472if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color" 8473 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then 8474 if test x$enableval = xyes; then
8475
5586 cat >> confdefs.h <<\EOF 8476cat >>confdefs.h <<\_ACEOF
5587#define TTY_256COLOR 1 8477#define TTY_256COLOR 1
5588EOF 8478_ACEOF
5589 8479
5590 fi 8480 fi
5591fi 8481fi;
5592
5593 8482
5594# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8483# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595if test "${enable_cursor_blink+set}" = set; then 8484if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink" 8485 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then 8486 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval 8487 support_cursor_blink=$enableval
5599 fi 8488 fi
5600fi 8489fi;
5601 8490
8491# Check whether --enable-text-blink or --disable-text-blink was given.
8492if test "${enable_text_blink+set}" = set; then
8493 enableval="$enable_text_blink"
8494 if test x$enableval = xyes -o x$enableval = xno; then
8495 support_text_blink=$enableval
8496 fi
8497fi;
5602 8498
5603# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8499# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604if test "${enable_pointer_blank+set}" = set; then 8500if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank" 8501 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then 8502 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval 8503 support_pointer_blank=$enableval
5608 fi 8504 fi
5609fi 8505fi;
5610 8506
5611 8507
5612# Check whether --with-term or --without-term was given. 8508# Check whether --with-term or --without-term was given.
5613if test "${with_term+set}" = set; then 8509if test "${with_term+set}" = set; then
5614 withval="$with_term" 8510 withval="$with_term"
5615 if test x$withval != x; then 8511 if test x$withval != x; then
8512
5616 cat >> confdefs.h <<EOF 8513cat >>confdefs.h <<_ACEOF
5617#define TERMENV "$withval" 8514#define TERMENV "$withval"
5618EOF 8515_ACEOF
5619 term="$withval" 8516 term="$withval"
5620 fi 8517 fi
5621fi 8518fi;
5622 8519
5623 8520
5624# Check whether --with-terminfo or --without-terminfo was given. 8521# Check whether --with-terminfo or --without-terminfo was given.
5625if test "${with_terminfo+set}" = set; then 8522if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo" 8523 withval="$with_terminfo"
5627 if test x$withval != x; then 8524 if test x$withval != x; then
8525
5628 cat >> confdefs.h <<EOF 8526cat >>confdefs.h <<_ACEOF
5629#define RXVT_TERMINFO "$withval" 8527#define RXVT_TERMINFO "$withval"
5630EOF 8528_ACEOF
5631 terminfo="$withval" 8529 terminfo="$withval"
5632 fi 8530 fi
5633fi 8531fi;
5634 8532
5635 8533
5636 8534
5637cat >> confdefs.h <<\EOF 8535cat >>confdefs.h <<\_ACEOF
5638#define PROTOTYPES 1 8536#define PROTOTYPES 1
5639EOF 8537_ACEOF
5640 8538
5641 8539
5642if test -z "$CFLAGS"; then 8540if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then 8541 if test -z "$CCOPTS"; then
5644 CCOPTS='-O' 8542 CCOPTS='-O'
5646 CFLAGS="$CCOPTS" 8544 CFLAGS="$CCOPTS"
5647fi 8545fi
5648 8546
5649# Extract the first word of "mv", so it can be a program name with args. 8547# Extract the first word of "mv", so it can be a program name with args.
5650set dummy mv; ac_word=$2 8548set dummy mv; ac_word=$2
8549echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8550echo $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 8551if test "${ac_cv_path_MV+set}" = set; then
5654 echo $ac_n "(cached) $ac_c" 1>&6 8552 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else 8553else
5656 case "$MV" in 8554 case $MV in
5657 /*) 8555 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8556 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5659 ;; 8557 ;;
5660 ?:/*)
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5662 ;;
5663 *) 8558 *)
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 ac_dummy="$PATH" 8560for as_dir in $PATH
5666 for ac_dir in $ac_dummy; do 8561do
8562 IFS=$as_save_IFS
5667 test -z "$ac_dir" && ac_dir=. 8563 test -z "$as_dir" && as_dir=.
5668 if test -f $ac_dir/$ac_word; then 8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_MV="$ac_dir/$ac_word" 8566 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 8568 break 2
5671 fi 8569 fi
5672 done 8570done
5673 IFS="$ac_save_ifs" 8571done
8572
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8573 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5675 ;; 8574 ;;
5676esac 8575esac
5677fi 8576fi
5678MV="$ac_cv_path_MV" 8577MV=$ac_cv_path_MV
8578
5679if test -n "$MV"; then 8579if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6 8580 echo "$as_me:$LINENO: result: $MV" >&5
8581echo "${ECHO_T}$MV" >&6
5681else 8582else
5682 echo "$ac_t""no" 1>&6 8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
5683fi 8585fi
5684 8586
5685# Extract the first word of "rm", so it can be a program name with args. 8587# Extract the first word of "rm", so it can be a program name with args.
5686set dummy rm; ac_word=$2 8588set dummy rm; ac_word=$2
8589echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8590echo $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 8591if test "${ac_cv_path_RM+set}" = set; then
5690 echo $ac_n "(cached) $ac_c" 1>&6 8592 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else 8593else
5692 case "$RM" in 8594 case $RM in
5693 /*) 8595 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5695 ;; 8597 ;;
5696 ?:/*)
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5698 ;;
5699 *) 8598 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 ac_dummy="$PATH" 8600for as_dir in $PATH
5702 for ac_dir in $ac_dummy; do 8601do
8602 IFS=$as_save_IFS
5703 test -z "$ac_dir" && ac_dir=. 8603 test -z "$as_dir" && as_dir=.
5704 if test -f $ac_dir/$ac_word; then 8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_RM="$ac_dir/$ac_word" 8606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 8608 break 2
5707 fi 8609 fi
5708 done 8610done
5709 IFS="$ac_save_ifs" 8611done
8612
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5711 ;; 8614 ;;
5712esac 8615esac
5713fi 8616fi
5714RM="$ac_cv_path_RM" 8617RM=$ac_cv_path_RM
8618
5715if test -n "$RM"; then 8619if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6 8620 echo "$as_me:$LINENO: result: $RM" >&5
8621echo "${ECHO_T}$RM" >&6
5717else 8622else
5718 echo "$ac_t""no" 1>&6 8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
5719fi 8625fi
5720 8626
5721# Extract the first word of "cp", so it can be a program name with args. 8627# Extract the first word of "cp", so it can be a program name with args.
5722set dummy cp; ac_word=$2 8628set dummy cp; ac_word=$2
8629echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8630echo $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 8631if test "${ac_cv_path_CP+set}" = set; then
5726 echo $ac_n "(cached) $ac_c" 1>&6 8632 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else 8633else
5728 case "$CP" in 8634 case $CP in
5729 /*) 8635 [\\/]* | ?:[\\/]*)
5730 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8636 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5731 ;; 8637 ;;
5732 ?:/*)
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5734 ;;
5735 *) 8638 *)
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 ac_dummy="$PATH" 8640for as_dir in $PATH
5738 for ac_dir in $ac_dummy; do 8641do
8642 IFS=$as_save_IFS
5739 test -z "$ac_dir" && ac_dir=. 8643 test -z "$as_dir" && as_dir=.
5740 if test -f $ac_dir/$ac_word; then 8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_path_CP="$ac_dir/$ac_word" 8646 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 8648 break 2
5743 fi 8649 fi
5744 done 8650done
5745 IFS="$ac_save_ifs" 8651done
8652
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8653 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5747 ;; 8654 ;;
5748esac 8655esac
5749fi 8656fi
5750CP="$ac_cv_path_CP" 8657CP=$ac_cv_path_CP
8658
5751if test -n "$CP"; then 8659if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6 8660 echo "$as_me:$LINENO: result: $CP" >&5
8661echo "${ECHO_T}$CP" >&6
5753else 8662else
5754 echo "$ac_t""no" 1>&6 8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
5755fi 8665fi
5756 8666
5757# Extract the first word of "ln", so it can be a program name with args. 8667# Extract the first word of "ln", so it can be a program name with args.
5758set dummy ln; ac_word=$2 8668set dummy ln; ac_word=$2
8669echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8670echo $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 8671if test "${ac_cv_path_LN+set}" = set; then
5762 echo $ac_n "(cached) $ac_c" 1>&6 8672 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else 8673else
5764 case "$LN" in 8674 case $LN in
5765 /*) 8675 [\\/]* | ?:[\\/]*)
5766 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8676 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5767 ;; 8677 ;;
5768 ?:/*)
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5770 ;;
5771 *) 8678 *)
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 ac_dummy="$PATH" 8680for as_dir in $PATH
5774 for ac_dir in $ac_dummy; do 8681do
8682 IFS=$as_save_IFS
5775 test -z "$ac_dir" && ac_dir=. 8683 test -z "$as_dir" && as_dir=.
5776 if test -f $ac_dir/$ac_word; then 8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_path_LN="$ac_dir/$ac_word" 8686 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 8688 break 2
5779 fi 8689 fi
5780 done 8690done
5781 IFS="$ac_save_ifs" 8691done
8692
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8693 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5783 ;; 8694 ;;
5784esac 8695esac
5785fi 8696fi
5786LN="$ac_cv_path_LN" 8697LN=$ac_cv_path_LN
8698
5787if test -n "$LN"; then 8699if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6 8700 echo "$as_me:$LINENO: result: $LN" >&5
8701echo "${ECHO_T}$LN" >&6
5789else 8702else
5790 echo "$ac_t""no" 1>&6 8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
5791fi 8705fi
5792 8706
5793# Extract the first word of "sed", so it can be a program name with args. 8707# Extract the first word of "sed", so it can be a program name with args.
5794set dummy sed; ac_word=$2 8708set dummy sed; ac_word=$2
8709echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8710echo $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 8711if test "${ac_cv_path_SED+set}" = set; then
5798 echo $ac_n "(cached) $ac_c" 1>&6 8712 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else 8713else
5800 case "$SED" in 8714 case $SED in
5801 /*) 8715 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8716 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5803 ;; 8717 ;;
5804 ?:/*)
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5806 ;;
5807 *) 8718 *)
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 ac_dummy="$PATH" 8720for as_dir in $PATH
5810 for ac_dir in $ac_dummy; do 8721do
8722 IFS=$as_save_IFS
5811 test -z "$ac_dir" && ac_dir=. 8723 test -z "$as_dir" && as_dir=.
5812 if test -f $ac_dir/$ac_word; then 8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_path_SED="$ac_dir/$ac_word" 8726 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 8728 break 2
5815 fi 8729 fi
5816 done 8730done
5817 IFS="$ac_save_ifs" 8731done
8732
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8733 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5819 ;; 8734 ;;
5820esac 8735esac
5821fi 8736fi
5822SED="$ac_cv_path_SED" 8737SED=$ac_cv_path_SED
8738
5823if test -n "$SED"; then 8739if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6 8740 echo "$as_me:$LINENO: result: $SED" >&5
8741echo "${ECHO_T}$SED" >&6
5825else 8742else
5826 echo "$ac_t""no" 1>&6 8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
5827fi 8745fi
5828 8746
5829# Extract the first word of "echo", so it can be a program name with args. 8747# Extract the first word of "echo", so it can be a program name with args.
5830set dummy echo; ac_word=$2 8748set dummy echo; ac_word=$2
8749echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8750echo $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 8751if test "${ac_cv_path_ECHO+set}" = set; then
5834 echo $ac_n "(cached) $ac_c" 1>&6 8752 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else 8753else
5836 case "$ECHO" in 8754 case $ECHO in
5837 /*) 8755 [\\/]* | ?:[\\/]*)
5838 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8756 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5839 ;; 8757 ;;
5840 ?:/*)
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5842 ;;
5843 *) 8758 *)
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 ac_dummy="$PATH" 8760for as_dir in $PATH
5846 for ac_dir in $ac_dummy; do 8761do
8762 IFS=$as_save_IFS
5847 test -z "$ac_dir" && ac_dir=. 8763 test -z "$as_dir" && as_dir=.
5848 if test -f $ac_dir/$ac_word; then 8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_path_ECHO="$ac_dir/$ac_word" 8766 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 8768 break 2
5851 fi 8769 fi
5852 done 8770done
5853 IFS="$ac_save_ifs" 8771done
8772
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8773 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5855 ;; 8774 ;;
5856esac 8775esac
5857fi 8776fi
5858ECHO="$ac_cv_path_ECHO" 8777ECHO=$ac_cv_path_ECHO
8778
5859if test -n "$ECHO"; then 8779if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6 8780 echo "$as_me:$LINENO: result: $ECHO" >&5
8781echo "${ECHO_T}$ECHO" >&6
5861else 8782else
5862 echo "$ac_t""no" 1>&6 8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
5863fi 8785fi
5864 8786
5865# Extract the first word of "cmp", so it can be a program name with args. 8787# Extract the first word of "cmp", so it can be a program name with args.
5866set dummy cmp; ac_word=$2 8788set dummy cmp; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8790echo $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 8791if test "${ac_cv_path_CMP+set}" = set; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 8792 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else 8793else
5872 case "$CMP" in 8794 case $CMP in
5873 /*) 8795 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8796 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5875 ;; 8797 ;;
5876 ?:/*)
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5878 ;;
5879 *) 8798 *)
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 ac_dummy="$PATH" 8800for as_dir in $PATH
5882 for ac_dir in $ac_dummy; do 8801do
8802 IFS=$as_save_IFS
5883 test -z "$ac_dir" && ac_dir=. 8803 test -z "$as_dir" && as_dir=.
5884 if test -f $ac_dir/$ac_word; then 8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_CMP="$ac_dir/$ac_word" 8806 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 8808 break 2
5887 fi 8809 fi
5888 done 8810done
5889 IFS="$ac_save_ifs" 8811done
8812
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8813 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 ;; 8814 ;;
5892esac 8815esac
5893fi 8816fi
5894CMP="$ac_cv_path_CMP" 8817CMP=$ac_cv_path_CMP
8818
5895if test -n "$CMP"; then 8819if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6 8820 echo "$as_me:$LINENO: result: $CMP" >&5
8821echo "${ECHO_T}$CMP" >&6
5897else 8822else
5898 echo "$ac_t""no" 1>&6 8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
5899fi 8825fi
5900 8826
5901# Extract the first word of "tbl", so it can be a program name with args. 8827# Extract the first word of "tbl", so it can be a program name with args.
5902set dummy tbl; ac_word=$2 8828set dummy tbl; ac_word=$2
8829echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8830echo $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 8831if test "${ac_cv_path_TBL+set}" = set; then
5906 echo $ac_n "(cached) $ac_c" 1>&6 8832 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else 8833else
5908 case "$TBL" in 8834 case $TBL in
5909 /*) 8835 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8836 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5911 ;; 8837 ;;
5912 ?:/*)
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5914 ;;
5915 *) 8838 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 ac_dummy="$PATH" 8840for as_dir in $PATH
5918 for ac_dir in $ac_dummy; do 8841do
8842 IFS=$as_save_IFS
5919 test -z "$ac_dir" && ac_dir=. 8843 test -z "$as_dir" && as_dir=.
5920 if test -f $ac_dir/$ac_word; then 8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_path_TBL="$ac_dir/$ac_word" 8846 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 8848 break 2
5923 fi 8849 fi
5924 done 8850done
5925 IFS="$ac_save_ifs" 8851done
8852
5926 ;; 8853 ;;
5927esac 8854esac
5928fi 8855fi
5929TBL="$ac_cv_path_TBL" 8856TBL=$ac_cv_path_TBL
8857
5930if test -n "$TBL"; then 8858if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6 8859 echo "$as_me:$LINENO: result: $TBL" >&5
8860echo "${ECHO_T}$TBL" >&6
5932else 8861else
5933 echo "$ac_t""no" 1>&6 8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
5934fi 8864fi
5935 8865
5936 8866
5937 8867
5938 8868
5939# If we find X, set shell vars x_includes and x_libraries to the 8869echo "$as_me:$LINENO: checking for X" >&5
5940# paths, otherwise set no_x=yes.
5941# Uses ac_ vars as temps to allow command line to override cache and checks.
5942# --without-x overrides everything else, but does not touch the cache.
5943echo $ac_n "checking for X""... $ac_c" 1>&6 8870echo $ECHO_N "checking for X... $ECHO_C" >&6
5944echo "configure:5945: checking for X" >&5 8871
5945 8872
5946# Check whether --with-x or --without-x was given. 8873# Check whether --with-x or --without-x was given.
5947if test "${with_x+set}" = set; then 8874if test "${with_x+set}" = set; then
5948 withval="$with_x" 8875 withval="$with_x"
5949 : 8876
5950fi 8877fi;
5951
5952# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8878# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5953if test "x$with_x" = xno; then 8879if test "x$with_x" = xno; then
5954 # The user explicitly disabled X. 8880 # The user explicitly disabled X.
5955 have_x=disabled 8881 have_x=disabled
5956else 8882else
5957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8883 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5958 # Both variables are already set. 8884 # Both variables are already set.
5959 have_x=yes 8885 have_x=yes
5960 else 8886 else
5961if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8887 if test "${ac_cv_have_x+set}" = set; then
5962 echo $ac_n "(cached) $ac_c" 1>&6 8888 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else 8889else
5964 # One or both of the vars are not set, and there is no cached value. 8890 # One or both of the vars are not set, and there is no cached value.
5965ac_x_includes=NO ac_x_libraries=NO 8891ac_x_includes=no ac_x_libraries=no
5966rm -fr conftestdir 8892rm -fr conftest.dir
5967if mkdir conftestdir; then 8893if mkdir conftest.dir; then
5968 cd conftestdir 8894 cd conftest.dir
5969 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8895 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5970 cat > Imakefile <<'EOF' 8896 cat >Imakefile <<'_ACEOF'
5971acfindx: 8897acfindx:
5972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8898 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5973EOF 8899_ACEOF
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8900 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8902 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8903 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do 8904 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8905 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then 8906 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break 8907 ac_im_usrlibdir=$ac_im_libdir; break
5982 fi 8908 fi
5983 done 8909 done
5984 # Screen out bogus values from the imake configuration. They are 8910 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because 8911 # bogus both because they are the default anyway, and because
5986 # using them would break gcc on systems where it needs fixed includes. 8912 # using them would break gcc on systems where it needs fixed includes.
5987 case "$ac_im_incroot" in 8913 case $ac_im_incroot in
5988 /usr/include) ;; 8914 /usr/include) ;;
5989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5990 esac 8916 esac
5991 case "$ac_im_usrlibdir" in 8917 case $ac_im_usrlibdir in
5992 /usr/lib | /lib) ;; 8918 /usr/lib | /lib) ;;
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5994 esac 8920 esac
5995 fi 8921 fi
5996 cd .. 8922 cd ..
5997 rm -fr conftestdir 8923 rm -fr conftest.dir
5998fi 8924fi
5999 8925
8926# Standard set of common directories for X headers.
8927# Check X11 before X11Rn because it is often a symlink to the current release.
8928ac_x_header_dirs='
8929/usr/X11/include
8930/usr/X11R6/include
8931/usr/X11R5/include
8932/usr/X11R4/include
8933
8934/usr/include/X11
8935/usr/include/X11R6
8936/usr/include/X11R5
8937/usr/include/X11R4
8938
8939/usr/local/X11/include
8940/usr/local/X11R6/include
8941/usr/local/X11R5/include
8942/usr/local/X11R4/include
8943
8944/usr/local/include/X11
8945/usr/local/include/X11R6
8946/usr/local/include/X11R5
8947/usr/local/include/X11R4
8948
8949/usr/X386/include
8950/usr/x386/include
8951/usr/XFree86/include/X11
8952
8953/usr/include
8954/usr/local/include
8955/usr/unsupported/include
8956/usr/athena/include
8957/usr/local/x11r5/include
8958/usr/lpp/Xamples/include
8959
8960/usr/openwin/include
8961/usr/openwin/share/include'
8962
6000if test "$ac_x_includes" = NO; then 8963if test "$ac_x_includes" = no; then
6001 # Guess where to find include files, by looking for this one X11 .h file. 8964 # Guess where to find include files, by looking for Intrinsic.h.
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. 8965 # First, try using that file with no special directory specified.
8966 cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
6005cat > conftest.$ac_ext <<EOF 8970cat >>conftest.$ac_ext <<_ACEOF
6006#line 6007 "configure" 8971/* end confdefs.h. */
6007#include "confdefs.h" 8972#include <X11/Intrinsic.h>
6008#include <$x_direct_test_include> 8973_ACEOF
6009EOF 8974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8976 ac_status=$?
6012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } >/dev/null; then
8982 if test -s conftest.err; then
8983 ac_cpp_err=$ac_cxx_preproc_warn_flag
8984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8985 else
8986 ac_cpp_err=
8987 fi
8988else
8989 ac_cpp_err=yes
8990fi
6013if test -z "$ac_err"; then 8991if test -z "$ac_cpp_err"; then
6014 rm -rf conftest*
6015 # We can compile using X headers with no special include directory. 8992 # We can compile using X headers with no special include directory.
6016ac_x_includes= 8993ac_x_includes=
6017else 8994else
6018 echo "$ac_err" >&5
6019 echo "configure: failed program was:" >&5 8995 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 8996sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -rf conftest* 8997
6022 # Look for the header file in a standard set of common directories. 8998 for ac_dir in $ac_x_header_dirs; do
6023# Check X11 before X11Rn because it is often a symlink to the current release. 8999 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 9000 ac_x_includes=$ac_dir
6062 break 9001 break
6063 fi 9002 fi
6064 done 9003done
6065fi 9004fi
6066rm -f conftest* 9005rm -f conftest.err conftest.$ac_ext
6067fi # $ac_x_includes = NO 9006fi # $ac_x_includes = no
6068 9007
6069if test "$ac_x_libraries" = NO; then 9008if test "$ac_x_libraries" = no; then
6070 # Check for the libraries. 9009 # 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. 9010 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently. 9011 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS" 9012 ac_save_LIBS=$LIBS
6078 LIBS="-l$x_direct_test_library $LIBS" 9013 LIBS="-lXt $LIBS"
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
6079cat > conftest.$ac_ext <<EOF 9018cat >>conftest.$ac_ext <<_ACEOF
6080#line 6081 "configure" 9019/* end confdefs.h. */
6081#include "confdefs.h" 9020#include <X11/Intrinsic.h>
6082 9021int
6083int main() { 9022main ()
6084${x_direct_test_function}() 9023{
9024XtMalloc (0)
9025 ;
6085; return 0; } 9026 return 0;
6086EOF 9027}
6087if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9028_ACEOF
9029rm -f conftest.$ac_objext conftest$ac_exeext
9030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -rf conftest* 9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
6089 LIBS="$ac_save_LIBS" 9050 LIBS=$ac_save_LIBS
6090# We can link X programs with no special library path. 9051# We can link X programs with no special library path.
6091ac_x_libraries= 9052ac_x_libraries=
6092else 9053else
6093 echo "configure: failed program was:" >&5 9054 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5 9055sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -rf conftest* 9056
6096 LIBS="$ac_save_LIBS" 9057LIBS=$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/` \ 9058for 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 9059do
9060 # Don't even attempt the hair of trying to link an X program!
6136 for ac_extension in a so sl; do 9061 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9062 if test -r $ac_dir/libXt.$ac_extension; then
6138 ac_x_libraries=$ac_dir 9063 ac_x_libraries=$ac_dir
6139 break 2 9064 break 2
6140 fi 9065 fi
6141 done 9066 done
6142done 9067done
6143fi 9068fi
6144rm -f conftest* 9069rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
6145fi # $ac_x_libraries = NO 9071fi # $ac_x_libraries = no
6146 9072
6147if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9073if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6148 # Didn't find X anywhere. Cache the known absence of X. 9074 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no" 9075 ac_cv_have_x="have_x=no"
6150else 9076else
6151 # Record where we found X for the cache. 9077 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \ 9078 ac_cv_have_x="have_x=yes \
6153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9079 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6154fi 9080fi
6155fi 9081fi
9082
6156 fi 9083 fi
6157 eval "$ac_cv_have_x" 9084 eval "$ac_cv_have_x"
6158fi # $with_x != no 9085fi # $with_x != no
6159 9086
6160if test "$have_x" != yes; then 9087if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6 9088 echo "$as_me:$LINENO: result: $have_x" >&5
9089echo "${ECHO_T}$have_x" >&6
6162 no_x=yes 9090 no_x=yes
6163else 9091else
6164 # If each of the values was on the command line, it overrides each guess. 9092 # 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 9093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values. 9095 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \ 9096 ac_cv_have_x="have_x=yes \
6169 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9097 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9098 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9099echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6171fi 9100fi
6172 9101
6173if test "$no_x" = yes; then 9102if test "$no_x" = yes; then
6174 # Not all programs may use this symbol, but it does not hurt to define it. 9103 # Not all programs may use this symbol, but it does not hurt to define it.
9104
6175 cat >> confdefs.h <<\EOF 9105cat >>confdefs.h <<\_ACEOF
6176#define X_DISPLAY_MISSING 1 9106#define X_DISPLAY_MISSING 1
6177EOF 9107_ACEOF
6178 9108
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9109 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6180else 9110else
6181 if test -n "$x_includes"; then 9111 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes" 9112 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # It would also be nice to do this for all -L options, not just this one. 9115 # It would also be nice to do this for all -L options, not just this one.
6186 if test -n "$x_libraries"; then 9116 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries" 9117 X_LIBS="$X_LIBS -L$x_libraries"
6188 # For Solaris; some versions of Sun CC require a space after -R and 9118 # For Solaris; some versions of Sun CC require a space after -R and
6189 # others require no space. Words are not sufficient . . . . 9119 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in 9120 case `(uname -sr) 2>/dev/null` in
6191 "SunOS 5"*) 9121 "SunOS 5"*)
9122 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 9123echo $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" 9124 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF 9125 cat >conftest.$ac_ext <<_ACEOF
6196#line 6197 "configure" 9126/* confdefs.h. */
6197#include "confdefs.h" 9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
6198 9131
6199int main() { 9132int
9133main ()
9134{
6200 9135
9136 ;
6201; return 0; } 9137 return 0;
6202EOF 9138}
6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9139_ACEOF
9140rm -f conftest.$ac_objext conftest$ac_exeext
9141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142 (eval $ac_link) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -rf conftest* 9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
6205 ac_R_nospace=yes 9161 ac_R_nospace=yes
6206else 9162else
6207 echo "configure: failed program was:" >&5 9163 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 9164sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -rf conftest* 9165
6210 ac_R_nospace=no 9166ac_R_nospace=no
6211fi 9167fi
6212rm -f conftest* 9168rm -f conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
6213 if test $ac_R_nospace = yes; then 9170 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6 9171 echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
6215 X_LIBS="$X_LIBS -R$x_libraries" 9173 X_LIBS="$X_LIBS -R$x_libraries"
6216 else 9174 else
6217 LIBS="$ac_xsave_LIBS -R $x_libraries" 9175 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF 9176 cat >conftest.$ac_ext <<_ACEOF
6219#line 6220 "configure" 9177/* confdefs.h. */
6220#include "confdefs.h" 9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
6221 9182
6222int main() { 9183int
9184main ()
9185{
6223 9186
9187 ;
6224; return 0; } 9188 return 0;
6225EOF 9189}
6226if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9190_ACEOF
9191rm -f conftest.$ac_objext conftest$ac_exeext
9192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -rf conftest* 9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
6228 ac_R_space=yes 9212 ac_R_space=yes
6229else 9213else
6230 echo "configure: failed program was:" >&5 9214 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 9215sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -rf conftest* 9216
6233 ac_R_space=no 9217ac_R_space=no
6234fi 9218fi
6235rm -f conftest* 9219rm -f conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
6236 if test $ac_R_space = yes; then 9221 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6 9222 echo "$as_me:$LINENO: result: yes" >&5
9223echo "${ECHO_T}yes" >&6
6238 X_LIBS="$X_LIBS -R $x_libraries" 9224 X_LIBS="$X_LIBS -R $x_libraries"
6239 else 9225 else
9226 echo "$as_me:$LINENO: result: neither works" >&5
6240 echo "$ac_t""neither works" 1>&6 9227echo "${ECHO_T}neither works" >&6
6241 fi 9228 fi
6242 fi 9229 fi
6243 LIBS="$ac_xsave_LIBS" 9230 LIBS=$ac_xsave_LIBS
6244 esac 9231 esac
6245 fi 9232 fi
6246 9233
6247 # Check for system-dependent libraries X programs must link with. 9234 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries 9235 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking. 9236 # (-lICE), since we may need -lsocket or whatever for X linking.
6250 9237
6251 if test "$ISC" = yes; then 9238 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6253 else 9240 else
6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9241 # Martyn Johnson says this is needed for Ultrix, if the X
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says 9242 # libraries were built with DECnet support. And Karl Berry says
6256 # the Alpha needs dnet_stub (dnet does not exist). 9243 # the Alpha needs dnet_stub (dnet does not exist).
9244 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9245 cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h. */
9251
9252/* Override any gcc2 internal prototype to avoid an error. */
9253#ifdef __cplusplus
9254extern "C"
9255#endif
9256/* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9258char XOpenDisplay ();
9259int
9260main ()
9261{
9262XOpenDisplay ();
9263 ;
9264 return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext conftest$ac_exeext
9268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 :
9289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9294echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5 9295if 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 9296 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else 9297else
6263 ac_save_LIBS="$LIBS" 9298 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ldnet $LIBS" 9299LIBS="-ldnet $LIBS"
6265cat > conftest.$ac_ext <<EOF 9300cat >conftest.$ac_ext <<_ACEOF
6266#line 6267 "configure" 9301/* confdefs.h. */
6267#include "confdefs.h" 9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h. */
9306
6268/* Override any gcc2 internal prototype to avoid an error. */ 9307/* Override any gcc2 internal prototype to avoid an error. */
9308#ifdef __cplusplus
9309extern "C"
9310#endif
6269/* We use char because int might match the return type of a gcc2 9311/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */ 9312 builtin and then its argument prototype would still apply. */
6271char dnet_ntoa(); 9313char dnet_ntoa ();
6272 9314int
6273int main() { 9315main ()
9316{
6274dnet_ntoa() 9317dnet_ntoa ();
9318 ;
6275; return 0; } 9319 return 0;
6276EOF 9320}
6277if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -rf conftest* 9327 rm -f conftest.er1
6279 eval "ac_cv_lib_$ac_lib_var=yes" 9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_lib_dnet_dnet_ntoa=yes
6280else 9344else
6281 echo "configure: failed program was:" >&5 9345 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 9346sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -rf conftest* 9347
6284 eval "ac_cv_lib_$ac_lib_var=no" 9348ac_cv_lib_dnet_dnet_ntoa=no
6285fi 9349fi
6286rm -f conftest* 9350rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
6287LIBS="$ac_save_LIBS" 9352LIBS=$ac_check_lib_save_LIBS
6288
6289fi 9353fi
6290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9354echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6291 echo "$ac_t""yes" 1>&6 9355echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9356if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9357 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6293else
6294 echo "$ac_t""no" 1>&6
6295fi 9358fi
6296 9359
6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9360 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9361 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 9362echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5 9363if 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 9364 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else 9365else
6304 ac_save_LIBS="$LIBS" 9366 ac_check_lib_save_LIBS=$LIBS
6305LIBS="-ldnet_stub $LIBS" 9367LIBS="-ldnet_stub $LIBS"
6306cat > conftest.$ac_ext <<EOF 9368cat >conftest.$ac_ext <<_ACEOF
6307#line 6308 "configure" 9369/* confdefs.h. */
6308#include "confdefs.h" 9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374
6309/* Override any gcc2 internal prototype to avoid an error. */ 9375/* Override any gcc2 internal prototype to avoid an error. */
9376#ifdef __cplusplus
9377extern "C"
9378#endif
6310/* We use char because int might match the return type of a gcc2 9379/* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */ 9380 builtin and then its argument prototype would still apply. */
6312char dnet_ntoa(); 9381char dnet_ntoa ();
6313 9382int
6314int main() { 9383main ()
9384{
6315dnet_ntoa() 9385dnet_ntoa ();
9386 ;
6316; return 0; } 9387 return 0;
6317EOF 9388}
6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9389_ACEOF
9390rm -f conftest.$ac_objext conftest$ac_exeext
9391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -rf conftest* 9395 rm -f conftest.er1
6320 eval "ac_cv_lib_$ac_lib_var=yes" 9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6321else 9412else
6322 echo "configure: failed program was:" >&5 9413 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5 9414sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -rf conftest* 9415
6325 eval "ac_cv_lib_$ac_lib_var=no" 9416ac_cv_lib_dnet_stub_dnet_ntoa=no
6326fi 9417fi
6327rm -f conftest* 9418rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
6328LIBS="$ac_save_LIBS" 9420LIBS=$ac_check_lib_save_LIBS
6329
6330fi 9421fi
6331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9422echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6332 echo "$ac_t""yes" 1>&6 9423echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9424if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6334else
6335 echo "$ac_t""no" 1>&6
6336fi 9426fi
6337 9427
6338 fi 9428 fi
9429fi
9430rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS="$ac_xsave_LIBS"
6339 9433
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9434 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions. 9435 # to get the SysV transport functions.
6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9436 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6343 # needs -lnsl. 9437 # needs -lnsl.
6344 # The nsl library prevents programs from opening the X display 9438 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to dickey@clark.net. 9439 # on Irix 5.2, according to T.E. Dickey.
9440 # The functions gethostbyname, getservbyname, and inet_addr are
9441 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9442 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9443echo $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 9444if test "${ac_cv_func_gethostbyname+set}" = set; then
6349 echo $ac_n "(cached) $ac_c" 1>&6 9445 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else 9446else
6351 cat > conftest.$ac_ext <<EOF 9447 cat >conftest.$ac_ext <<_ACEOF
6352#line 6353 "configure" 9448/* confdefs.h. */
6353#include "confdefs.h" 9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h. */
9453/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455#define gethostbyname innocuous_gethostbyname
9456
6354/* System header to define __stub macros and hopefully few prototypes, 9457/* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char gethostbyname(); below. */ 9458 which can conflict with char gethostbyname (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9461
9462#ifdef __STDC__
9463# include <limits.h>
9464#else
6356#include <assert.h> 9465# include <assert.h>
9466#endif
9467
9468#undef gethostbyname
9469
6357/* Override any gcc2 internal prototype to avoid an error. */ 9470/* Override any gcc2 internal prototype to avoid an error. */
9471#ifdef __cplusplus
9472extern "C"
9473{
9474#endif
6358/* We use char because int might match the return type of a gcc2 9475/* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */ 9476 builtin and then its argument prototype would still apply. */
6360char gethostbyname(); 9477char gethostbyname ();
6361
6362int main() {
6363
6364/* The GNU C library defines this for functions which it implements 9478/* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named 9479 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */ 9480 something starting with __ and the normal name is an alias. */
6367#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9481#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6368choke me 9482choke me
6369#else 9483#else
6370gethostbyname(); 9484char (*f) () = gethostbyname;
6371#endif 9485#endif
9486#ifdef __cplusplus
9487}
9488#endif
6372 9489
9490int
9491main ()
9492{
9493return f != gethostbyname;
9494 ;
6373; return 0; } 9495 return 0;
6374EOF 9496}
6375if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -rf conftest* 9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
6377 eval "ac_cv_func_gethostbyname=yes" 9519 ac_cv_func_gethostbyname=yes
6378else 9520else
6379 echo "configure: failed program was:" >&5 9521 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 9522sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -rf conftest* 9523
6382 eval "ac_cv_func_gethostbyname=no" 9524ac_cv_func_gethostbyname=no
6383fi 9525fi
6384rm -f conftest* 9526rm -f conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
6385fi 9528fi
6386 9529echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6387if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9530echo "${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 9531
6394 if test $ac_cv_func_gethostbyname = no; then 9532 if test $ac_cv_func_gethostbyname = no; then
9533 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9534echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5 9535if 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 9536 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else 9537else
6401 ac_save_LIBS="$LIBS" 9538 ac_check_lib_save_LIBS=$LIBS
6402LIBS="-lnsl $LIBS" 9539LIBS="-lnsl $LIBS"
6403cat > conftest.$ac_ext <<EOF 9540cat >conftest.$ac_ext <<_ACEOF
6404#line 6405 "configure" 9541/* confdefs.h. */
6405#include "confdefs.h" 9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
6406/* Override any gcc2 internal prototype to avoid an error. */ 9547/* Override any gcc2 internal prototype to avoid an error. */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
6407/* We use char because int might match the return type of a gcc2 9551/* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */ 9552 builtin and then its argument prototype would still apply. */
6409char gethostbyname(); 9553char gethostbyname ();
6410 9554int
6411int main() { 9555main ()
9556{
6412gethostbyname() 9557gethostbyname ();
9558 ;
6413; return 0; } 9559 return 0;
6414EOF 9560}
6415if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -rf conftest* 9567 rm -f conftest.er1
6417 eval "ac_cv_lib_$ac_lib_var=yes" 9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest$ac_exeext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_lib_nsl_gethostbyname=yes
6418else 9584else
6419 echo "configure: failed program was:" >&5 9585 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5 9586sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -rf conftest* 9587
6422 eval "ac_cv_lib_$ac_lib_var=no" 9588ac_cv_lib_nsl_gethostbyname=no
6423fi 9589fi
6424rm -f conftest* 9590rm -f conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
6425LIBS="$ac_save_LIBS" 9592LIBS=$ac_check_lib_save_LIBS
6426
6427fi 9593fi
6428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9594echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6429 echo "$ac_t""yes" 1>&6 9595echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9596if test $ac_cv_lib_nsl_gethostbyname = yes; then
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6431else
6432 echo "$ac_t""no" 1>&6
6433fi 9598fi
6434 9599
9600 if test $ac_cv_lib_nsl_gethostbyname = no; then
9601 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9602echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9603if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606 ac_check_lib_save_LIBS=$LIBS
9607LIBS="-lbsd $LIBS"
9608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614
9615/* Override any gcc2 internal prototype to avoid an error. */
9616#ifdef __cplusplus
9617extern "C"
9618#endif
9619/* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9621char gethostbyname ();
9622int
9623main ()
9624{
9625gethostbyname ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_bsd_gethostbyname=yes
9652else
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656ac_cv_lib_bsd_gethostbyname=no
9657fi
9658rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660LIBS=$ac_check_lib_save_LIBS
9661fi
9662echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9663echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9664if test $ac_cv_lib_bsd_gethostbyname = yes; then
9665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9666fi
9667
9668 fi
6435 fi 9669 fi
6436 9670
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9671 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT 9672 # 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 9673 # 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 9674 # on later versions), says Simon Leinen: it contains gethostby*
6441 # gethostby* variants that don't use the nameserver (or something). 9675 # variants that don't use the name server (or something). -lsocket
6442 # -lsocket must be given before -lnsl if both are needed. 9676 # must be given before -lnsl if both are needed. We assume that
6443 # We assume that if connect needs -lnsl, so does gethostbyname. 9677 # if connect needs -lnsl, so does gethostbyname.
9678 echo "$as_me:$LINENO: checking for connect" >&5
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6 9679echo $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 9680if test "${ac_cv_func_connect+set}" = set; then
6447 echo $ac_n "(cached) $ac_c" 1>&6 9681 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else 9682else
6449 cat > conftest.$ac_ext <<EOF 9683 cat >conftest.$ac_ext <<_ACEOF
6450#line 6451 "configure" 9684/* confdefs.h. */
6451#include "confdefs.h" 9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h. */
9689/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691#define connect innocuous_connect
9692
6452/* System header to define __stub macros and hopefully few prototypes, 9693/* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char connect(); below. */ 9694 which can conflict with char connect (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9697
9698#ifdef __STDC__
9699# include <limits.h>
9700#else
6454#include <assert.h> 9701# include <assert.h>
9702#endif
9703
9704#undef connect
9705
6455/* Override any gcc2 internal prototype to avoid an error. */ 9706/* Override any gcc2 internal prototype to avoid an error. */
9707#ifdef __cplusplus
9708extern "C"
9709{
9710#endif
6456/* We use char because int might match the return type of a gcc2 9711/* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */ 9712 builtin and then its argument prototype would still apply. */
6458char connect(); 9713char connect ();
6459
6460int main() {
6461
6462/* The GNU C library defines this for functions which it implements 9714/* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named 9715 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */ 9716 something starting with __ and the normal name is an alias. */
6465#if defined (__stub_connect) || defined (__stub___connect) 9717#if defined (__stub_connect) || defined (__stub___connect)
6466choke me 9718choke me
6467#else 9719#else
6468connect(); 9720char (*f) () = connect;
6469#endif 9721#endif
9722#ifdef __cplusplus
9723}
9724#endif
6470 9725
9726int
9727main ()
9728{
9729return f != connect;
9730 ;
6471; return 0; } 9731 return 0;
6472EOF 9732}
6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
9735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -rf conftest* 9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
6475 eval "ac_cv_func_connect=yes" 9755 ac_cv_func_connect=yes
6476else 9756else
6477 echo "configure: failed program was:" >&5 9757 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 9758sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -rf conftest* 9759
6480 eval "ac_cv_func_connect=no" 9760ac_cv_func_connect=no
6481fi 9761fi
6482rm -f conftest* 9762rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
6483fi 9764fi
6484 9765echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6485if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9766echo "${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 9767
6492 if test $ac_cv_func_connect = no; then 9768 if test $ac_cv_func_connect = no; then
9769 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9770echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6494echo "configure:6495: checking for connect in -lsocket" >&5 9771if 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 9772 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else 9773else
6499 ac_save_LIBS="$LIBS" 9774 ac_check_lib_save_LIBS=$LIBS
6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9775LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501cat > conftest.$ac_ext <<EOF 9776cat >conftest.$ac_ext <<_ACEOF
6502#line 6503 "configure" 9777/* confdefs.h. */
6503#include "confdefs.h" 9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782
6504/* Override any gcc2 internal prototype to avoid an error. */ 9783/* Override any gcc2 internal prototype to avoid an error. */
9784#ifdef __cplusplus
9785extern "C"
9786#endif
6505/* We use char because int might match the return type of a gcc2 9787/* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */ 9788 builtin and then its argument prototype would still apply. */
6507char connect(); 9789char connect ();
6508 9790int
6509int main() { 9791main ()
9792{
6510connect() 9793connect ();
9794 ;
6511; return 0; } 9795 return 0;
6512EOF 9796}
6513if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -rf conftest* 9803 rm -f conftest.er1
6515 eval "ac_cv_lib_$ac_lib_var=yes" 9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_lib_socket_connect=yes
6516else 9820else
6517 echo "configure: failed program was:" >&5 9821 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5 9822sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -rf conftest* 9823
6520 eval "ac_cv_lib_$ac_lib_var=no" 9824ac_cv_lib_socket_connect=no
6521fi 9825fi
6522rm -f conftest* 9826rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
6523LIBS="$ac_save_LIBS" 9828LIBS=$ac_check_lib_save_LIBS
6524
6525fi 9829fi
6526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9830echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6527 echo "$ac_t""yes" 1>&6 9831echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9832if test $ac_cv_lib_socket_connect = yes; then
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6529else
6530 echo "$ac_t""no" 1>&6
6531fi 9834fi
6532 9835
6533 fi 9836 fi
6534 9837
6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9838 # Guillermo Gomez says -lposix is necessary on A/UX.
9839 echo "$as_me:$LINENO: checking for remove" >&5
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6 9840echo $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 9841if test "${ac_cv_func_remove+set}" = set; then
6539 echo $ac_n "(cached) $ac_c" 1>&6 9842 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else 9843else
6541 cat > conftest.$ac_ext <<EOF 9844 cat >conftest.$ac_ext <<_ACEOF
6542#line 6543 "configure" 9845/* confdefs.h. */
6543#include "confdefs.h" 9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
9850/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852#define remove innocuous_remove
9853
6544/* System header to define __stub macros and hopefully few prototypes, 9854/* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char remove(); below. */ 9855 which can conflict with char remove (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9858
9859#ifdef __STDC__
9860# include <limits.h>
9861#else
6546#include <assert.h> 9862# include <assert.h>
9863#endif
9864
9865#undef remove
9866
6547/* Override any gcc2 internal prototype to avoid an error. */ 9867/* Override any gcc2 internal prototype to avoid an error. */
9868#ifdef __cplusplus
9869extern "C"
9870{
9871#endif
6548/* We use char because int might match the return type of a gcc2 9872/* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */ 9873 builtin and then its argument prototype would still apply. */
6550char remove(); 9874char remove ();
6551
6552int main() {
6553
6554/* The GNU C library defines this for functions which it implements 9875/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 9876 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 9877 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_remove) || defined (__stub___remove) 9878#if defined (__stub_remove) || defined (__stub___remove)
6558choke me 9879choke me
6559#else 9880#else
6560remove(); 9881char (*f) () = remove;
6561#endif 9882#endif
9883#ifdef __cplusplus
9884}
9885#endif
6562 9886
9887int
9888main ()
9889{
9890return f != remove;
9891 ;
6563; return 0; } 9892 return 0;
6564EOF 9893}
6565if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -rf conftest* 9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
6567 eval "ac_cv_func_remove=yes" 9916 ac_cv_func_remove=yes
6568else 9917else
6569 echo "configure: failed program was:" >&5 9918 echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5 9919sed 's/^/| /' conftest.$ac_ext >&5
6571 rm -rf conftest* 9920
6572 eval "ac_cv_func_remove=no" 9921ac_cv_func_remove=no
6573fi 9922fi
6574rm -f conftest* 9923rm -f conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
6575fi 9925fi
6576 9926echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6577if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9927echo "${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 9928
6584 if test $ac_cv_func_remove = no; then 9929 if test $ac_cv_func_remove = no; then
9930 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9931echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6586echo "configure:6587: checking for remove in -lposix" >&5 9932if 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 9933 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else 9934else
6591 ac_save_LIBS="$LIBS" 9935 ac_check_lib_save_LIBS=$LIBS
6592LIBS="-lposix $LIBS" 9936LIBS="-lposix $LIBS"
6593cat > conftest.$ac_ext <<EOF 9937cat >conftest.$ac_ext <<_ACEOF
6594#line 6595 "configure" 9938/* confdefs.h. */
6595#include "confdefs.h" 9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
6596/* Override any gcc2 internal prototype to avoid an error. */ 9944/* Override any gcc2 internal prototype to avoid an error. */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
6597/* We use char because int might match the return type of a gcc2 9948/* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */ 9949 builtin and then its argument prototype would still apply. */
6599char remove(); 9950char remove ();
6600 9951int
6601int main() { 9952main ()
9953{
6602remove() 9954remove ();
9955 ;
6603; return 0; } 9956 return 0;
6604EOF 9957}
6605if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -rf conftest* 9964 rm -f conftest.er1
6607 eval "ac_cv_lib_$ac_lib_var=yes" 9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_posix_remove=yes
6608else 9981else
6609 echo "configure: failed program was:" >&5 9982 echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 9983sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -rf conftest* 9984
6612 eval "ac_cv_lib_$ac_lib_var=no" 9985ac_cv_lib_posix_remove=no
6613fi 9986fi
6614rm -f conftest* 9987rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
6615LIBS="$ac_save_LIBS" 9989LIBS=$ac_check_lib_save_LIBS
6616
6617fi 9990fi
6618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9991echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6619 echo "$ac_t""yes" 1>&6 9992echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9993if test $ac_cv_lib_posix_remove = yes; then
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6621else
6622 echo "$ac_t""no" 1>&6
6623fi 9995fi
6624 9996
6625 fi 9997 fi
6626 9998
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9999 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10000 echo "$as_me:$LINENO: checking for shmat" >&5
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6 10001echo $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 10002if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ac_n "(cached) $ac_c" 1>&6 10003 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else 10004else
6633 cat > conftest.$ac_ext <<EOF 10005 cat >conftest.$ac_ext <<_ACEOF
6634#line 6635 "configure" 10006/* confdefs.h. */
6635#include "confdefs.h" 10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013#define shmat innocuous_shmat
10014
6636/* System header to define __stub macros and hopefully few prototypes, 10015/* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char shmat(); below. */ 10016 which can conflict with char shmat (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10019
10020#ifdef __STDC__
10021# include <limits.h>
10022#else
6638#include <assert.h> 10023# include <assert.h>
10024#endif
10025
10026#undef shmat
10027
6639/* Override any gcc2 internal prototype to avoid an error. */ 10028/* Override any gcc2 internal prototype to avoid an error. */
10029#ifdef __cplusplus
10030extern "C"
10031{
10032#endif
6640/* We use char because int might match the return type of a gcc2 10033/* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */ 10034 builtin and then its argument prototype would still apply. */
6642char shmat(); 10035char shmat ();
6643
6644int main() {
6645
6646/* The GNU C library defines this for functions which it implements 10036/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 10037 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 10038 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shmat) || defined (__stub___shmat) 10039#if defined (__stub_shmat) || defined (__stub___shmat)
6650choke me 10040choke me
6651#else 10041#else
6652shmat(); 10042char (*f) () = shmat;
6653#endif 10043#endif
10044#ifdef __cplusplus
10045}
10046#endif
6654 10047
10048int
10049main ()
10050{
10051return f != shmat;
10052 ;
6655; return 0; } 10053 return 0;
6656EOF 10054}
6657if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10055_ACEOF
10056rm -f conftest.$ac_objext conftest$ac_exeext
10057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -rf conftest* 10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
6659 eval "ac_cv_func_shmat=yes" 10077 ac_cv_func_shmat=yes
6660else 10078else
6661 echo "configure: failed program was:" >&5 10079 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 10080sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -rf conftest* 10081
6664 eval "ac_cv_func_shmat=no" 10082ac_cv_func_shmat=no
6665fi 10083fi
6666rm -f conftest* 10084rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
6667fi 10086fi
6668 10087echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10088echo "${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 10089
6676 if test $ac_cv_func_shmat = no; then 10090 if test $ac_cv_func_shmat = no; then
10091 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10092echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6678echo "configure:6679: checking for shmat in -lipc" >&5 10093if 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 10094 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else 10095else
6683 ac_save_LIBS="$LIBS" 10096 ac_check_lib_save_LIBS=$LIBS
6684LIBS="-lipc $LIBS" 10097LIBS="-lipc $LIBS"
6685cat > conftest.$ac_ext <<EOF 10098cat >conftest.$ac_ext <<_ACEOF
6686#line 6687 "configure" 10099/* confdefs.h. */
6687#include "confdefs.h" 10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104
6688/* Override any gcc2 internal prototype to avoid an error. */ 10105/* Override any gcc2 internal prototype to avoid an error. */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
6689/* We use char because int might match the return type of a gcc2 10109/* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */ 10110 builtin and then its argument prototype would still apply. */
6691char shmat(); 10111char shmat ();
6692 10112int
6693int main() { 10113main ()
10114{
6694shmat() 10115shmat ();
10116 ;
6695; return 0; } 10117 return 0;
6696EOF 10118}
6697if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10119_ACEOF
10120rm -f conftest.$ac_objext conftest$ac_exeext
10121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -rf conftest* 10125 rm -f conftest.er1
6699 eval "ac_cv_lib_$ac_lib_var=yes" 10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_ipc_shmat=yes
6700else 10142else
6701 echo "configure: failed program was:" >&5 10143 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5 10144sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -rf conftest* 10145
6704 eval "ac_cv_lib_$ac_lib_var=no" 10146ac_cv_lib_ipc_shmat=no
6705fi 10147fi
6706rm -f conftest* 10148rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
6707LIBS="$ac_save_LIBS" 10150LIBS=$ac_check_lib_save_LIBS
6708
6709fi 10151fi
6710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10152echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6711 echo "$ac_t""yes" 1>&6 10153echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10154if test $ac_cv_lib_ipc_shmat = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6713else
6714 echo "$ac_t""no" 1>&6
6715fi 10156fi
6716 10157
6717 fi 10158 fi
6718 fi 10159 fi
6719 10160
6720 # Check for libraries that X11R6 Xt/Xaw programs need. 10161 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS" 10162 ac_save_LDFLAGS=$LDFLAGS
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10163 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10164 # 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 10165 # 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. 10166 # 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 10167 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable. 10168 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10169 # John Interrante, Karl Berry
10170 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10171echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5 10172if 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 10173 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else 10174else
6735 ac_save_LIBS="$LIBS" 10175 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10176LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737cat > conftest.$ac_ext <<EOF 10177cat >conftest.$ac_ext <<_ACEOF
6738#line 6739 "configure" 10178/* confdefs.h. */
6739#include "confdefs.h" 10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
10183
6740/* Override any gcc2 internal prototype to avoid an error. */ 10184/* Override any gcc2 internal prototype to avoid an error. */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
6741/* We use char because int might match the return type of a gcc2 10188/* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */ 10189 builtin and then its argument prototype would still apply. */
6743char IceConnectionNumber(); 10190char IceConnectionNumber ();
6744 10191int
6745int main() { 10192main ()
10193{
6746IceConnectionNumber() 10194IceConnectionNumber ();
10195 ;
6747; return 0; } 10196 return 0;
6748EOF 10197}
6749if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10198_ACEOF
10199rm -f conftest.$ac_objext conftest$ac_exeext
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -rf conftest* 10204 rm -f conftest.er1
6751 eval "ac_cv_lib_$ac_lib_var=yes" 10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_ICE_IceConnectionNumber=yes
6752else 10221else
6753 echo "configure: failed program was:" >&5 10222 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5 10223sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -rf conftest* 10224
6756 eval "ac_cv_lib_$ac_lib_var=no" 10225ac_cv_lib_ICE_IceConnectionNumber=no
6757fi 10226fi
6758rm -f conftest* 10227rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
6759LIBS="$ac_save_LIBS" 10229LIBS=$ac_check_lib_save_LIBS
6760
6761fi 10230fi
6762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10231echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6763 echo "$ac_t""yes" 1>&6 10232echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10233if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10234 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6765else
6766 echo "$ac_t""no" 1>&6
6767fi 10235fi
6768 10236
6769 LDFLAGS="$ac_save_LDFLAGS" 10237 LDFLAGS=$ac_save_LDFLAGS
6770 10238
6771fi 10239fi
6772 10240
6773 10241
6774 10242
6775if test x$support_xpm = xyes; then 10243if test x$support_xpm = xyes; then
6776 10244
6777 10245
6778 10246
6779# Initialize some more variables set by options. 10247# Initialize some more variables set by options.
6780# The variables have the same names as the options, with 10248# The variables have the same names as the options, with
6781# dashes changed to underlines. 10249# dashes changed to underlines.
6782 10250
6783# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10251# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6784# paths, otherwise set no_xpm=yes. 10252# paths, otherwise set no_xpm=yes.
6785# Uses ac_ vars as temps to allow command line to override cache and checks. 10253# Uses ac_ vars as temps to allow command line to override cache and checks.
10254echo "$as_me:$LINENO: checking for libXpm" >&5
6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10255echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6787echo "configure:6788: checking for libXpm" >&5 10256
6788 10257
6789# Check whether --with-xpm_includes or --without-xpm_includes was given. 10258# Check whether --with-xpm_includes or --without-xpm_includes was given.
6790if test "${with_xpm_includes+set}" = set; then 10259if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes" 10260 withval="$with_xpm_includes"
6792 xpm_includes="$withval" 10261 xpm_includes="$withval"
6793else 10262else
6794 xpm_includes=NO 10263 xpm_includes=NO
6795fi 10264fi;
6796 10265
6797# Check whether --with-xpm_library or --without-xpm_library was given. 10266# Check whether --with-xpm_library or --without-xpm_library was given.
6798if test "${with_xpm_library+set}" = set; then 10267if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library" 10268 withval="$with_xpm_library"
6800 xpm_libraries="$withval" 10269 xpm_libraries="$withval"
6801else 10270else
6802 xpm_libraries=NO 10271 xpm_libraries=NO
6803fi 10272fi;
6804
6805 10273
6806# --without-xpm overrides everything else, but does not touch the cache. 10274# --without-xpm overrides everything else, but does not touch the cache.
10275
6807# Check whether --with-xpm or --without-xpm was given. 10276# Check whether --with-xpm or --without-xpm was given.
6808if test "${with_xpm+set}" = set; then 10277if test "${with_xpm+set}" = set; then
6809 withval="$with_xpm" 10278 withval="$with_xpm"
6810 : 10279
6811fi 10280fi;
6812
6813if test "$with_xpm" = no; then 10281if test "$with_xpm" = no; then
6814 have_xpm=disabled 10282 have_xpm=disabled
6815else 10283else
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10284 if test "${ac_cv_have_xpm+set}" = set; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 10285 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else 10286else
6819 10287
6820 vt_xpm_include_X11=no 10288 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then 10289 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes 10290 vt_xpm_includes=$xpm_includes
6823 else 10291 else
6824 vt_xpm_includes=NO 10292 vt_xpm_includes=NO
6834 10302
6835ac_save_CPPFLAGS="$CPPFLAGS" 10303ac_save_CPPFLAGS="$CPPFLAGS"
6836CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10304CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6837 10305
6838 # First, try using that file with no special directory specified. 10306 # First, try using that file with no special directory specified.
6839cat > conftest.$ac_ext <<EOF 10307cat >conftest.$ac_ext <<_ACEOF
6840#line 6841 "configure" 10308/* confdefs.h. */
6841#include "confdefs.h" 10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
6842#include <X11/xpm.h> 10313#include <X11/xpm.h>
6843EOF 10314_ACEOF
6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10315if { (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; } 10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_cxx_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10326 else
10327 ac_cpp_err=
10328 fi
10329else
10330 ac_cpp_err=yes
10331fi
6847if test -z "$ac_err"; then 10332if test -z "$ac_cpp_err"; then
6848 rm -rf conftest*
6849 # We can compile using X headers with no special include directory. 10333 # We can compile using X headers with no special include directory.
6850vt_xpm_includes= 10334vt_xpm_includes=
6851vt_xpm_include_X11=yes 10335vt_xpm_include_X11=yes
6852else 10336else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5 10337 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5 10338sed 's/^/| /' conftest.$ac_ext >&5
6856 rm -rf conftest* 10339
6857 CPPFLAGS="$ac_save_CPPFLAGS" 10340 CPPFLAGS="$ac_save_CPPFLAGS"
6858# Look for the header file in a standard set of common directories. 10341# Look for the header file in a standard set of common directories.
6859 for ac_dir in \ 10342 for ac_dir in \
6860 /usr/X11/include \ 10343 /usr/X11/include \
6861 /usr/X11R6/include \ 10344 /usr/X11R6/include \
6902 break 10385 break
6903 fi 10386 fi
6904 fi 10387 fi
6905 done 10388 done
6906fi 10389fi
6907rm -f conftest* 10390rm -f conftest.err conftest.$ac_ext
6908fi 10391fi
6909 10392
6910if test "$vt_xpm_libraries" = NO; then 10393if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries. 10394 # Check for the libraries.
6912 10395
6913 # See if we find them without any special options. 10396 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently. 10397 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS" 10398 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10399 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917cat > conftest.$ac_ext <<EOF 10400cat >conftest.$ac_ext <<_ACEOF
6918#line 6919 "configure" 10401/* confdefs.h. */
6919#include "confdefs.h" 10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h. */
6920 10406
6921int main() { 10407int
10408main ()
10409{
6922XpmReadFileToPixmap() 10410XpmReadFileToPixmap()
10411 ;
6923; return 0; } 10412 return 0;
6924EOF 10413}
6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
10416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -rf conftest* 10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
6927 LIBS="$ac_save_LIBS" 10436 LIBS="$ac_save_LIBS"
6928# We can link libXpm with no special library path. 10437# We can link libXpm with no special library path.
6929vt_xpm_libraries= 10438vt_xpm_libraries=
6930else 10439else
6931 echo "configure: failed program was:" >&5 10440 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 10441sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -rf conftest* 10442
6934 LIBS="$ac_save_LIBS" 10443LIBS="$ac_save_LIBS"
6935# First see if replacing the include by lib works. 10444# First see if replacing the include by lib works.
6936for ac_dir in \ 10445for ac_dir in \
6937 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10446 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6938 /usr/X11/lib \ 10447 /usr/X11/lib \
6939 /usr/X11R6/lib \ 10448 /usr/X11R6/lib \
6976 break 2 10485 break 2
6977 fi 10486 fi
6978 done 10487 done
6979done 10488done
6980fi 10489fi
6981rm -f conftest* 10490rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
6982fi 10492fi
6983 10493
6984 10494
6985 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10495 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6986 ac_cv_have_xpm="have_xpm=no" 10496 ac_cv_have_xpm="have_xpm=no"
6992fi 10502fi
6993 eval "$ac_cv_have_xpm" 10503 eval "$ac_cv_have_xpm"
6994fi 10504fi
6995 10505
6996if test "$have_xpm" != yes; then 10506if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6 10507 echo "$as_me:$LINENO: result: $have_xpm" >&5
10508echo "${ECHO_T}$have_xpm" >&6
6998 no_xpm=yes 10509 no_xpm=yes
6999else 10510else
7000 if test "$xpm_includes" != NO; then 10511 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then 10512 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then 10513 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes 10514 vt_xpm_include_X11=yes
7004 fi 10515 fi
7005 else 10516 else
7006 vt_xpm_include_X11=no 10517 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then 10518 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF 10519 cat >conftest.$ac_ext <<_ACEOF
7009#line 7010 "configure" 10520/* confdefs.h. */
7010#include "confdefs.h" 10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
7011#include <X11/xpm.h> 10525#include <X11/xpm.h>
7012EOF 10526_ACEOF
7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10527if { (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; } 10528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } >/dev/null; then
10535 if test -s conftest.err; then
10536 ac_cpp_err=$ac_cxx_preproc_warn_flag
10537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10538 else
10539 ac_cpp_err=
10540 fi
10541else
10542 ac_cpp_err=yes
10543fi
7016if test -z "$ac_err"; then 10544if test -z "$ac_cpp_err"; then
7017 rm -rf conftest*
7018 vt_xpm_include_X11=yes 10545 vt_xpm_include_X11=yes
7019else 10546else
7020 echo "$ac_err" >&5
7021 echo "configure: failed program was:" >&5 10547 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5 10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
7023fi 10551fi
7024rm -f conftest* 10552rm -f conftest.err conftest.$ac_ext
7025 else 10553 else
7026 if test -r "$xpm_includes/X11/xpm.h"; then 10554 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes 10555 vt_xpm_include_X11=yes
7028 fi 10556 fi
7029 fi 10557 fi
7036 # Update the cache value to reflect the command line values. 10564 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \ 10565 ac_cv_have_xpm="have_xpm=yes \
7038 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10566 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7039 vt_xpm_include_X11=$vt_xpm_include_X11" 10567 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 eval "$ac_cv_have_xpm" 10568 eval "$ac_cv_have_xpm"
10569 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 10570echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7042 if test -n "$vt_xpm_includes"; then 10571 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10572 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7044 fi 10573 fi
7045 if test -n "$vt_xpm_includes"; then 10574 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes" 10575 XPM_CFLAGS="-I$vt_xpm_includes"
7048 XPM_LIBS="-lXpm" 10577 XPM_LIBS="-lXpm"
7049 if test -n "$vt_xpm_libraries"; then 10578 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10579 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7051 fi 10580 fi
7052 if test "x$vt_xpm_include_X11" = xyes; then 10581 if test "x$vt_xpm_include_X11" = xyes; then
10582
7053 cat >> confdefs.h <<\EOF 10583cat >>confdefs.h <<\_ACEOF
7054#define XPM_INC_X11 1 10584#define XPM_INC_X11 1
7055EOF 10585_ACEOF
7056 10586
7057 fi 10587 fi
7058fi 10588fi
7059 10589
7060 10590
7064 if test x$no_xpm = xyes; then 10594 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification 10595 support_xpm=needsmanualspecification
7066 fi 10596 fi
7067fi 10597fi
7068 10598
10599echo "$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 10600echo $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 10601if test "${ac_cv_header_sys_wait_h+set}" = set; then
7072 echo $ac_n "(cached) $ac_c" 1>&6 10602 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else 10603else
7074 cat > conftest.$ac_ext <<EOF 10604 cat >conftest.$ac_ext <<_ACEOF
7075#line 7076 "configure" 10605/* confdefs.h. */
7076#include "confdefs.h" 10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
7077#include <sys/types.h> 10610#include <sys/types.h>
7078#include <sys/wait.h> 10611#include <sys/wait.h>
7079#ifndef WEXITSTATUS 10612#ifndef WEXITSTATUS
7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10613# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7081#endif 10614#endif
7082#ifndef WIFEXITED 10615#ifndef WIFEXITED
7083#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10616# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7084#endif 10617#endif
7085int main() { 10618
10619int
10620main ()
10621{
7086int s; 10622 int s;
7087wait (&s); 10623 wait (&s);
7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10625 ;
7089; return 0; } 10626 return 0;
7090EOF 10627}
7091if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10628_ACEOF
10629rm -f conftest.$ac_objext
10630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -rf conftest* 10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
7093 ac_cv_header_sys_wait_h=yes 10650 ac_cv_header_sys_wait_h=yes
7094else 10651else
7095 echo "configure: failed program was:" >&5 10652 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 10653sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -rf conftest* 10654
7098 ac_cv_header_sys_wait_h=no 10655ac_cv_header_sys_wait_h=no
7099fi 10656fi
7100rm -f conftest* 10657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi 10658fi
7102 10659echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7103echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10660echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7104if test $ac_cv_header_sys_wait_h = yes; then 10661if test $ac_cv_header_sys_wait_h = yes; then
10662
7105 cat >> confdefs.h <<\EOF 10663cat >>confdefs.h <<\_ACEOF
7106#define HAVE_SYS_WAIT_H 1 10664#define HAVE_SYS_WAIT_H 1
7107EOF 10665_ACEOF
7108 10666
7109fi 10667fi
7110 10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
7111for ac_hdr in \ 10688for ac_header in \
7112 assert.h \ 10689 assert.h \
7113 fcntl.h \ 10690 fcntl.h \
7114 grp.h \ 10691 grp.h \
7115 libc.h \ 10692 libc.h \
7116 lastlog.h \ 10693 lastlog.h \
7128 utmp.h \ 10705 utmp.h \
7129 utmpx.h \ 10706 utmpx.h \
7130 stdint.h \ 10707 stdint.h \
7131 10708
7132do 10709do
7133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135echo "configure:7136: checking for $ac_hdr" >&5 10714if 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 10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716fi
10717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138else 10719else
10720 # Is the header compilable?
10721echo "$as_me:$LINENO: checking $ac_header usability" >&5
10722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat > conftest.$ac_ext <<EOF 10723cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 10724/* confdefs.h. */
7141#include "confdefs.h" 10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h. */
10729$ac_includes_default
7142#include <$ac_hdr> 10730#include <$ac_header>
7143EOF 10731_ACEOF
7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10732rm -f conftest.$ac_objext
7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10734 (eval $ac_compile) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } &&
10747 { ac_try='test -s conftest.$ac_objext'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10754else
10755 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
10758ac_header_compiler=no
10759fi
10760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10762echo "${ECHO_T}$ac_header_compiler" >&6
10763
10764# Is the header present?
10765echo "$as_me:$LINENO: checking $ac_header presence" >&5
10766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10767cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
10773#include <$ac_header>
10774_ACEOF
10775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null; then
10783 if test -s conftest.err; then
10784 ac_cpp_err=$ac_cxx_preproc_warn_flag
10785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10786 else
10787 ac_cpp_err=
10788 fi
10789else
10790 ac_cpp_err=yes
10791fi
7147if test -z "$ac_err"; then 10792if test -z "$ac_cpp_err"; then
7148 rm -rf conftest* 10793 ac_header_preproc=yes
7149 eval "ac_cv_header_$ac_safe=yes"
7150else 10794else
7151 echo "$ac_err" >&5
7152 echo "configure: failed program was:" >&5 10795 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 10796sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -rf conftest* 10797
7155 eval "ac_cv_header_$ac_safe=no" 10798 ac_header_preproc=no
7156fi 10799fi
7157rm -f conftest* 10800rm -f conftest.err conftest.$ac_ext
10801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10802echo "${ECHO_T}$ac_header_preproc" >&6
10803
10804# So? What about this header?
10805case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10806 yes:no: )
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10811 ac_header_preproc=yes
10812 ;;
10813 no:yes:* )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10826 (
10827 cat <<\_ASBOX
10828## ------------------------------------------ ##
10829## Report this to the AC_PACKAGE_NAME lists. ##
10830## ------------------------------------------ ##
10831_ASBOX
10832 ) |
10833 sed "s/^/$as_me: WARNING: /" >&2
10834 ;;
10835esac
10836echo "$as_me:$LINENO: checking for $ac_header" >&5
10837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10838if eval "test \"\${$as_ac_Header+set}\" = set"; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 eval "$as_ac_Header=\$ac_header_preproc"
7158fi 10842fi
7159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "$ac_t""yes" 1>&6 10844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10845
10846fi
10847if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >> confdefs.h <<EOF 10848 cat >>confdefs.h <<_ACEOF
7163#define $ac_tr_hdr 1 10849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164EOF 10850_ACEOF
7165 10851
7166else
7167 echo "$ac_t""no" 1>&6
7168fi 10852fi
10853
7169done 10854done
7170 10855
7171 10856
10857echo "$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 10858echo $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 10859if test "${ac_cv_header_time+set}" = set; then
7175 echo $ac_n "(cached) $ac_c" 1>&6 10860 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else 10861else
7177 cat > conftest.$ac_ext <<EOF 10862 cat >conftest.$ac_ext <<_ACEOF
7178#line 7179 "configure" 10863/* confdefs.h. */
7179#include "confdefs.h" 10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
7180#include <sys/types.h> 10868#include <sys/types.h>
7181#include <sys/time.h> 10869#include <sys/time.h>
7182#include <time.h> 10870#include <time.h>
7183int main() { 10871
7184struct tm *tp; 10872int
10873main ()
10874{
10875if ((struct tm *) 0)
10876return 0;
10877 ;
7185; return 0; } 10878 return 0;
7186EOF 10879}
7187if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10880_ACEOF
10881rm -f conftest.$ac_objext
10882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10883 (eval $ac_compile) 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -rf conftest* 10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
7189 ac_cv_header_time=yes 10902 ac_cv_header_time=yes
7190else 10903else
7191 echo "configure: failed program was:" >&5 10904 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 10905sed 's/^/| /' conftest.$ac_ext >&5
7193 rm -rf conftest* 10906
7194 ac_cv_header_time=no 10907ac_cv_header_time=no
7195fi 10908fi
7196rm -f conftest* 10909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi 10910fi
7198 10911echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7199echo "$ac_t""$ac_cv_header_time" 1>&6 10912echo "${ECHO_T}$ac_cv_header_time" >&6
7200if test $ac_cv_header_time = yes; then 10913if test $ac_cv_header_time = yes; then
10914
7201 cat >> confdefs.h <<\EOF 10915cat >>confdefs.h <<\_ACEOF
7202#define TIME_WITH_SYS_TIME 1 10916#define TIME_WITH_SYS_TIME 1
7203EOF 10917_ACEOF
7204 10918
7205fi 10919fi
7206 10920
7207 10921
10922echo "$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 10923echo $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 10924if test "${rxvt_cv_header_sysioctl+set}" = set; then
7211 echo $ac_n "(cached) $ac_c" 1>&6 10925 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else 10926else
7213 cat > conftest.$ac_ext <<EOF 10927 cat >conftest.$ac_ext <<_ACEOF
7214#line 7215 "configure" 10928/* confdefs.h. */
7215#include "confdefs.h" 10929_ACEOF
10930cat confdefs.h >>conftest.$ac_ext
10931cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */
7216#include <stdio.h> 10933#include <stdio.h>
7217#include <sys/ioctl.h> 10934#include <sys/ioctl.h>
7218#ifdef HAVE_TERMIOS_H 10935#ifdef HAVE_TERMIOS_H
7219#include <termios.h> 10936#include <termios.h>
7220#endif 10937#endif
7221int main() { 10938int
10939main ()
10940{
7222int a = ECHO; 10941int a = ECHO;
10942 ;
7223; return 0; } 10943 return 0;
7224EOF 10944}
7225if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10945_ACEOF
10946rm -f conftest.$ac_objext
10947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -rf conftest* 10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest.$ac_objext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
7227 rxvt_cv_header_sysioctl=yes 10967 rxvt_cv_header_sysioctl=yes
7228else 10968else
7229 echo "configure: failed program was:" >&5 10969 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 10970sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest* 10971
7232 rxvt_cv_header_sysioctl=no 10972rxvt_cv_header_sysioctl=no
7233fi 10973fi
7234rm -f conftest* 10974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi 10975fi
7236 10976echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7237echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10977echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7238 10978
7239if test -n "$GCC"; then 10979if test -n "$GCC"; then
7240 LDARG="-Wl," 10980 LDARG="-Wl,"
7241else 10981else
7242 LDARG="" 10982 LDARG=""
7245 10985
7246ac_save_CFLAGS=$CFLAGS 10986ac_save_CFLAGS=$CFLAGS
7247ac_save_LIBS=$LIBS 10987ac_save_LIBS=$LIBS
7248CFLAGS="$CFLAGS $X_CFLAGS" 10988CFLAGS="$CFLAGS $X_CFLAGS"
7249LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10989LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10990echo "$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 10991echo $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 10992if test "${rxvt_cv_rpath+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 10993 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 10994else
7255 if test "$cross_compiling" = yes; then 10995 if test "$cross_compiling" = yes; then
10996 { 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 10997echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7257else 10998else
7258 cat > conftest.$ac_ext <<EOF 10999 cat >conftest.$ac_ext <<_ACEOF
7259#line 7260 "configure" 11000/* confdefs.h. */
7260#include "confdefs.h" 11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
7261 11005
7262main() 11006main()
7263{ 11007{
7264 exit(0); 11008 exit(0);
7265 (void) XOpenDisplay("foobar"); 11009 (void) XOpenDisplay("foobar");
7266} 11010}
7267EOF 11011_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 11012rm -f conftest$ac_exeext
7269then 11013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
7270 rxvt_cv_rpath=yes 11023 rxvt_cv_rpath=yes
7271else 11024else
11025 echo "$as_me: program exited with status $ac_status" >&5
7272 echo "configure: failed program was:" >&5 11026echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 11027sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -fr conftest* 11028
11029( exit $ac_status )
7275 rxvt_cv_rpath=no 11030rxvt_cv_rpath=no
7276fi 11031fi
7277rm -fr conftest* 11032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278fi 11033fi
7279
7280fi 11034fi
7281 11035echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7282echo "$ac_t""$rxvt_cv_rpath" 1>&6 11036echo "${ECHO_T}$rxvt_cv_rpath" >&6
7283if test x$rxvt_cv_rpath != xyes; then 11037if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11038 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"` 11039 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11040 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 11041echo $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 11042if test "${rxvt_cv_R+set}" = set; then
7289 echo $ac_n "(cached) $ac_c" 1>&6 11043 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else 11044else
7291 if test "$cross_compiling" = yes; then 11045 if test "$cross_compiling" = yes; then
7292 rxvt_cv_R=no 11046 rxvt_cv_R=no
7293else 11047else
7294 cat > conftest.$ac_ext <<EOF 11048 cat >conftest.$ac_ext <<_ACEOF
7295#line 7296 "configure" 11049/* confdefs.h. */
7296#include "confdefs.h" 11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
7297 11054
7298main() 11055main()
7299{ 11056{
7300 exit(0); 11057 exit(0);
7301 (void) XOpenDisplay("foobar"); 11058 (void) XOpenDisplay("foobar");
7302} 11059}
7303EOF 11060_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 11061rm -f conftest$ac_exeext
7305then 11062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
7306 rxvt_cv_R=yes 11072 rxvt_cv_R=yes
7307else 11073else
11074 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "configure: failed program was:" >&5 11075echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5 11076sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -fr conftest* 11077
11078( exit $ac_status )
7311 rxvt_cv_R=no 11079rxvt_cv_R=no
7312fi 11080fi
7313rm -fr conftest* 11081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7314fi 11082fi
7315
7316fi 11083fi
7317 11084echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7318echo "$ac_t""$rxvt_cv_R" 1>&6 11085echo "${ECHO_T}$rxvt_cv_R" >&6
7319 if test x$rxvt_cv_R != xyes; then 11086 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11087 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7321 fi 11088 fi
7322fi 11089fi
7323 11090
11091echo "$as_me:$LINENO: checking for XPointer" >&5
7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11092echo $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 11093if test "${rxvt_cv_xpointer+set}" = set; then
7327 echo $ac_n "(cached) $ac_c" 1>&6 11094 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else 11095else
7329 cat > conftest.$ac_ext <<EOF 11096 cat >conftest.$ac_ext <<_ACEOF
7330#line 7331 "configure" 11097/* confdefs.h. */
7331#include "confdefs.h" 11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
7332#include <X11/Xlib.h> 11102#include <X11/Xlib.h>
7333int main() { 11103int
11104main ()
11105{
7334XPointer dummy; 11106XPointer dummy;
11107 ;
7335; return 0; } 11108 return 0;
7336EOF 11109}
7337if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11110_ACEOF
11111rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -rf conftest* 11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } &&
11126 { ac_try='test -s conftest.$ac_objext'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
7339 rxvt_cv_xpointer=yes 11132 rxvt_cv_xpointer=yes
7340else 11133else
7341 echo "configure: failed program was:" >&5 11134 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5 11135sed 's/^/| /' conftest.$ac_ext >&5
7343 rm -rf conftest* 11136
7344 rxvt_cv_xpointer=no 11137rxvt_cv_xpointer=no
7345fi 11138fi
7346rm -f conftest* 11139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi 11140fi
7348 11141echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7349echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11142echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7350if test x$rxvt_cv_xpointer = xyes; then 11143if test x$rxvt_cv_xpointer = xyes; then
11144
7351 cat >> confdefs.h <<\EOF 11145cat >>confdefs.h <<\_ACEOF
7352#define HAVE_XPOINTER 1 11146#define HAVE_XPOINTER 1
7353EOF 11147_ACEOF
7354 11148
7355fi 11149fi
7356LIBS=$ac_save_LIBS 11150LIBS=$ac_save_LIBS
7357CFLAGS=$ac_save_CFLAGS 11151CFLAGS=$ac_save_CFLAGS
7358 11152
7359 11153
7360echo $ac_n "checking for working const""... $ac_c" 1>&6 11154echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361echo "configure:7362: checking for working const" >&5 11155echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11156if test "${ac_cv_c_const+set}" = set; then
7363 echo $ac_n "(cached) $ac_c" 1>&6 11157 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else 11158else
7365 cat > conftest.$ac_ext <<EOF 11159 cat >conftest.$ac_ext <<_ACEOF
7366#line 7367 "configure" 11160/* confdefs.h. */
7367#include "confdefs.h" 11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
7368 11165
7369int main() { 11166int
7370 11167main ()
11168{
11169/* FIXME: Include the comments suggested by Paul. */
11170#ifndef __cplusplus
7371/* Ultrix mips cc rejects this. */ 11171 /* Ultrix mips cc rejects this. */
7372typedef int charset[2]; const charset x; 11172 typedef int charset[2];
11173 const charset x;
7373/* SunOS 4.1.1 cc rejects this. */ 11174 /* SunOS 4.1.1 cc rejects this. */
7374char const *const *ccp; 11175 char const *const *ccp;
7375char **p; 11176 char **p;
7376/* NEC SVR4.0.2 mips cc rejects this. */ 11177 /* NEC SVR4.0.2 mips cc rejects this. */
7377struct point {int x, y;}; 11178 struct point {int x, y;};
7378static struct point const zero = {0,0}; 11179 static struct point const zero = {0,0};
7379/* AIX XL C 1.02.0.0 rejects this. 11180 /* 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 11181 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 */ 11182 an arm of an if-expression whose if-part is not a constant
11183 expression */
7382const char *g = "string"; 11184 const char *g = "string";
7383ccp = &g + (g ? g-g : 0); 11185 ccp = &g + (g ? g-g : 0);
7384/* HPUX 7.0 cc rejects these. */ 11186 /* HPUX 7.0 cc rejects these. */
7385++ccp; 11187 ++ccp;
7386p = (char**) ccp; 11188 p = (char**) ccp;
7387ccp = (char const *const *) p; 11189 ccp = (char const *const *) p;
7388{ /* SCO 3.2v4 cc rejects this. */ 11190 { /* SCO 3.2v4 cc rejects this. */
7389 char *t; 11191 char *t;
7390 char const *s = 0 ? (char *) 0 : (char const *) 0; 11192 char const *s = 0 ? (char *) 0 : (char const *) 0;
7391 11193
7392 *t++ = 0; 11194 *t++ = 0;
11195 }
11196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11197 int x[] = {25, 17};
11198 const int *foo = &x[0];
11199 ++foo;
11200 }
11201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11202 typedef const int *iptr;
11203 iptr p = 0;
11204 ++p;
11205 }
11206 { /* AIX XL C 1.02.0.0 rejects this saying
11207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11208 struct s { int j; const int *ap[3]; };
11209 struct s *b; b->j = 5;
11210 }
11211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11212 const int foo = 10;
11213 }
11214#endif
11215
11216 ;
11217 return 0;
7393} 11218}
7394{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11219_ACEOF
7395 int x[] = {25, 17}; 11220rm -f conftest.$ac_objext
7396 const int *foo = &x[0]; 11221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 ++foo; 11222 (eval $ac_compile) 2>conftest.er1
7398} 11223 ac_status=$?
7399{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11224 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* 11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
7417 ac_cv_c_const=yes 11241 ac_cv_c_const=yes
7418else 11242else
7419 echo "configure: failed program was:" >&5 11243 echo "$as_me: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 11244sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -rf conftest* 11245
7422 ac_cv_c_const=no 11246ac_cv_c_const=no
7423fi 11247fi
7424rm -f conftest* 11248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi 11249fi
7426 11250echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7427echo "$ac_t""$ac_cv_c_const" 1>&6 11251echo "${ECHO_T}$ac_cv_c_const" >&6
7428if test $ac_cv_c_const = no; then 11252if test $ac_cv_c_const = no; then
11253
7429 cat >> confdefs.h <<\EOF 11254cat >>confdefs.h <<\_ACEOF
7430#define const 11255#define const
7431EOF 11256_ACEOF
7432 11257
7433fi 11258fi
7434 11259
11260echo "$as_me:$LINENO: checking for inline" >&5
7435echo $ac_n "checking for inline""... $ac_c" 1>&6 11261echo $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 11262if test "${ac_cv_c_inline+set}" = set; then
7438 echo $ac_n "(cached) $ac_c" 1>&6 11263 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 11264else
7440 ac_cv_c_inline=no 11265 ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do 11266for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF 11267 cat >conftest.$ac_ext <<_ACEOF
7443#line 7444 "configure" 11268/* confdefs.h. */
7444#include "confdefs.h" 11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#ifndef __cplusplus
11274typedef int foo_t;
11275static $ac_kw foo_t static_foo () {return 0; }
11276$ac_kw foo_t foo () {return 0; }
11277#endif
7445 11278
7446int main() { 11279_ACEOF
7447} $ac_kw foo() { 11280rm -f conftest.$ac_objext
7448; return 0; } 11281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449EOF 11282 (eval $ac_compile) 2>conftest.er1
7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -rf conftest* 11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
7452 ac_cv_c_inline=$ac_kw; break 11301 ac_cv_c_inline=$ac_kw; break
7453else 11302else
7454 echo "configure: failed program was:" >&5 11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
11306fi
11307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308done
11309
11310fi
11311echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11312echo "${ECHO_T}$ac_cv_c_inline" >&6
11313
11314
11315case $ac_cv_c_inline in
11316 inline | yes) ;;
11317 *)
11318 case $ac_cv_c_inline in
11319 no) ac_val=;;
11320 *) ac_val=$ac_cv_c_inline;;
11321 esac
11322 cat >>confdefs.h <<_ACEOF
11323#ifndef __cplusplus
11324#define inline $ac_val
11325#endif
11326_ACEOF
11327 ;;
11328esac
11329
11330
11331
11332echo "$as_me:$LINENO: checking for mode_t" >&5
11333echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11334if test "${ac_cv_type_mode_t+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343$ac_includes_default
11344int
11345main ()
11346{
11347if ((mode_t *) 0)
11348 return 0;
11349if (sizeof (mode_t))
11350 return 0;
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
7455 cat conftest.$ac_ext >&5 11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_type_mode_t=yes
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381ac_cv_type_mode_t=no
11382fi
11383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384fi
11385echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11386echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11387if test $ac_cv_type_mode_t = yes; then
11388 :
11389else
11390
11391cat >>confdefs.h <<_ACEOF
11392#define mode_t int
11393_ACEOF
11394
11395fi
11396
11397echo "$as_me:$LINENO: checking for pid_t" >&5
11398echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11399if test "${ac_cv_type_pid_t+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409int
11410main ()
11411{
11412if ((pid_t *) 0)
11413 return 0;
11414if (sizeof (pid_t))
11415 return 0;
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_type_pid_t=yes
11442else
11443 echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446ac_cv_type_pid_t=no
11447fi
11448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11451echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11452if test $ac_cv_type_pid_t = yes; then
11453 :
11454else
11455
11456cat >>confdefs.h <<_ACEOF
11457#define pid_t int
11458_ACEOF
11459
11460fi
11461
11462echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11463echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11464if test "${ac_cv_type_uid_t+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473#include <sys/types.h>
11474
11475_ACEOF
11476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 $EGREP "uid_t" >/dev/null 2>&1; then
11478 ac_cv_type_uid_t=yes
11479else
11480 ac_cv_type_uid_t=no
7456fi 11481fi
7457rm -f conftest* 11482rm -f conftest*
11483
11484fi
11485echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11486echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11487if test $ac_cv_type_uid_t = no; then
11488
11489cat >>confdefs.h <<\_ACEOF
11490#define uid_t int
11491_ACEOF
11492
11493
11494cat >>confdefs.h <<\_ACEOF
11495#define gid_t int
11496_ACEOF
11497
11498fi
11499
11500
11501
11502echo "$as_me:$LINENO: checking for char" >&5
11503echo $ECHO_N "checking for char... $ECHO_C" >&6
11504if test "${ac_cv_type_char+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if ((char *) 0)
11518 return 0;
11519if (sizeof (char))
11520 return 0;
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_type_char=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_type_char=no
11552fi
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11556echo "${ECHO_T}$ac_cv_type_char" >&6
11557
11558echo "$as_me:$LINENO: checking size of char" >&5
11559echo $ECHO_N "checking size of char... $ECHO_C" >&6
11560if test "${ac_cv_sizeof_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test "$ac_cv_type_char" = yes; then
11564 # The cast to unsigned long works around a bug in the HP C Compiler
11565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11567 # This bug is HP SR number 8606223364.
11568 if test "$cross_compiling" = yes; then
11569 # Depending upon the size, compute the lo and hi bounds.
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576$ac_includes_default
11577int
11578main ()
11579{
11580static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11581test_array [0] = 0
11582
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_lo=0 ac_mid=0
11609 while :; do
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_hi=$ac_mid; break
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653ac_lo=`expr $ac_mid + 1`
11654 if test $ac_lo -le $ac_mid; then
11655 ac_lo= ac_hi=
11656 break
11657 fi
11658 ac_mid=`expr 2 '*' $ac_mid + 1`
11659fi
11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11677test_array [0] = 0
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_hi=-1 ac_mid=-1
11705 while :; do
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_lo=$ac_mid; break
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_hi=`expr '(' $ac_mid ')' - 1`
11750 if test $ac_mid -le $ac_hi; then
11751 ac_lo= ac_hi=
11752 break
11753 fi
11754 ac_mid=`expr 2 '*' $ac_mid`
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762ac_lo= ac_hi=
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767# Binary search between lo and hi bounds.
11768while test "x$ac_lo" != "x$ac_hi"; do
11769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr '(' $ac_mid ')' + 1`
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458done 11816done
7459 11817case $ac_lo in
7460fi 11818?*) ac_cv_sizeof_char=$ac_lo;;
7461 11819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7462echo "$ac_t""$ac_cv_c_inline" 1>&6 11820See \`config.log' for more details." >&5
7463case "$ac_cv_c_inline" in 11821echo "$as_me: error: cannot compute sizeof (char), 77
7464 inline | yes) ;; 11822See \`config.log' for more details." >&2;}
7465 no) cat >> confdefs.h <<\EOF 11823 { (exit 1); exit 1; }; } ;;
7466#define inline
7467EOF
7468 ;;
7469 *) cat >> confdefs.h <<EOF
7470#define inline $ac_cv_c_inline
7471EOF
7472 ;;
7473esac 11824esac
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 11825else
11826 if test "$cross_compiling" = yes; then
11827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11828echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11829 { (exit 1); exit 1; }; }
11830else
7482 cat > conftest.$ac_ext <<EOF 11831 cat >conftest.$ac_ext <<_ACEOF
7483#line 7484 "configure" 11832/* confdefs.h. */
7484#include "confdefs.h" 11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838long longval () { return (long) (sizeof (char)); }
11839unsigned long ulongval () { return (long) (sizeof (char)); }
11840#include <stdio.h>
7485#include <stdlib.h> 11841#include <stdlib.h>
7486#include <stdarg.h> 11842int
7487#include <string.h> 11843main ()
7488#include <float.h> 11844{
7489EOF 11845
7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11846 FILE *f = fopen ("conftest.val", "w");
7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11847 if (! f)
7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11848 exit (1);
7493if test -z "$ac_err"; then 11849 if (((long) (sizeof (char))) < 0)
7494 rm -rf conftest* 11850 {
7495 ac_cv_header_stdc=yes 11851 long i = longval ();
11852 if (i != ((long) (sizeof (char))))
11853 exit (1);
11854 fprintf (f, "%ld\n", i);
11855 }
7496else 11856 else
7497 echo "$ac_err" >&5 11857 {
11858 unsigned long i = ulongval ();
11859 if (i != ((long) (sizeof (char))))
11860 exit (1);
11861 fprintf (f, "%lu\n", i);
11862 }
11863 exit (ferror (f) || fclose (f) != 0);
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_sizeof_char=`cat conftest.val`
11881else
11882 echo "$as_me: program exited with status $ac_status" >&5
7498 echo "configure: failed program was:" >&5 11883echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5 11884sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -rf conftest* 11885
7501 ac_cv_header_stdc=no 11886( exit $ac_status )
11887{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11888See \`config.log' for more details." >&5
11889echo "$as_me: error: cannot compute sizeof (char), 77
11890See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
7502fi 11892fi
11893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11894fi
11895fi
7503rm -f conftest* 11896rm -f conftest.val
11897else
11898 ac_cv_sizeof_char=0
11899fi
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11902echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11903cat >>confdefs.h <<_ACEOF
11904#define SIZEOF_CHAR $ac_cv_sizeof_char
11905_ACEOF
7504 11906
11907
11908echo "$as_me:$LINENO: checking for short" >&5
11909echo $ECHO_N "checking for short... $ECHO_C" >&6
11910if test "${ac_cv_type_short+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919$ac_includes_default
11920int
11921main ()
11922{
11923if ((short *) 0)
11924 return 0;
11925if (sizeof (short))
11926 return 0;
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_type_short=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957ac_cv_type_short=no
11958fi
11959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960fi
11961echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11962echo "${ECHO_T}$ac_cv_type_short" >&6
11963
11964echo "$as_me:$LINENO: checking size of short" >&5
11965echo $ECHO_N "checking size of short... $ECHO_C" >&6
11966if test "${ac_cv_sizeof_short+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else
7505if test $ac_cv_header_stdc = yes; then 11969 if test "$ac_cv_type_short" = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11970 # The cast to unsigned long works around a bug in the HP C Compiler
11971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11973 # This bug is HP SR number 8606223364.
11974 if test "$cross_compiling" = yes; then
11975 # Depending upon the size, compute the lo and hi bounds.
7507cat > conftest.$ac_ext <<EOF 11976cat >conftest.$ac_ext <<_ACEOF
7508#line 7509 "configure" 11977/* confdefs.h. */
7509#include "confdefs.h" 11978_ACEOF
7510#include <string.h> 11979cat confdefs.h >>conftest.$ac_ext
7511EOF 11980cat >>conftest.$ac_ext <<_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11981/* end confdefs.h. */
7513 egrep "memchr" >/dev/null 2>&1; then 11982$ac_includes_default
7514 : 11983int
7515else 11984main ()
11985{
11986static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11987test_array [0] = 0
11988
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -rf conftest* 11998 rm -f conftest.er1
7517 ac_cv_header_stdc=no 11999 cat conftest.err >&5
7518fi 12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_lo=0 ac_mid=0
12015 while :; do
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022$ac_includes_default
12023int
12024main ()
12025{
12026static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12027test_array [0] = 0
12028
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033rm -f conftest.$ac_objext
12034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
7519rm -f conftest* 12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_hi=$ac_mid; break
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
7520 12058
12059ac_lo=`expr $ac_mid + 1`
12060 if test $ac_lo -le $ac_mid; then
12061 ac_lo= ac_hi=
12062 break
12063 fi
12064 ac_mid=`expr 2 '*' $ac_mid + 1`
7521fi 12065fi
12066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12067 done
12068else
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
7522 12071
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 12072cat >conftest.$ac_ext <<_ACEOF
7526#line 7527 "configure" 12073/* confdefs.h. */
7527#include "confdefs.h" 12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079int
12080main ()
12081{
12082static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12083test_array [0] = 0
12084
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext
12090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_hi=-1 ac_mid=-1
12111 while :; do
12112 cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118$ac_includes_default
12119int
12120main ()
12121{
12122static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12123test_array [0] = 0
12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
12130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_lo=$ac_mid; break
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155ac_hi=`expr '(' $ac_mid ')' - 1`
12156 if test $ac_mid -le $ac_hi; then
12157 ac_lo= ac_hi=
12158 break
12159 fi
12160 ac_mid=`expr 2 '*' $ac_mid`
12161fi
12162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12163 done
12164else
12165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
12168ac_lo= ac_hi=
12169fi
12170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12171fi
12172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12173# Binary search between lo and hi bounds.
12174while test "x$ac_lo" != "x$ac_hi"; do
12175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12176 cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
12181/* end confdefs.h. */
12182$ac_includes_default
12183int
12184main ()
12185{
12186static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12187test_array [0] = 0
12188
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext
12194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_hi=$ac_mid
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219ac_lo=`expr '(' $ac_mid ')' + 1`
12220fi
12221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222done
12223case $ac_lo in
12224?*) ac_cv_sizeof_short=$ac_lo;;
12225'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12226See \`config.log' for more details." >&5
12227echo "$as_me: error: cannot compute sizeof (short), 77
12228See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; } ;;
12230esac
12231else
12232 if test "$cross_compiling" = yes; then
12233 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12234echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12235 { (exit 1); exit 1; }; }
12236else
12237 cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
12243$ac_includes_default
12244long longval () { return (long) (sizeof (short)); }
12245unsigned long ulongval () { return (long) (sizeof (short)); }
12246#include <stdio.h>
7528#include <stdlib.h> 12247#include <stdlib.h>
7529EOF 12248int
7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12249main ()
7531 egrep "free" >/dev/null 2>&1; then 12250{
7532 : 12251
12252 FILE *f = fopen ("conftest.val", "w");
12253 if (! f)
12254 exit (1);
12255 if (((long) (sizeof (short))) < 0)
12256 {
12257 long i = longval ();
12258 if (i != ((long) (sizeof (short))))
12259 exit (1);
12260 fprintf (f, "%ld\n", i);
12261 }
7533else 12262 else
7534 rm -rf conftest* 12263 {
7535 ac_cv_header_stdc=no 12264 unsigned long i = ulongval ();
12265 if (i != ((long) (sizeof (short))))
12266 exit (1);
12267 fprintf (f, "%lu\n", i);
12268 }
12269 exit (ferror (f) || fclose (f) != 0);
12270
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest$ac_exeext
12276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12286 ac_cv_sizeof_short=`cat conftest.val`
12287else
12288 echo "$as_me: program exited with status $ac_status" >&5
12289echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292( exit $ac_status )
12293{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12294See \`config.log' for more details." >&5
12295echo "$as_me: error: cannot compute sizeof (short), 77
12296See \`config.log' for more details." >&2;}
12297 { (exit 1); exit 1; }; }
7536fi 12298fi
12299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12300fi
12301fi
7537rm -f conftest* 12302rm -f conftest.val
7538 12303else
12304 ac_cv_sizeof_short=0
7539fi 12305fi
12306fi
12307echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12308echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12309cat >>confdefs.h <<_ACEOF
12310#define SIZEOF_SHORT $ac_cv_sizeof_short
12311_ACEOF
7540 12312
12313
12314echo "$as_me:$LINENO: checking for int" >&5
12315echo $ECHO_N "checking for int... $ECHO_C" >&6
12316if test "${ac_cv_type_int+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318else
12319 cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
12325$ac_includes_default
12326int
12327main ()
12328{
12329if ((int *) 0)
12330 return 0;
12331if (sizeof (int))
12332 return 0;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_type_int=yes
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363ac_cv_type_int=no
12364fi
12365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12366fi
12367echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12368echo "${ECHO_T}$ac_cv_type_int" >&6
12369
12370echo "$as_me:$LINENO: checking size of int" >&5
12371echo $ECHO_N "checking size of int... $ECHO_C" >&6
12372if test "${ac_cv_sizeof_int+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
7541if test $ac_cv_header_stdc = yes; then 12375 if test "$ac_cv_type_int" = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12376 # The cast to unsigned long works around a bug in the HP C Compiler
12377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12379 # This bug is HP SR number 8606223364.
7543if test "$cross_compiling" = yes; then 12380 if test "$cross_compiling" = yes; then
7544 : 12381 # Depending upon the size, compute the lo and hi bounds.
12382cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388$ac_includes_default
12389int
12390main ()
12391{
12392static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12393test_array [0] = 0
12394
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
12400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_lo=0 ac_mid=0
12421 while :; do
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428$ac_includes_default
12429int
12430main ()
12431{
12432static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12433test_array [0] = 0
12434
12435 ;
12436 return 0;
12437}
12438_ACEOF
12439rm -f conftest.$ac_objext
12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_hi=$ac_mid; break
7545else 12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465ac_lo=`expr $ac_mid + 1`
12466 if test $ac_lo -le $ac_mid; then
12467 ac_lo= ac_hi=
12468 break
12469 fi
12470 ac_mid=`expr 2 '*' $ac_mid + 1`
12471fi
12472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473 done
12474else
12475 echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484$ac_includes_default
12485int
12486main ()
12487{
12488static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12489test_array [0] = 0
12490
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495rm -f conftest.$ac_objext
12496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497 (eval $ac_compile) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_hi=-1 ac_mid=-1
12517 while :; do
12518 cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524$ac_includes_default
12525int
12526main ()
12527{
12528static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12529test_array [0] = 0
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_lo=$ac_mid; break
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561ac_hi=`expr '(' $ac_mid ')' - 1`
12562 if test $ac_mid -le $ac_hi; then
12563 ac_lo= ac_hi=
12564 break
12565 fi
12566 ac_mid=`expr 2 '*' $ac_mid`
12567fi
12568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12569 done
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574ac_lo= ac_hi=
12575fi
12576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577fi
12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579# Binary search between lo and hi bounds.
12580while test "x$ac_lo" != "x$ac_hi"; do
12581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7546 cat > conftest.$ac_ext <<EOF 12582 cat >conftest.$ac_ext <<_ACEOF
7547#line 7548 "configure" 12583/* confdefs.h. */
7548#include "confdefs.h" 12584_ACEOF
7549#include <ctype.h> 12585cat confdefs.h >>conftest.$ac_ext
7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12586cat >>conftest.$ac_ext <<_ACEOF
7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12587/* end confdefs.h. */
7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12588$ac_includes_default
7553int main () { int i; for (i = 0; i < 256; i++) 12589int
7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12590main ()
7555exit (0); } 12591{
12592static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12593test_array [0] = 0
7556 12594
7557EOF 12595 ;
7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12596 return 0;
7559then 12597}
7560 : 12598_ACEOF
12599rm -f conftest.$ac_objext
12600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_hi=$ac_mid
7561else 12621else
7562 echo "configure: failed program was:" >&5 12622 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 12623sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -fr conftest*
7565 ac_cv_header_stdc=no
7566fi
7567rm -fr conftest*
7568fi
7569 12624
12625ac_lo=`expr '(' $ac_mid ')' + 1`
7570fi 12626fi
7571fi 12627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 12628done
7573echo "$ac_t""$ac_cv_header_stdc" 1>&6 12629case $ac_lo in
7574if test $ac_cv_header_stdc = yes; then 12630?*) ac_cv_sizeof_int=$ac_lo;;
7575 cat >> confdefs.h <<\EOF 12631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7576#define STDC_HEADERS 1 12632See \`config.log' for more details." >&5
7577EOF 12633echo "$as_me: error: cannot compute sizeof (int), 77
7578 12634See \`config.log' for more details." >&2;}
7579fi 12635 { (exit 1); exit 1; }; } ;;
7580 12636esac
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 12637else
12638 if test "$cross_compiling" = yes; then
12639 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12640echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12641 { (exit 1); exit 1; }; }
12642else
7586 cat > conftest.$ac_ext <<EOF 12643 cat >conftest.$ac_ext <<_ACEOF
7587#line 7588 "configure" 12644/* confdefs.h. */
7588#include "confdefs.h" 12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649$ac_includes_default
12650long longval () { return (long) (sizeof (int)); }
12651unsigned long ulongval () { return (long) (sizeof (int)); }
7589#include <sys/types.h> 12652#include <stdio.h>
7590#if STDC_HEADERS
7591#include <stdlib.h> 12653#include <stdlib.h>
7592#include <stddef.h> 12654int
7593#endif 12655main ()
7594EOF 12656{
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12657
7596 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12658 FILE *f = fopen ("conftest.val", "w");
7597 rm -rf conftest* 12659 if (! f)
7598 ac_cv_type_mode_t=yes 12660 exit (1);
12661 if (((long) (sizeof (int))) < 0)
12662 {
12663 long i = longval ();
12664 if (i != ((long) (sizeof (int))))
12665 exit (1);
12666 fprintf (f, "%ld\n", i);
12667 }
7599else 12668 else
7600 rm -rf conftest* 12669 {
7601 ac_cv_type_mode_t=no 12670 unsigned long i = ulongval ();
12671 if (i != ((long) (sizeof (int))))
12672 exit (1);
12673 fprintf (f, "%lu\n", i);
12674 }
12675 exit (ferror (f) || fclose (f) != 0);
12676
12677 ;
12678 return 0;
12679}
12680_ACEOF
12681rm -f conftest$ac_exeext
12682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683 (eval $ac_link) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_sizeof_int=`cat conftest.val`
12693else
12694 echo "$as_me: program exited with status $ac_status" >&5
12695echo "$as_me: failed program was:" >&5
12696sed 's/^/| /' conftest.$ac_ext >&5
12697
12698( exit $ac_status )
12699{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12700See \`config.log' for more details." >&5
12701echo "$as_me: error: cannot compute sizeof (int), 77
12702See \`config.log' for more details." >&2;}
12703 { (exit 1); exit 1; }; }
7602fi 12704fi
12705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12706fi
12707fi
7603rm -f conftest* 12708rm -f conftest.val
7604 12709else
12710 ac_cv_sizeof_int=0
7605fi 12711fi
7606echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12712fi
7607if test $ac_cv_type_mode_t = no; then 12713echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12714echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7608 cat >> confdefs.h <<\EOF 12715cat >>confdefs.h <<_ACEOF
7609#define mode_t int 12716#define SIZEOF_INT $ac_cv_sizeof_int
7610EOF 12717_ACEOF
7611 12718
7612fi
7613 12719
7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12720echo "$as_me:$LINENO: checking for long" >&5
7615echo "configure:7616: checking for pid_t" >&5 12721echo $ECHO_N "checking for long... $ECHO_C" >&6
7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12722if test "${ac_cv_type_long+set}" = set; then
7617 echo $ac_n "(cached) $ac_c" 1>&6 12723 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else 12724else
7619 cat > conftest.$ac_ext <<EOF 12725 cat >conftest.$ac_ext <<_ACEOF
7620#line 7621 "configure" 12726/* confdefs.h. */
7621#include "confdefs.h" 12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
12732int
12733main ()
12734{
12735if ((long *) 0)
12736 return 0;
12737if (sizeof (long))
12738 return 0;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_type_long=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_type_long=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12774echo "${ECHO_T}$ac_cv_type_long" >&6
12775
12776echo "$as_me:$LINENO: checking size of long" >&5
12777echo $ECHO_N "checking size of long... $ECHO_C" >&6
12778if test "${ac_cv_sizeof_long+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 if test "$ac_cv_type_long" = yes; then
12782 # The cast to unsigned long works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 if test "$cross_compiling" = yes; then
12787 # Depending upon the size, compute the lo and hi bounds.
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794$ac_includes_default
12795int
12796main ()
12797{
12798static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12799test_array [0] = 0
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=0 ac_mid=0
12827 while :; do
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835int
12836main ()
12837{
12838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12839test_array [0] = 0
12840
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_hi=$ac_mid; break
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871ac_lo=`expr $ac_mid + 1`
12872 if test $ac_lo -le $ac_mid; then
12873 ac_lo= ac_hi=
12874 break
12875 fi
12876 ac_mid=`expr 2 '*' $ac_mid + 1`
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 done
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891int
12892main ()
12893{
12894static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12895test_array [0] = 0
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_hi=-1 ac_mid=-1
12923 while :; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930$ac_includes_default
12931int
12932main ()
12933{
12934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12935test_array [0] = 0
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_lo=$ac_mid; break
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_hi=`expr '(' $ac_mid ')' - 1`
12968 if test $ac_mid -le $ac_hi; then
12969 ac_lo= ac_hi=
12970 break
12971 fi
12972 ac_mid=`expr 2 '*' $ac_mid`
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 done
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_lo= ac_hi=
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985# Binary search between lo and hi bounds.
12986while test "x$ac_lo" != "x$ac_hi"; do
12987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994$ac_includes_default
12995int
12996main ()
12997{
12998static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12999test_array [0] = 0
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005rm -f conftest.$ac_objext
13006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_lo=`expr '(' $ac_mid ')' + 1`
13032fi
13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034done
13035case $ac_lo in
13036?*) ac_cv_sizeof_long=$ac_lo;;
13037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13038See \`config.log' for more details." >&5
13039echo "$as_me: error: cannot compute sizeof (long), 77
13040See \`config.log' for more details." >&2;}
13041 { (exit 1); exit 1; }; } ;;
13042esac
13043else
13044 if test "$cross_compiling" = yes; then
13045 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13046echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13047 { (exit 1); exit 1; }; }
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
13056long longval () { return (long) (sizeof (long)); }
13057unsigned long ulongval () { return (long) (sizeof (long)); }
7622#include <sys/types.h> 13058#include <stdio.h>
7623#if STDC_HEADERS
7624#include <stdlib.h> 13059#include <stdlib.h>
7625#include <stddef.h> 13060int
7626#endif 13061main ()
7627EOF 13062{
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13063
7629 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13064 FILE *f = fopen ("conftest.val", "w");
7630 rm -rf conftest* 13065 if (! f)
7631 ac_cv_type_pid_t=yes 13066 exit (1);
13067 if (((long) (sizeof (long))) < 0)
13068 {
13069 long i = longval ();
13070 if (i != ((long) (sizeof (long))))
13071 exit (1);
13072 fprintf (f, "%ld\n", i);
13073 }
7632else 13074 else
7633 rm -rf conftest* 13075 {
7634 ac_cv_type_pid_t=no 13076 unsigned long i = ulongval ();
13077 if (i != ((long) (sizeof (long))))
13078 exit (1);
13079 fprintf (f, "%lu\n", i);
13080 }
13081 exit (ferror (f) || fclose (f) != 0);
13082
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_long=`cat conftest.val`
13099else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104( exit $ac_status )
13105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13106See \`config.log' for more details." >&5
13107echo "$as_me: error: cannot compute sizeof (long), 77
13108See \`config.log' for more details." >&2;}
13109 { (exit 1); exit 1; }; }
7635fi 13110fi
13111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112fi
13113fi
7636rm -f conftest* 13114rm -f conftest.val
7637 13115else
13116 ac_cv_sizeof_long=0
7638fi 13117fi
7639echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13118fi
7640if test $ac_cv_type_pid_t = no; then 13119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13120echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7641 cat >> confdefs.h <<\EOF 13121cat >>confdefs.h <<_ACEOF
7642#define pid_t int 13122#define SIZEOF_LONG $ac_cv_sizeof_long
7643EOF 13123_ACEOF
7644 13124
7645fi
7646 13125
7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13126echo "$as_me:$LINENO: checking for long long" >&5
7648echo "configure:7649: checking for uid_t in sys/types.h" >&5 13127echo $ECHO_N "checking for long long... $ECHO_C" >&6
7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13128if test "${ac_cv_type_long_long+set}" = set; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 13129 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else 13130else
7652 cat > conftest.$ac_ext <<EOF 13131 cat >conftest.$ac_ext <<_ACEOF
7653#line 7654 "configure" 13132/* confdefs.h. */
7654#include "confdefs.h" 13133_ACEOF
7655#include <sys/types.h> 13134cat confdefs.h >>conftest.$ac_ext
7656EOF 13135cat >>conftest.$ac_ext <<_ACEOF
7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13136/* end confdefs.h. */
7658 egrep "uid_t" >/dev/null 2>&1; then 13137$ac_includes_default
13138int
13139main ()
13140{
13141if ((long long *) 0)
13142 return 0;
13143if (sizeof (long long))
13144 return 0;
13145 ;
13146 return 0;
13147}
13148_ACEOF
13149rm -f conftest.$ac_objext
13150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -rf conftest* 13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
7660 ac_cv_type_uid_t=yes 13170 ac_cv_type_long_long=yes
7661else 13171else
7662 rm -rf conftest* 13172 echo "$as_me: failed program was:" >&5
7663 ac_cv_type_uid_t=no 13173sed 's/^/| /' conftest.$ac_ext >&5
7664fi
7665rm -f conftest*
7666 13174
13175ac_cv_type_long_long=no
7667fi 13176fi
7668 13177rm -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 13178fi
13179echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13180echo "${ECHO_T}$ac_cv_type_long_long" >&6
7680 13181
7681 13182echo "$as_me:$LINENO: checking size of long long" >&5
7682 13183echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7683echo $ac_n "checking size of char""... $ac_c" 1>&6 13184if 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 13185 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else 13186else
13187 if test "$ac_cv_type_long_long" = yes; then
13188 # The cast to unsigned long works around a bug in the HP C Compiler
13189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13191 # This bug is HP SR number 8606223364.
7688 if test "$cross_compiling" = yes; then 13192 if test "$cross_compiling" = yes; then
7689 ac_cv_sizeof_char=1 13193 # Depending upon the size, compute the lo and hi bounds.
13194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200$ac_includes_default
13201int
13202main ()
13203{
13204static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13205test_array [0] = 0
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
13212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_lo=0 ac_mid=0
13233 while :; do
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
13240$ac_includes_default
13241int
13242main ()
13243{
13244static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13245test_array [0] = 0
13246
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251rm -f conftest.$ac_objext
13252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest.$ac_objext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_hi=$ac_mid; break
7690else 13273else
13274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277ac_lo=`expr $ac_mid + 1`
13278 if test $ac_lo -le $ac_mid; then
13279 ac_lo= ac_hi=
13280 break
13281 fi
13282 ac_mid=`expr 2 '*' $ac_mid + 1`
13283fi
13284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13285 done
13286else
13287 echo "$as_me: failed program was:" >&5
13288sed 's/^/| /' conftest.$ac_ext >&5
13289
13290cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297int
13298main ()
13299{
13300static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13301test_array [0] = 0
13302
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307rm -f conftest.$ac_objext
13308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_hi=-1 ac_mid=-1
13329 while :; do
13330 cat >conftest.$ac_ext <<_ACEOF
13331/* confdefs.h. */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h. */
13336$ac_includes_default
13337int
13338main ()
13339{
13340static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13341test_array [0] = 0
13342
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347rm -f conftest.$ac_objext
13348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13349 (eval $ac_compile) 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest.$ac_objext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 ac_lo=$ac_mid; break
13369else
13370 echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373ac_hi=`expr '(' $ac_mid ')' - 1`
13374 if test $ac_mid -le $ac_hi; then
13375 ac_lo= ac_hi=
13376 break
13377 fi
13378 ac_mid=`expr 2 '*' $ac_mid`
13379fi
13380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13381 done
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386ac_lo= ac_hi=
13387fi
13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389fi
13390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391# Binary search between lo and hi bounds.
13392while test "x$ac_lo" != "x$ac_hi"; do
13393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7691 cat > conftest.$ac_ext <<EOF 13394 cat >conftest.$ac_ext <<_ACEOF
7692#line 7693 "configure" 13395/* confdefs.h. */
7693#include "confdefs.h" 13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */
13400$ac_includes_default
13401int
13402main ()
13403{
13404static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13405test_array [0] = 0
13406
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_hi=$ac_mid
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437ac_lo=`expr '(' $ac_mid ')' + 1`
13438fi
13439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440done
13441case $ac_lo in
13442?*) ac_cv_sizeof_long_long=$ac_lo;;
13443'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13444See \`config.log' for more details." >&5
13445echo "$as_me: error: cannot compute sizeof (long long), 77
13446See \`config.log' for more details." >&2;}
13447 { (exit 1); exit 1; }; } ;;
13448esac
13449else
13450 if test "$cross_compiling" = yes; then
13451 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13452echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13453 { (exit 1); exit 1; }; }
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461$ac_includes_default
13462long longval () { return (long) (sizeof (long long)); }
13463unsigned long ulongval () { return (long) (sizeof (long long)); }
7694#include <stdio.h> 13464#include <stdio.h>
7695#include <sys/types.h> 13465#include <stdlib.h>
13466int
7696main() 13467main ()
7697{ 13468{
13469
7698 FILE *f=fopen("conftestval", "w"); 13470 FILE *f = fopen ("conftest.val", "w");
7699 if (!f) exit(1); 13471 if (! f)
7700 fprintf(f, "%d\n", sizeof(char));
7701 exit(0); 13472 exit (1);
13473 if (((long) (sizeof (long long))) < 0)
13474 {
13475 long i = longval ();
13476 if (i != ((long) (sizeof (long long))))
13477 exit (1);
13478 fprintf (f, "%ld\n", i);
13479 }
13480 else
13481 {
13482 unsigned long i = ulongval ();
13483 if (i != ((long) (sizeof (long long))))
13484 exit (1);
13485 fprintf (f, "%lu\n", i);
13486 }
13487 exit (ferror (f) || fclose (f) != 0);
13488
13489 ;
13490 return 0;
7702} 13491}
7703EOF 13492_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 13493rm -f conftest$ac_exeext
7705then 13494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_char=`cat conftestval` 13504 ac_cv_sizeof_long_long=`cat conftest.val`
7707else 13505else
13506 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "configure: failed program was:" >&5 13507echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5 13508sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -fr conftest* 13509
7711 ac_cv_sizeof_char=0 13510( exit $ac_status )
13511{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13512See \`config.log' for more details." >&5
13513echo "$as_me: error: cannot compute sizeof (long long), 77
13514See \`config.log' for more details." >&2;}
13515 { (exit 1); exit 1; }; }
7712fi 13516fi
13517rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13518fi
13519fi
7713rm -fr conftest* 13520rm -f conftest.val
13521else
13522 ac_cv_sizeof_long_long=0
7714fi 13523fi
7715
7716fi 13524fi
7717echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13525echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13526echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7718cat >> confdefs.h <<EOF 13527cat >>confdefs.h <<_ACEOF
7719#define SIZEOF_CHAR $ac_cv_sizeof_char 13528#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7720EOF 13529_ACEOF
7721 13530
7722 13531
7723echo $ac_n "checking size of short""... $ac_c" 1>&6 13532echo "$as_me:$LINENO: checking for int *" >&5
7724echo "configure:7725: checking size of short" >&5 13533echo $ECHO_N "checking for int *... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13534if test "${ac_cv_type_int_p+set}" = set; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 13535 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 13536else
13537 cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543$ac_includes_default
13544int
13545main ()
13546{
13547if ((int * *) 0)
13548 return 0;
13549if (sizeof (int *))
13550 return 0;
13551 ;
13552 return 0;
13553}
13554_ACEOF
13555rm -f conftest.$ac_objext
13556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_type_int_p=yes
13577else
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581ac_cv_type_int_p=no
13582fi
13583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13584fi
13585echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13586echo "${ECHO_T}$ac_cv_type_int_p" >&6
13587
13588echo "$as_me:$LINENO: checking size of int *" >&5
13589echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13590if test "${ac_cv_sizeof_int_p+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593 if test "$ac_cv_type_int_p" = yes; then
13594 # The cast to unsigned long works around a bug in the HP C Compiler
13595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13597 # This bug is HP SR number 8606223364.
7728 if test "$cross_compiling" = yes; then 13598 if test "$cross_compiling" = yes; then
7729 ac_cv_sizeof_short=2 13599 # Depending upon the size, compute the lo and hi bounds.
13600cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
13605/* end confdefs.h. */
13606$ac_includes_default
13607int
13608main ()
13609{
13610static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13611test_array [0] = 0
13612
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext
13618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest.$ac_objext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_lo=0 ac_mid=0
13639 while :; do
13640 cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
13646$ac_includes_default
13647int
13648main ()
13649{
13650static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13651test_array [0] = 0
13652
13653 ;
13654 return 0;
13655}
13656_ACEOF
13657rm -f conftest.$ac_objext
13658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_hi=$ac_mid; break
7730else 13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683ac_lo=`expr $ac_mid + 1`
13684 if test $ac_lo -le $ac_mid; then
13685 ac_lo= ac_hi=
13686 break
13687 fi
13688 ac_mid=`expr 2 '*' $ac_mid + 1`
13689fi
13690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 done
13692else
13693 echo "$as_me: failed program was:" >&5
13694sed 's/^/| /' conftest.$ac_ext >&5
13695
13696cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702$ac_includes_default
13703int
13704main ()
13705{
13706static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13707test_array [0] = 0
13708
13709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest.$ac_objext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_hi=-1 ac_mid=-1
13735 while :; do
13736 cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742$ac_includes_default
13743int
13744main ()
13745{
13746static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13747test_array [0] = 0
13748
13749 ;
13750 return 0;
13751}
13752_ACEOF
13753rm -f conftest.$ac_objext
13754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_lo=$ac_mid; break
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779ac_hi=`expr '(' $ac_mid ')' - 1`
13780 if test $ac_mid -le $ac_hi; then
13781 ac_lo= ac_hi=
13782 break
13783 fi
13784 ac_mid=`expr 2 '*' $ac_mid`
13785fi
13786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13787 done
13788else
13789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792ac_lo= ac_hi=
13793fi
13794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13795fi
13796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13797# Binary search between lo and hi bounds.
13798while test "x$ac_lo" != "x$ac_hi"; do
13799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat > conftest.$ac_ext <<EOF 13800 cat >conftest.$ac_ext <<_ACEOF
7732#line 7733 "configure" 13801/* confdefs.h. */
7733#include "confdefs.h" 13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806$ac_includes_default
13807int
13808main ()
13809{
13810static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13811test_array [0] = 0
13812
13813 ;
13814 return 0;
13815}
13816_ACEOF
13817rm -f conftest.$ac_objext
13818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } &&
13832 { ac_try='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_hi=$ac_mid
13839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843ac_lo=`expr '(' $ac_mid ')' + 1`
13844fi
13845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13846done
13847case $ac_lo in
13848?*) ac_cv_sizeof_int_p=$ac_lo;;
13849'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13850See \`config.log' for more details." >&5
13851echo "$as_me: error: cannot compute sizeof (int *), 77
13852See \`config.log' for more details." >&2;}
13853 { (exit 1); exit 1; }; } ;;
13854esac
13855else
13856 if test "$cross_compiling" = yes; then
13857 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13858echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13859 { (exit 1); exit 1; }; }
13860else
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868long longval () { return (long) (sizeof (int *)); }
13869unsigned long ulongval () { return (long) (sizeof (int *)); }
7734#include <stdio.h> 13870#include <stdio.h>
7735#include <sys/types.h> 13871#include <stdlib.h>
13872int
7736main() 13873main ()
7737{ 13874{
13875
7738 FILE *f=fopen("conftestval", "w"); 13876 FILE *f = fopen ("conftest.val", "w");
7739 if (!f) exit(1); 13877 if (! f)
7740 fprintf(f, "%d\n", sizeof(short));
7741 exit(0); 13878 exit (1);
13879 if (((long) (sizeof (int *))) < 0)
13880 {
13881 long i = longval ();
13882 if (i != ((long) (sizeof (int *))))
13883 exit (1);
13884 fprintf (f, "%ld\n", i);
13885 }
13886 else
13887 {
13888 unsigned long i = ulongval ();
13889 if (i != ((long) (sizeof (int *))))
13890 exit (1);
13891 fprintf (f, "%lu\n", i);
13892 }
13893 exit (ferror (f) || fclose (f) != 0);
13894
13895 ;
13896 return 0;
7742} 13897}
7743EOF 13898_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 13899rm -f conftest$ac_exeext
7745then 13900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13901 (eval $ac_link) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
7746 ac_cv_sizeof_short=`cat conftestval` 13910 ac_cv_sizeof_int_p=`cat conftest.val`
7747else 13911else
13912 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "configure: failed program was:" >&5 13913echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5 13914sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -fr conftest* 13915
7751 ac_cv_sizeof_short=0 13916( exit $ac_status )
13917{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13918See \`config.log' for more details." >&5
13919echo "$as_me: error: cannot compute sizeof (int *), 77
13920See \`config.log' for more details." >&2;}
13921 { (exit 1); exit 1; }; }
7752fi 13922fi
13923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924fi
13925fi
7753rm -fr conftest* 13926rm -f conftest.val
13927else
13928 ac_cv_sizeof_int_p=0
7754fi 13929fi
7755
7756fi 13930fi
7757echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13931echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13932echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7758cat >> confdefs.h <<EOF 13933cat >>confdefs.h <<_ACEOF
7759#define SIZEOF_SHORT $ac_cv_sizeof_short 13934#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7760EOF 13935_ACEOF
7761 13936
7762 13937
7763echo $ac_n "checking size of int""... $ac_c" 1>&6 13938
7764echo "configure:7765: checking size of int" >&5 13939
7765if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13940echo "$as_me:$LINENO: checking for int16_t" >&5
13941echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13942if test "${rxvt_cv_int16_t+set}" = set; then
7766 echo $ac_n "(cached) $ac_c" 1>&6 13943 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else 13944else
7768 if test "$cross_compiling" = yes; then
7769 ac_cv_sizeof_int=4
7770else
7771 cat > conftest.$ac_ext <<EOF 13945 cat >conftest.$ac_ext <<_ACEOF
7772#line 7773 "configure" 13946/* confdefs.h. */
7773#include "confdefs.h" 13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
7774#include <stdio.h> 13951#include <stdint.h>
7775#include <sys/types.h> 13952int
7776main() 13953main ()
7777{ 13954{
7778 FILE *f=fopen("conftestval", "w"); 13955int16_t dummy;
7779 if (!f) exit(1); 13956 ;
7780 fprintf(f, "%d\n", sizeof(int)); 13957 return 0;
7781 exit(0);
7782} 13958}
7783EOF 13959_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 13960rm -f conftest.$ac_objext
7785then 13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 ac_cv_sizeof_int=`cat conftestval` 13962 (eval $ac_compile) 2>conftest.er1
7787else 13963 ac_status=$?
7788 echo "configure: failed program was:" >&5 13964 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.$ac_ext >&5
7790 rm -fr conftest* 13965 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 13966 cat conftest.err >&5
7830 rm -fr conftest* 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ac_cv_sizeof_long=0 13968 (exit $ac_status); } &&
7832fi 13969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7833rm -fr conftest* 13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834fi 13971 (eval $ac_try) 2>&5
7835 13972 ac_status=$?
7836fi 13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13974 (exit $ac_status); }; } &&
7838cat >> confdefs.h <<EOF 13975 { ac_try='test -s conftest.$ac_objext'
7839#define SIZEOF_LONG $ac_cv_sizeof_long 13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840EOF 13977 (eval $ac_try) 2>&5
7841 13978 ac_status=$?
7842 13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843echo $ac_n "checking size of long long""... $ac_c" 1>&6 13980 (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 13981 rxvt_cv_int16_t=yes
7941else 13982else
7942 echo "configure: failed program was:" >&5 13983 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5 13984sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -rf conftest* 13985
7945 if test $ac_cv_sizeof_char -ge 2; then 13986if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char" 13987 rxvt_cv_int16_t=" char"
7947else 13988else
7948 if test $ac_cv_sizeof_short -ge 2; then 13989 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short" 13990 rxvt_cv_int16_t=" short"
7950 else 13991 else
7962 fi 14003 fi
7963 fi 14004 fi
7964 fi 14005 fi
7965fi 14006fi
7966fi 14007fi
7967rm -f conftest* 14008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi 14009fi
7969 14010echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7970echo "$ac_t""$rxvt_cv_int16_t" 1>&6 14011echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7971if test x"$rxvt_cv_int16_t" != xyes; then 14012if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14013 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7973else 14014else
7974 if test x"" = x; then 14015 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */" 14016 rxvt_int16_typedef="/* typedef short int16_t; */"
7976 else 14017 else
7977 rxvt_int16_typedef="/* typedef short int16_t; */" 14018 rxvt_int16_typedef="/* typedef short int16_t; */"
7978 fi 14019 fi
7979fi 14020fi
7980 14021
14022echo "$as_me:$LINENO: checking for uint16_t" >&5
7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14023echo $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 14024if test "${rxvt_cv_uint16_t+set}" = set; then
7984 echo $ac_n "(cached) $ac_c" 1>&6 14025 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else 14026else
7986 cat > conftest.$ac_ext <<EOF 14027 cat >conftest.$ac_ext <<_ACEOF
7987#line 7988 "configure" 14028/* confdefs.h. */
7988#include "confdefs.h" 14029_ACEOF
14030cat confdefs.h >>conftest.$ac_ext
14031cat >>conftest.$ac_ext <<_ACEOF
14032/* end confdefs.h. */
7989#include <stdint.h> 14033#include <stdint.h>
7990int main() { 14034int
14035main ()
14036{
7991uint16_t dummy; 14037uint16_t dummy;
14038 ;
7992; return 0; } 14039 return 0;
7993EOF 14040}
7994if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14041_ACEOF
14042rm -f conftest.$ac_objext
14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -rf conftest* 14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
7996 rxvt_cv_uint16_t=yes 14063 rxvt_cv_uint16_t=yes
7997else 14064else
7998 echo "configure: failed program was:" >&5 14065 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 14066sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -rf conftest* 14067
8001 if test $ac_cv_sizeof_char -ge 2; then 14068if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char" 14069 rxvt_cv_uint16_t="unsigned char"
8003else 14070else
8004 if test $ac_cv_sizeof_short -ge 2; then 14071 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short" 14072 rxvt_cv_uint16_t="unsigned short"
8006 else 14073 else
8018 fi 14085 fi
8019 fi 14086 fi
8020 fi 14087 fi
8021fi 14088fi
8022fi 14089fi
8023rm -f conftest* 14090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi 14091fi
8025 14092echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8026echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14093echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8027if test x"$rxvt_cv_uint16_t" != xyes; then 14094if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14095 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8029else 14096else
8030 if test x"unsigned" = x; then 14097 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14098 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8032 else 14099 else
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14100 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8034 fi 14101 fi
8035fi 14102fi
8036 14103
14104echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14105echo $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 14106if test "${rxvt_cv_int32_t+set}" = set; then
8040 echo $ac_n "(cached) $ac_c" 1>&6 14107 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else 14108else
8042 cat > conftest.$ac_ext <<EOF 14109 cat >conftest.$ac_ext <<_ACEOF
8043#line 8044 "configure" 14110/* confdefs.h. */
8044#include "confdefs.h" 14111_ACEOF
14112cat confdefs.h >>conftest.$ac_ext
14113cat >>conftest.$ac_ext <<_ACEOF
14114/* end confdefs.h. */
8045#include <stdint.h> 14115#include <stdint.h>
8046int main() { 14116int
14117main ()
14118{
8047int32_t dummy; 14119int32_t dummy;
14120 ;
8048; return 0; } 14121 return 0;
8049EOF 14122}
8050if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14123_ACEOF
14124rm -f conftest.$ac_objext
14125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -rf conftest* 14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
8052 rxvt_cv_int32_t=yes 14145 rxvt_cv_int32_t=yes
8053else 14146else
8054 echo "configure: failed program was:" >&5 14147 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5 14148sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -rf conftest* 14149
8057 if test $ac_cv_sizeof_char -ge 4; then 14150if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char" 14151 rxvt_cv_int32_t=" char"
8059else 14152else
8060 if test $ac_cv_sizeof_short -ge 4; then 14153 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short" 14154 rxvt_cv_int32_t=" short"
8062 else 14155 else
8074 fi 14167 fi
8075 fi 14168 fi
8076 fi 14169 fi
8077fi 14170fi
8078fi 14171fi
8079rm -f conftest* 14172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi 14173fi
8081 14174echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8082echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14175echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8083if test x"$rxvt_cv_int32_t" != xyes; then 14176if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14177 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8085else 14178else
8086 if test x"" = x; then 14179 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */" 14180 rxvt_int32_typedef="/* typedef int int32_t; */"
8088 else 14181 else
8089 rxvt_int32_typedef="/* typedef int int32_t; */" 14182 rxvt_int32_typedef="/* typedef int int32_t; */"
8090 fi 14183 fi
8091fi 14184fi
8092 14185
14186echo "$as_me:$LINENO: checking for uint32_t" >&5
8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14187echo $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 14188if test "${rxvt_cv_uint32_t+set}" = set; then
8096 echo $ac_n "(cached) $ac_c" 1>&6 14189 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else 14190else
8098 cat > conftest.$ac_ext <<EOF 14191 cat >conftest.$ac_ext <<_ACEOF
8099#line 8100 "configure" 14192/* confdefs.h. */
8100#include "confdefs.h" 14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h. */
8101#include <stdint.h> 14197#include <stdint.h>
8102int main() { 14198int
14199main ()
14200{
8103uint32_t dummy; 14201uint32_t dummy;
14202 ;
8104; return 0; } 14203 return 0;
8105EOF 14204}
8106if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14205_ACEOF
14206rm -f conftest.$ac_objext
14207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -rf conftest* 14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
8108 rxvt_cv_uint32_t=yes 14227 rxvt_cv_uint32_t=yes
8109else 14228else
8110 echo "configure: failed program was:" >&5 14229 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5 14230sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest* 14231
8113 if test $ac_cv_sizeof_char -ge 4; then 14232if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char" 14233 rxvt_cv_uint32_t="unsigned char"
8115else 14234else
8116 if test $ac_cv_sizeof_short -ge 4; then 14235 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short" 14236 rxvt_cv_uint32_t="unsigned short"
8118 else 14237 else
8130 fi 14249 fi
8131 fi 14250 fi
8132 fi 14251 fi
8133fi 14252fi
8134fi 14253fi
8135rm -f conftest* 14254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi 14255fi
8137 14256echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8138echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14257echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8139if test x"$rxvt_cv_uint32_t" != xyes; then 14258if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14259 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8141else 14260else
8142 if test x"unsigned" = x; then 14261 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14262 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8144 else 14263 else
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14264 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8146 fi 14265 fi
8147fi 14266fi
8148 14267
8149if test $ac_cv_sizeof_int_p -eq 8; then 14268if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t" 14269 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14270 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8152else 14271else
8164 fi 14283 fi
8165fi 14284fi
8166 14285
8167 14286
8168 14287
14288echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14289echo $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 14290if test "${ac_cv_type_signal+set}" = set; then
8172 echo $ac_n "(cached) $ac_c" 1>&6 14291 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else 14292else
8174 cat > conftest.$ac_ext <<EOF 14293 cat >conftest.$ac_ext <<_ACEOF
8175#line 8176 "configure" 14294/* confdefs.h. */
8176#include "confdefs.h" 14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
8177#include <sys/types.h> 14299#include <sys/types.h>
8178#include <signal.h> 14300#include <signal.h>
8179#ifdef signal 14301#ifdef signal
8180#undef signal 14302# undef signal
8181#endif 14303#endif
8182#ifdef __cplusplus 14304#ifdef __cplusplus
8183extern "C" void (*signal (int, void (*)(int)))(int); 14305extern "C" void (*signal (int, void (*)(int)))(int);
8184#else 14306#else
8185void (*signal ()) (); 14307void (*signal ()) ();
8186#endif 14308#endif
8187 14309
8188int main() { 14310int
14311main ()
14312{
8189int i; 14313int i;
14314 ;
8190; return 0; } 14315 return 0;
8191EOF 14316}
8192if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14317_ACEOF
14318rm -f conftest.$ac_objext
14319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14320 (eval $ac_compile) 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -rf conftest* 14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
8194 ac_cv_type_signal=void 14339 ac_cv_type_signal=void
8195else 14340else
8196 echo "configure: failed program was:" >&5 14341 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5 14342sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -rf conftest* 14343
8199 ac_cv_type_signal=int 14344ac_cv_type_signal=int
8200fi 14345fi
8201rm -f conftest* 14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi 14347fi
8203 14348echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8204echo "$ac_t""$ac_cv_type_signal" 1>&6 14349echo "${ECHO_T}$ac_cv_type_signal" >&6
14350
8205cat >> confdefs.h <<EOF 14351cat >>confdefs.h <<_ACEOF
8206#define RETSIGTYPE $ac_cv_type_signal 14352#define RETSIGTYPE $ac_cv_type_signal
8207EOF 14353_ACEOF
8208 14354
8209 14355
8210 14356
8211case "$host_alias" in 14357case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;; 14358 *ultrix) ac_cv_func_setsid='no' ;;
8213 *) break;; 14359 *) break;;
8214esac 14360esac
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
8215 14379
8216for ac_func in \ 14380for ac_func in \
8217 atexit \ 14381 atexit \
8218 revoke \ 14382 revoke \
8219 unsetenv \ 14383 unsetenv \
8232 nanosleep \ 14396 nanosleep \
8233 updwtmp \ 14397 updwtmp \
8234 ttyslot \ 14398 ttyslot \
8235 14399
8236do 14400do
14401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402echo "$as_me:$LINENO: checking for $ac_func" >&5
8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8238echo "configure:8239: checking for $ac_func" >&5 14404if 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 14405 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else 14406else
8242 cat > conftest.$ac_ext <<EOF 14407 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 14408/* confdefs.h. */
8244#include "confdefs.h" 14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14415#define $ac_func innocuous_$ac_func
14416
8245/* System header to define __stub macros and hopefully few prototypes, 14417/* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */ 14418 which can conflict with char $ac_func (); below.
14419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14420 <limits.h> exists even on freestanding compilers. */
14421
14422#ifdef __STDC__
14423# include <limits.h>
14424#else
8247#include <assert.h> 14425# include <assert.h>
14426#endif
14427
14428#undef $ac_func
14429
8248/* Override any gcc2 internal prototype to avoid an error. */ 14430/* Override any gcc2 internal prototype to avoid an error. */
14431#ifdef __cplusplus
14432extern "C"
14433{
14434#endif
8249/* We use char because int might match the return type of a gcc2 14435/* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */ 14436 builtin and then its argument prototype would still apply. */
8251char $ac_func(); 14437char $ac_func ();
8252
8253int main() {
8254
8255/* The GNU C library defines this for functions which it implements 14438/* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named 14439 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */ 14440 something starting with __ and the normal name is an alias. */
8258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259choke me 14442choke me
8260#else 14443#else
8261$ac_func(); 14444char (*f) () = $ac_func;
8262#endif 14445#endif
14446#ifdef __cplusplus
14447}
14448#endif
8263 14449
14450int
14451main ()
14452{
14453return f != $ac_func;
14454 ;
8264; return 0; } 14455 return 0;
8265EOF 14456}
8266if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14457_ACEOF
14458rm -f conftest.$ac_objext conftest$ac_exeext
14459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -rf conftest* 14463 rm -f conftest.er1
8268 eval "ac_cv_func_$ac_func=yes" 14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest$ac_exeext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 eval "$as_ac_var=yes"
8269else 14480else
8270 echo "configure: failed program was:" >&5 14481 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5 14482sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8274fi
8275rm -f conftest*
8276fi
8277 14483
8278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14484eval "$as_ac_var=no"
8279 echo "$ac_t""yes" 1>&6 14485fi
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14486rm -f conftest.err conftest.$ac_objext \
14487 conftest$ac_exeext conftest.$ac_ext
14488fi
14489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14491if test `eval echo '${'$as_ac_var'}'` = yes; then
8281 cat >> confdefs.h <<EOF 14492 cat >>confdefs.h <<_ACEOF
8282#define $ac_tr_func 1 14493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8283EOF 14494_ACEOF
8284 14495
8285else
8286 echo "$ac_t""no" 1>&6
8287fi 14496fi
8288done 14497done
8289 14498
8290 14499
8291 14500
8292ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14501if test "${ac_cv_header_utmp_h+set}" = set; then
14502 echo "$as_me:$LINENO: checking for utmp.h" >&5
8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14503echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8294echo "configure:8295: checking for utmp.h" >&5 14504if 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 14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506fi
14507echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14508echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8297else 14509else
14510 # Is the header compilable?
14511echo "$as_me:$LINENO: checking utmp.h usability" >&5
14512echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8298 cat > conftest.$ac_ext <<EOF 14513cat >conftest.$ac_ext <<_ACEOF
8299#line 8300 "configure" 14514/* confdefs.h. */
8300#include "confdefs.h" 14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519$ac_includes_default
8301#include <utmp.h> 14520#include <utmp.h>
8302EOF 14521_ACEOF
8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14522rm -f conftest.$ac_objext
8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14524 (eval $ac_compile) 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_header_compiler=yes
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548ac_header_compiler=no
14549fi
14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14552echo "${ECHO_T}$ac_header_compiler" >&6
14553
14554# Is the header present?
14555echo "$as_me:$LINENO: checking utmp.h presence" >&5
14556echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14557cat >conftest.$ac_ext <<_ACEOF
14558/* confdefs.h. */
14559_ACEOF
14560cat confdefs.h >>conftest.$ac_ext
14561cat >>conftest.$ac_ext <<_ACEOF
14562/* end confdefs.h. */
14563#include <utmp.h>
14564_ACEOF
14565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } >/dev/null; then
14573 if test -s conftest.err; then
14574 ac_cpp_err=$ac_cxx_preproc_warn_flag
14575 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14576 else
14577 ac_cpp_err=
14578 fi
14579else
14580 ac_cpp_err=yes
14581fi
8306if test -z "$ac_err"; then 14582if test -z "$ac_cpp_err"; then
8307 rm -rf conftest* 14583 ac_header_preproc=yes
8308 eval "ac_cv_header_$ac_safe=yes"
8309else 14584else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5 14585 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5 14586sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -rf conftest* 14587
8314 eval "ac_cv_header_$ac_safe=no" 14588 ac_header_preproc=no
8315fi 14589fi
8316rm -f conftest* 14590rm -f conftest.err conftest.$ac_ext
14591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14592echo "${ECHO_T}$ac_header_preproc" >&6
14593
14594# So? What about this header?
14595case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14596 yes:no: )
14597 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14598echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14600echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14601 ac_header_preproc=yes
14602 ;;
14603 no:yes:* )
14604 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14605echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14607echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14609echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14611echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14613echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14615echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14616 (
14617 cat <<\_ASBOX
14618## ------------------------------------------ ##
14619## Report this to the AC_PACKAGE_NAME lists. ##
14620## ------------------------------------------ ##
14621_ASBOX
14622 ) |
14623 sed "s/^/$as_me: WARNING: /" >&2
14624 ;;
14625esac
14626echo "$as_me:$LINENO: checking for utmp.h" >&5
14627echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14628if test "${ac_cv_header_utmp_h+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631 ac_cv_header_utmp_h=$ac_header_preproc
8317fi 14632fi
8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14633echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8319 echo "$ac_t""yes" 1>&6 14634echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14635
14636fi
14637if test $ac_cv_header_utmp_h = yes; then
14638 echo "$as_me:$LINENO: checking for struct utmp" >&5
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14639echo $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 14640if test "${rxvt_cv_struct_utmp+set}" = set; then
8323 echo $ac_n "(cached) $ac_c" 1>&6 14641 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else 14642else
8325 cat > conftest.$ac_ext <<EOF 14643 cat >conftest.$ac_ext <<_ACEOF
8326#line 8327 "configure" 14644/* confdefs.h. */
8327#include "confdefs.h" 14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
8328#include <sys/types.h> 14649#include <sys/types.h>
8329#include <stdint.h> 14650#include <stdint.h>
8330#include <utmp.h> 14651#include <utmp.h>
8331int main() { 14652int
14653main ()
14654{
8332struct utmp ut; 14655struct utmp ut;
14656 ;
8333; return 0; } 14657 return 0;
8334EOF 14658}
8335if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14659_ACEOF
14660rm -f conftest.$ac_objext
14661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -rf conftest* 14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
8337 rxvt_cv_struct_utmp=yes 14681 rxvt_cv_struct_utmp=yes
8338else 14682else
8339 echo "configure: failed program was:" >&5 14683 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 14684sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -rf conftest* 14685
8342 rxvt_cv_struct_utmp=no 14686rxvt_cv_struct_utmp=no
8343fi 14687fi
8344rm -f conftest* 14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi 14689fi
8346 14690echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8347echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14691echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8348if test x$rxvt_cv_struct_utmp = xyes; then 14692if test x$rxvt_cv_struct_utmp = xyes; then
14693
8349 cat >> confdefs.h <<\EOF 14694cat >>confdefs.h <<\_ACEOF
8350#define HAVE_STRUCT_UTMP 1 14695#define HAVE_STRUCT_UTMP 1
8351EOF 14696_ACEOF
8352 14697
8353fi 14698fi
8354 14699
8355 14700
14701echo "$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 14702echo $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 14703if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8359 echo $ac_n "(cached) $ac_c" 1>&6 14704 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else 14705else
8361 cat > conftest.$ac_ext <<EOF 14706 cat >conftest.$ac_ext <<_ACEOF
8362#line 8363 "configure" 14707/* confdefs.h. */
8363#include "confdefs.h" 14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
8364#include <sys/types.h> 14712#include <sys/types.h>
8365#include <utmp.h> 14713#include <utmp.h>
8366int main() { 14714int
14715main ()
14716{
8367struct utmp ut; ut.ut_host; 14717struct utmp ut; ut.ut_host;
14718 ;
8368; return 0; } 14719 return 0;
8369EOF 14720}
8370if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -rf conftest* 14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
14731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
8372 rxvt_cv_struct_utmp_host=yes 14743 rxvt_cv_struct_utmp_host=yes
8373else 14744else
8374 echo "configure: failed program was:" >&5 14745 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5 14746sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -rf conftest* 14747
8377 rxvt_cv_struct_utmp_host=no 14748rxvt_cv_struct_utmp_host=no
8378fi 14749fi
8379rm -f conftest* 14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi 14751fi
8381 14752echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8382echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14753echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8383if test x$rxvt_cv_struct_utmp_host = xyes; then 14754if test x$rxvt_cv_struct_utmp_host = xyes; then
14755
8384 cat >> confdefs.h <<\EOF 14756cat >>confdefs.h <<\_ACEOF
8385#define HAVE_UTMP_HOST 1 14757#define HAVE_UTMP_HOST 1
8386EOF 14758_ACEOF
8387 14759
8388fi 14760fi
8389 14761
14762echo "$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 14763echo $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 14764if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8393 echo $ac_n "(cached) $ac_c" 1>&6 14765 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else 14766else
8395 cat > conftest.$ac_ext <<EOF 14767 cat >conftest.$ac_ext <<_ACEOF
8396#line 8397 "configure" 14768/* confdefs.h. */
8397#include "confdefs.h" 14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
8398#include <sys/types.h> 14773#include <sys/types.h>
8399#include <utmp.h> 14774#include <utmp.h>
8400int main() { 14775int
14776main ()
14777{
8401struct utmp ut; ut.ut_pid; 14778struct utmp ut; ut.ut_pid;
14779 ;
8402; return 0; } 14780 return 0;
8403EOF 14781}
8404if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -rf conftest* 14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
8406 rxvt_cv_struct_utmp_pid=yes 14804 rxvt_cv_struct_utmp_pid=yes
8407else 14805else
8408 echo "configure: failed program was:" >&5 14806 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5 14807sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -rf conftest* 14808
8411 rxvt_cv_struct_utmp_pid=no 14809rxvt_cv_struct_utmp_pid=no
8412fi 14810fi
8413rm -f conftest* 14811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi 14812fi
8415 14813echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8416echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14814echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8417if test x$rxvt_cv_struct_utmp_pid = xyes; then 14815if test x$rxvt_cv_struct_utmp_pid = xyes; then
14816
8418 cat >> confdefs.h <<\EOF 14817cat >>confdefs.h <<\_ACEOF
8419#define HAVE_UTMP_PID 1 14818#define HAVE_UTMP_PID 1
8420EOF 14819_ACEOF
8421 14820
8422fi 14821fi
8423 14822
8424else
8425 echo "$ac_t""no" 1>&6
8426fi 14823fi
8427
8428 14824
8429ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14825
14826
14827if test "${ac_cv_header_utmpx_h+set}" = set; then
14828 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14829echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8431echo "configure:8432: checking for utmpx.h" >&5 14830if 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 14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832fi
14833echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14834echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8434else 14835else
14836 # Is the header compilable?
14837echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14838echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8435 cat > conftest.$ac_ext <<EOF 14839cat >conftest.$ac_ext <<_ACEOF
8436#line 8437 "configure" 14840/* confdefs.h. */
8437#include "confdefs.h" 14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h. */
14845$ac_includes_default
8438#include <utmpx.h> 14846#include <utmpx.h>
8439EOF 14847_ACEOF
8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14848rm -f conftest.$ac_objext
8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14850 (eval $ac_compile) 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest.$ac_objext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_header_compiler=yes
14870else
14871 echo "$as_me: failed program was:" >&5
14872sed 's/^/| /' conftest.$ac_ext >&5
14873
14874ac_header_compiler=no
14875fi
14876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14878echo "${ECHO_T}$ac_header_compiler" >&6
14879
14880# Is the header present?
14881echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14882echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14883cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889#include <utmpx.h>
14890_ACEOF
14891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } >/dev/null; then
14899 if test -s conftest.err; then
14900 ac_cpp_err=$ac_cxx_preproc_warn_flag
14901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14902 else
14903 ac_cpp_err=
14904 fi
14905else
14906 ac_cpp_err=yes
14907fi
8443if test -z "$ac_err"; then 14908if test -z "$ac_cpp_err"; then
8444 rm -rf conftest* 14909 ac_header_preproc=yes
8445 eval "ac_cv_header_$ac_safe=yes"
8446else 14910else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5 14911 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 14912sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest* 14913
8451 eval "ac_cv_header_$ac_safe=no" 14914 ac_header_preproc=no
8452fi 14915fi
8453rm -f conftest* 14916rm -f conftest.err conftest.$ac_ext
14917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14918echo "${ECHO_T}$ac_header_preproc" >&6
14919
14920# So? What about this header?
14921case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14922 yes:no: )
14923 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14924echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14926echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14927 ac_header_preproc=yes
14928 ;;
14929 no:yes:* )
14930 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14931echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14933echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14935echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14937echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14939echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14941echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14942 (
14943 cat <<\_ASBOX
14944## ------------------------------------------ ##
14945## Report this to the AC_PACKAGE_NAME lists. ##
14946## ------------------------------------------ ##
14947_ASBOX
14948 ) |
14949 sed "s/^/$as_me: WARNING: /" >&2
14950 ;;
14951esac
14952echo "$as_me:$LINENO: checking for utmpx.h" >&5
14953echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14954if test "${ac_cv_header_utmpx_h+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956else
14957 ac_cv_header_utmpx_h=$ac_header_preproc
8454fi 14958fi
8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14959echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8456 echo "$ac_t""yes" 1>&6 14960echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14961
14962fi
14963if test $ac_cv_header_utmpx_h = yes; then
14964 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14965echo $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 14966if test "${rxvt_cv_struct_utmpx+set}" = set; then
8460 echo $ac_n "(cached) $ac_c" 1>&6 14967 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else 14968else
8462 cat > conftest.$ac_ext <<EOF 14969 cat >conftest.$ac_ext <<_ACEOF
8463#line 8464 "configure" 14970/* confdefs.h. */
8464#include "confdefs.h" 14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
14974/* end confdefs.h. */
8465#include <sys/types.h> 14975#include <sys/types.h>
8466#include <utmpx.h> 14976#include <utmpx.h>
8467int main() { 14977int
14978main ()
14979{
8468struct utmpx ut; 14980struct utmpx ut;
14981 ;
8469; return 0; } 14982 return 0;
8470EOF 14983}
8471if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -rf conftest* 14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
8473 rxvt_cv_struct_utmpx=yes 15006 rxvt_cv_struct_utmpx=yes
8474else 15007else
8475 echo "configure: failed program was:" >&5 15008 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5 15009sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -rf conftest* 15010
8478 rxvt_cv_struct_utmpx=no 15011rxvt_cv_struct_utmpx=no
8479fi 15012fi
8480rm -f conftest* 15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi 15014fi
8482 15015echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8483echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15016echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8484if test x$rxvt_cv_struct_utmpx = xyes; then 15017if test x$rxvt_cv_struct_utmpx = xyes; then
15018
8485 cat >> confdefs.h <<\EOF 15019cat >>confdefs.h <<\_ACEOF
8486#define HAVE_STRUCT_UTMPX 1 15020#define HAVE_STRUCT_UTMPX 1
8487EOF 15021_ACEOF
8488 15022
8489fi 15023fi
8490 15024
8491 15025
15026echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15027echo $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 15028if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8495 echo $ac_n "(cached) $ac_c" 1>&6 15029 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else 15030else
8497 cat > conftest.$ac_ext <<EOF 15031 cat >conftest.$ac_ext <<_ACEOF
8498#line 8499 "configure" 15032/* confdefs.h. */
8499#include "confdefs.h" 15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
8500#include <sys/types.h> 15037#include <sys/types.h>
8501#include <utmpx.h> 15038#include <utmpx.h>
8502int main() { 15039int
15040main ()
15041{
8503struct utmpx utx; utx.ut_host; 15042struct utmpx utx; utx.ut_host;
15043 ;
8504; return 0; } 15044 return 0;
8505EOF 15045}
8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15046_ACEOF
15047rm -f conftest.$ac_objext
15048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -rf conftest* 15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
8508 rxvt_cv_struct_utmpx_host=yes 15068 rxvt_cv_struct_utmpx_host=yes
8509else 15069else
8510 echo "configure: failed program was:" >&5 15070 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5 15071sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest* 15072
8513 rxvt_cv_struct_utmpx_host=no 15073rxvt_cv_struct_utmpx_host=no
8514fi 15074fi
8515rm -f conftest* 15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi 15076fi
8517 15077echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8518echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15078echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8519if test x$rxvt_cv_struct_utmpx_host = xyes; then 15079if test x$rxvt_cv_struct_utmpx_host = xyes; then
15080
8520 cat >> confdefs.h <<\EOF 15081cat >>confdefs.h <<\_ACEOF
8521#define HAVE_UTMPX_HOST 1 15082#define HAVE_UTMPX_HOST 1
8522EOF 15083_ACEOF
8523 15084
8524fi 15085fi
8525 15086
8526else
8527 echo "$ac_t""no" 1>&6
8528fi 15087fi
8529
8530 15088
15089
15090
15091echo "$as_me:$LINENO: checking for struct lastlog" >&5
8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15092echo $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 15093if test "${rxvt_cv_struct_lastlog+set}" = set; then
8534 echo $ac_n "(cached) $ac_c" 1>&6 15094 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else 15095else
8536 cat > conftest.$ac_ext <<EOF 15096 cat >conftest.$ac_ext <<_ACEOF
8537#line 8538 "configure" 15097/* confdefs.h. */
8538#include "confdefs.h" 15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
8539#include <sys/types.h> 15102#include <sys/types.h>
8540#include <utmp.h> 15103#include <utmp.h>
8541#ifdef HAVE_LASTLOG_H 15104#ifdef HAVE_LASTLOG_H
8542#include <lastlog.h> 15105#include <lastlog.h>
8543#endif 15106#endif
8544 15107
8545int main() { 15108int
15109main ()
15110{
8546struct lastlog ll; 15111struct lastlog ll;
15112 ;
8547; return 0; } 15113 return 0;
8548EOF 15114}
8549if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15115_ACEOF
15116rm -f conftest.$ac_objext
15117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -rf conftest* 15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
8551 rxvt_cv_struct_lastlog=yes 15137 rxvt_cv_struct_lastlog=yes
8552else 15138else
8553 echo "configure: failed program was:" >&5 15139 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 15140sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -rf conftest* 15141
8556 rxvt_cv_struct_lastlog=no 15142rxvt_cv_struct_lastlog=no
8557fi 15143fi
8558rm -f conftest* 15144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi 15145fi
8560 15146echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8561echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15147echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8562if test x$rxvt_cv_struct_lastlog = xyes; then 15148if test x$rxvt_cv_struct_lastlog = xyes; then
15149
8563 cat >> confdefs.h <<\EOF 15150cat >>confdefs.h <<\_ACEOF
8564#define HAVE_STRUCT_LASTLOG 1 15151#define HAVE_STRUCT_LASTLOG 1
8565EOF 15152_ACEOF
8566 15153
8567fi 15154fi
8568 15155
15156echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15157echo $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 15158if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8572 echo $ac_n "(cached) $ac_c" 1>&6 15159 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else 15160else
8574 cat > conftest.$ac_ext <<EOF 15161 cat >conftest.$ac_ext <<_ACEOF
8575#line 8576 "configure" 15162/* confdefs.h. */
8576#include "confdefs.h" 15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
8577#include <sys/types.h> 15167#include <sys/types.h>
8578#include <utmpx.h> 15168#include <utmpx.h>
8579#ifdef HAVE_LASTLOG_H 15169#ifdef HAVE_LASTLOG_H
8580#include <lastlog.h> 15170#include <lastlog.h>
8581#endif 15171#endif
8582 15172
8583int main() { 15173int
15174main ()
15175{
8584struct lastlogx ll; 15176struct lastlogx ll;
15177 ;
8585; return 0; } 15178 return 0;
8586EOF 15179}
8587if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -rf conftest* 15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
8589 rxvt_cv_struct_lastlogx=yes 15202 rxvt_cv_struct_lastlogx=yes
8590else 15203else
8591 echo "configure: failed program was:" >&5 15204 echo "$as_me: failed program was:" >&5
8592 cat conftest.$ac_ext >&5 15205sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -rf conftest* 15206
8594 rxvt_cv_struct_lastlogx=no 15207rxvt_cv_struct_lastlogx=no
8595fi 15208fi
8596rm -f conftest* 15209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi 15210fi
8598 15211echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8599echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15212echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8600if test x$rxvt_cv_struct_lastlogx = xyes; then 15213if test x$rxvt_cv_struct_lastlogx = xyes; then
15214
8601 cat >> confdefs.h <<\EOF 15215cat >>confdefs.h <<\_ACEOF
8602#define HAVE_STRUCT_LASTLOGX 1 15216#define HAVE_STRUCT_LASTLOGX 1
8603EOF 15217_ACEOF
8604 15218
8605fi 15219fi
8606 15220
8607 15221
15222echo "$as_me:$LINENO: checking where utmp is located" >&5
8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15223echo $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 15224if test "${rxvt_cv_path_utmp+set}" = set; then
8611 echo $ac_n "(cached) $ac_c" 1>&6 15225 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else 15226else
8613 if test "$cross_compiling" = yes; then 15227 if test "$cross_compiling" = yes; then
15228 { 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 15229echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8615else 15230else
8616 cat > conftest.$ac_ext <<EOF 15231 cat >conftest.$ac_ext <<_ACEOF
8617#line 8618 "configure" 15232/* confdefs.h. */
8618#include "confdefs.h" 15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h. */
8619#include <stdio.h> 15237#include <stdio.h>
8620#include <sys/types.h> 15238#include <sys/types.h>
8621#include <utmp.h> 15239#include <utmp.h>
8622#include <errno.h> 15240#include <errno.h>
8623main() 15241main()
8640 exit(0); 15258 exit(0);
8641 } 15259 }
8642 } 15260 }
8643 exit(0); 15261 exit(0);
8644} 15262}
8645EOF 15263_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 15264rm -f conftest$ac_exeext
8647then 15265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15266 (eval $ac_link) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
8648 rxvt_cv_path_utmp=`cat conftestval` 15275 rxvt_cv_path_utmp=`cat conftestval`
8649else 15276else
15277 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "configure: failed program was:" >&5 15278echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5 15279sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -fr conftest* 15280
15281( exit $ac_status )
8653 rxvt_cv_path_utmp= 15282rxvt_cv_path_utmp=
8654fi 15283fi
8655rm -fr conftest* 15284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi 15285fi
8657
8658fi 15286fi
8659 15287echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8660echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15288echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8661if test x$rxvt_cv_path_utmp != x; then 15289if test x$rxvt_cv_path_utmp != x; then
15290
8662 cat >> confdefs.h <<EOF 15291cat >>confdefs.h <<_ACEOF
8663#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15292#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8664EOF 15293_ACEOF
8665 15294
8666fi 15295fi
8667 15296
8668 15297
15298echo "$as_me:$LINENO: checking where utmpx is located" >&5
8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15299echo $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 15300if test "${rxvt_cv_path_utmpx+set}" = set; then
8672 echo $ac_n "(cached) $ac_c" 1>&6 15301 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else 15302else
8674 if test "$cross_compiling" = yes; then 15303 if test "$cross_compiling" = yes; then
15304 { 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 15305echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8676else 15306else
8677 cat > conftest.$ac_ext <<EOF 15307 cat >conftest.$ac_ext <<_ACEOF
8678#line 8679 "configure" 15308/* confdefs.h. */
8679#include "confdefs.h" 15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
8680#include <stdio.h> 15313#include <stdio.h>
8681#include <sys/types.h> 15314#include <sys/types.h>
8682#include <utmpx.h> 15315#include <utmpx.h>
8683#include <errno.h> 15316#include <errno.h>
8684#include <sys/stat.h> 15317#include <sys/stat.h>
8711 exit(0); 15344 exit(0);
8712 } 15345 }
8713 } 15346 }
8714 exit(0); 15347 exit(0);
8715} 15348}
8716EOF 15349_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 15350rm -f conftest$ac_exeext
8718then 15351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
8719 rxvt_cv_path_utmpx=`cat conftestval` 15361 rxvt_cv_path_utmpx=`cat conftestval`
8720else 15362else
15363 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "configure: failed program was:" >&5 15364echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5 15365sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -fr conftest* 15366
15367( exit $ac_status )
8724 rxvt_cv_path_utmpx= 15368rxvt_cv_path_utmpx=
8725fi 15369fi
8726rm -fr conftest* 15370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727fi 15371fi
8728
8729fi 15372fi
8730 15373echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8731echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15374echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8732if test x$rxvt_cv_path_utmpx != x; then 15375if test x$rxvt_cv_path_utmpx != x; then
15376
8733 cat >> confdefs.h <<EOF 15377cat >>confdefs.h <<_ACEOF
8734#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15378#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8735EOF 15379_ACEOF
8736 15380
8737fi 15381fi
8738 15382
8739 15383
15384echo "$as_me:$LINENO: checking where wtmp is located" >&5
8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15385echo $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 15386if test "${rxvt_cv_path_wtmp+set}" = set; then
8743 echo $ac_n "(cached) $ac_c" 1>&6 15387 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else 15388else
8745 if test "$cross_compiling" = yes; then 15389 if test "$cross_compiling" = yes; then
15390 { 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 15391echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8747else 15392else
8748 cat > conftest.$ac_ext <<EOF 15393 cat >conftest.$ac_ext <<_ACEOF
8749#line 8750 "configure" 15394/* confdefs.h. */
8750#include "confdefs.h" 15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
8751#include <stdio.h> 15399#include <stdio.h>
8752#include <sys/types.h> 15400#include <sys/types.h>
8753#ifdef HAVE_UTMP_H 15401#ifdef HAVE_UTMP_H
8754#include <utmp.h> 15402#include <utmp.h>
8755#endif 15403#endif
8756#include <errno.h> 15404#include <errno.h>
8757main() 15405main()
8758{ 15406{
8759 char **w, *wtmplist[] = { 15407 char **w, *wtmplist[] = {
8760 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15408 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8761 FILE *a, *f=fopen("conftestval", "w"); 15409 FILE *a, *f=fopen("conftestval", "w");
8762 if (!f) exit(1); 15410 if (!f) exit(1);
8763#ifdef WTMP_FILE 15411#ifdef WTMP_FILE
8764 fprintf(f, "%s\n", WTMP_FILE); 15412 fprintf(f, "%s\n", WTMP_FILE);
8765 exit(0); 15413 exit(0);
8774 exit(0); 15422 exit(0);
8775 } 15423 }
8776 } 15424 }
8777 exit(0); 15425 exit(0);
8778} 15426}
8779EOF 15427_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 15428rm -f conftest$ac_exeext
8781then 15429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
8782 rxvt_cv_path_wtmp=`cat conftestval` 15439 rxvt_cv_path_wtmp=`cat conftestval`
8783else 15440else
15441 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "configure: failed program was:" >&5 15442echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5 15443sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -fr conftest* 15444
15445( exit $ac_status )
8787 rxvt_cv_path_wtmp= 15446rxvt_cv_path_wtmp=
8788fi 15447fi
8789rm -fr conftest* 15448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790fi 15449fi
8791
8792fi 15450fi
8793 15451echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8794echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15452echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8795if test x$rxvt_cv_path_wtmp != x; then 15453if test x$rxvt_cv_path_wtmp != x; then
15454
8796 cat >> confdefs.h <<EOF 15455cat >>confdefs.h <<_ACEOF
8797#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15456#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8798EOF 15457_ACEOF
8799 15458
8800fi 15459fi
8801 15460
15461echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15462echo $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 15463if test "${rxvt_cv_path_wtmpx+set}" = set; then
8805 echo $ac_n "(cached) $ac_c" 1>&6 15464 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else 15465else
8807 if test "$cross_compiling" = yes; then 15466 if test "$cross_compiling" = yes; then
15467 { 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 15468echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8809else 15469else
8810 cat > conftest.$ac_ext <<EOF 15470 cat >conftest.$ac_ext <<_ACEOF
8811#line 8812 "configure" 15471/* confdefs.h. */
8812#include "confdefs.h" 15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
8813#include <stdio.h> 15476#include <stdio.h>
8814#ifdef HAVE_UTMPX_H 15477#ifdef HAVE_UTMPX_H
8815#include <utmpx.h> 15478#include <utmpx.h>
8816#endif 15479#endif
8817#include <errno.h> 15480#include <errno.h>
8818main() 15481main()
8819{ 15482{
8820 char **w, *wtmplist[] = { 15483 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15484 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w"); 15485 FILE *a, *f=fopen("conftestval", "w");
8823 if (!f) exit(1); 15486 if (!f) exit(1);
8824#ifdef WTMPX_FILE 15487#ifdef WTMPX_FILE
8825 fprintf(f, "%s\n", WTMPX_FILE); 15488 fprintf(f, "%s\n", WTMPX_FILE);
8826 exit(0); 15489 exit(0);
8835 exit(0); 15498 exit(0);
8836 } 15499 }
8837 } 15500 }
8838 exit(0); 15501 exit(0);
8839} 15502}
8840EOF 15503_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 15504rm -f conftest$ac_exeext
8842then 15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
8843 rxvt_cv_path_wtmpx=`cat conftestval` 15515 rxvt_cv_path_wtmpx=`cat conftestval`
8844else 15516else
15517 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "configure: failed program was:" >&5 15518echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5 15519sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -fr conftest* 15520
15521( exit $ac_status )
8848 rxvt_cv_path_wtmpx= 15522rxvt_cv_path_wtmpx=
8849fi 15523fi
8850rm -fr conftest* 15524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851fi 15525fi
8852
8853fi 15526fi
8854 15527echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8855echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15528echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8856if test x$rxvt_cv_path_wtmpx != x; then 15529if test x$rxvt_cv_path_wtmpx != x; then
15530
8857 cat >> confdefs.h <<EOF 15531cat >>confdefs.h <<_ACEOF
8858#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15532#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8859EOF 15533_ACEOF
8860 15534
8861fi 15535fi
8862 15536
15537echo "$as_me:$LINENO: checking where lastlog is located" >&5
8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15538echo $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 15539if test "${rxvt_cv_path_lastlog+set}" = set; then
8866 echo $ac_n "(cached) $ac_c" 1>&6 15540 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else 15541else
8868 if test "$cross_compiling" = yes; then 15542 if test "$cross_compiling" = yes; then
15543 { 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 15544echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8870else 15545else
8871 cat > conftest.$ac_ext <<EOF 15546 cat >conftest.$ac_ext <<_ACEOF
8872#line 8873 "configure" 15547/* confdefs.h. */
8873#include "confdefs.h" 15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
8874#include <stdio.h> 15552#include <stdio.h>
8875#include <sys/types.h> 15553#include <sys/types.h>
8876#ifdef HAVE_UTMPX_H 15554#ifdef HAVE_UTMPX_H
8877#include <utmpx.h> 15555#include <utmpx.h>
8878#elif defined(HAVE_UTMP_H) 15556#elif defined(HAVE_UTMP_H)
8901 exit(0); 15579 exit(0);
8902 } 15580 }
8903 } 15581 }
8904 exit(0); 15582 exit(0);
8905} 15583}
8906EOF 15584_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 15585rm -f conftest$ac_exeext
8908then 15586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
8909 rxvt_cv_path_lastlog=`cat conftestval` 15596 rxvt_cv_path_lastlog=`cat conftestval`
8910else 15597else
15598 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "configure: failed program was:" >&5 15599echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5 15600sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -fr conftest* 15601
15602( exit $ac_status )
8914 rxvt_cv_path_lastlog= 15603rxvt_cv_path_lastlog=
8915fi 15604fi
8916rm -fr conftest* 15605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917fi 15606fi
8918
8919fi 15607fi
8920 15608echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8921echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15609echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8922if test x$rxvt_cv_path_lastlog != x; then 15610if test x$rxvt_cv_path_lastlog != x; then
15611
8923 cat >> confdefs.h <<EOF 15612cat >>confdefs.h <<_ACEOF
8924#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15613#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8925EOF 15614_ACEOF
8926 15615
8927 if test -d "$rxvt_cv_path_lastlog"; then 15616 if test -d "$rxvt_cv_path_lastlog"; then
15617
8928 cat >> confdefs.h <<\EOF 15618cat >>confdefs.h <<\_ACEOF
8929#define LASTLOG_IS_DIR 1 15619#define LASTLOG_IS_DIR 1
8930EOF 15620_ACEOF
8931 15621
8932 fi 15622 fi
8933fi 15623fi
8934 15624
15625echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15626echo $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 15627if test "${rxvt_cv_path_lastlogx+set}" = set; then
8938 echo $ac_n "(cached) $ac_c" 1>&6 15628 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else 15629else
8940 if test "$cross_compiling" = yes; then 15630 if test "$cross_compiling" = yes; then
15631 { 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 15632echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8942else 15633else
8943 cat > conftest.$ac_ext <<EOF 15634 cat >conftest.$ac_ext <<_ACEOF
8944#line 8945 "configure" 15635/* confdefs.h. */
8945#include "confdefs.h" 15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
8946#include <stdio.h> 15640#include <stdio.h>
8947#ifdef HAVE_UTMPX_H 15641#ifdef HAVE_UTMPX_H
8948#include <utmpx.h> 15642#include <utmpx.h>
8949#endif 15643#endif
8950#include <errno.h> 15644#include <errno.h>
8967 exit(0); 15661 exit(0);
8968 } 15662 }
8969 } 15663 }
8970 exit(0); 15664 exit(0);
8971} 15665}
8972EOF 15666_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 15667rm -f conftest$ac_exeext
8974then 15668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669 (eval $ac_link) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
8975 rxvt_cv_path_lastlogx=`cat conftestval` 15678 rxvt_cv_path_lastlogx=`cat conftestval`
8976else 15679else
15680 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "configure: failed program was:" >&5 15681echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5 15682sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -fr conftest* 15683
15684( exit $ac_status )
8980 rxvt_cv_path_lastlogx= 15685rxvt_cv_path_lastlogx=
8981fi 15686fi
8982rm -fr conftest* 15687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi 15688fi
8984
8985fi 15689fi
8986 15690echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8987echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15691echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8988if test x$rxvt_cv_path_lastlogx != x; then 15692if test x$rxvt_cv_path_lastlogx != x; then
15693
8989 cat >> confdefs.h <<EOF 15694cat >>confdefs.h <<_ACEOF
8990#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15695#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8991EOF 15696_ACEOF
8992 15697
8993fi 15698fi
8994 15699
8995 15700
15701echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15702echo $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 15703if test "${rxvt_cv_path_ttytab+set}" = set; then
8999 echo $ac_n "(cached) $ac_c" 1>&6 15704 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else 15705else
9001 for ttys_file in /etc/ttys /etc/ttytab; 15706 for ttys_file in /etc/ttys /etc/ttytab;
9002do 15707do
9003 if test -f "$ttys_file" ; then 15708 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file 15709 rxvt_cv_path_ttytab=$ttys_file
9005 break 15710 break
9006 fi 15711 fi
9007done 15712done
9008 15713
9009fi 15714fi
9010 15715echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
9011echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15716echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
9012if test x$rxvt_cv_path_ttytab != x; then 15717if test x$rxvt_cv_path_ttytab != x; then
15718
9013 cat >> confdefs.h <<EOF 15719cat >>confdefs.h <<_ACEOF
9014#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15720#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9015EOF 15721_ACEOF
9016 15722
9017fi 15723fi
9018 15724
9019 15725
9020ac_save_LIBS=$LIBS 15726ac_save_LIBS=$LIBS
9022CFLAGS="$CFLAGS $X_CFLAGS" 15728CFLAGS="$CFLAGS $X_CFLAGS"
9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15729LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15730if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15731 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9026fi 15732fi
15733echo "$as_me:$LINENO: checking for working Xlocale" >&5
9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15734echo $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 15735if test "${rxvt_cv_func_xlocale+set}" = set; then
9030 echo $ac_n "(cached) $ac_c" 1>&6 15736 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else 15737else
9032 if test "$cross_compiling" = yes; then 15738 if test "$cross_compiling" = yes; then
15739 { 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 15740echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9034else 15741else
9035 cat > conftest.$ac_ext <<EOF 15742 cat >conftest.$ac_ext <<_ACEOF
9036#line 9037 "configure" 15743/* confdefs.h. */
9037#include "confdefs.h" 15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
9038#include <X11/Xlib.h> 15748#include <X11/Xlib.h>
9039main() { 15749main() {
9040char *p; 15750char *p;
9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15751if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042exit (XSupportsLocale() ? 0 : 1); 15752exit (XSupportsLocale() ? 0 : 1);
9043else 15753else
9044exit (1);} 15754exit (1);}
9045EOF 15755_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 15756rm -f conftest$ac_exeext
9047then 15757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
9048 rxvt_cv_func_xlocale=yes 15767 rxvt_cv_func_xlocale=yes
9049else 15768else
15769 echo "$as_me: program exited with status $ac_status" >&5
9050 echo "configure: failed program was:" >&5 15770echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 15771sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -fr conftest* 15772
15773( exit $ac_status )
9053 rxvt_cv_func_xlocale=no 15774rxvt_cv_func_xlocale=no
9054fi 15775fi
9055rm -fr conftest* 15776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056fi 15777fi
9057
9058fi 15778fi
9059 15779echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9060echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15780echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9061if test x$rxvt_cv_func_xlocale = xyes; then 15781if test x$rxvt_cv_func_xlocale = xyes; then
15782
9062 cat >> confdefs.h <<\EOF 15783cat >>confdefs.h <<\_ACEOF
9063#define HAVE_XLOCALE 1 15784#define HAVE_XLOCALE 1
9064EOF 15785_ACEOF
9065 15786
9066fi 15787fi
9067 15788
15789echo "$as_me:$LINENO: checking for working X setlocale" >&5
9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15790echo $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 15791if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9071 echo $ac_n "(cached) $ac_c" 1>&6 15792 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else 15793else
9073 cat > conftest.$ac_ext <<EOF 15794 cat >conftest.$ac_ext <<_ACEOF
9074#line 9075 "configure" 15795/* confdefs.h. */
9075#include "confdefs.h" 15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
9076#define X_LOCALE 1 15800#define X_LOCALE 1
9077#include <X11/Xlocale.h> 15801#include <X11/Xlocale.h>
9078int main() { 15802int
15803main ()
15804{
9079setlocale(LC_CTYPE, ""); 15805setlocale(LC_CTYPE, "");
15806 ;
9080; return 0; } 15807 return 0;
9081EOF 15808}
9082if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15809_ACEOF
15810rm -f conftest.$ac_objext conftest$ac_exeext
15811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -rf conftest* 15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
9084 rxvt_cv_func_xsetlocale=yes 15831 rxvt_cv_func_xsetlocale=yes
9085else 15832else
9086 echo "configure: failed program was:" >&5 15833 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5 15834sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest* 15835
9089 rxvt_cv_func_xsetlocale=no 15836rxvt_cv_func_xsetlocale=no
9090fi 15837fi
9091rm -f conftest* 15838rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
9092fi 15840fi
9093 15841echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9094echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15842echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9095if test x$rxvt_cv_func_xsetlocale = xyes; then 15843if test x$rxvt_cv_func_xsetlocale = xyes; then
15844
9096 cat >> confdefs.h <<\EOF 15845cat >>confdefs.h <<\_ACEOF
9097#define HAVE_XSETLOCALE 1 15846#define HAVE_XSETLOCALE 1
9098EOF 15847_ACEOF
9099 15848
9100fi 15849fi
9101LIBS=$ac_save_LIBS 15850LIBS=$ac_save_LIBS
9102CFLAGS=$ac_save_CFLAGS 15851CFLAGS=$ac_save_CFLAGS
9103 15852
15853echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15854echo $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 15855if test "${rxvt_cv_func_setlocale+set}" = set; then
9107 echo $ac_n "(cached) $ac_c" 1>&6 15856 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else 15857else
9109 cat > conftest.$ac_ext <<EOF 15858 cat >conftest.$ac_ext <<_ACEOF
9110#line 9111 "configure" 15859/* confdefs.h. */
9111#include "confdefs.h" 15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
9112#include <locale.h> 15864#include <locale.h>
9113int main() { 15865int
15866main ()
15867{
9114setlocale(LC_CTYPE, ""); 15868setlocale(LC_CTYPE, "");
15869 ;
9115; return 0; } 15870 return 0;
9116EOF 15871}
9117if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15872_ACEOF
15873rm -f conftest.$ac_objext conftest$ac_exeext
15874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -rf conftest* 15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest$ac_exeext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
9119 rxvt_cv_func_setlocale=yes 15894 rxvt_cv_func_setlocale=yes
9120else 15895else
9121 echo "configure: failed program was:" >&5 15896 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 15897sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -rf conftest* 15898
9124 rxvt_cv_func_setlocale=no 15899rxvt_cv_func_setlocale=no
9125fi 15900fi
9126rm -f conftest* 15901rm -f conftest.err conftest.$ac_objext \
15902 conftest$ac_exeext conftest.$ac_ext
9127fi 15903fi
9128 15904echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9129echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15905echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9130if test x$rxvt_cv_func_setlocale = xyes; then 15906if test x$rxvt_cv_func_setlocale = xyes; then
15907
9131 cat >> confdefs.h <<\EOF 15908cat >>confdefs.h <<\_ACEOF
9132#define HAVE_SETLOCALE 1 15909#define HAVE_SETLOCALE 1
9133EOF 15910_ACEOF
9134 15911
9135fi 15912fi
9136 15913
15914echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15915echo $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 15916if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9140 echo $ac_n "(cached) $ac_c" 1>&6 15917 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else 15918else
9142 cat > conftest.$ac_ext <<EOF 15919 cat >conftest.$ac_ext <<_ACEOF
9143#line 9144 "configure" 15920/* confdefs.h. */
9144#include "confdefs.h" 15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
9145#include <langinfo.h> 15925#include <langinfo.h>
9146int main() { 15926int
15927main ()
15928{
9147nl_langinfo(CODESET); 15929nl_langinfo(CODESET);
15930 ;
9148; return 0; } 15931 return 0;
9149EOF 15932}
9150if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -rf conftest* 15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
9152 rxvt_cv_func_nl_langinfo=yes 15955 rxvt_cv_func_nl_langinfo=yes
9153else 15956else
9154 echo "configure: failed program was:" >&5 15957 echo "$as_me: failed program was:" >&5
9155 cat conftest.$ac_ext >&5 15958sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -rf conftest* 15959
9157 rxvt_cv_func_nl_langinfo=no 15960rxvt_cv_func_nl_langinfo=no
9158fi 15961fi
9159rm -f conftest* 15962rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
9160fi 15964fi
9161 15965echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9162echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15966echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9163if test x$rxvt_cv_func_nl_langinfo = xyes; then 15967if test x$rxvt_cv_func_nl_langinfo = xyes; then
15968
9164 cat >> confdefs.h <<\EOF 15969cat >>confdefs.h <<\_ACEOF
9165#define HAVE_NL_LANGINFO 1 15970#define HAVE_NL_LANGINFO 1
9166EOF 15971_ACEOF
9167 15972
9168fi 15973fi
9169 15974
15975echo "$as_me:$LINENO: checking for getpt" >&5
9170echo $ac_n "checking for getpt""... $ac_c" 1>&6 15976echo $ECHO_N "checking for getpt... $ECHO_C" >&6
9171echo "configure:9172: checking for getpt" >&5
9172if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 15977if test "${rxvt_cv_func_getpt+set}" = set; then
9173 echo $ac_n "(cached) $ac_c" 1>&6 15978 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else 15979else
9175 cat > conftest.$ac_ext <<EOF 15980 cat >conftest.$ac_ext <<_ACEOF
9176#line 9177 "configure" 15981/* confdefs.h. */
9177#include "confdefs.h" 15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
9178#define _GNU_SOURCE 15986#define _GNU_SOURCE
9179#ifdef HAVE_STDLIB_H 15987#ifdef HAVE_STDLIB_H
9180# include <stdlib.h> 15988# include <stdlib.h>
9181#endif 15989#endif
9182int main() { 15990int
15991main ()
15992{
9183(void)getpt(); 15993(void)getpt();
15994 ;
9184; return 0; } 15995 return 0;
9185EOF 15996}
9186if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15997_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext
15999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -rf conftest* 16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
9188 rxvt_cv_func_getpt=yes 16019 rxvt_cv_func_getpt=yes
9189else 16020else
9190 echo "configure: failed program was:" >&5 16021 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 16022sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -rf conftest* 16023
9193 rxvt_cv_func_getpt=no 16024rxvt_cv_func_getpt=no
9194fi 16025fi
9195rm -f conftest* 16026rm -f conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
9196fi 16028fi
9197 16029echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9198echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16030echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9199if test x$rxvt_cv_func_getpt = xyes; then 16031if test x$rxvt_cv_func_getpt = xyes; then
16032
9200 cat >> confdefs.h <<\EOF 16033cat >>confdefs.h <<\_ACEOF
9201#define HAVE_GETPT 1 16034#define HAVE_GETPT 1
9202EOF 16035_ACEOF
9203 16036
9204fi 16037fi
9205 16038
16039echo "$as_me:$LINENO: checking for pty/tty type" >&5
9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16040echo $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 16041if test "${rxvt_cv_ptys+set}" = set; then
9209 echo $ac_n "(cached) $ac_c" 1>&6 16042 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else 16043else
9211 if test x$ac_cv_func_openpty = xyes; then 16044 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY 16045 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then 16046 else if test x$ac_cv_func__getpty = xyes; then
9214 rxvt_cv_ptys=SGI4 16047 rxvt_cv_ptys=SGI4
9237fi 16070fi
9238fi 16071fi
9239fi 16072fi
9240 16073
9241fi 16074fi
9242 16075echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9243echo "$ac_t""$rxvt_cv_ptys" 1>&6 16076echo "${ECHO_T}$rxvt_cv_ptys" >&6
9244 16077
9245if test x$rxvt_cv_ptys = xOPENPTY; then 16078if test x$rxvt_cv_ptys = xOPENPTY; then
16079
9246 cat >> confdefs.h <<\EOF 16080cat >>confdefs.h <<\_ACEOF
9247#define PTYS_ARE_OPENPTY 1 16081#define PTYS_ARE_OPENPTY 1
9248EOF 16082_ACEOF
9249 16083
9250fi 16084fi
9251if test x$rxvt_cv_ptys = xSCO; then 16085if test x$rxvt_cv_ptys = xSCO; then
16086
9252 cat >> confdefs.h <<\EOF 16087cat >>confdefs.h <<\_ACEOF
9253#define PTYS_ARE_NUMERIC 1 16088#define PTYS_ARE_NUMERIC 1
9254EOF 16089_ACEOF
9255 16090
9256fi 16091fi
9257if test x$rxvt_cv_ptys = xSTREAMS; then 16092if test x$rxvt_cv_ptys = xSTREAMS; then
16093
9258 cat >> confdefs.h <<\EOF 16094cat >>confdefs.h <<\_ACEOF
9259#define PTYS_ARE_PTMX 1 16095#define PTYS_ARE_PTMX 1
9260EOF 16096_ACEOF
9261 16097
9262fi 16098fi
9263if test x$rxvt_cv_ptys = xPTC; then 16099if test x$rxvt_cv_ptys = xPTC; then
16100
9264 cat >> confdefs.h <<\EOF 16101cat >>confdefs.h <<\_ACEOF
9265#define PTYS_ARE_PTC 1 16102#define PTYS_ARE_PTC 1
9266EOF 16103_ACEOF
9267 16104
9268fi 16105fi
9269if test x$rxvt_cv_ptys = xSGI4; then 16106if test x$rxvt_cv_ptys = xSGI4; then
16107
9270 cat >> confdefs.h <<\EOF 16108cat >>confdefs.h <<\_ACEOF
9271#define PTYS_ARE__GETPTY 1 16109#define PTYS_ARE__GETPTY 1
9272EOF 16110_ACEOF
9273 16111
9274fi 16112fi
9275if test x$rxvt_cv_ptys = xCONVEX; then 16113if test x$rxvt_cv_ptys = xCONVEX; then
16114
9276 cat >> confdefs.h <<\EOF 16115cat >>confdefs.h <<\_ACEOF
9277#define PTYS_ARE_GETPTY 1 16116#define PTYS_ARE_GETPTY 1
9278EOF 16117_ACEOF
9279 16118
9280fi 16119fi
9281if test x$rxvt_cv_ptys = xGLIBC; then 16120if test x$rxvt_cv_ptys = xGLIBC; then
16121
9282 cat >> confdefs.h <<\EOF 16122cat >>confdefs.h <<\_ACEOF
9283#define PTYS_ARE_GETPT 1 16123#define PTYS_ARE_GETPT 1
9284EOF 16124_ACEOF
9285 16125
9286fi 16126fi
9287if test x$rxvt_cv_ptys = xHPUX; then 16127if test x$rxvt_cv_ptys = xHPUX; then
16128
9288 cat >> confdefs.h <<\EOF 16129cat >>confdefs.h <<\_ACEOF
9289#define PTYS_ARE_CLONE 1 16130#define PTYS_ARE_CLONE 1
9290EOF 16131_ACEOF
9291 16132
9292fi 16133fi
9293if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16134if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16135
9294 cat >> confdefs.h <<\EOF 16136cat >>confdefs.h <<\_ACEOF
9295#define PTYS_ARE_SEARCHED 1 16137#define PTYS_ARE_SEARCHED 1
9296EOF 16138_ACEOF
9297 16139
9298fi 16140fi
9299 16141
9300 16142
16143{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9301echo "checking for pty ranges" 1>&6 16144echo "$as_me: checking for pty ranges..." >&6;}
9302echo "configure:9303: checking for pty ranges" >&5
9303ptys=`echo /dev/pty??` 16145ptys=`echo /dev/pty??`
9304pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16146pch1=`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'` 16147pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9306if test x$pch1 != x; then 16148if test x$pch1 != x; then
16149
9307 cat >> confdefs.h <<EOF 16150cat >>confdefs.h <<_ACEOF
9308#define PTYCHAR1 "$pch1" 16151#define PTYCHAR1 "$pch1"
9309EOF 16152_ACEOF
9310 16153
9311fi 16154fi
9312if test x$pch2 != x; then 16155if test x$pch2 != x; then
16156
9313 cat >> confdefs.h <<EOF 16157cat >>confdefs.h <<_ACEOF
9314#define PTYCHAR2 "$pch2" 16158#define PTYCHAR2 "$pch2"
9315EOF 16159_ACEOF
9316 16160
9317fi 16161fi
9318 16162
16163echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16164echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9320echo "configure:9321: checking for setlocale in -lxpg4" >&5 16165if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
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 16166 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else 16167else
9325 ac_save_LIBS="$LIBS" 16168 ac_check_lib_save_LIBS=$LIBS
9326LIBS="-lxpg4 $LIBS" 16169LIBS="-lxpg4 $LIBS"
9327cat > conftest.$ac_ext <<EOF 16170cat >conftest.$ac_ext <<_ACEOF
9328#line 9329 "configure" 16171/* confdefs.h. */
9329#include "confdefs.h" 16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176
9330/* Override any gcc2 internal prototype to avoid an error. */ 16177/* Override any gcc2 internal prototype to avoid an error. */
16178#ifdef __cplusplus
16179extern "C"
16180#endif
9331/* We use char because int might match the return type of a gcc2 16181/* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */ 16182 builtin and then its argument prototype would still apply. */
9333char setlocale(); 16183char setlocale ();
9334 16184int
9335int main() { 16185main ()
16186{
9336setlocale() 16187setlocale ();
16188 ;
9337; return 0; } 16189 return 0;
9338EOF 16190}
9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16191_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -rf conftest* 16197 rm -f conftest.er1
9341 eval "ac_cv_lib_$ac_lib_var=yes" 16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_lib_xpg4_setlocale=yes
9342else 16214else
9343 echo "configure: failed program was:" >&5 16215 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5 16216sed 's/^/| /' conftest.$ac_ext >&5
9345 rm -rf conftest* 16217
9346 eval "ac_cv_lib_$ac_lib_var=no" 16218ac_cv_lib_xpg4_setlocale=no
9347fi 16219fi
9348rm -f conftest* 16220rm -f conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
9349LIBS="$ac_save_LIBS" 16222LIBS=$ac_check_lib_save_LIBS
9350
9351fi 16223fi
9352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16224echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9353 echo "$ac_t""yes" 1>&6 16225echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16226if test $ac_cv_lib_xpg4_setlocale = yes; then
9354 LIBS="$LIBS -lxpg4" 16227 LIBS="$LIBS -lxpg4"
9355else
9356 echo "$ac_t""no" 1>&6
9357fi 16228fi
9358 16229
9359 16230
9360if test x$support_graphics = xyes; then
9361 cat >> confdefs.h <<\EOF
9362#define RXVT_GRAPHICS 1
9363EOF
9364
9365fi
9366if test x$support_inheritpixmap = xyes; then 16231if test x$support_inheritpixmap = xyes; then
16232
9367 cat >> confdefs.h <<\EOF 16233cat >>confdefs.h <<\_ACEOF
9368#define TRANSPARENT 1 16234#define TRANSPARENT 1
9369EOF 16235_ACEOF
9370 16236
9371fi 16237fi
9372if test x$support_keepscrolling = xno; then 16238if test x$support_keepscrolling = xno; then
16239
9373 cat >> confdefs.h <<\EOF 16240cat >>confdefs.h <<\_ACEOF
9374#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16241#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9375EOF 16242_ACEOF
9376 16243
9377fi 16244fi
9378if test x$support_selectionscrolling = xyes; then 16245if test x$support_selectionscrolling = xyes; then
16246
9379 cat >> confdefs.h <<\EOF 16247cat >>confdefs.h <<\_ACEOF
9380#define SELECTION_SCROLLING 1 16248#define SELECTION_SCROLLING 1
9381EOF 16249_ACEOF
9382 16250
9383fi 16251fi
9384if test x$support_menubar = xyes; then 16252if test x$support_menubar = xyes; then
16253
9385 cat >> confdefs.h <<\EOF 16254cat >>confdefs.h <<\_ACEOF
9386#define MENUBAR 1 16255#define MENUBAR 1
9387EOF 16256_ACEOF
9388 16257
9389fi 16258fi
9390if test x$support_frills = xno; then 16259if test x$support_frills = xno; then
16260
9391 cat >> confdefs.h <<\EOF 16261cat >>confdefs.h <<\_ACEOF
9392#define NO_FRILLS 1 16262#define NO_FRILLS 1
9393EOF 16263_ACEOF
9394 16264
9395fi 16265fi
9396if test x$support_linespace = xno; then 16266if test x$support_linespace = xno; then
16267
9397 cat >> confdefs.h <<\EOF 16268cat >>confdefs.h <<\_ACEOF
9398#define NO_LINESPACE 1 16269#define NO_LINESPACE 1
9399EOF 16270_ACEOF
9400 16271
9401fi 16272fi
9402if test x$support_24bit = xyes; then 16273if test x$support_24bit = xyes; then
16274
9403 cat >> confdefs.h <<\EOF 16275cat >>confdefs.h <<\_ACEOF
9404#define PREFER_24BIT 1 16276#define PREFER_24BIT 1
9405EOF 16277_ACEOF
9406 16278
9407fi 16279fi
9408if test x$support_mousewheel = xyes; then 16280if test x$support_mousewheel = xyes; then
16281
9409 cat >> confdefs.h <<\EOF 16282cat >>confdefs.h <<\_ACEOF
9410#define MOUSE_WHEEL 1 16283#define MOUSE_WHEEL 1
9411EOF 16284_ACEOF
9412 16285
9413fi 16286fi
9414if test x$support_mouseslipwheel = xyes; then 16287if test x$support_mouseslipwheel = xyes; then
16288
9415 cat >> confdefs.h <<\EOF 16289cat >>confdefs.h <<\_ACEOF
9416#define MOUSE_SLIP_WHEELING 1 16290#define MOUSE_SLIP_WHEELING 1
9417EOF 16291_ACEOF
9418 16292
9419fi 16293fi
9420if test x$support_oldselection = xno; then 16294if test x$support_oldselection = xno; then
16295
9421 cat >> confdefs.h <<\EOF 16296cat >>confdefs.h <<\_ACEOF
9422#define NO_OLD_SELECTION 1 16297#define NO_OLD_SELECTION 1
9423EOF 16298_ACEOF
9424 16299
9425fi 16300fi
9426if test x$support_utmp = xyes; then 16301if test x$support_utmp = xyes; then
16302
9427 cat >> confdefs.h <<\EOF 16303cat >>confdefs.h <<\_ACEOF
9428#define UTMP_SUPPORT 1 16304#define UTMP_SUPPORT 1
9429EOF 16305_ACEOF
9430 16306
9431fi 16307fi
9432if test x$support_wtmp = xyes; then 16308if test x$support_wtmp = xyes; then
16309
9433 cat >> confdefs.h <<\EOF 16310cat >>confdefs.h <<\_ACEOF
9434#define WTMP_SUPPORT 1 16311#define WTMP_SUPPORT 1
9435EOF 16312_ACEOF
9436 16313
9437fi 16314fi
9438if test x$support_lastlog = xyes; then 16315if test x$support_lastlog = xyes; then
16316
9439 cat >> confdefs.h <<\EOF 16317cat >>confdefs.h <<\_ACEOF
9440#define LASTLOG_SUPPORT 1 16318#define LASTLOG_SUPPORT 1
9441EOF 16319_ACEOF
9442 16320
9443fi 16321fi
9444if test x$support_xim = xyes -o x$multichar_set = xyes; then 16322if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then 16323 if test x$rxvt_cv_func_xlocale = xyes; then
16324
9446 cat >> confdefs.h <<\EOF 16325cat >>confdefs.h <<\_ACEOF
9447#define USE_XIM 1 16326#define USE_XIM 1
9448EOF 16327_ACEOF
9449 16328
9450 fi 16329 fi
9451fi 16330fi
9452if test x$support_xpm = xyes; then 16331if test x$support_xpm = xyes; then
16332
9453 cat >> confdefs.h <<\EOF 16333cat >>confdefs.h <<\_ACEOF
9454#define XPM_BACKGROUND 1 16334#define XPM_BACKGROUND 1
9455EOF 16335_ACEOF
9456 16336
9457fi 16337fi
9458if test x$support_scroll_rxvt = xyes; then 16338if test x$support_scroll_rxvt = xyes; then
16339
9459 cat >> confdefs.h <<\EOF 16340cat >>confdefs.h <<\_ACEOF
9460#define RXVT_SCROLLBAR 1 16341#define RXVT_SCROLLBAR 1
9461EOF 16342_ACEOF
9462 16343
9463 scrolltypes="rxvt" 16344 scrolltypes="rxvt"
9464fi 16345fi
9465if test x$support_scroll_next = xyes; then 16346if test x$support_scroll_next = xyes; then
16347
9466 cat >> confdefs.h <<\EOF 16348cat >>confdefs.h <<\_ACEOF
9467#define NEXT_SCROLLBAR 1 16349#define NEXT_SCROLLBAR 1
9468EOF 16350_ACEOF
9469 16351
9470 scrolltypes="$scrolltypes next" 16352 scrolltypes="$scrolltypes next"
9471fi 16353fi
9472if test x$support_scroll_xterm = xyes; then 16354if test x$support_scroll_xterm = xyes; then
16355
9473 cat >> confdefs.h <<\EOF 16356cat >>confdefs.h <<\_ACEOF
9474#define XTERM_SCROLLBAR 1 16357#define XTERM_SCROLLBAR 1
9475EOF 16358_ACEOF
9476 16359
9477 scrolltypes="$scrolltypes xterm" 16360 scrolltypes="$scrolltypes xterm"
9478fi 16361fi
16362if test x$support_scroll_plain = xyes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define PLAIN_SCROLLBAR 1
16366_ACEOF
16367
16368 scrolltypes="$scrolltypes plain"
16369fi
9479if test x$support_pointer_blank = xyes; then 16370if test x$support_pointer_blank = xyes; then
16371
9480 cat >> confdefs.h <<\EOF 16372cat >>confdefs.h <<\_ACEOF
9481#define POINTER_BLANK 1 16373#define POINTER_BLANK 1
9482EOF 16374_ACEOF
9483 16375
9484fi 16376fi
9485if test x$support_cursor_blink = xyes; then 16377if test x$support_cursor_blink = xyes; then
16378
9486 cat >> confdefs.h <<\EOF 16379cat >>confdefs.h <<\_ACEOF
9487#define CURSOR_BLINK 1 16380#define CURSOR_BLINK 1
9488EOF 16381_ACEOF
16382
16383fi
16384if test x$support_text_blink = xyes; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define TEXT_BLINK 1
16388_ACEOF
9489 16389
9490fi 16390fi
9491if test x$support_unicode3 = xyes; then 16391if test x$support_unicode3 = xyes; then
16392
9492 cat >> confdefs.h <<\EOF 16393cat >>confdefs.h <<\_ACEOF
9493#define UNICODE_3 1 16394#define UNICODE_3 1
9494EOF 16395_ACEOF
9495 16396
9496fi 16397fi
9497if test x$codesets = xall; then 16398if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16399 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9499fi 16400fi
9500for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16401for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16402
9501 cat >> confdefs.h <<\EOF 16403cat >>confdefs.h <<\_ACEOF
9502#define ENCODING_EU 1 16404#define ENCODING_EU 1
9503EOF 16405_ACEOF
16406
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_VN 1
16410_ACEOF
9504 16411
9505 case "$codeset" in 16412 case "$codeset" in
9506 VN ) cat >> confdefs.h <<\EOF 16413 JP )
16414cat >>confdefs.h <<\_ACEOF
9507#define ENCODING_VN 1 16415#define ENCODING_JP 1
9508EOF 16416_ACEOF
9509 ;; 16417 ;;
9510 JP ) cat >> confdefs.h <<\EOF 16418 JP_EXT )
16419cat >>confdefs.h <<\_ACEOF
9511#define ENCODING_JP 1 16420#define ENCODING_JP_EXT 1
9512EOF 16421_ACEOF
9513 ;; 16422 ;;
9514 JP_EXT ) cat >> confdefs.h <<\EOF 16423 KR )
16424cat >>confdefs.h <<\_ACEOF
9515#define ENCODING_JP_EXT 1 16425#define ENCODING_KR 1
9516EOF 16426_ACEOF
9517 ;; 16427 ;;
9518 KR ) cat >> confdefs.h <<\EOF 16428 CN )
16429cat >>confdefs.h <<\_ACEOF
9519#define ENCODING_KR 1 16430#define ENCODING_CN 1
9520EOF 16431_ACEOF
9521 ;; 16432 ;;
9522 CN ) cat >> confdefs.h <<\EOF 16433 CN_EXT )
9523#define ENCODING_CN 1 16434cat >>confdefs.h <<\_ACEOF
9524EOF
9525 ;;
9526 CN_EXT ) cat >> confdefs.h <<\EOF
9527#define ENCODING_CN_EXT 1 16435#define ENCODING_CN_EXT 1
9528EOF 16436_ACEOF
9529 ;; 16437 ;;
9530 esac 16438 esac
9531done 16439done
9532 16440
9533 16441
9553 16461
9554 16462
9555 16463
9556 16464
9557if test x$support_addstrings = xno; then 16465if test x$support_addstrings = xno; then
16466
9558 cat >> confdefs.h <<\EOF 16467cat >>confdefs.h <<\_ACEOF
9559#define NO_STRINGS 1 16468#define NO_STRINGS 1
9560EOF 16469_ACEOF
9561 16470
9562fi 16471fi
9563 16472
9564MCOMMON=./autoconf/Make.common 16473MCOMMON=./autoconf/Make.common
9565 16474
9566 16475
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 && 16476test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9579# Use a double $ so make ignores it. 16478# Use a double $ so make ignores it.
9580test "$program_suffix" != NONE && 16479test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9582 16481# Double any \ or $. echo might interpret backslashes.
9583# sed with no file args requires a program. 16482# By default was `s,x,x', remove it if useless.
9584test "$program_transform_name" = "" && program_transform_name="s,x,x," 16483cat <<\_ACEOF >conftest.sed
9585 16484s/[\\$]/&&/g;s/;s,x,x,$//
9586 16485_ACEOF
9587RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16487rm conftest.sed
9588 16488
9589 16489
9590 16490
9591 16491
9592 16492
9593if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16493if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>" 16494 include_stdint_h="#include <stdint.h>"
9595else 16495else
9596 include_stdint_h="/* #include <stdint.h> */" 16496 include_stdint_h="/* #include <stdint.h> */"
9597fi 16497fi
9598if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16498if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>" 16499 include_stdarg_h="#include <stdarg.h>"
9600else 16500else
9601 include_stdarg_h="/* #include <stdarg.h> */" 16501 include_stdarg_h="/* #include <stdarg.h> */"
9602fi 16502fi
9603if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16503if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>" 16504 include_stdlib_h="#include <stdlib.h>"
9605else 16505else
9606 include_stdlib_h="/* #include <stdlib.h> */" 16506 include_stdlib_h="/* #include <stdlib.h> */"
9607fi 16507fi
9608if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16508if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>" 16509 include_unistd_h="#include <unistd.h>"
9610else 16510else
9611 include_unistd_h="/* #include <unistd.h> */" 16511 include_unistd_h="/* #include <unistd.h> */"
9612fi 16512fi
9613if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16513if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>" 16514 include_string_h="#include <string.h>"
9615else 16515else
9616 include_string_h="/* #include <string.h> */" 16516 include_string_h="/* #include <string.h> */"
9617fi 16517fi
9618if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16518if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>" 16519 include_fcntl_h="#include <fcntl.h>"
9620else 16520else
9621 include_fcntl_h="/* #include <fcntl.h> */" 16521 include_fcntl_h="/* #include <fcntl.h> */"
9622fi 16522fi
9623if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16523if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>" 16524 include_util_h="#include <util.h>"
9625else 16525else
9626 include_util_h="/* #include <util.h> */" 16526 include_util_h="/* #include <util.h> */"
9627fi 16527fi
9628if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16528if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>" 16529 include_assert_h="#include <assert.h>"
9630else 16530else
9631 include_assert_h="/* #include <assert.h> */" 16531 include_assert_h="/* #include <assert.h> */"
9632fi 16532fi
9633if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16533if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>" 16534 include_sys_ioctl_h="#include <sys/ioctl.h>"
9635else 16535else
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16536 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9637fi 16537fi
9638if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16538if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9639 include_sys_select_h="#include <sys/select.h>" 16539 include_sys_select_h="#include <sys/select.h>"
9640else 16540else
9641 include_sys_select_h="/* #include <sys/select.h> */" 16541 include_sys_select_h="/* #include <sys/select.h> */"
9642fi 16542fi
9643if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16543if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9644 include_sys_strredir_h="#include <sys/strredir.h>" 16544 include_sys_strredir_h="#include <sys/strredir.h>"
9645else 16545else
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16546 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9647fi 16547fi
9648if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16548if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9649 include_sys_time_h="#include <sys/time.h>" 16549 include_sys_time_h="#include <sys/time.h>"
9650else 16550else
9651 include_sys_time_h="/* #include <sys/time.h> */" 16551 include_sys_time_h="/* #include <sys/time.h> */"
9652fi 16552fi
9653if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16553if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9654 include_time_h="#include <time.h>" 16554 include_time_h="#include <time.h>"
9655else 16555else
9656 include_time_h="/* #include <time.h> */" 16556 include_time_h="/* #include <time.h> */"
9657fi 16557fi
9658 16558
9659if test x$support_xft = xyes; then 16559if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`" 16560 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16561 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16562 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9663 16563
16564
9664 for ac_hdr in X11/Xft/Xft.h 16565for ac_header in X11/Xft/Xft.h
9665do 16566do
9666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16568if eval "test \"\${$as_ac_Header+set}\" = set"; then
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668echo "configure:9669: checking for $ac_hdr" >&5 16571if 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 16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573fi
16574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671else 16576else
16577 # Is the header compilable?
16578echo "$as_me:$LINENO: checking $ac_header usability" >&5
16579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9672 cat > conftest.$ac_ext <<EOF 16580cat >conftest.$ac_ext <<_ACEOF
9673#line 9674 "configure" 16581/* confdefs.h. */
9674#include "confdefs.h" 16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586$ac_includes_default
9675#include <$ac_hdr> 16587#include <$ac_header>
9676EOF 16588_ACEOF
9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16589rm -f conftest.$ac_objext
9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16591 (eval $ac_compile) 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615ac_header_compiler=no
16616fi
16617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16619echo "${ECHO_T}$ac_header_compiler" >&6
16620
16621# Is the header present?
16622echo "$as_me:$LINENO: checking $ac_header presence" >&5
16623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16624cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630#include <$ac_header>
16631_ACEOF
16632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } >/dev/null; then
16640 if test -s conftest.err; then
16641 ac_cpp_err=$ac_cxx_preproc_warn_flag
16642 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16643 else
16644 ac_cpp_err=
16645 fi
16646else
16647 ac_cpp_err=yes
16648fi
9680if test -z "$ac_err"; then 16649if test -z "$ac_cpp_err"; then
9681 rm -rf conftest* 16650 ac_header_preproc=yes
9682 eval "ac_cv_header_$ac_safe=yes"
9683else 16651else
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5 16652 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5 16653sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -rf conftest* 16654
9688 eval "ac_cv_header_$ac_safe=no" 16655 ac_header_preproc=no
9689fi 16656fi
9690rm -f conftest* 16657rm -f conftest.err conftest.$ac_ext
16658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16659echo "${ECHO_T}$ac_header_preproc" >&6
16660
16661# So? What about this header?
16662case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16663 yes:no: )
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16668 ac_header_preproc=yes
16669 ;;
16670 no:yes:* )
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16683 (
16684 cat <<\_ASBOX
16685## ------------------------------------------ ##
16686## Report this to the AC_PACKAGE_NAME lists. ##
16687## ------------------------------------------ ##
16688_ASBOX
16689 ) |
16690 sed "s/^/$as_me: WARNING: /" >&2
16691 ;;
16692esac
16693echo "$as_me:$LINENO: checking for $ac_header" >&5
16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16695if eval "test \"\${$as_ac_Header+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 eval "$as_ac_Header=\$ac_header_preproc"
9691fi 16699fi
9692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "$ac_t""yes" 1>&6 16701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16702
16703fi
16704if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >> confdefs.h <<EOF 16705 cat >>confdefs.h <<_ACEOF
9696#define $ac_tr_hdr 1 16706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697EOF 16707_ACEOF
9698 16708
9699else 16709else
9700 echo "$ac_t""no" 1>&6
9701support_xft=no 16710 support_xft=no
9702fi 16711fi
16712
9703done 16713done
9704 16714
16715
16716echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16717echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5 16718if 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 16719 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else 16720else
9711 ac_save_LIBS="$LIBS" 16721 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-lXft $LIBS" 16722LIBS="-lXft $LIBS"
9713cat > conftest.$ac_ext <<EOF 16723cat >conftest.$ac_ext <<_ACEOF
9714#line 9715 "configure" 16724/* confdefs.h. */
9715#include "confdefs.h" 16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729
9716/* Override any gcc2 internal prototype to avoid an error. */ 16730/* Override any gcc2 internal prototype to avoid an error. */
16731#ifdef __cplusplus
16732extern "C"
16733#endif
9717/* We use char because int might match the return type of a gcc2 16734/* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */ 16735 builtin and then its argument prototype would still apply. */
9719char XftDrawString32(); 16736char XftDrawString32 ();
9720 16737int
9721int main() { 16738main ()
16739{
9722XftDrawString32() 16740XftDrawString32 ();
16741 ;
9723; return 0; } 16742 return 0;
9724EOF 16743}
9725if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16744_ACEOF
16745rm -f conftest.$ac_objext conftest$ac_exeext
16746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -rf conftest* 16750 rm -f conftest.er1
9727 eval "ac_cv_lib_$ac_lib_var=yes" 16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest$ac_exeext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_cv_lib_Xft_XftDrawString32=yes
9728else 16767else
9729 echo "configure: failed program was:" >&5 16768 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5 16769sed 's/^/| /' conftest.$ac_ext >&5
9731 rm -rf conftest* 16770
9732 eval "ac_cv_lib_$ac_lib_var=no" 16771ac_cv_lib_Xft_XftDrawString32=no
9733fi 16772fi
9734rm -f conftest* 16773rm -f conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
9735LIBS="$ac_save_LIBS" 16775LIBS=$ac_check_lib_save_LIBS
9736
9737fi 16776fi
9738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16777echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9739 echo "$ac_t""yes" 1>&6 16778echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16779if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF 16780 cat >>confdefs.h <<_ACEOF
9743#define $ac_tr_lib 1 16781#define HAVE_LIBXFT 1
9744EOF 16782_ACEOF
9745 16783
9746 LIBS="-lXft $LIBS" 16784 LIBS="-lXft $LIBS"
9747 16785
9748else 16786else
9749 echo "$ac_t""no" 1>&6
9750support_xft=no 16787 support_xft=no
9751fi 16788fi
9752 16789
9753 16790
9754 if test x$support_xft = xyes; then 16791 if test x$support_xft = xyes; then
16792
9755 cat >> confdefs.h <<\EOF 16793cat >>confdefs.h <<\_ACEOF
9756#define XFT 1 16794#define XFT 1
9757EOF 16795_ACEOF
9758 16796
9759 fi 16797 fi
9760fi 16798fi
9761 16799
9762trap '' 1 2 15 16800 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 16801cat >confcache <<\_ACEOF
9764# This file is a shell script that caches the results of configure 16802# 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 16803# tests run on this system so they can be shared between configure
9766# scripts and configure runs. It is not useful on other systems. 16804# 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. 16805# It is not useful on other systems. If it contains results you don't
16806# want to keep, you may remove or edit it.
9768# 16807#
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 16808# config.status only pays attention to the cache file if you give it
9776# --recheck option to rerun configure. 16809# the --recheck option to rerun configure.
9777# 16810#
9778EOF 16811# `ac_cv_env_foo' variables (set or unset) will be overridden when
16812# loading this file, other *unset* `ac_cv_foo' will be assigned the
16813# following values.
16814
16815_ACEOF
16816
9779# The following way of writing the cache mishandles newlines in values, 16817# The following way of writing the cache mishandles newlines in values,
9780# but we know of no workaround that is simple, portable, and efficient. 16818# but we know of no workaround that is simple, portable, and efficient.
9781# So, don't put newlines in cache variables' values. 16819# So, don't put newlines in cache variables' values.
9782# Ultrix sh set writes to stderr and can't be redirected directly, 16820# 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. 16821# and sets the high bit in the cache file unless we assign to the vars.
16822{
9784(set) 2>&1 | 16823 (set) 2>&1 |
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9786 *ac_space=\ *) 16825 *ac_space=\ *)
9787 # `set' does not quote correctly, so add quotes (double-quote substitution 16826 # `set' does not quote correctly, so add quotes (double-quote
9788 # turns \\\\ into \\, and sed turns \\ into \). 16827 # substitution turns \\\\ into \\, and sed turns \\ into \).
9789 sed -n \ 16828 sed -n \
9790 -e "s/'/'\\\\''/g" \ 16829 "s/'/'\\\\''/g;
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9792 ;; 16831 ;;
9793 *) 16832 *)
9794 # `set' quotes correctly as required by POSIX, so do not add quotes. 16833 # `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' 16834 sed -n \
16835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9796 ;; 16836 ;;
9797 esac >> confcache 16837 esac;
9798if cmp -s $cache_file confcache; then 16838} |
9799 : 16839 sed '
9800else 16840 t clear
16841 : clear
16842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16843 t end
16844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16845 : end' >>confcache
16846if diff $cache_file confcache >/dev/null 2>&1; then :; else
9801 if test -w $cache_file; then 16847 if test -w $cache_file; then
9802 echo "updating cache $cache_file" 16848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9803 cat confcache > $cache_file 16849 cat confcache >$cache_file
9804 else 16850 else
9805 echo "not updating unwritable cache $cache_file" 16851 echo "not updating unwritable cache $cache_file"
9806 fi 16852 fi
9807fi 16853fi
9808rm -f confcache 16854rm -f confcache
9809 16855
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 16856test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813# Let make expand exec_prefix. 16857# Let make expand exec_prefix.
9814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9815 16859
9816# Any assignment to VPATH causes Sun make to only execute 16860# 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. 16861# ${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. 16862# trailing colons and then remove the whole line if VPATH becomes empty
16863# (actually we leave an empty line to preserve line numbers).
9819if test "x$srcdir" = x.; then 16864if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16866s/:*\$(srcdir):*/:/;
16867s/:*\${srcdir}:*/:/;
16868s/:*@srcdir@:*/:/;
16869s/^\([^=]*=[ ]*\):*/\1/;
16870s/:*$//;
16871s/^[^=]*=[ ]*$//;
16872}'
9821fi 16873fi
9822
9823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9824 16874
9825DEFS=-DHAVE_CONFIG_H 16875DEFS=-DHAVE_CONFIG_H
9826 16876
9827# Without the "./", some shells look in PATH for config.status. 16877ac_libobjs=
16878ac_ltlibobjs=
16879for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16880 # 1. Remove the extension, and $U if already installed.
16881 ac_i=`echo "$ac_i" |
16882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16883 # 2. Add them.
16884 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16885 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16886done
16887LIBOBJS=$ac_libobjs
16888
16889LTLIBOBJS=$ac_ltlibobjs
16890
16891
16892
9828: ${CONFIG_STATUS=./config.status} 16893: ${CONFIG_STATUS=./config.status}
9829 16894ac_clean_files_save=$ac_clean_files
16895ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16896{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9830echo creating $CONFIG_STATUS 16897echo "$as_me: creating $CONFIG_STATUS" >&6;}
9831rm -f $CONFIG_STATUS
9832cat > $CONFIG_STATUS <<EOF 16898cat >$CONFIG_STATUS <<_ACEOF
9833#! /bin/sh 16899#! $SHELL
9834# Generated automatically by configure. 16900# Generated by $as_me.
9835# Run this file to recreate the current configuration. 16901# 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 16902# Compiler output produced by configure, useful for debugging
9842# configure, is in ./config.log if it exists. 16903# configure, is in config.log if it exists.
9843 16904
9844ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16905debug=false
9845for ac_option 16906ac_cs_recheck=false
16907ac_cs_silent=false
16908SHELL=\${CONFIG_SHELL-$SHELL}
16909_ACEOF
16910
16911cat >>$CONFIG_STATUS <<\_ACEOF
16912## --------------------- ##
16913## M4sh Initialization. ##
16914## --------------------- ##
16915
16916# Be Bourne compatible
16917if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16918 emulate sh
16919 NULLCMD=:
16920 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16921 # is contrary to our usage. Disable this feature.
16922 alias -g '${1+"$@"}'='"$@"'
16923elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16924 set -o posix
16925fi
16926DUALCASE=1; export DUALCASE # for MKS sh
16927
16928# Support unset when possible.
16929if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16930 as_unset=unset
16931else
16932 as_unset=false
16933fi
16934
16935
16936# Work around bugs in pre-3.0 UWIN ksh.
16937$as_unset ENV MAIL MAILPATH
16938PS1='$ '
16939PS2='> '
16940PS4='+ '
16941
16942# NLS nuisances.
16943for as_var in \
16944 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16945 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16946 LC_TELEPHONE LC_TIME
9846do 16947do
16948 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16949 eval $as_var=C; export $as_var
16950 else
16951 $as_unset $as_var
16952 fi
16953done
16954
16955# Required to use basename.
16956if expr a : '\(a\)' >/dev/null 2>&1; then
16957 as_expr=expr
16958else
16959 as_expr=false
16960fi
16961
16962if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16963 as_basename=basename
16964else
16965 as_basename=false
16966fi
16967
16968
16969# Name of the executable.
16970as_me=`$as_basename "$0" ||
16971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16972 X"$0" : 'X\(//\)$' \| \
16973 X"$0" : 'X\(/\)$' \| \
16974 . : '\(.\)' 2>/dev/null ||
16975echo X/"$0" |
16976 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16977 /^X\/\(\/\/\)$/{ s//\1/; q; }
16978 /^X\/\(\/\).*/{ s//\1/; q; }
16979 s/.*/./; q'`
16980
16981
16982# PATH needs CR, and LINENO needs CR and PATH.
16983# Avoid depending upon Character Ranges.
16984as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16986as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16987as_cr_digits='0123456789'
16988as_cr_alnum=$as_cr_Letters$as_cr_digits
16989
16990# The user is always right.
16991if test "${PATH_SEPARATOR+set}" != set; then
16992 echo "#! /bin/sh" >conf$$.sh
16993 echo "exit 0" >>conf$$.sh
16994 chmod +x conf$$.sh
16995 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16996 PATH_SEPARATOR=';'
16997 else
16998 PATH_SEPARATOR=:
16999 fi
17000 rm -f conf$$.sh
17001fi
17002
17003
17004 as_lineno_1=$LINENO
17005 as_lineno_2=$LINENO
17006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17007 test "x$as_lineno_1" != "x$as_lineno_2" &&
17008 test "x$as_lineno_3" = "x$as_lineno_2" || {
17009 # Find who we are. Look in the path if we contain no path at all
17010 # relative or not.
17011 case $0 in
17012 *[\\/]* ) as_myself=$0 ;;
17013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014for as_dir in $PATH
17015do
17016 IFS=$as_save_IFS
17017 test -z "$as_dir" && as_dir=.
17018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17019done
17020
17021 ;;
17022 esac
17023 # We did not find ourselves, most probably we were run as `sh COMMAND'
17024 # in which case we are not to be found in the path.
17025 if test "x$as_myself" = x; then
17026 as_myself=$0
17027 fi
17028 if test ! -f "$as_myself"; then
17029 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17030echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17031 { (exit 1); exit 1; }; }
17032 fi
17033 case $CONFIG_SHELL in
17034 '')
17035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17037do
17038 IFS=$as_save_IFS
17039 test -z "$as_dir" && as_dir=.
17040 for as_base in sh bash ksh sh5; do
17041 case $as_dir in
17042 /*)
17043 if ("$as_dir/$as_base" -c '
17044 as_lineno_1=$LINENO
17045 as_lineno_2=$LINENO
17046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17047 test "x$as_lineno_1" != "x$as_lineno_2" &&
17048 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17049 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17050 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17051 CONFIG_SHELL=$as_dir/$as_base
17052 export CONFIG_SHELL
17053 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17054 fi;;
17055 esac
17056 done
17057done
17058;;
17059 esac
17060
17061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17062 # uniformly replaced by the line number. The first 'sed' inserts a
17063 # line-number line before each line; the second 'sed' does the real
17064 # work. The second script uses 'N' to pair each line-number line
17065 # with the numbered line, and appends trailing '-' during
17066 # substitution so that $LINENO is not a special case at line end.
17067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17068 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17069 sed '=' <$as_myself |
17070 sed '
17071 N
17072 s,$,-,
17073 : loop
17074 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17075 t loop
17076 s,-$,,
17077 s,^['$as_cr_digits']*\n,,
17078 ' >$as_me.lineno &&
17079 chmod +x $as_me.lineno ||
17080 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17081echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17082 { (exit 1); exit 1; }; }
17083
17084 # Don't try to exec as it changes $[0], causing all sort of problems
17085 # (the dirname of $[0] is not the place where we might find the
17086 # original and so on. Autoconf is especially sensible to this).
17087 . ./$as_me.lineno
17088 # Exit status is that of the last command.
17089 exit
17090}
17091
17092
17093case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17094 *c*,-n*) ECHO_N= ECHO_C='
17095' ECHO_T=' ' ;;
17096 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17097 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17098esac
17099
17100if expr a : '\(a\)' >/dev/null 2>&1; then
17101 as_expr=expr
17102else
17103 as_expr=false
17104fi
17105
17106rm -f conf$$ conf$$.exe conf$$.file
17107echo >conf$$.file
17108if ln -s conf$$.file conf$$ 2>/dev/null; then
17109 # We could just check for DJGPP; but this test a) works b) is more generic
17110 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17111 if test -f conf$$.exe; then
17112 # Don't use ln at all; we don't have any links
17113 as_ln_s='cp -p'
17114 else
17115 as_ln_s='ln -s'
17116 fi
17117elif ln conf$$.file conf$$ 2>/dev/null; then
17118 as_ln_s=ln
17119else
17120 as_ln_s='cp -p'
17121fi
17122rm -f conf$$ conf$$.exe conf$$.file
17123
17124if mkdir -p . 2>/dev/null; then
17125 as_mkdir_p=:
17126else
17127 test -d ./-p && rmdir ./-p
17128 as_mkdir_p=false
17129fi
17130
17131as_executable_p="test -f"
17132
17133# Sed expression to map a string onto a valid CPP name.
17134as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17135
17136# Sed expression to map a string onto a valid variable name.
17137as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17138
17139
17140# IFS
17141# We need space, tab and new line, in precisely that order.
17142as_nl='
17143'
17144IFS=" $as_nl"
17145
17146# CDPATH.
17147$as_unset CDPATH
17148
17149exec 6>&1
17150
17151# Open the log real soon, to keep \$[0] and so on meaningful, and to
17152# report actual input values of CONFIG_FILES etc. instead of their
17153# values after options handling. Logging --version etc. is OK.
17154exec 5>>config.log
17155{
17156 echo
17157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17158## Running $as_me. ##
17159_ASBOX
17160} >&5
17161cat >&5 <<_CSEOF
17162
17163This file was extended by $as_me, which was
17164generated by GNU Autoconf 2.59. Invocation command line was
17165
17166 CONFIG_FILES = $CONFIG_FILES
17167 CONFIG_HEADERS = $CONFIG_HEADERS
17168 CONFIG_LINKS = $CONFIG_LINKS
17169 CONFIG_COMMANDS = $CONFIG_COMMANDS
17170 $ $0 $@
17171
17172_CSEOF
17173echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17174echo >&5
17175_ACEOF
17176
17177# Files that config.status was made for.
17178if test -n "$ac_config_files"; then
17179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17180fi
17181
17182if test -n "$ac_config_headers"; then
17183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17184fi
17185
17186if test -n "$ac_config_links"; then
17187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17188fi
17189
17190if test -n "$ac_config_commands"; then
17191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17192fi
17193
17194cat >>$CONFIG_STATUS <<\_ACEOF
17195
17196ac_cs_usage="\
17197\`$as_me' instantiates files from templates according to the
17198current configuration.
17199
17200Usage: $0 [OPTIONS] [FILE]...
17201
17202 -h, --help print this help, then exit
17203 -V, --version print version number, then exit
17204 -q, --quiet do not print progress messages
17205 -d, --debug don't remove temporary files
17206 --recheck update $as_me by reconfiguring in the same conditions
17207 --file=FILE[:TEMPLATE]
17208 instantiate the configuration file FILE
17209 --header=FILE[:TEMPLATE]
17210 instantiate the configuration header FILE
17211
17212Configuration files:
17213$config_files
17214
17215Configuration headers:
17216$config_headers
17217
17218Report bugs to <bug-autoconf@gnu.org>."
17219_ACEOF
17220
17221cat >>$CONFIG_STATUS <<_ACEOF
17222ac_cs_version="\\
17223config.status
17224configured by $0, generated by GNU Autoconf 2.59,
17225 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17226
17227Copyright (C) 2003 Free Software Foundation, Inc.
17228This config.status script is free software; the Free Software Foundation
17229gives unlimited permission to copy, distribute and modify it."
17230srcdir=$srcdir
17231INSTALL="$INSTALL"
17232_ACEOF
17233
17234cat >>$CONFIG_STATUS <<\_ACEOF
17235# If no file are specified by the user, then we need to provide default
17236# value. By we need to know if files were specified by the user.
17237ac_need_defaults=:
17238while test $# != 0
17239do
17240 case $1 in
17241 --*=*)
17242 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17243 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17244 ac_shift=:
17245 ;;
17246 -*)
17247 ac_option=$1
17248 ac_optarg=$2
17249 ac_shift=shift
17250 ;;
17251 *) # This is not an option, so the user has probably given explicit
17252 # arguments.
17253 ac_option=$1
17254 ac_need_defaults=false;;
17255 esac
17256
9847 case "\$ac_option" in 17257 case $ac_option in
17258 # Handling of the options.
17259_ACEOF
17260cat >>$CONFIG_STATUS <<\_ACEOF
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17262 ac_cs_recheck=: ;;
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17263 --version | --vers* | -V )
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17264 echo "$ac_cs_version"; exit 0 ;;
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17265 --he | --h)
9853 exit 0 ;; 17266 # Conflict between --help and --header
9854 -help | --help | --hel | --he | --h) 17267 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17268Try \`$0 --help' for more information." >&5
17269echo "$as_me: error: ambiguous option: $1
17270Try \`$0 --help' for more information." >&2;}
17271 { (exit 1); exit 1; }; };;
17272 --help | --hel | -h )
9855 echo "\$ac_cs_usage"; exit 0 ;; 17273 echo "$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;; 17274 --debug | --d* | -d )
17275 debug=: ;;
17276 --file | --fil | --fi | --f )
17277 $ac_shift
17278 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17279 ac_need_defaults=false;;
17280 --header | --heade | --head | --hea )
17281 $ac_shift
17282 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17283 ac_need_defaults=false;;
17284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17286 ac_cs_silent=: ;;
17287
17288 # This is an error.
17289 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17290Try \`$0 --help' for more information." >&5
17291echo "$as_me: error: unrecognized option: $1
17292Try \`$0 --help' for more information." >&2;}
17293 { (exit 1); exit 1; }; } ;;
17294
17295 *) ac_config_targets="$ac_config_targets $1" ;;
17296
17297 esac
17298 shift
17299done
17300
17301ac_configure_extra_args=
17302
17303if $ac_cs_silent; then
17304 exec 6>/dev/null
17305 ac_configure_extra_args="$ac_configure_extra_args --silent"
17306fi
17307
17308_ACEOF
17309cat >>$CONFIG_STATUS <<_ACEOF
17310if \$ac_cs_recheck; then
17311 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17312 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17313fi
17314
17315_ACEOF
17316
17317
17318
17319
17320
17321cat >>$CONFIG_STATUS <<\_ACEOF
17322for ac_config_target in $ac_config_targets
17323do
17324 case "$ac_config_target" in
17325 # Handling of arguments.
17326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17328 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17330 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17331 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17332 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17333 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17335echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17336 { (exit 1); exit 1; }; };;
9857 esac 17337 esac
9858done 17338done
9859 17339
9860ac_given_srcdir=$srcdir 17340# If the user did not use the arguments to specify the items to instantiate,
9861ac_given_INSTALL="$INSTALL" 17341# then the envvar interface is used. Set only those that are not.
17342# We use the long form for the default assignment because of an extremely
17343# bizarre bug on SunOS 4.1.3.
17344if $ac_need_defaults; then
17345 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17346 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17347fi
9862 17348
9863trap 'rm -fr `echo "autoconf/Make.common \ 17349# Have a temporary directory for convenience. Make it in the build tree
9864Makefile \ 17350# simply because there is no reason to put it here, and in addition,
9865doc/Makefile \ 17351# creating and moving files from /tmp can sometimes cause problems.
9866src/Makefile \ 17352# Create a temporary directory, and hook for its removal unless debugging.
9867src/graphics/Makefile \ 17353$debug ||
9868src/test/Makefile \ 17354{
9869src/rxvtlib.h \ 17355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9870W11/Makefile \ 17356 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 17357}
9872EOF 17358
17359# Create a (secure) tmp directory for tmp files.
17360
17361{
17362 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17363 test -n "$tmp" && test -d "$tmp"
17364} ||
17365{
17366 tmp=./confstat$$-$RANDOM
17367 (umask 077 && mkdir $tmp)
17368} ||
17369{
17370 echo "$me: cannot create a temporary directory in ." >&2
17371 { (exit 1); exit 1; }
17372}
17373
17374_ACEOF
17375
9873cat >> $CONFIG_STATUS <<EOF 17376cat >>$CONFIG_STATUS <<_ACEOF
9874 17377
17378#
17379# CONFIG_FILES section.
17380#
17381
17382# No need to generate the scripts if there are no CONFIG_FILES.
17383# This happens for instance when ./config.status config.h
17384if test -n "\$CONFIG_FILES"; then
9875# Protect against being on the right side of a sed subst in config.status. 17385 # Protect against being on the right side of a sed subst in config.status.
9876sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9878$ac_vpsub 17388s,@SHELL@,$SHELL,;t t
17389s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17390s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17391s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17392s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17393s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17394s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17395s,@exec_prefix@,$exec_prefix,;t t
17396s,@prefix@,$prefix,;t t
17397s,@program_transform_name@,$program_transform_name,;t t
17398s,@bindir@,$bindir,;t t
17399s,@sbindir@,$sbindir,;t t
17400s,@libexecdir@,$libexecdir,;t t
17401s,@datadir@,$datadir,;t t
17402s,@sysconfdir@,$sysconfdir,;t t
17403s,@sharedstatedir@,$sharedstatedir,;t t
17404s,@localstatedir@,$localstatedir,;t t
17405s,@libdir@,$libdir,;t t
17406s,@includedir@,$includedir,;t t
17407s,@oldincludedir@,$oldincludedir,;t t
17408s,@infodir@,$infodir,;t t
17409s,@mandir@,$mandir,;t t
17410s,@build_alias@,$build_alias,;t t
17411s,@host_alias@,$host_alias,;t t
17412s,@target_alias@,$target_alias,;t t
17413s,@DEFS@,$DEFS,;t t
17414s,@ECHO_C@,$ECHO_C,;t t
17415s,@ECHO_N@,$ECHO_N,;t t
17416s,@ECHO_T@,$ECHO_T,;t t
17417s,@LIBS@,$LIBS,;t t
17418s,@VERSION@,$VERSION,;t t
17419s,@DATE@,$DATE,;t t
17420s,@LSMDATE@,$LSMDATE,;t t
17421s,@LIBVERSION@,$LIBVERSION,;t t
17422s,@CC@,$CC,;t t
17423s,@CFLAGS@,$CFLAGS,;t t
17424s,@LDFLAGS@,$LDFLAGS,;t t
17425s,@CPPFLAGS@,$CPPFLAGS,;t t
17426s,@ac_ct_CC@,$ac_ct_CC,;t t
17427s,@EXEEXT@,$EXEEXT,;t t
17428s,@OBJEXT@,$OBJEXT,;t t
17429s,@CXX@,$CXX,;t t
17430s,@CXXFLAGS@,$CXXFLAGS,;t t
17431s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17432s,@CPP@,$CPP,;t t
17433s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17434s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17435s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436s,@AWK@,$AWK,;t t
17437s,@LINKER@,$LINKER,;t t
17438s,@CXXCPP@,$CXXCPP,;t t
17439s,@EGREP@,$EGREP,;t t
17440s,@build@,$build,;t t
17441s,@build_cpu@,$build_cpu,;t t
17442s,@build_vendor@,$build_vendor,;t t
17443s,@build_os@,$build_os,;t t
17444s,@host@,$host,;t t
17445s,@host_cpu@,$host_cpu,;t t
17446s,@host_vendor@,$host_vendor,;t t
17447s,@host_os@,$host_os,;t t
17448s,@LN_S@,$LN_S,;t t
17449s,@ECHO@,$ECHO,;t t
17450s,@RANLIB@,$RANLIB,;t t
17451s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17452s,@STRIP@,$STRIP,;t t
17453s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17454s,@LIBTOOL@,$LIBTOOL,;t t
17455s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17456s,@RXVTNAME@,$RXVTNAME,;t t
17457s,@MV@,$MV,;t t
17458s,@RM@,$RM,;t t
17459s,@CP@,$CP,;t t
17460s,@LN@,$LN,;t t
17461s,@SED@,$SED,;t t
17462s,@CMP@,$CMP,;t t
17463s,@TBL@,$TBL,;t t
17464s,@X_CFLAGS@,$X_CFLAGS,;t t
17465s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17466s,@X_LIBS@,$X_LIBS,;t t
17467s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17468s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17469s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17470s,@XPM_LIBS@,$XPM_LIBS,;t t
17471s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17472s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17473s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17474s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17475s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17476s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17477s,@DEBUG@,$DEBUG,;t t
17478s,@DINCLUDE@,$DINCLUDE,;t t
17479s,@DLIB@,$DLIB,;t t
17480s,@include_stdint_h@,$include_stdint_h,;t t
17481s,@include_stdarg_h@,$include_stdarg_h,;t t
17482s,@include_stdlib_h@,$include_stdlib_h,;t t
17483s,@include_unistd_h@,$include_unistd_h,;t t
17484s,@include_string_h@,$include_string_h,;t t
17485s,@include_fcntl_h@,$include_fcntl_h,;t t
17486s,@include_util_h@,$include_util_h,;t t
17487s,@include_assert_h@,$include_assert_h,;t t
17488s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17489s,@include_sys_select_h@,$include_sys_select_h,;t t
17490s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17491s,@include_sys_time_h@,$include_sys_time_h,;t t
17492s,@include_time_h@,$include_time_h,;t t
17493s,@LIBOBJS@,$LIBOBJS,;t t
17494s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17495/@MCOMMON@/r $MCOMMON
17496s,@MCOMMON@,,;t t
17497CEOF
17498
17499_ACEOF
17500
17501 cat >>$CONFIG_STATUS <<\_ACEOF
17502 # Split the substitutions into bite-sized pieces for seds with
17503 # small command number limits, like on Digital OSF/1 and HP-UX.
17504 ac_max_sed_lines=48
17505 ac_sed_frag=1 # Number of current file.
17506 ac_beg=1 # First line for current file.
17507 ac_end=$ac_max_sed_lines # Line after last line for current file.
17508 ac_more_lines=:
17509 ac_sed_cmds=
17510 while $ac_more_lines; do
17511 if test $ac_beg -gt 1; then
17512 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17513 else
17514 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17515 fi
17516 if test ! -s $tmp/subs.frag; then
17517 ac_more_lines=false
17518 else
17519 # The purpose of the label and of the branching condition is to
17520 # speed up the sed processing (if there are no `@' at all, there
17521 # is no need to browse any of the substitutions).
17522 # These are the two extra sed commands mentioned above.
17523 (echo ':t
17524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17525 if test -z "$ac_sed_cmds"; then
17526 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17527 else
17528 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17529 fi
17530 ac_sed_frag=`expr $ac_sed_frag + 1`
17531 ac_beg=$ac_end
17532 ac_end=`expr $ac_end + $ac_max_sed_lines`
17533 fi
17534 done
17535 if test -z "$ac_sed_cmds"; then
17536 ac_sed_cmds=cat
17537 fi
17538fi # test -n "$CONFIG_FILES"
17539
17540_ACEOF
17541cat >>$CONFIG_STATUS <<\_ACEOF
17542for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17544 case $ac_file in
17545 - | *:- | *:-:* ) # input from stdin
17546 cat >$tmp/stdin
17547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17551 * ) ac_file_in=$ac_file.in ;;
17552 esac
17553
17554 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17555 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17556$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17557 X"$ac_file" : 'X\(//\)[^/]' \| \
17558 X"$ac_file" : 'X\(//\)$' \| \
17559 X"$ac_file" : 'X\(/\)' \| \
17560 . : '\(.\)' 2>/dev/null ||
17561echo X"$ac_file" |
17562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17564 /^X\(\/\/\)$/{ s//\1/; q; }
17565 /^X\(\/\).*/{ s//\1/; q; }
17566 s/.*/./; q'`
17567 { if $as_mkdir_p; then
17568 mkdir -p "$ac_dir"
17569 else
17570 as_dir="$ac_dir"
17571 as_dirs=
17572 while test ! -d "$as_dir"; do
17573 as_dirs="$as_dir $as_dirs"
17574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17576 X"$as_dir" : 'X\(//\)[^/]' \| \
17577 X"$as_dir" : 'X\(//\)$' \| \
17578 X"$as_dir" : 'X\(/\)' \| \
17579 . : '\(.\)' 2>/dev/null ||
17580echo X"$as_dir" |
17581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17583 /^X\(\/\/\)$/{ s//\1/; q; }
17584 /^X\(\/\).*/{ s//\1/; q; }
17585 s/.*/./; q'`
17586 done
17587 test ! -n "$as_dirs" || mkdir $as_dirs
17588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17589echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17590 { (exit 1); exit 1; }; }; }
17591
17592 ac_builddir=.
17593
17594if test "$ac_dir" != .; then
17595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17596 # A "../" for each directory in $ac_dir_suffix.
17597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17598else
17599 ac_dir_suffix= ac_top_builddir=
17600fi
17601
17602case $srcdir in
17603 .) # No --srcdir option. We are building in place.
17604 ac_srcdir=.
17605 if test -z "$ac_top_builddir"; then
17606 ac_top_srcdir=.
17607 else
17608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17609 fi ;;
17610 [\\/]* | ?:[\\/]* ) # Absolute path.
17611 ac_srcdir=$srcdir$ac_dir_suffix;
17612 ac_top_srcdir=$srcdir ;;
17613 *) # Relative path.
17614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17616esac
17617
17618# Do not use `cd foo && pwd` to compute absolute paths, because
17619# the directories may not exist.
17620case `pwd` in
17621.) ac_abs_builddir="$ac_dir";;
17622*)
17623 case "$ac_dir" in
17624 .) ac_abs_builddir=`pwd`;;
17625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17627 esac;;
17628esac
17629case $ac_abs_builddir in
17630.) ac_abs_top_builddir=${ac_top_builddir}.;;
17631*)
17632 case ${ac_top_builddir}. in
17633 .) ac_abs_top_builddir=$ac_abs_builddir;;
17634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17636 esac;;
17637esac
17638case $ac_abs_builddir in
17639.) ac_abs_srcdir=$ac_srcdir;;
17640*)
17641 case $ac_srcdir in
17642 .) ac_abs_srcdir=$ac_abs_builddir;;
17643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17645 esac;;
17646esac
17647case $ac_abs_builddir in
17648.) ac_abs_top_srcdir=$ac_top_srcdir;;
17649*)
17650 case $ac_top_srcdir in
17651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17654 esac;;
17655esac
17656
17657
17658 case $INSTALL in
17659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17660 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17661 esac
17662
17663 # Let's still pretend it is `configure' which instantiates (i.e., don't
17664 # use $as_me), people would be surprised to read:
17665 # /* config.h. Generated by config.status. */
17666 if test x"$ac_file" = x-; then
17667 configure_input=
17668 else
17669 configure_input="$ac_file. "
17670 fi
17671 configure_input=$configure_input"Generated from `echo $ac_file_in |
17672 sed 's,.*/,,'` by configure."
17673
17674 # First look for the input files in the build tree, otherwise in the
17675 # src tree.
17676 ac_file_inputs=`IFS=:
17677 for f in $ac_file_in; do
17678 case $f in
17679 -) echo $tmp/stdin ;;
17680 [\\/$]*)
17681 # Absolute (can't be DOS-style, as IFS=:)
17682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17683echo "$as_me: error: cannot find input file: $f" >&2;}
17684 { (exit 1); exit 1; }; }
17685 echo "$f";;
17686 *) # Relative
17687 if test -f "$f"; then
17688 # Build tree
17689 echo "$f"
17690 elif test -f "$srcdir/$f"; then
17691 # Source tree
17692 echo "$srcdir/$f"
17693 else
17694 # /dev/null tree
17695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17696echo "$as_me: error: cannot find input file: $f" >&2;}
17697 { (exit 1); exit 1; }; }
17698 fi;;
17699 esac
17700 done` || { (exit 1); exit 1; }
17701
17702 if test x"$ac_file" != x-; then
17703 { echo "$as_me:$LINENO: creating $ac_file" >&5
17704echo "$as_me: creating $ac_file" >&6;}
17705 rm -f "$ac_file"
17706 fi
17707_ACEOF
17708cat >>$CONFIG_STATUS <<_ACEOF
17709 sed "$ac_vpsub
9879$extrasub 17710$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 17711_ACEOF
9973EOF
9974
9975cat >> $CONFIG_STATUS <<\EOF 17712cat >>$CONFIG_STATUS <<\_ACEOF
9976 17713:t
9977# Split the substitutions into bite-sized pieces for seds with 17714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9978# small command number limits, like on Digital OSF/1 and HP-UX. 17715s,@configure_input@,$configure_input,;t t
9979ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17716s,@srcdir@,$ac_srcdir,;t t
9980ac_file=1 # Number of current file. 17717s,@abs_srcdir@,$ac_abs_srcdir,;t t
9981ac_beg=1 # First line for current file. 17718s,@top_srcdir@,$ac_top_srcdir,;t t
9982ac_end=$ac_max_sed_cmds # Line after last line for current file. 17719s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9983ac_more_lines=: 17720s,@builddir@,$ac_builddir,;t t
9984ac_sed_cmds="" 17721s,@abs_builddir@,$ac_abs_builddir,;t t
9985while $ac_more_lines; do 17722s,@top_builddir@,$ac_top_builddir,;t t
9986 if test $ac_beg -gt 1; then 17723s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17724s,@INSTALL@,$ac_INSTALL,;t t
17725" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17726 rm -f $tmp/stdin
17727 if test x"$ac_file" != x-; then
17728 mv $tmp/out $ac_file
9988 else 17729 else
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17730 cat $tmp/out
17731 rm -f $tmp/out
9990 fi 17732 fi
9991 if test ! -s conftest.s$ac_file; then 17733
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 17734done
10005if test -z "$ac_sed_cmds"; then 17735_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 17736cat >>$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 17737
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17738#
10032 17739# CONFIG_HEADER section.
10033 # Remove last slash and all that follows it. Not all systems have dirname. 17740#
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 17741
10079# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17742# 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. 17743# NAME is the cpp macro being defined and VALUE is the value it is being given.
10081# 17744#
10082# ac_d sets the value in "#define NAME VALUE" lines. 17745# ac_d sets the value in "#define NAME VALUE" lines.
10083ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17746ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17747ac_dB='[ ].*$,\1#\2'
10085ac_dC='\3' 17748ac_dC=' '
10086ac_dD='%g' 17749ac_dD=',;t'
10087# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17750# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10088ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17751ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089ac_uB='\([ ]\)%\1#\2define\3' 17752ac_uB='$,\1#\2define\3'
10090ac_uC=' ' 17753ac_uC=' '
10091ac_uD='\4%g' 17754ac_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 17755
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 17756for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10107 case "$ac_file" in 17758 case $ac_file in
17759 - | *:- | *:-:* ) # input from stdin
17760 cat >$tmp/stdin
17761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10110 *) ac_file_in="${ac_file}.in" ;; 17765 * ) ac_file_in=$ac_file.in ;;
10111 esac 17766 esac
10112 17767
10113 echo creating $ac_file 17768 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17769echo "$as_me: creating $ac_file" >&6;}
10114 17770
10115 rm -f conftest.frag conftest.in conftest.out 17771 # 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"` 17772 # src tree.
10117 cat $ac_file_inputs > conftest.in 17773 ac_file_inputs=`IFS=:
17774 for f in $ac_file_in; do
17775 case $f in
17776 -) echo $tmp/stdin ;;
17777 [\\/$]*)
17778 # Absolute (can't be DOS-style, as IFS=:)
17779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17780echo "$as_me: error: cannot find input file: $f" >&2;}
17781 { (exit 1); exit 1; }; }
17782 # Do quote $f, to prevent DOS paths from being IFS'd.
17783 echo "$f";;
17784 *) # Relative
17785 if test -f "$f"; then
17786 # Build tree
17787 echo "$f"
17788 elif test -f "$srcdir/$f"; then
17789 # Source tree
17790 echo "$srcdir/$f"
17791 else
17792 # /dev/null tree
17793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17794echo "$as_me: error: cannot find input file: $f" >&2;}
17795 { (exit 1); exit 1; }; }
17796 fi;;
17797 esac
17798 done` || { (exit 1); exit 1; }
17799 # Remove the trailing spaces.
17800 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10118 17801
10119EOF 17802_ACEOF
10120 17803
10121# Transform confdefs.h into a sed script conftest.vals that substitutes 17804# Transform confdefs.h into two sed scripts, `conftest.defines' and
10122# the proper values into config.h.in to produce config.h. And first: 17805# `conftest.undefs', that substitutes the proper values into
17806# config.h.in to produce config.h. The first handles `#define'
17807# templates, and the second `#undef' templates.
10123# Protect against being on the right side of a sed subst in config.status. 17808# 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. 17809# config.status. Protect against being in an unquoted here document
10125rm -f conftest.vals 17810# in config.status.
10126cat > conftest.hdr <<\EOF 17811rm -f conftest.defines conftest.undefs
17812# Using a here document instead of a string reduces the quoting nightmare.
17813# Putting comments in sed scripts is not portable.
17814#
17815# `end' is used to avoid that the second main sed command (meant for
17816# 0-ary CPP macros) applies to n-ary macro definitions.
17817# See the Autoconf documentation for `clear'.
17818cat >confdef2sed.sed <<\_ACEOF
10127s/[\\&%]/\\&/g 17819s/[\\&,]/\\&/g
10128s%[\\$`]%\\&%g 17820s,[\\$`],\\&,g
10129s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17821t clear
10130s%ac_d%ac_u%gp 17822: clear
10131s%ac_u%ac_e%gp 17823s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10132EOF 17824t end
10133sed -n -f conftest.hdr confdefs.h > conftest.vals 17825s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10134rm -f conftest.hdr 17826: end
17827_ACEOF
17828# If some macros were called several times there might be several times
17829# the same #defines, which is useless. Nevertheless, we may not want to
17830# sort them, since we want the *last* AC-DEFINE to be honored.
17831uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17832sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17833rm -f confdef2sed.sed
10135 17834
10136# This sed command replaces #undef with comments. This is necessary, for 17835# This sed command replaces #undef with comments. This is necessary, for
10137# example, in the case of _POSIX_SOURCE, which is predefined and required 17836# example, in the case of _POSIX_SOURCE, which is predefined and required
10138# on some systems where configure will not decide to define it. 17837# on some systems where configure will not decide to define it.
10139cat >> conftest.vals <<\EOF 17838cat >>conftest.undefs <<\_ACEOF
10140s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17839s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10141EOF 17840_ACEOF
10142 17841
10143# Break up conftest.vals because some shells have a limit on 17842# 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. 17843# of here documents, and old seds have small limits too (100 cmds).
10145 17844echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17845echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17846echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17847echo ' :' >>$CONFIG_STATUS
10146rm -f conftest.tail 17848rm -f conftest.tail
10147while : 17849while grep . conftest.defines >/dev/null
10148do 17850do
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. 17851 # Write a limited-size here document to $tmp/defines.sed.
10153 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17852 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17853 # Speed up: don't consider the non `#define' lines.
17854 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17855 # Work around the forget-to-reset-the-flag bug.
17856 echo 't clr' >>$CONFIG_STATUS
17857 echo ': clr' >>$CONFIG_STATUS
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17858 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10155 echo 'CEOF 17859 echo 'CEOF
10156 sed -f conftest.frag conftest.in > conftest.out 17860 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10157 rm -f conftest.in 17861 rm -f $tmp/in
10158 mv conftest.out conftest.in 17862 mv $tmp/out $tmp/in
10159' >> $CONFIG_STATUS 17863' >>$CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17864 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10161 rm -f conftest.vals 17865 rm -f conftest.defines
10162 mv conftest.tail conftest.vals 17866 mv conftest.tail conftest.defines
10163done 17867done
17868rm -f conftest.defines
17869echo ' fi # grep' >>$CONFIG_STATUS
17870echo >>$CONFIG_STATUS
17871
17872# Break up conftest.undefs because some shells have a limit on the size
17873# of here documents, and old seds have small limits too (100 cmds).
17874echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10164rm -f conftest.vals 17875rm -f conftest.tail
17876while grep . conftest.undefs >/dev/null
17877do
17878 # Write a limited-size here document to $tmp/undefs.sed.
17879 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17880 # Speed up: don't consider the non `#undef'
17881 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17882 # Work around the forget-to-reset-the-flag bug.
17883 echo 't clr' >>$CONFIG_STATUS
17884 echo ': clr' >>$CONFIG_STATUS
17885 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17886 echo 'CEOF
17887 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17888 rm -f $tmp/in
17889 mv $tmp/out $tmp/in
17890' >>$CONFIG_STATUS
17891 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17892 rm -f conftest.undefs
17893 mv conftest.tail conftest.undefs
17894done
17895rm -f conftest.undefs
10165 17896
10166cat >> $CONFIG_STATUS <<\EOF 17897cat >>$CONFIG_STATUS <<\_ACEOF
10167 rm -f conftest.frag conftest.h 17898 # Let's still pretend it is `configure' which instantiates (i.e., don't
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17899 # use $as_me), people would be surprised to read:
10169 cat conftest.in >> conftest.h 17900 # /* config.h. Generated by config.status. */
10170 rm -f conftest.in 17901 if test x"$ac_file" = x-; then
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then 17902 echo "/* Generated by configure. */" >$tmp/config.h
10172 echo "$ac_file is unchanged"
10173 rm -f conftest.h
10174 else 17903 else
10175 # Remove last slash and all that follows it. Not all systems have dirname. 17904 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17905 fi
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17906 cat $tmp/in >>$tmp/config.h
10178 # The file is in a subdirectory. 17907 rm -f $tmp/in
17908 if test x"$ac_file" != x-; then
17909 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17910 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17911echo "$as_me: $ac_file is unchanged" >&6;}
17912 else
17913 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17914$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17915 X"$ac_file" : 'X\(//\)[^/]' \| \
17916 X"$ac_file" : 'X\(//\)$' \| \
17917 X"$ac_file" : 'X\(/\)' \| \
17918 . : '\(.\)' 2>/dev/null ||
17919echo X"$ac_file" |
17920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17922 /^X\(\/\/\)$/{ s//\1/; q; }
17923 /^X\(\/\).*/{ s//\1/; q; }
17924 s/.*/./; q'`
17925 { if $as_mkdir_p; then
17926 mkdir -p "$ac_dir"
17927 else
17928 as_dir="$ac_dir"
17929 as_dirs=
17930 while test ! -d "$as_dir"; do
17931 as_dirs="$as_dir $as_dirs"
17932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$as_dir" : 'X\(//\)[^/]' \| \
17935 X"$as_dir" : 'X\(//\)$' \| \
17936 X"$as_dir" : 'X\(/\)' \| \
17937 . : '\(.\)' 2>/dev/null ||
17938echo X"$as_dir" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17941 /^X\(\/\/\)$/{ s//\1/; q; }
17942 /^X\(\/\).*/{ s//\1/; q; }
17943 s/.*/./; q'`
17944 done
10179 test ! -d "$ac_dir" && mkdir "$ac_dir" 17945 test ! -n "$as_dirs" || mkdir $as_dirs
17946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17947echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17948 { (exit 1); exit 1; }; }; }
17949
17950 rm -f $ac_file
17951 mv $tmp/config.h $ac_file
10180 fi 17952 fi
10181 rm -f $ac_file 17953 else
10182 mv conftest.h $ac_file 17954 cat $tmp/config.h
17955 rm -f $tmp/config.h
10183 fi 17956 fi
10184fi; done 17957done
17958_ACEOF
10185 17959
10186EOF
10187cat >> $CONFIG_STATUS <<EOF
10188
10189EOF
10190cat >> $CONFIG_STATUS <<\EOF 17960cat >>$CONFIG_STATUS <<\_ACEOF
10191 17961
10192exit 0 17962{ (exit 0); exit 0; }
10193EOF 17963_ACEOF
10194chmod +x $CONFIG_STATUS 17964chmod +x $CONFIG_STATUS
10195rm -fr confdefs* $ac_clean_files 17965ac_clean_files=$ac_clean_files_save
10196test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17966
17967
17968# configure is writing to config.log, and then calls config.status.
17969# config.status does its own redirection, appending to config.log.
17970# Unfortunately, on DOS this fails, as config.log is still kept open
17971# by configure, so config.status won't be able to write to it; its
17972# output is simply discarded. So we exec the FD to /dev/null,
17973# effectively closing config.log, so it can be properly (re)opened and
17974# appended to by config.status. When coming back to configure, we
17975# need to make the FD available again.
17976if test "$no_create" != yes; then
17977 ac_cs_success=:
17978 ac_config_status_args=
17979 test "$silent" = yes &&
17980 ac_config_status_args="$ac_config_status_args --quiet"
17981 exec 5>/dev/null
17982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17983 exec 5>>config.log
17984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17985 # would make configure fail if this is the last instruction.
17986 $ac_cs_success || { (exit 1); exit 1; }
17987fi
10197 17988
10198 17989
10199echo "Configuration: 17990echo "Configuration:
10200 17991
10201 Rxvt version: $VERSION : $DATE 17992 Rxvt version: $VERSION : $DATE
10202 Source code location: $srcdir 17993 Source code location: $srcdir
10203 Install path: ${prefix}/bin 17994 Install path: ${prefix}/bin
10204 Compiler: $CC 17995 Compiler: $CXX
10205 Compiler flags: $CFLAGS" 17996 Compiler flags: $CFLAGS
17997 Linker: $LINKER"
10206 17998
10207if test "$MALLOC_TYPE" = S; then 17999if test "$MALLOC_TYPE" = S; then
10208 echo " malloc support: system default" 18000 echo " malloc support: system default"
10209fi 18001fi
10210if test "$MALLOC_TYPE" = G; then 18002if test "$MALLOC_TYPE" = G; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines