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.21 by pcg, Sun Mar 14 23:14:37 2004 UTC

1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by GNU Autoconf 2.59.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
9 11
10# Defaults: 12# Be Bourne compatible
11ac_help= 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12ac_default_prefix=/usr/local 14 emulate sh
13# Any additions from configure.in: 15 NULLCMD=:
14ac_help="$ac_help 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15 --enable-shared[=PKGS] build shared libraries [default=no]" 17 # is contrary to our usage. Disable this feature.
16ac_help="$ac_help 18 alias -g '${1+"$@"}'='"$@"'
17 --enable-static[=PKGS] build static libraries [default=yes]" 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18ac_help="$ac_help 20 set -o posix
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 21fi
20ac_help="$ac_help 22DUALCASE=1; export DUALCASE # for MKS sh
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
22 243
23# Find the correct PATH separator. Usually this is `:', but 244# Find the correct PATH separator. Usually this is `:', but
24# DJGPP uses `;' like DOS. 245# DJGPP uses `;' like DOS.
25if test "X${PATH_SEPARATOR+set}" != Xset; then 246if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`} 247 UNAME=${UNAME-`uname 2>/dev/null`}
175if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
177fi 398fi
178 399
179 400
180ac_help="$ac_help 401
181 --disable-libtool-lock avoid locking (might break parallel builds)" 402# Name of the host.
182ac_help="$ac_help 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
183dnl 404# so uname gets run too.
184 --with-pic try to use only PIC/non-PIC objects [default=use both]" 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
185ac_help="$ac_help 406
186 --enable-everything enable standard non-multichoice features: marked * 407exec 6>&1
187 NOTE: this option is order dependent 408
188 NOTE: automatically enabled with --enable-shared" 409#
189ac_help="$ac_help 410# Initializations.
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters" 411#
191ac_help="$ac_help 412ac_default_prefix=/usr/local
192 --enable-xft enable xft support on systems that have it" 413ac_config_libobj_dir=.
193ac_help="$ac_help 414cross_compiling=no
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)" 415subdirs=
195ac_help="$ac_help 416MFLAGS=
196 --with-encoding=NAME set language default encoding to NAME (default: sjis) 417MAKEFLAGS=
197 (eucj|sjis|big5|gb|kr|noenc)" 418SHELL=${CONFIG_SHELL-/bin/sh}
198ac_help="$ac_help 419
199 --enable-utmp enable utmp (utmpx) support *" 420# Maximum number of lines to put in a shell here document.
200ac_help="$ac_help 421# This variable seems obsolete. It should probably be removed, and
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*" 422# only ac_max_sed_lines should be used.
202ac_help="$ac_help 423: ${ac_max_here_lines=38}
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *" 424
204ac_help="$ac_help 425# Identity of this package.
205 --enable-xpm-background enable XPM background pixmaps *" 426PACKAGE_NAME=
206ac_help="$ac_help 427PACKAGE_TARNAME=
207 --enable-transparency enable transparent backgrounds *" 428PACKAGE_VERSION=
208ac_help="$ac_help 429PACKAGE_STRING=
209 --enable-menubar enable menubar *" 430PACKAGE_BUGREPORT=
210ac_help="$ac_help 431
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *" 432ac_unique_file="src/feature.h"
212ac_help="$ac_help 433# Factoring default headers for most tests.
213 --enable-rxvt-scroll enable rxvt style scrollbar *" 434ac_includes_default="\
214ac_help="$ac_help 435#include <stdio.h>
215 --enable-next-scroll enable NeXT style scrollbar *" 436#if HAVE_SYS_TYPES_H
216ac_help="$ac_help 437# include <sys/types.h>
217 --enable-xterm-scroll enable Xterm style scrollbar *" 438#endif
218ac_help="$ac_help 439#if HAVE_SYS_STAT_H
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar" 440# include <sys/stat.h>
220ac_help="$ac_help 441#endif
221 --enable-xim XIM (X Input Method) protocol support *" 442#if STDC_HEADERS
222ac_help="$ac_help 443# include <stdlib.h>
223 --enable-greek enable greek keyboard support" 444# include <stddef.h>
224ac_help="$ac_help 445#else
225 --enable-ttygid enable tty setting to group named "tty"" 446# if HAVE_STDLIB_H
226ac_help="$ac_help 447# include <stdlib.h>
227 --disable-backspace-key disable handling of the backspace key" 448# endif
228ac_help="$ac_help 449#endif
229 --disable-delete-key disable handling of the delete key" 450#if HAVE_STRING_H
230ac_help="$ac_help 451# if !STDC_HEADERS && HAVE_MEMORY_H
231 --disable-resources disable all resource checking" 452# include <memory.h>
232ac_help="$ac_help 453# endif
233 --enable-xgetdefault enable resources via X instead of our small version" 454# include <string.h>
234ac_help="$ac_help 455#endif
235 --enable-strings enable some replacement system functions" 456#if HAVE_STRINGS_H
236ac_help="$ac_help 457# include <strings.h>
237 --disable-swapscreen disable swap screen support" 458#endif
238ac_help="$ac_help 459#if HAVE_INTTYPES_H
239 --enable-frills enable support for rarely used features *" 460# include <inttypes.h>
240ac_help="$ac_help 461#else
241 --enable-linespace enable support for linespace *" 462# if HAVE_STDINT_H
242ac_help="$ac_help 463# include <stdint.h>
243 --enable-24bit enable support for using 24bit visuals if available *" 464# endif
244ac_help="$ac_help 465#endif
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *" 466#if HAVE_UNISTD_H
246ac_help="$ac_help 467# include <unistd.h>
247 --enable-selectionscrolling enable scrolling during selections *" 468#endif"
248ac_help="$ac_help 469
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *" 470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
250ac_help="$ac_help 471ac_subst_files='MCOMMON'
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
252ac_help="$ac_help
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
254ac_help="$ac_help
255 --disable-new-selection disable new mouse (xterm) selection style support"
256ac_help="$ac_help
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
258ac_help="$ac_help
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
261ac_help="$ac_help
262 --enable-smart-resize enable smart growth/shrink behaviour"
263ac_help="$ac_help
264 --enable-256-color enable 256-color support"
265ac_help="$ac_help
266 --enable-cursor-blink enable blinking cursor *"
267ac_help="$ac_help
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
269ac_help="$ac_help
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
271ac_help="$ac_help
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
273ac_help="$ac_help
274 --with-x use the X Window System"
275ac_help="$ac_help
276 --with-xpm-includes=DIR use XPM includes in DIR"
277ac_help="$ac_help
278 --with-xpm-library=DIR use XPM library in DIR"
279ac_help="$ac_help
280 --with-xpm use XPM"
281 472
282# Initialize some variables set by options. 473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
283# The variables have the same names as the options, with 476# The variables have the same names as the options, with
284# dashes changed to underlines. 477# dashes changed to underlines.
285build=NONE 478cache_file=/dev/null
286cache_file=./config.cache
287exec_prefix=NONE 479exec_prefix=NONE
288host=NONE
289no_create= 480no_create=
290nonopt=NONE
291no_recursion= 481no_recursion=
292prefix=NONE 482prefix=NONE
293program_prefix=NONE 483program_prefix=NONE
294program_suffix=NONE 484program_suffix=NONE
295program_transform_name=s,x,x, 485program_transform_name=s,x,x,
296silent= 486silent=
297site= 487site=
298srcdir= 488srcdir=
299target=NONE
300verbose= 489verbose=
301x_includes=NONE 490x_includes=NONE
302x_libraries=NONE 491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin' 498bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin' 499sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec' 500libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share' 501datadir='${prefix}/share'
307sysconfdir='${prefix}/etc' 502sysconfdir='${prefix}/etc'
311includedir='${prefix}/include' 506includedir='${prefix}/include'
312oldincludedir='/usr/include' 507oldincludedir='/usr/include'
313infodir='${prefix}/info' 508infodir='${prefix}/info'
314mandir='${prefix}/man' 509mandir='${prefix}/man'
315 510
316# Initialize some other variables.
317subdirs=
318MFLAGS= MAKEFLAGS=
319SHELL=${CONFIG_SHELL-/bin/sh}
320# Maximum number of lines to put in a shell here document.
321ac_max_here_lines=12
322
323ac_prev= 511ac_prev=
324for ac_option 512for ac_option
325do 513do
326
327 # If the previous option needs an argument, assign it. 514 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then 515 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option" 516 eval "$ac_prev=\$ac_option"
330 ac_prev= 517 ac_prev=
331 continue 518 continue
332 fi 519 fi
333 520
334 case "$ac_option" in 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338 522
339 # Accept the important Cygnus configure options, so we can diagnose typos. 523 # Accept the important Cygnus configure options, so we can diagnose typos.
340 524
341 case "$ac_option" in 525 case $ac_option in
342 526
343 -bindir | --bindir | --bindi | --bind | --bin | --bi) 527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;; 528 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;; 530 bindir=$ac_optarg ;;
347 531
348 -build | --build | --buil | --bui | --bu) 532 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;; 533 ac_prev=build_alias ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;; 535 build_alias=$ac_optarg ;;
352 536
353 -cache-file | --cache-file | --cache-fil | --cache-fi \ 537 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;; 539 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;; 542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
359 546
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;; 548 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*) 550 | --da=*)
364 datadir="$ac_optarg" ;; 551 datadir=$ac_optarg ;;
365 552
366 -disable-* | --disable-*) 553 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
368 # Reject names that are not valid shell variable names. 555 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 fi 558 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;; 560 eval "enable_$ac_feature=no" ;;
374 561
375 -enable-* | --enable-*) 562 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
377 # Reject names that are not valid shell variable names. 564 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
380 fi 567 { (exit 1); exit 1; }; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
382 case "$ac_option" in 569 case $ac_option in
383 *=*) ;; 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
384 *) ac_optarg=yes ;; 571 *) ac_optarg=yes ;;
385 esac 572 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;; 573 eval "enable_$ac_feature='$ac_optarg'" ;;
387 574
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex) 577 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;; 578 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*) 581 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;; 582 exec_prefix=$ac_optarg ;;
396 583
397 -gas | --gas | --ga | --g) 584 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas. 585 # Obsolete; use --with-gas.
399 with_gas=yes ;; 586 with_gas=yes ;;
400 587
401 -help | --help | --hel | --he) 588 -help | --help | --hel | --he | -h)
402 # Omit some internal or obsolete options to make the list less imposing. 589 ac_init_help=long ;;
403 # This message is too long to be a string in the A/UX 3.1 sh. 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
404 cat << EOF 591 ac_init_help=recursive ;;
405Usage: configure [options] [host] 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
406Options: [defaults in brackets after descriptions] 593 ac_init_help=short ;;
407Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437EOF
438 cat << EOF
439Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455 594
456 -host | --host | --hos | --ho) 595 -host | --host | --hos | --ho)
457 ac_prev=host ;; 596 ac_prev=host_alias ;;
458 -host=* | --host=* | --hos=* | --ho=*) 597 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;; 598 host_alias=$ac_optarg ;;
460 599
461 -includedir | --includedir | --includedi | --included | --include \ 600 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc) 601 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;; 602 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*) 604 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;; 605 includedir=$ac_optarg ;;
467 606
468 -infodir | --infodir | --infodi | --infod | --info | --inf) 607 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;; 608 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;; 610 infodir=$ac_optarg ;;
472 611
473 -libdir | --libdir | --libdi | --libd) 612 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;; 613 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*) 614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;; 615 libdir=$ac_optarg ;;
477 616
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe) 618 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;; 619 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*) 621 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;; 622 libexecdir=$ac_optarg ;;
484 623
485 -localstatedir | --localstatedir | --localstatedi | --localstated \ 624 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \ 625 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo) 626 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;; 627 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;; 631 localstatedir=$ac_optarg ;;
493 632
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;; 634 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;; 636 mandir=$ac_optarg ;;
498 637
499 -nfp | --nfp | --nf) 638 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp. 639 # Obsolete; use --without-fp.
501 with_fp=no ;; 640 with_fp=no ;;
502 641
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) 643 | --no-cr | --no-c | -n)
505 no_create=yes ;; 644 no_create=yes ;;
506 645
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;; 648 no_recursion=yes ;;
513 | --oldin | --oldi | --old | --ol | --o) 652 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;; 653 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;; 657 oldincludedir=$ac_optarg ;;
519 658
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;; 660 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;; 662 prefix=$ac_optarg ;;
524 663
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p) 665 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;; 666 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;; 669 program_prefix=$ac_optarg ;;
531 670
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s) 672 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;; 673 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;; 676 program_suffix=$ac_optarg ;;
538 677
539 -program-transform-name | --program-transform-name \ 678 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \ 679 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \ 680 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \ 681 | --program-transform | --program-transfor \
549 | --program-transform-n=* | --program-transform-=* \ 688 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \ 689 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \ 690 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \ 691 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*) 692 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;; 693 program_transform_name=$ac_optarg ;;
555 694
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil) 696 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;; 697 silent=yes ;;
559 698
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;; 700 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*) 702 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;; 703 sbindir=$ac_optarg ;;
565 704
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \ 707 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh) 708 | --sha | --sh)
570 ac_prev=sharedstatedir ;; 709 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*) 713 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;; 714 sharedstatedir=$ac_optarg ;;
576 715
577 -site | --site | --sit) 716 -site | --site | --sit)
578 ac_prev=site ;; 717 ac_prev=site ;;
579 -site=* | --site=* | --sit=*) 718 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;; 719 site=$ac_optarg ;;
581 720
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;; 722 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;; 724 srcdir=$ac_optarg ;;
586 725
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy) 727 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;; 728 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;; 731 sysconfdir=$ac_optarg ;;
593 732
594 -target | --target | --targe | --targ | --tar | --ta | --t) 733 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;; 734 ac_prev=target_alias ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;; 736 target_alias=$ac_optarg ;;
598 737
599 -v | -verbose | --verbose | --verbos | --verbo | --verb) 738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;; 739 verbose=yes ;;
601 740
602 -version | --version | --versio | --versi | --vers) 741 -version | --version | --versio | --versi | --vers | -V)
603 echo "configure generated by autoconf version 2.13" 742 ac_init_version=: ;;
604 exit 0 ;;
605 743
606 -with-* | --with-*) 744 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
608 # Reject names that are not valid shell variable names. 746 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 748 { echo "$as_me: error: invalid package name: $ac_package" >&2
611 fi 749 { (exit 1); exit 1; }; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'` 750 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in 751 case $ac_option in
614 *=*) ;; 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 *) ac_optarg=yes ;; 753 *) ac_optarg=yes ;;
616 esac 754 esac
617 eval "with_${ac_package}='$ac_optarg'" ;; 755 eval "with_$ac_package='$ac_optarg'" ;;
618 756
619 -without-* | --without-*) 757 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
621 # Reject names that are not valid shell variable names. 759 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 761 { echo "$as_me: error: invalid package name: $ac_package" >&2
624 fi 762 { (exit 1); exit 1; }; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'` 763 ac_package=`echo $ac_package | sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;; 764 eval "with_$ac_package=no" ;;
627 765
628 --x) 766 --x)
629 # Obsolete; use --with-x. 767 # Obsolete; use --with-x.
630 with_x=yes ;; 768 with_x=yes ;;
631 769
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i) 771 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;; 772 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;; 775 x_includes=$ac_optarg ;;
638 776
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;; 779 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;; 782 x_libraries=$ac_optarg ;;
645 783
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
647 ;; 787 ;;
648 788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
649 *) 799 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 800 # FIXME: should be removed in autoconf 3.0.
651 echo "configure: warning: $ac_option: invalid host type" 1>&2 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652 fi 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
653 if test "x$nonopt" != xNONE; then 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 fi
656 nonopt="$ac_option"
657 ;; 805 ;;
658 806
659 esac 807 esac
660done 808done
661 809
662if test -n "$ac_prev"; then 810if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
664fi 814fi
665 815
666trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 816# Be sure to have absolute paths.
667 817for ac_var in exec_prefix prefix
668# File descriptor usage:
669# 0 standard input
670# 1 file creation
671# 2 errors and warnings
672# 3 some systems may open it to /dev/tty
673# 4 used on the Kubota Titan
674# 6 checking for... messages and results
675# 5 compiler messages saved in config.log
676if test "$silent" = yes; then
677 exec 6>/dev/null
678else
679 exec 6>&1
680fi
681exec 5>./config.log
682
683echo "\
684This file contains any messages produced by compilers while
685running configure, to aid debugging if configure makes a mistake.
686" 1>&5
687
688# Strip out --no-create and --no-recursion so they do not pile up.
689# Also quote any args containing shell metacharacters.
690ac_configure_args=
691for ac_arg
692do 818do
819 eval ac_val=$`echo $ac_var`
693 case "$ac_arg" in 820 case $ac_val in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
695 | --no-cr | --no-c) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 823 { (exit 1); exit 1; }; };;
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac 824 esac
702done 825done
703 826
704# NLS nuisances. 827# Be sure to have absolute paths.
705# Only set these to C if already set. These must not be set unconditionally 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
706# because not all systems understand e.g. LANG=C (notably SCO). 829 localstatedir libdir includedir oldincludedir infodir mandir
707# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 830do
708# Non-C LC_CTYPE values break the ctype check. 831 eval ac_val=$`echo $ac_var`
709if test "${LANG+set}" = set; then LANG=C; export LANG; fi 832 case $ac_val in
710if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 833 [\\/$]* | ?:[\\/]* ) ;;
711if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
712if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 835 { (exit 1); exit 1; }; };;
836 esac
837done
713 838
714# confdefs.h avoids OS command line length limits that DEFS can exceed. 839# There might be people who depend on the old broken behavior: `$host'
715rm -rf conftest* confdefs.h 840# used to hold the argument of --host etc.
716# AIX cpp loses on an empty file, so make sure it contains at least a newline. 841# FIXME: To remove some day.
717echo > confdefs.h 842build=$build_alias
843host=$host_alias
844target=$target_alias
718 845
719# A filename unique to this package, relative to the directory that 846# FIXME: To remove some day.
720# configure is in, which we can look for to find out if srcdir is correct. 847if test "x$host_alias" != x; then
721ac_unique_file=src/feature.h 848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
722 862
723# Find the source files, if location was not specified. 863# Find the source files, if location was not specified.
724if test -z "$srcdir"; then 864if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes 865 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent. 866 # Try the directory containing this script, then its parent.
727 ac_prog=$0 867 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
730 srcdir=$ac_confdir 879 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then 880 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=.. 881 srcdir=..
733 fi 882 fi
734else 883else
735 ac_srcdir_defaulted=no 884 ac_srcdir_defaulted=no
736fi 885fi
737if test ! -r $srcdir/$ac_unique_file; then 886if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then 887 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
740 else 890 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
742 fi 893 fi
743fi 894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
744srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
745 943
944#
945# Report the --help message.
946#
947if test "$ac_init_help" = "long"; then
948 # Omit some internal or obsolete options to make the list less imposing.
949 # This message is too long to be a string in the A/UX 3.1 sh.
950 cat <<_ACEOF
951\`configure' configures this package to adapt to many kinds of systems.
952
953Usage: $0 [OPTION]... [VAR=VALUE]...
954
955To assign environment variables (e.g., CC, CFLAGS...), specify them as
956VAR=VALUE. See below for descriptions of some of the useful variables.
957
958Defaults for the options are specified in brackets.
959
960Configuration:
961 -h, --help display this help and exit
962 --help=short display options specific to this package
963 --help=recursive display the short help of all the included packages
964 -V, --version display version information and exit
965 -q, --quiet, --silent do not print \`checking...' messages
966 --cache-file=FILE cache test results in FILE [disabled]
967 -C, --config-cache alias for \`--cache-file=config.cache'
968 -n, --no-create do not create output files
969 --srcdir=DIR find the sources in DIR [configure dir or \`..']
970
971_ACEOF
972
973 cat <<_ACEOF
974Installation directories:
975 --prefix=PREFIX install architecture-independent files in PREFIX
976 [$ac_default_prefix]
977 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978 [PREFIX]
979
980By default, \`make install' will install all the files in
981\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983for instance \`--prefix=\$HOME'.
984
985For better control, use the options below.
986
987Fine tuning of the installation directories:
988 --bindir=DIR user executables [EPREFIX/bin]
989 --sbindir=DIR system admin executables [EPREFIX/sbin]
990 --libexecdir=DIR program executables [EPREFIX/libexec]
991 --datadir=DIR read-only architecture-independent data [PREFIX/share]
992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995 --libdir=DIR object code libraries [EPREFIX/lib]
996 --includedir=DIR C header files [PREFIX/include]
997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
998 --infodir=DIR info documentation [PREFIX/info]
999 --mandir=DIR man documentation [PREFIX/man]
1000_ACEOF
1001
1002 cat <<\_ACEOF
1003
1004X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds
1041 --enable-menubar enable menubar
1042 --enable-rxvt-scroll enable rxvt style scrollbar
1043 --enable-next-scroll enable NeXT style scrollbar
1044 --enable-xterm-scroll enable Xterm style scrollbar
1045 --enable-plain-scroll enable plain style scrollbar
1046 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1047 --enable-xim XIM (X Input Method) protocol support
1048 --enable-ttygid enable tty setting to group named "tty"
1049 --disable-backspace-key disable handling of the backspace key
1050 --disable-delete-key disable handling of the delete key
1051 --disable-resources disable all resource checking
1052 --enable-xgetdefault enable resources via X instead of our small version
1053 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1054 --enable-strings enable some replacement system functions
1055 --disable-swapscreen disable swap screen support
1056 --enable-frills enable support for rarely used features
1057 --enable-linespace enable support for linespace
1058 --enable-24bit enable support for using 24bit visuals if available
1059 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1060 --enable-selectionscrolling enable scrolling during selections
1061 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1062 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1063 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1064 --enable-dlmalloc enable Doug Lea's malloc - for production use
1065 NOTE: enable only one malloc package
1066 --enable-smart-resize enable smart growth/shrink behaviour
1067 --enable-256-color enable 256-color support
1068 --enable-cursor-blink enable blinking cursor
1069 --enable-text-blink enable blinking text
1070 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1071
1072Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-gnu-ld assume the C compiler uses GNU ld default=no
1076 --with-pic try to use only PIC/non-PIC objects default=use both
1077 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1078 --with-res-name=NAME use this as default resource name (default: urxvt)
1079 --with-res-class=CLASS use this as the resource class (default: URxvt)
1080 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1081 --with-term=NAME set the terminal to NAME (default: rxvt)
1082 --with-terminfo=PATH set the path to the terminfo tree to PATH
1083 --with-x use the X Window System
1084 --with-xpm-includes=DIR use XPM includes in DIR
1085 --with-xpm-library=DIR use XPM library in DIR
1086 --with-xpm use XPM
1087
1088Some influential environment variables:
1089 CC C compiler command
1090 CFLAGS C compiler flags
1091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1092 nonstandard directory <lib dir>
1093 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1094 headers in a nonstandard directory <include dir>
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CPP C preprocessor
1098 CXXCPP C++ preprocessor
1099
1100Use these variables to override the choices made by `configure' or to help
1101it to find libraries and programs with nonstandard names/locations.
1102
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
1185 test -f $ac_srcdir/configure.in; then
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
1191 cd "$ac_popdir"
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
1198
1199Copyright (C) 2003 Free Software Foundation, Inc.
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
1210It was created by $as_me, which was
1211generated by GNU Autoconf 2.59. Invocation command line was
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
1288 ac_must_keep_next=false # Got value, back to normal.
1289 else
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1336 ;;
1337 *)
1338 sed -n \
1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
1387 rm -f core *.core &&
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1429# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1430if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1431 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1433 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1435 fi
753fi 1436fi
754for ac_site_file in $CONFIG_SITE; do 1437for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1442 . "$ac_site_file"
758 fi 1443 fi
759done 1444done
760 1445
761if test -r "$cache_file"; then 1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1451echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
764else 1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1459echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1487echo "$as_me: former value: $ac_old_val" >&2;}
1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1489echo "$as_me: current value: $ac_new_val" >&2;}
1490 ac_cache_corrupted=:
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
767fi 1512fi
768 1513
769ac_ext=c 1514ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1515ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1516ac_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' 1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1519
776ac_exeext= 1520
777ac_objext=o 1521
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1522
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1523
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1524
781 ac_n= ac_c=' 1525
782' ac_t=' ' 1526
783 else 1527
784 ac_n=-n ac_c= ac_t= 1528
785 fi 1529
786else 1530
787 ac_n= ac_c='\c' ac_t= 1531
788fi 1532
1533
1534
1535
789 1536
790 1537
791ac_aux_dir= 1538ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1539for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1540 if test -f $ac_dir/install-sh; then
796 break 1543 break
797 elif test -f $ac_dir/install.sh; then 1544 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1545 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1546 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
801 fi 1552 fi
802done 1553done
803if test -z "$ac_aux_dir"; then 1554if test -z "$ac_aux_dir"; then
1555 { { 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; } 1556echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1557 { (exit 1); exit 1; }; }
805fi 1558fi
806ac_config_guess=$ac_aux_dir/config.guess 1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1562
1563 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1564
811 1565
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1566VERSION=`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` 1567DATE=`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` 1568LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1570echo ""
817echo "configuring for rxvt $VERSION" 1571echo "configuring for rxvt $VERSION"
818echo "" 1572echo ""
819 1573
820 1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1582set dummy ${ac_tool_prefix}gcc; ac_word=$2
1583echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1584echo $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 1585if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1586 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1587else
828 if test -n "$CC"; then 1588 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1589 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1590else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1592for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1593do
1594 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1595 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1596 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1600 break 2
838 fi 1601 fi
839 done 1602done
840 IFS="$ac_save_ifs" 1603done
1604
841fi 1605fi
842fi 1606fi
843CC="$ac_cv_prog_CC" 1607CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1608if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1609 echo "$as_me:$LINENO: result: $CC" >&5
1610echo "${ECHO_T}$CC" >&6
846else 1611else
847 echo "$ac_t""no" 1>&6 1612 echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
848fi 1614fi
849 1615
1616fi
1617if test -z "$ac_cv_prog_CC"; then
1618 ac_ct_CC=$CC
1619 # Extract the first word of "gcc", so it can be a program name with args.
1620set dummy gcc; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_CC="gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
1642
1643fi
1644fi
1645ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648echo "${ECHO_T}$ac_ct_CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654 CC=$ac_ct_CC
1655else
1656 CC="$ac_cv_prog_CC"
1657fi
1658
1659if test -z "$CC"; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1662set dummy ${ac_tool_prefix}cc; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}cc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682done
1683done
1684
1685fi
1686fi
1687CC=$ac_cv_prog_CC
1688if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690echo "${ECHO_T}$CC" >&6
1691else
1692 echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696fi
1697if test -z "$ac_cv_prog_CC"; then
1698 ac_ct_CC=$CC
1699 # Extract the first word of "cc", so it can be a program name with args.
1700set dummy cc; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 CC=$ac_ct_CC
1735else
1736 CC="$ac_cv_prog_CC"
1737fi
1738
1739fi
850if test -z "$CC"; then 1740if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1741 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1742set dummy cc; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1744echo $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 1745if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1746 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1747else
858 if test -n "$CC"; then 1748 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1749 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1750else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1751 ac_prog_rejected=no
863 ac_dummy="$PATH" 1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1756 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1760 ac_prog_rejected=yes
869 continue 1761 continue
870 fi 1762 fi
871 ac_cv_prog_CC="cc" 1763 ac_cv_prog_CC="cc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1765 break 2
873 fi 1766 fi
874 done 1767done
875 IFS="$ac_save_ifs" 1768done
1769
876if test $ac_prog_rejected = yes; then 1770if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1771 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1772 set dummy $ac_cv_prog_CC
879 shift 1773 shift
880 if test $# -gt 0; then 1774 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1775 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1776 # 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. 1777 # first if we set CC to just the basename; use the full file name.
884 shift 1778 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1780 fi
889fi 1781fi
890fi 1782fi
891fi 1783fi
892CC="$ac_cv_prog_CC" 1784CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1785if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1786 echo "$as_me:$LINENO: result: $CC" >&5
1787echo "${ECHO_T}$CC" >&6
895else 1788else
896 echo "$ac_t""no" 1>&6 1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
897fi 1791fi
898 1792
1793fi
899 if test -z "$CC"; then 1794if test -z "$CC"; then
900 case "`uname -s`" in 1795 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1796 for ac_prog in cl
1797 do
902 # Extract the first word of "cl", so it can be a program name with args. 1798 # 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 1799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1801echo $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 1802if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1803 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1804else
909 if test -n "$CC"; then 1805 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1806 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1807else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1809for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1810do
1811 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1812 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1813 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1817 break 2
1818 fi
1819done
1820done
1821
1822fi
1823fi
1824CC=$ac_cv_prog_CC
1825if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827echo "${ECHO_T}$CC" >&6
1828else
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833 test -n "$CC" && break
1834 done
1835fi
1836if test -z "$CC"; then
1837 ac_ct_CC=$CC
1838 for ac_prog in cl
1839do
1840 # Extract the first word of "$ac_prog", so it can be a program name with args.
1841set dummy $ac_prog; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847 if test -n "$ac_ct_CC"; then
1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849else
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_CC="$ac_prog"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861done
1862done
1863
1864fi
1865fi
1866ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867if test -n "$ac_ct_CC"; then
1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869echo "${ECHO_T}$ac_ct_CC" >&6
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873fi
1874
1875 test -n "$ac_ct_CC" && break
1876done
1877
1878 CC=$ac_ct_CC
1879fi
1880
1881fi
1882
1883
1884test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1885See \`config.log' for more details." >&5
1886echo "$as_me: error: no acceptable C compiler found in \$PATH
1887See \`config.log' for more details." >&2;}
1888 { (exit 1); exit 1; }; }
1889
1890# Provide some information about the compiler.
1891echo "$as_me:$LINENO:" \
1892 "checking for C compiler version" >&5
1893ac_compiler=`set X $ac_compile; echo $2`
1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1895 (eval $ac_compiler --version </dev/null >&5) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1900 (eval $ac_compiler -v </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1905 (eval $ac_compiler -V </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909
1910cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925ac_clean_files_save=$ac_clean_files
1926ac_clean_files="$ac_clean_files a.out a.exe b.out"
1927# Try to create an executable without -o first, disregard a.out.
1928# It will help us diagnose broken compilers, and finding out an intuition
1929# of exeext.
1930echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1931echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1932ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1933if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1934 (eval $ac_link_default) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 # Find the output, starting from the most likely. This scheme is
1939# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1940# resort.
1941
1942# Be careful to initialize this variable, since it used to be cached.
1943# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1944ac_cv_exeext=
1945# b.out is created by i960 compilers.
1946for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947do
1948 test -f "$ac_file" || continue
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1951 ;;
1952 conftest.$ac_ext )
1953 # This is the source file.
1954 ;;
1955 [ab].out )
1956 # We found the default executable, but exeext='' is most
1957 # certainly right.
1958 break;;
1959 *.* )
1960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 # FIXME: I believe we export ac_cv_exeext for Libtool,
1962 # but it would be cool to find out if it's true. Does anybody
1963 # maintain Libtool? --akim.
1964 export ac_cv_exeext
1965 break;;
1966 * )
1967 break;;
1968 esac
1969done
1970else
1971 echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: C compiler cannot create executables
1977See \`config.log' for more details." >&2;}
1978 { (exit 77); exit 77; }; }
1979fi
1980
1981ac_exeext=$ac_cv_exeext
1982echo "$as_me:$LINENO: result: $ac_file" >&5
1983echo "${ECHO_T}$ac_file" >&6
1984
1985# Check the compiler produces executables we can run. If not, either
1986# the compiler is broken, or we cross compile.
1987echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1988echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1989# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1990# If not cross compiling, check that we can run a simple program.
1991if test "$cross_compiling" != yes; then
1992 if { ac_try='./$ac_file'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 cross_compiling=no
1999 else
2000 if test "$cross_compiling" = maybe; then
2001 cross_compiling=yes
2002 else
2003 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2004If you meant to cross compile, use \`--host'.
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: cannot run C compiled programs.
2007If you meant to cross compile, use \`--host'.
2008See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
919 fi 2010 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 2011 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2012fi
2013echo "$as_me:$LINENO: result: yes" >&5
2014echo "${ECHO_T}yes" >&6
935 2015
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2016rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2017ac_clean_files=$ac_clean_files_save
2018# Check the compiler produces executables we can run. If not, either
2019# the compiler is broken, or we cross compile.
2020echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022echo "$as_me:$LINENO: result: $cross_compiling" >&5
2023echo "${ECHO_T}$cross_compiling" >&6
938 2024
939ac_ext=c 2025echo "$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. 2026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2028 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2029 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2034# work properly (i.e., refer to `conftest.exe'), while it won't with
2035# `rm'.
2036for ac_file in conftest.exe conftest conftest.*; do
2037 test -f "$ac_file" || continue
2038 case $ac_file in
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041 export ac_cv_exeext
2042 break;;
2043 * ) break;;
2044 esac
2045done
2046else
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2050See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2052fi
945 2053
2054rm -f conftest$ac_cv_exeext
2055echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2056echo "${ECHO_T}$ac_cv_exeext" >&6
2057
2058rm -f conftest.$ac_ext
2059EXEEXT=$ac_cv_exeext
2060ac_exeext=$EXEEXT
2061echo "$as_me:$LINENO: checking for suffix of object files" >&5
2062echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2063if test "${ac_cv_objext+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 cat >conftest.$ac_ext <<_ACEOF
2067/* confdefs.h. */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h. */
947 2072
948#line 949 "configure" 2073int
949#include "confdefs.h" 2074main ()
2075{
950 2076
951main(){return(0);} 2077 ;
952EOF 2078 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2079}
954 ac_cv_prog_cc_works=yes 2080_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2081rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2083 (eval $ac_compile) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2088 case $ac_file in
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2091 break;;
2092 esac
2093done
958 else 2094else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2095 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2096sed '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 2097
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2098{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2099See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2100echo "$as_me: error: cannot compute suffix of object files: cannot compile
2101See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
977fi 2103fi
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 2104
2105rm -f conftest.$ac_cv_objext conftest.$ac_ext
2106fi
2107echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2108echo "${ECHO_T}$ac_cv_objext" >&6
2109OBJEXT=$ac_cv_objext
2110ac_objext=$OBJEXT
2111echo "$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 2112echo $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 2113if 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 2114 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2115else
988 cat > conftest.c <<EOF 2116 cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
989#ifdef __GNUC__ 2126#ifndef __GNUC__
990 yes; 2127 choke me
991#endif 2128#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 2129
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2130 ;
1001 2131 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2132}
1003 GCC=yes 2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>conftest.er1
2137 ac_status=$?
2138 grep -v '^ *+' conftest.er1 >conftest.err
2139 rm -f conftest.er1
2140 cat conftest.err >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); } &&
2143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_compiler_gnu=yes
1004else 2156else
1005 GCC= 2157 echo "$as_me: failed program was:" >&5
1006fi 2158sed 's/^/| /' conftest.$ac_ext >&5
1007 2159
2160ac_compiler_gnu=no
2161fi
2162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163ac_cv_c_compiler_gnu=$ac_compiler_gnu
2164
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2167echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2168GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2169ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2170ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2171CFLAGS="-g"
2172echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2173echo $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 2174if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2175 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2176else
1016 echo 'void f(){}' > conftest.c 2177 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2178/* confdefs.h. */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h. */
2183
2184int
2185main ()
2186{
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2195 ac_status=$?
2196 grep -v '^ *+' conftest.er1 >conftest.err
2197 rm -f conftest.er1
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
1018 ac_cv_prog_cc_g=yes 2213 ac_cv_prog_cc_g=yes
1019else 2214else
2215 echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
1020 ac_cv_prog_cc_g=no 2218ac_cv_prog_cc_g=no
1021fi 2219fi
1022rm -f conftest* 2220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2221fi
1025 2222echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2223echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2224if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2225 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2226elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2227 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2228 CFLAGS="-g -O2"
1032 else 2229 else
1033 CFLAGS="-g" 2230 CFLAGS="-g"
1037 CFLAGS="-O2" 2234 CFLAGS="-O2"
1038 else 2235 else
1039 CFLAGS= 2236 CFLAGS=
1040 fi 2237 fi
1041fi 2238fi
2239echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2240echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2241if test "${ac_cv_prog_cc_stdc+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244 ac_cv_prog_cc_stdc=no
2245ac_save_CC=$CC
2246cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252#include <stdarg.h>
2253#include <stdio.h>
2254#include <sys/types.h>
2255#include <sys/stat.h>
2256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2257struct buf { int x; };
2258FILE * (*rcsopen) (struct buf *, struct stat *, int);
2259static char *e (p, i)
2260 char **p;
2261 int i;
2262{
2263 return p[i];
2264}
2265static char *f (char * (*g) (char **, int), char **p, ...)
2266{
2267 char *s;
2268 va_list v;
2269 va_start (v,p);
2270 s = g (p, va_arg (v,int));
2271 va_end (v);
2272 return s;
2273}
1042 2274
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2276 function prototypes and stuff, but not '\xHH' hex character constants.
2277 These don't provoke an error unfortunately, instead are silently treated
2278 as 'x'. The following induces an error, until -std1 is added to get
2279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2280 array size at least. It's necessary to write '\x00'==0 to get something
2281 that's true only with -std1. */
2282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2283
2284int test (int i, double x);
2285struct s1 {int (*f) (int a);};
2286struct s2 {int (*f) (double a);};
2287int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2288int argc;
2289char **argv;
2290int
2291main ()
2292{
2293return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2294 ;
2295 return 0;
2296}
2297_ACEOF
2298# Don't try gcc -ansi; that turns off useful extensions and
2299# breaks some systems' header files.
2300# AIX -qlanglvl=ansi
2301# Ultrix and OSF/1 -std1
2302# HP-UX 10.20 and later -Ae
2303# HP-UX older versions -Aa -D_HPUX_SOURCE
2304# SVR4 -Xc -D__EXTENSIONS__
2305for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2306do
2307 CC="$ac_save_CC $ac_arg"
2308 rm -f conftest.$ac_objext
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 ac_cv_prog_cc_stdc=$ac_arg
2330break
2331else
2332 echo "$as_me: failed program was:" >&5
2333sed 's/^/| /' conftest.$ac_ext >&5
2334
2335fi
2336rm -f conftest.err conftest.$ac_objext
2337done
2338rm -f conftest.$ac_ext conftest.$ac_objext
2339CC=$ac_save_CC
2340
2341fi
2342
2343case "x$ac_cv_prog_cc_stdc" in
2344 x|xno)
2345 echo "$as_me:$LINENO: result: none needed" >&5
2346echo "${ECHO_T}none needed" >&6 ;;
2347 *)
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2349echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2350 CC="$CC $ac_cv_prog_cc_stdc" ;;
2351esac
2352
2353# Some people use a C++ compiler to compile C. Since we use `exit',
2354# in C++ we need to declare it. In case someone uses the same compiler
2355# for both compiling C and C++ we need to have the C++ compiler decide
2356# the declaration of exit, since it's the most demanding environment.
2357cat >conftest.$ac_ext <<_ACEOF
2358#ifndef __cplusplus
2359 choke me
2360#endif
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2365 ac_status=$?
2366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 for ac_declaration in \
2384 '' \
2385 'extern "C" void std::exit (int) throw (); using std::exit;' \
2386 'extern "C" void std::exit (int); using std::exit;' \
2387 'extern "C" void exit (int) throw ();' \
2388 'extern "C" void exit (int);' \
2389 'void exit (int);'
2390do
2391 cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h. */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h. */
2397$ac_declaration
2398#include <stdlib.h>
2399int
2400main ()
2401{
2402exit (42);
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 :
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433continue
2434fi
2435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442$ac_declaration
2443int
2444main ()
2445{
2446exit (42);
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 break
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479done
2480rm -f conftest*
2481if test -n "$ac_declaration"; then
2482 echo '#ifdef __cplusplus' >>confdefs.h
2483 echo $ac_declaration >>confdefs.h
2484 echo '#endif' >>confdefs.h
2485fi
2486
2487else
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491fi
2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493ac_ext=c
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
2499ac_ext=cc
2500ac_cpp='$CXXCPP $CPPFLAGS'
2501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2504if test -n "$ac_tool_prefix"; then
2505 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2507 # 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 2508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2510echo $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 2511if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2512 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2513else
1052 if test -n "$CXX"; then 2514 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2516else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2518for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2519do
2520 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2521 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2526 break 2
1062 fi 2527 fi
2528done
2529done
2530
2531fi
2532fi
2533CXX=$ac_cv_prog_CXX
2534if test -n "$CXX"; then
2535 echo "$as_me:$LINENO: result: $CXX" >&5
2536echo "${ECHO_T}$CXX" >&6
2537else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540fi
2541
2542 test -n "$CXX" && break
1063 done 2543 done
1064 IFS="$ac_save_ifs"
1065fi 2544fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2545if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2546 ac_ct_CXX=$CXX
2547 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2548do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550set dummy $ac_prog; ac_word=$2
2551echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2555else
1071 echo "$ac_t""no" 1>&6 2556 if test -n "$ac_ct_CXX"; then
1072fi 2557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2558else
1074test -n "$CXX" && break 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CXX="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
1075done 2570done
2571done
2572
2573fi
2574fi
2575ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2576if test -n "$ac_ct_CXX"; then
2577 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2578echo "${ECHO_T}$ac_ct_CXX" >&6
2579else
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582fi
2583
2584 test -n "$ac_ct_CXX" && break
2585done
1076test -n "$CXX" || CXX="gcc" 2586test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2587
2588 CXX=$ac_ct_CXX
2589fi
1078 2590
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 2591
1082ac_ext=C 2592# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2593echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2594 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2595ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2597 (eval $ac_compiler --version </dev/null >&5) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }
2601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602 (eval $ac_compiler -v </dev/null >&5) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607 (eval $ac_compiler -V </dev/null >&5) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }
1088 2611
2612echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2613echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2614if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
1090 2623
1091#line 1092 "configure" 2624int
1092#include "confdefs.h" 2625main ()
1093 2626{
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__ 2627#ifndef __GNUC__
1133 yes; 2628 choke me
1134#endif 2629#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 2630
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2631 ;
1144 2632 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2633}
1146 GXX=yes 2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_compiler_gnu=yes
1147else 2657else
1148 GXX= 2658 echo "$as_me: failed program was:" >&5
1149fi 2659sed 's/^/| /' conftest.$ac_ext >&5
1150 2660
2661ac_compiler_gnu=no
2662fi
2663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2665
2666fi
2667echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2668echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2669GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2670ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2671ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2672CXXFLAGS="-g"
2673echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2674echo $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 2675if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2676 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2677else
1159 echo 'void f(){}' > conftest.cc 2678 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
2684
2685int
2686main ()
2687{
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
1161 ac_cv_prog_cxx_g=yes 2714 ac_cv_prog_cxx_g=yes
1162else 2715else
2716 echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
1163 ac_cv_prog_cxx_g=no 2719ac_cv_prog_cxx_g=no
1164fi 2720fi
1165rm -f conftest* 2721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2722fi
1168 2723echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2724echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2725if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2726 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2727elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2728 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2729 CXXFLAGS="-g -O2"
1175 else 2730 else
1176 CXXFLAGS="-g" 2731 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2735 CXXFLAGS="-O2"
1181 else 2736 else
1182 CXXFLAGS= 2737 CXXFLAGS=
1183 fi 2738 fi
1184fi 2739fi
2740for ac_declaration in \
2741 '' \
2742 'extern "C" void std::exit (int) throw (); using std::exit;' \
2743 'extern "C" void std::exit (int); using std::exit;' \
2744 'extern "C" void exit (int) throw ();' \
2745 'extern "C" void exit (int);' \
2746 'void exit (int);'
2747do
2748 cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754$ac_declaration
2755#include <stdlib.h>
2756int
2757main ()
2758{
2759exit (42);
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 :
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
1185 2789
2790continue
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h. */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h. */
2799$ac_declaration
2800int
2801main ()
2802{
2803exit (42);
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext
2809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest.$ac_objext'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 break
2830else
2831 echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834fi
2835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2836done
2837rm -f conftest*
2838if test -n "$ac_declaration"; then
2839 echo '#ifdef __cplusplus' >>confdefs.h
2840 echo $ac_declaration >>confdefs.h
2841 echo '#endif' >>confdefs.h
2842fi
2843
2844ac_ext=c
2845ac_cpp='$CPP $CPPFLAGS'
2846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855echo "$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 2856echo $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. 2857# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2858if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2859 CPP=
1191fi 2860fi
1192if test -z "$CPP"; then 2861if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2862 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2863 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2864else
1196 # This must be in double quotes, not single quotes, because CPP may get 2865 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2867 do
2868 ac_preproc_ok=false
2869for ac_c_preproc_warn_flag in '' yes
2870do
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2875 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2876 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2877 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2878/* confdefs.h. */
1203#include "confdefs.h" 2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
2883#ifdef __STDC__
2884# include <limits.h>
2885#else
1204#include <assert.h> 2886# include <assert.h>
1205Syntax Error 2887#endif
1206EOF 2888 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2889_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev/null; then
2898 if test -s conftest.err; then
2899 ac_cpp_err=$ac_c_preproc_warn_flag
2900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2901 else
2902 ac_cpp_err=
2903 fi
2904else
2905 ac_cpp_err=yes
2906fi
1210if test -z "$ac_err"; then 2907if test -z "$ac_cpp_err"; then
1211 : 2908 :
1212else 2909else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2910 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2911sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2912
1217 CPP="${CC-cc} -E -traditional-cpp" 2913 # Broken: fails on valid input.
2914continue
2915fi
2916rm -f conftest.err conftest.$ac_ext
2917
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2920 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2921/* confdefs.h. */
1220#include "confdefs.h" 2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926#include <ac_nonexistent.h>
2927_ACEOF
2928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2941 fi
2942else
2943 ac_cpp_err=yes
2944fi
2945if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2947continue
2948else
2949 echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 # Passes both tests.
2953ac_preproc_ok=:
2954break
2955fi
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962 break
2963fi
2964
2965 done
2966 ac_cv_prog_CPP=$CPP
2967
2968fi
2969 CPP=$ac_cv_prog_CPP
2970else
2971 ac_cv_prog_CPP=$CPP
2972fi
2973echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
1221#include <assert.h> 2993# include <assert.h>
1222Syntax Error 2994#endif
1223EOF 2995 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2996_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev/null; then
3005 if test -s conftest.err; then
3006 ac_cpp_err=$ac_c_preproc_warn_flag
3007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008 else
3009 ac_cpp_err=
3010 fi
3011else
3012 ac_cpp_err=yes
3013fi
1227if test -z "$ac_err"; then 3014if test -z "$ac_cpp_err"; then
1228 : 3015 :
1229else 3016else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3017 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3018sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3019
1234 CPP="${CC-cc} -nologo -E" 3020 # Broken: fails on valid input.
3021continue
3022fi
3023rm -f conftest.err conftest.$ac_ext
3024
3025 # OK, works on sane cases. Now check whether non-existent headers
3026 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3027 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3028/* confdefs.h. */
1237#include "confdefs.h" 3029_ACEOF
1238#include <assert.h> 3030cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3031cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3032/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3033#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3034_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3048 fi
3049else
3050 ac_cpp_err=yes
3051fi
1244if test -z "$ac_err"; then 3052if test -z "$ac_cpp_err"; then
3053 # Broken: success on invalid input.
3054continue
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 # Passes both tests.
3060ac_preproc_ok=:
3061break
3062fi
3063rm -f conftest.err conftest.$ac_ext
3064
3065done
3066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067rm -f conftest.err conftest.$ac_ext
3068if $ac_preproc_ok; then
1245 : 3069 :
1246else 3070else
1247 echo "$ac_err" >&5 3071 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3072See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3073echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3074See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3075 { (exit 1); exit 1; }; }
1252fi 3076fi
1253rm -f conftest* 3077
1254fi 3078ac_ext=c
1255rm -f conftest* 3079ac_cpp='$CPP $CPPFLAGS'
1256fi 3080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3082ac_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 3083
1266# Find a good install program. We prefer a C program (faster), 3084# 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 3085# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3086# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3087# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3088# SunOS /usr/etc/install
1271# IRIX /sbin/install 3089# IRIX /sbin/install
1272# AIX /bin/install 3090# AIX /bin/install
3091# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3093# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3095# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3096# ./install, which can be erroneously created by make from ./install.sh.
3097echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3098echo $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 3099if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3100if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3101 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3102else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3108 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3109case $as_dir/ in
3110 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3113 /usr/ucb/* ) ;;
1288 *) 3114 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3115 # 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 3116 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3117 # by default.
1292 for ac_prog in ginstall scoinst install; do 3118 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3121 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3122 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3123 # AIX install. It has an incompatible calling convention.
1297 : 3124 :
3125 elif test $ac_prog = install &&
3126 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3127 # program-specific install script used by HP pwplus--don't use.
3128 :
1298 else 3129 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3131 break 3
1301 fi 3132 fi
1302 fi 3133 fi
1303 done 3134 done
1304 ;;
1305 esac
1306 done 3135 done
1307 IFS="$ac_save_IFS" 3136 ;;
3137esac
3138done
3139
1308 3140
1309fi 3141fi
1310 if test "${ac_cv_path_install+set}" = set; then 3142 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3143 INSTALL=$ac_cv_path_install
1312 else 3144 else
1313 # As a last resort, use the slow shell script. We don't cache a 3145 # 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 3146 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3147 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3148 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3149 INSTALL=$ac_install_sh
1318 fi 3150 fi
1319fi 3151fi
3152echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3153echo "${ECHO_T}$INSTALL" >&6
1321 3154
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3155# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3156# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3157test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3158
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3159test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3160
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3161test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3162
1330for ac_prog in mawk gawk nawk awk 3163for ac_prog in gawk mawk nawk awk
1331do 3164do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3166set dummy $ac_prog; ac_word=$2
3167echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3168echo $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 3169if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3170 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3171else
1339 if test -n "$AWK"; then 3172 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3174else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3176for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3177do
3178 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3179 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3182 ac_cv_prog_AWK="$ac_prog"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3184 break 2
3185 fi
3186done
3187done
3188
3189fi
3190fi
3191AWK=$ac_cv_prog_AWK
3192if test -n "$AWK"; then
3193 echo "$as_me:$LINENO: result: $AWK" >&5
3194echo "${ECHO_T}$AWK" >&6
3195else
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198fi
3199
3200 test -n "$AWK" && break
3201done
3202
3203
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210
3211LINKER="$CXX"
3212if test x$GCC = xyes && test x$GXX = xyes; then
3213
3214echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3215echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3216if test "${ac_cv_lib_supcpp_main+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 ac_check_lib_save_LIBS=$LIBS
3220LIBS="-lsupc++ $LIBS"
3221cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228
3229int
3230main ()
3231{
3232main ();
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
3238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_lib_supcpp_main=yes
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_cv_lib_supcpp_main=no
3264fi
3265rm -f conftest.err conftest.$ac_objext \
3266 conftest$ac_exeext conftest.$ac_ext
3267LIBS=$ac_check_lib_save_LIBS
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3270echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3271if test $ac_cv_lib_supcpp_main = yes; then
3272
3273 LINKER="$CC"
3274 LIBS="$LIBS -lsupc++"
3275
3276fi
3277
3278fi
3279LINKER=$LINKER
3280
3281
3282CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3283
3284if test x$GXX = xyes; then
3285 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3286fi
3287
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293
3294
3295
3296ac_ext=cc
3297ac_cpp='$CXXCPP $CPPFLAGS'
3298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3301echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3302echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3303if test -z "$CXXCPP"; then
3304 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 # Double quotes because CXXCPP needs to be expanded
3308 for CXXCPP in "$CXX -E" "/lib/cpp"
3309 do
3310 ac_preproc_ok=false
3311for ac_cxx_preproc_warn_flag in '' yes
3312do
3313 # Use a header file that comes with gcc, so configuring glibc
3314 # with a fresh cross-compiler works.
3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3316 # <limits.h> exists even on freestanding compilers.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#ifdef __STDC__
3326# include <limits.h>
3327#else
3328# include <assert.h>
3329#endif
3330 Syntax error
3331_ACEOF
3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_cxx_preproc_warn_flag
3342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3343 else
3344 ac_cpp_err=
3345 fi
3346else
3347 ac_cpp_err=yes
3348fi
3349if test -z "$ac_cpp_err"; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 # Broken: fails on valid input.
3356continue
3357fi
3358rm -f conftest.err conftest.$ac_ext
3359
3360 # OK, works on sane cases. Now check whether non-existent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <ac_nonexistent.h>
3369_ACEOF
3370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_cxx_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3389continue
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 # Passes both tests.
3395ac_preproc_ok=:
3396break
3397fi
3398rm -f conftest.err conftest.$ac_ext
3399
3400done
3401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402rm -f conftest.err conftest.$ac_ext
3403if $ac_preproc_ok; then
3404 break
3405fi
3406
3407 done
3408 ac_cv_prog_CXXCPP=$CXXCPP
3409
3410fi
3411 CXXCPP=$ac_cv_prog_CXXCPP
3412else
3413 ac_cv_prog_CXXCPP=$CXXCPP
3414fi
3415echo "$as_me:$LINENO: result: $CXXCPP" >&5
3416echo "${ECHO_T}$CXXCPP" >&6
3417ac_preproc_ok=false
3418for ac_cxx_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_cxx_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3450 else
3451 ac_cpp_err=
3452 fi
3453else
3454 ac_cpp_err=yes
3455fi
3456if test -z "$ac_cpp_err"; then
3457 :
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Broken: fails on valid input.
3463continue
3464fi
3465rm -f conftest.err conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
3477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_cxx_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496continue
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
3505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
3510if $ac_preproc_ok; then
3511 :
3512else
3513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&5
3515echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3518fi
3519
3520ac_ext=cc
3521ac_cpp='$CXXCPP $CPPFLAGS'
3522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3525
3526
3527echo "$as_me:$LINENO: checking for egrep" >&5
3528echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3529if test "${ac_cv_prog_egrep+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
1349 fi 3535 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3536fi
1353fi 3537echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3538echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3539 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3540
1361test -n "$AWK" && break
1362done
1363 3541
1364 3542
3543echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3544echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3545cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3546/* confdefs.h. */
1369#include "confdefs.h" 3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
1370#ifdef _AIX 3551#ifdef _AIX
1371 yes 3552 yes
1372#endif 3553#endif
1373 3554
1374EOF 3555_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3557 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3558 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3559echo "${ECHO_T}yes" >&6
3560cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3561#define _ALL_SOURCE 1
1380EOF 3562_ACEOF
1381 3563
1382else 3564else
1383 rm -rf conftest* 3565 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3566echo "${ECHO_T}no" >&6
1385fi 3567fi
1386rm -f conftest* 3568rm -f conftest*
1387 3569
1388 3570
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3571echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3572echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3573if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3574 echo $ECHO_N "(cached) $ECHO_C" >&6
1393then
1394 echo "$ac_t""yes" 1>&6
1395 ISC=yes # If later tests want to check for ISC.
1396 cat >> confdefs.h <<\EOF
1397#define _POSIX_SOURCE 1
1398EOF
1399
1400 if test "$GCC" = yes; then
1401 CC="$CC -posix"
1402 else 3575else
1403 CC="$CC -Xp" 3576 ac_func_search_save_LIBS=$LIBS
1404 fi 3577ac_cv_search_strerror=no
3578cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584
3585/* Override any gcc2 internal prototype to avoid an error. */
3586#ifdef __cplusplus
3587extern "C"
3588#endif
3589/* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591char strerror ();
3592int
3593main ()
3594{
3595strerror ();
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_cv_search_strerror="none required"
1405else 3622else
1406 echo "$ac_t""no" 1>&6 3623 echo "$as_me: failed program was:" >&5
1407 ISC= 3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
3629if test "$ac_cv_search_strerror" = no; then
3630 for ac_lib in cposix; do
3631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
3638
3639/* Override any gcc2 internal prototype to avoid an error. */
3640#ifdef __cplusplus
3641extern "C"
3642#endif
3643/* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645char strerror ();
3646int
3647main ()
3648{
3649strerror ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_cv_search_strerror="-l$ac_lib"
3676break
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext \
3683 conftest$ac_exeext conftest.$ac_ext
3684 done
3685fi
3686LIBS=$ac_func_search_save_LIBS
3687fi
3688echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3689echo "${ECHO_T}$ac_cv_search_strerror" >&6
3690if test "$ac_cv_search_strerror" != no; then
3691 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3692
1408fi 3693fi
1409 3694
1410 3695
1411# Check whether --enable-shared or --disable-shared was given. 3696# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3697if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3712 IFS="$ac_save_ifs"
1428 ;; 3713 ;;
1429esac 3714esac
1430else 3715else
1431 enable_shared=no 3716 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3717fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3718if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3719 enableval="$enable_static"
1436 p=${PACKAGE-default} 3720 p=${PACKAGE-default}
1437case "$enableval" in 3721case "$enableval" in
1438yes) enable_static=yes ;; 3722yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3733 IFS="$ac_save_ifs"
1450 ;; 3734 ;;
1451esac 3735esac
1452else 3736else
1453 enable_static=yes 3737 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. 3738fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3739if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3740 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3741 p=${PACKAGE-default}
1521case "$enableval" in 3742case "$enableval" in
1522yes) enable_fast_install=yes ;; 3743yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3754 IFS="$ac_save_ifs"
1534 ;; 3755 ;;
1535esac 3756esac
1536else 3757else
1537 enable_fast_install=yes 3758 enable_fast_install=yes
1538fi 3759fi;
1539
1540
1541# Make sure we can run config.sub. 3760# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3761$ac_config_sub sun4 >/dev/null 2>&1 ||
3762 { { 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; } 3763echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3764 { (exit 1); exit 1; }; }
1545 3765
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3766echo "$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 3767echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3768if test "${ac_cv_build+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 ac_cv_build_alias=$build_alias
3772test -z "$ac_cv_build_alias" &&
3773 ac_cv_build_alias=`$ac_config_guess`
3774test -z "$ac_cv_build_alias" &&
3775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3776echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3777 { (exit 1); exit 1; }; }
3778ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3780echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3781 { (exit 1); exit 1; }; }
1569 3782
1570build_alias=$build 3783fi
1571case "$build_alias" in 3784echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3785echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3786build=$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/'` 3787build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3788build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3789build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3790
3791
3792echo "$as_me:$LINENO: checking host system type" >&5
3793echo $ECHO_N "checking host system type... $ECHO_C" >&6
3794if test "${ac_cv_host+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 ac_cv_host_alias=$host_alias
3798test -z "$ac_cv_host_alias" &&
3799 ac_cv_host_alias=$ac_cv_build_alias
3800ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3801 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3802echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3803 { (exit 1); exit 1; }; }
3804
3805fi
3806echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807echo "${ECHO_T}$ac_cv_host" >&6
3808host=$ac_cv_host
3809host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3810host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3811host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3812
3813
1584 3814
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3815# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3816if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3817 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3818 test "$withval" = no || with_gnu_ld=yes
1589else 3819else
1590 with_gnu_ld=no 3820 with_gnu_ld=no
1591fi 3821fi;
1592
1593ac_prog=ld 3822ac_prog=ld
1594if test "$GCC" = yes; then 3823if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3824 # Check if gcc -print-prog-name=ld gives a path.
3825 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 3826echo $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 3827 case $host in
1599 *-*-mingw*) 3828 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3829 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3831 *)
1621 # If it is relative, then search for the first ld in PATH. 3850 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3851 with_gnu_ld=unknown
1623 ;; 3852 ;;
1624 esac 3853 esac
1625elif test "$with_gnu_ld" = yes; then 3854elif test "$with_gnu_ld" = yes; then
3855 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3856echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3857else
3858 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3859echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3860fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3861if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3862 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3863else
1635 if test -z "$LD"; then 3864 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3866 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3867 test -z "$ac_dir" && ac_dir=.
1654fi 3883fi
1655fi 3884fi
1656 3885
1657LD="$lt_cv_path_LD" 3886LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3887if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3888 echo "$as_me:$LINENO: result: $LD" >&5
3889echo "${ECHO_T}$LD" >&6
1660else 3890else
1661 echo "$ac_t""no" 1>&6 3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
1662fi 3893fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3894test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3895echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3896 { (exit 1); exit 1; }; }
3897echo "$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 3898echo $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 3899if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3900 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3901else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3902 # 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 3903if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3904 lt_cv_prog_gnu_ld=yes
1672else 3905else
1673 lt_cv_prog_gnu_ld=no 3906 lt_cv_prog_gnu_ld=no
1674fi 3907fi
1675fi 3908fi
1676 3909echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3910echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3911with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3912
1680 3913
3914echo "$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 3915echo $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 3916if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3917 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3918else
1686 lt_cv_ld_reload_flag='-r' 3919 lt_cv_ld_reload_flag='-r'
1687fi 3920fi
1688 3921echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3922echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3923reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3924test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3925
3926echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3927echo $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 3928if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3929 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3930else
1698 if test -n "$NM"; then 3931 if test -n "$NM"; then
1699 # Let the user override the test. 3932 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3933 lt_cv_path_NM="$NM"
1701else 3934else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3958fi
1726fi 3959fi
1727 3960
1728NM="$lt_cv_path_NM" 3961NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3962echo "$as_me:$LINENO: result: $NM" >&5
3963echo "${ECHO_T}$NM" >&6
1730 3964
3965echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3966echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3967LN_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 3968if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
1748else 3971else
1749 echo "$ac_t""no" 1>&6 3972 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3974fi
1751 3975
3976echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3977echo $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 3978if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3979 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3980else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3981 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3982lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3983lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3984# Need to set the preceding variable on all platforms that support
1906 esac 4130 esac
1907 ;; 4131 ;;
1908esac 4132esac
1909 4133
1910fi 4134fi
1911 4135echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4136echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4137file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4138deplibs_check_method=$lt_cv_deplibs_check_method
1915 4139
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 4140
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4141
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 4142
1979 4143
1980 4144
1981 4145
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4146# Check for command to grab the raw symbol name followed by C symbol from nm.
4147echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4148echo $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 4149if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4150 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4151else
1988 4152
1989# These are sane defaults that work on at least a few old systems. 4153# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4154# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4155
1992# Character class describing NM global symbol codes. 4156# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4157symcode='[BCDEGRST]'
2055} 4219}
2056#endif 4220#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4221main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4222EOF
2059 4223
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4229 # Now try to grab the symbols.
2062 nlist=conftest.nm 4230 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 4231 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4236 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4237 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4238 mv -f "$nlist"T "$nlist"
2067 else 4239 else
2068 rm -f "$nlist"T 4240 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4281 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4282 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4283 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4284 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4285 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287 (eval $ac_link) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4291 pipe_works=yes
2116 fi 4292 fi
2117 LIBS="$save_LIBS" 4293 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4294 CFLAGS="$save_CFLAGS"
2119 else 4295 else
2146 global_symbol_to_cdecl= 4322 global_symbol_to_cdecl=
2147else 4323else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4324 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4325fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4326if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4327 echo "$as_me:$LINENO: result: failed" >&5
4328echo "${ECHO_T}failed" >&6
4329else
4330 echo "$as_me:$LINENO: result: ok" >&5
4331echo "${ECHO_T}ok" >&6
4332fi
4333
4334echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4336if test "${ac_cv_header_stdc+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#include <stdlib.h>
4346#include <stdarg.h>
4347#include <string.h>
4348#include <float.h>
4349
4350int
4351main ()
4352{
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_header_stdc=yes
4380else
4381 echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384ac_cv_header_stdc=no
4385fi
4386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387
4388if test $ac_cv_header_stdc = yes; then
4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4390 cat >conftest.$ac_ext <<_ACEOF
4391/* confdefs.h. */
4392_ACEOF
4393cat confdefs.h >>conftest.$ac_ext
4394cat >>conftest.$ac_ext <<_ACEOF
4395/* end confdefs.h. */
4396#include <string.h>
4397
4398_ACEOF
4399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "memchr" >/dev/null 2>&1; then
4401 :
4402else
4403 ac_cv_header_stdc=no
4404fi
4405rm -f conftest*
4406
4407fi
4408
4409if test $ac_cv_header_stdc = yes; then
4410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4411 cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417#include <stdlib.h>
4418
4419_ACEOF
4420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 $EGREP "free" >/dev/null 2>&1; then
4422 :
4423else
4424 ac_cv_header_stdc=no
4425fi
4426rm -f conftest*
4427
4428fi
4429
4430if test $ac_cv_header_stdc = yes; then
4431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4432 if test "$cross_compiling" = yes; then
4433 :
4434else
4435 cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h. */
4441#include <ctype.h>
4442#if ((' ' & 0x0FF) == 0x020)
4443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4445#else
2153 echo "$ac_t""ok" 1>&6 4446# define ISLOWER(c) \
2154fi 4447 (('a' <= (c) && (c) <= 'i') \
4448 || ('j' <= (c) && (c) <= 'r') \
4449 || ('s' <= (c) && (c) <= 'z'))
4450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4451#endif
2155 4452
2156for ac_hdr in dlfcn.h 4453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4454int
4455main ()
4456{
4457 int i;
4458 for (i = 0; i < 256; i++)
4459 if (XOR (islower (i), ISLOWER (i))
4460 || toupper (i) != TOUPPER (i))
4461 exit(2);
4462 exit (0);
4463}
4464_ACEOF
4465rm -f conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 :
4477else
4478 echo "$as_me: program exited with status $ac_status" >&5
4479echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482( exit $ac_status )
4483ac_cv_header_stdc=no
4484fi
4485rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4486fi
4487fi
4488fi
4489echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4490echo "${ECHO_T}$ac_cv_header_stdc" >&6
4491if test $ac_cv_header_stdc = yes; then
4492
4493cat >>confdefs.h <<\_ACEOF
4494#define STDC_HEADERS 1
4495_ACEOF
4496
4497fi
4498
4499# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4510 inttypes.h stdint.h unistd.h
2157do 4511do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4513echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4515if 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 4516 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4517else
2164 cat > conftest.$ac_ext <<EOF 4518 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4519/* confdefs.h. */
2166#include "confdefs.h" 4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524$ac_includes_default
4525
2167#include <$ac_hdr> 4526#include <$ac_header>
2168EOF 4527_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4528rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 (eval $ac_try) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 eval "$as_ac_Header=yes"
4550else
4551 echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554eval "$as_ac_Header=no"
4555fi
4556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4557fi
4558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563_ACEOF
4564
4565fi
4566
4567done
4568
4569
4570
4571for ac_header in dlfcn.h
4572do
4573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo "$as_me:$LINENO: checking for $ac_header" >&5
4576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4577if eval "test \"\${$as_ac_Header+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579fi
4580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4582else
4583 # Is the header compilable?
4584echo "$as_me:$LINENO: checking $ac_header usability" >&5
4585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4586cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592$ac_includes_default
4593#include <$ac_header>
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_header_compiler=yes
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_header_compiler=no
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4625echo "${ECHO_T}$ac_header_compiler" >&6
4626
4627# Is the header present?
4628echo "$as_me:$LINENO: checking $ac_header presence" >&5
4629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4630cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636#include <$ac_header>
4637_ACEOF
4638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4649 else
4650 ac_cpp_err=
4651 fi
4652else
4653 ac_cpp_err=yes
4654fi
2172if test -z "$ac_err"; then 4655if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4656 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4657else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4658 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4659sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4660
2180 eval "ac_cv_header_$ac_safe=no" 4661 ac_header_preproc=no
2181fi 4662fi
2182rm -f conftest* 4663rm -f conftest.err conftest.$ac_ext
4664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4665echo "${ECHO_T}$ac_header_preproc" >&6
4666
4667# So? What about this header?
4668case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4669 yes:no: )
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4674 ac_header_preproc=yes
4675 ;;
4676 no:yes:* )
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4689 (
4690 cat <<\_ASBOX
4691## ------------------------------------------ ##
4692## Report this to the AC_PACKAGE_NAME lists. ##
4693## ------------------------------------------ ##
4694_ASBOX
4695 ) |
4696 sed "s/^/$as_me: WARNING: /" >&2
4697 ;;
4698esac
4699echo "$as_me:$LINENO: checking for $ac_header" >&5
4700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4705fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4708
4709fi
4710if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4711 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4713_ACEOF
2190 4714
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4715fi
4716
2194done 4717done
2195 4718
2196 4719
2197 4720
2198 4721
2199 4722
2200# Only perform the check for file, if the check method requires it 4723# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4724case "$deplibs_check_method" in
2202file_magic*) 4725file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4727 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 4728echo $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 4729if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4730 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4731else
2209 case "$MAGIC_CMD" in 4732 case "$MAGIC_CMD" in
2210 /*) 4733 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4735 ;;
2254esac 4777esac
2255fi 4778fi
2256 4779
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4781if test -n "$MAGIC_CMD"; then
4782 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4783echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4784else
2261 echo "$ac_t""no" 1>&6 4785 echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6
2262fi 4787fi
2263 4788
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4789if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4790 if test -n "$ac_tool_prefix"; then
4791 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4792echo $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 4793if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4794 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4795else
2271 case "$MAGIC_CMD" in 4796 case "$MAGIC_CMD" in
2272 /*) 4797 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4799 ;;
2316esac 4841esac
2317fi 4842fi
2318 4843
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4845if test -n "$MAGIC_CMD"; then
4846 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4847echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4848else
2323 echo "$ac_t""no" 1>&6 4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
2324fi 4851fi
2325 4852
2326 else 4853 else
2327 MAGIC_CMD=: 4854 MAGIC_CMD=:
2328 fi 4855 fi
2330 4857
2331 fi 4858 fi
2332 ;; 4859 ;;
2333esac 4860esac
2334 4861
4862if 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. 4863 # 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 4864set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4865echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4866echo $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 4867if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4868 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4869else
2342 if test -n "$RANLIB"; then 4870 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4872else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4874for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4875do
4876 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4877 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4882 break 2
2352 fi 4883 fi
2353 done 4884done
2354 IFS="$ac_save_ifs" 4885done
4886
2355fi 4887fi
2356fi 4888fi
2357RANLIB="$ac_cv_prog_RANLIB" 4889RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4890if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4891 echo "$as_me:$LINENO: result: $RANLIB" >&5
4892echo "${ECHO_T}$RANLIB" >&6
2360else 4893else
2361 echo "$ac_t""no" 1>&6 4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
2362fi 4896fi
2363 4897
2364 4898fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4899if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4900 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4901 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4902set dummy ranlib; ac_word=$2
4903echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4904echo $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 4905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4906 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4907else
2374 if test -n "$RANLIB"; then 4908 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4910else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4912for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4913do
4914 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4915 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4918 ac_cv_prog_ac_ct_RANLIB="ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4920 break 2
2384 fi 4921 fi
2385 done 4922done
2386 IFS="$ac_save_ifs" 4923done
4924
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4925 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4926fi
2389fi 4927fi
4928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4929if test -n "$ac_ct_RANLIB"; then
4930 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4931echo "${ECHO_T}$ac_ct_RANLIB" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937 RANLIB=$ac_ct_RANLIB
4938else
2390RANLIB="$ac_cv_prog_RANLIB" 4939 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 4940fi
2396 4941
2397else 4942if 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. 4943 # 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 4944set dummy ${ac_tool_prefix}strip; ac_word=$2
4945echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4946echo $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 4947if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4948 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4949else
2409 if test -n "$STRIP"; then 4950 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4952else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4954for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4955do
4956 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4957 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4962 break 2
2419 fi 4963 fi
2420 done 4964done
2421 IFS="$ac_save_ifs" 4965done
4966
2422fi 4967fi
2423fi 4968fi
2424STRIP="$ac_cv_prog_STRIP" 4969STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4970if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4971 echo "$as_me:$LINENO: result: $STRIP" >&5
4972echo "${ECHO_T}$STRIP" >&6
2427else 4973else
2428 echo "$ac_t""no" 1>&6 4974 echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
2429fi 4976fi
2430 4977
2431 4978fi
2432if test -z "$ac_cv_prog_STRIP"; then 4979if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4980 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4981 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4982set dummy strip; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4984echo $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 4985if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4986 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4987else
2441 if test -n "$STRIP"; then 4988 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4990else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4992for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4993do
4994 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4995 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4998 ac_cv_prog_ac_ct_STRIP="strip"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 5000 break 2
2451 fi 5001 fi
2452 done 5002done
2453 IFS="$ac_save_ifs" 5003done
5004
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5005 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5006fi
2456fi 5007fi
5008ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5009if test -n "$ac_ct_STRIP"; then
5010 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5011echo "${ECHO_T}$ac_ct_STRIP" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017 STRIP=$ac_ct_STRIP
5018else
2457STRIP="$ac_cv_prog_STRIP" 5019 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 5020fi
2468 5021
2469 5022
2470enable_dlopen=no 5023enable_dlopen=no
2471enable_win32_dll=no 5024enable_win32_dll=no
2472 5025
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5026# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5027if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5028 enableval="$enable_libtool_lock"
2476 : 5029
2477fi 5030fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5031test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5032
2481# Some flags need to be propagated to the compiler or linker for good 5033# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5034# libtool support.
2483case "$host" in 5035case "$host" in
2484*-*-irix6*) 5036*-*-irix6*)
2485 # Find out which ABI we are using. 5037 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5038 echo '#line 5038 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5044 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5045 *32-bit*)
2490 LD="${LD-ld} -32" 5046 LD="${LD-ld} -32"
2491 ;; 5047 ;;
2492 *N32*) 5048 *N32*)
2502 5058
2503*-*-sco3.2v5*) 5059*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5061 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5062 CFLAGS="$CFLAGS -belf"
5063 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 5064echo $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 5065if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5066 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5067else
2512 5068
5069
2513 ac_ext=c 5070 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5071ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5072ac_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' 5073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5074ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5075
2520 cat > conftest.$ac_ext <<EOF 5076 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5077/* confdefs.h. */
2522#include "confdefs.h" 5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
2523 5082
2524int main() { 5083int
5084main ()
5085{
2525 5086
5087 ;
2526; return 0; } 5088 return 0;
2527EOF 5089}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5090_ACEOF
5091rm -f conftest.$ac_objext conftest$ac_exeext
5092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093 (eval $ac_link) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5112 lt_cv_cc_needs_belf=yes
2531else 5113else
2532 echo "configure: failed program was:" >&5 5114 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5115sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5116
2535 lt_cv_cc_needs_belf=no 5117lt_cv_cc_needs_belf=no
2536fi 5118fi
2537rm -f conftest* 5119rm -f conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5121 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5122ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5123ac_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' 5124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5126
2545fi 5127fi
2546 5128echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5129echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5130 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 5131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5132 CFLAGS="$SAVE_CFLAGS"
2551 fi 5133 fi
2552 ;; 5134 ;;
2637set dummy $CC 5219set dummy $CC
2638compiler="$2" 5220compiler="$2"
2639 5221
2640## FIXME: this should be a separate macro 5222## FIXME: this should be a separate macro
2641## 5223##
5224echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5225echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5226rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5227mkdir .libs 2>/dev/null
2646if test -d .libs; then 5228if test -d .libs; then
2647 objdir=.libs 5229 objdir=.libs
2648else 5230else
2649 # MS-DOS does not allow filenames that begin with a dot. 5231 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5232 objdir=_libs
2651fi 5233fi
2652rmdir .libs 2>/dev/null 5234rmdir .libs 2>/dev/null
5235echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5236echo "${ECHO_T}$objdir" >&6
2654## 5237##
2655## END FIXME 5238## END FIXME
2656 5239
2657 5240
2658## FIXME: this should be a separate macro 5241## FIXME: this should be a separate macro
2659## 5242##
5243
2660# Check whether --with-pic or --without-pic was given. 5244# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5245if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5246 withval="$with_pic"
2663 pic_mode="$withval" 5247 pic_mode="$withval"
2664else 5248else
2665 pic_mode=default 5249 pic_mode=default
2666fi 5250fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5251test -z "$pic_mode" && pic_mode=default
2669 5252
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5253# 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 5254# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5255# the associated values are set (in the cache) correctly too.
5256echo "$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 5257echo $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 5258if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5259 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5260else
2678 lt_cv_prog_cc_pic= 5261 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5262 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5263 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5264 lt_cv_prog_cc_static=
2804 fi 5387 fi
2805 5388
2806fi 5389fi
2807 5390
2808if test -z "$lt_cv_prog_cc_pic"; then 5391if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5392 echo "$as_me:$LINENO: result: none" >&5
5393echo "${ECHO_T}none" >&6
2810else 5394else
5395 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5396echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5397
2813 # Check to make sure the pic_flag actually works. 5398 # Check to make sure the pic_flag actually works.
5399 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 5400echo $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 5401 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5402 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5403else
2819 save_CFLAGS="$CFLAGS" 5404 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5405 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5406 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5407/* confdefs.h. */
2823#include "confdefs.h" 5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h. */
2824 5412
2825int main() { 5413int
5414main ()
5415{
2826 5416
5417 ;
2827; return 0; } 5418 return 0;
2828EOF 5419}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5420_ACEOF
5421rm -f conftest.$ac_objext
5422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
2831 case "$host_os" in 5442 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5443 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5444 # 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 5445 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5446 # assume that PIC is not supported.
2841 ;; 5452 ;;
2842 *) 5453 *)
2843 lt_cv_prog_cc_pic_works=yes 5454 lt_cv_prog_cc_pic_works=yes
2844 ;; 5455 ;;
2845 esac 5456 esac
2846 5457
2847else 5458else
2848 echo "configure: failed program was:" >&5 5459 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5460sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5461
2851 lt_cv_prog_cc_pic_works=no 5462 lt_cv_prog_cc_pic_works=no
2852 5463
2853fi 5464fi
2854rm -f conftest* 5465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5466 CFLAGS="$save_CFLAGS"
2856 5467
2857fi 5468fi
2858 5469
2859 5470
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5471 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5472 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5473 lt_cv_prog_cc_can_build_shared=no
2863 else 5474 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5475 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5476 fi
2866 5477
5478 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5479echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5480fi
2869## 5481##
2870## END FIXME 5482## END FIXME
2871 5483
2872# Check for any special shared library compilation flags. 5484# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5485if test -n "$lt_cv_prog_cc_shlib"; then
5486 { 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 5487echo "$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 : 5488 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5489 else
5490 { 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 5491echo "$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 5492 lt_cv_prog_cc_can_build_shared=no
2879 fi 5493 fi
2880fi 5494fi
2881 5495
2882## FIXME: this should be a separate macro 5496## FIXME: this should be a separate macro
2883## 5497##
5498echo "$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 5499echo $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 5500if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5501 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5502else
2889 lt_cv_prog_cc_static_works=no 5503 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5504 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5505 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5506 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5507/* confdefs.h. */
2894#include "confdefs.h" 5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
2895 5512
2896int main() { 5513int
5514main ()
5515{
2897 5516
5517 ;
2898; return 0; } 5518 return 0;
2899EOF 5519}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5520_ACEOF
5521rm -f conftest.$ac_objext conftest$ac_exeext
5522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; } &&
5536 { ac_try='test -s conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5542 lt_cv_prog_cc_static_works=yes
2903else 5543else
2904 echo "configure: failed program was:" >&5 5544 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5545sed 's/^/| /' conftest.$ac_ext >&5
5546
2906fi 5547fi
2907rm -f conftest* 5548rm -f conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5550 LDFLAGS="$save_LDFLAGS"
2909 5551
2910fi 5552fi
2911 5553
2912 5554
2913# Belt *and* braces to stop my trousers falling down: 5555# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5556test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5557echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5558echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5559
2917pic_flag="$lt_cv_prog_cc_pic" 5560pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5561special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5562wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5563link_static_flag="$lt_cv_prog_cc_static"
2925 5568
2926 5569
2927## FIXME: this should be a separate macro 5570## FIXME: this should be a separate macro
2928## 5571##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5572# Check to see if options -o and -c are simultaneously supported by compiler
5573echo "$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 5574echo $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 5575$rm -r conftest 2>/dev/null
2933mkdir conftest 5576mkdir conftest
2934cd conftest 5577cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5578echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5579mkdir out
2941# builds. 5584# builds.
2942chmod -w . 5585chmod -w .
2943save_CFLAGS="$CFLAGS" 5586save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5587CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5588compiler_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 5589if { (eval echo configure:5589: \"$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 5590 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5591 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5592 if test -s out/conftest.err; then
2950 compiler_c_o=no 5593 compiler_c_o=no
2951 else 5594 else
2954else 5597else
2955 # Append any errors to the config.log. 5598 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5599 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5600 compiler_c_o=no
2958fi 5601fi
5602echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5603echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5604CFLAGS="$save_CFLAGS"
2961chmod u+w . 5605chmod u+w .
2962$rm conftest* out/* 5606$rm conftest* out/*
2963rmdir out 5607rmdir out
2964cd .. 5608cd ..
2965rmdir conftest 5609rmdir conftest
2966$rm -r conftest 2>/dev/null 5610$rm -r conftest 2>/dev/null
2967 5611
2968if test x"$compiler_c_o" = x"yes"; then 5612if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5613 # Check to see if we can write to a .lo
5614 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 5615echo $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 5616 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5617 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5618 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5619 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5620/* confdefs.h. */
2977#include "confdefs.h" 5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */
2978 5625
2979int main() { 5626int
5627main ()
5628{
2980int some_variable = 0; 5629int some_variable = 0;
5630 ;
2981; return 0; } 5631 return 0;
2982EOF 5632}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5633_ACEOF
5634rm -f conftest.$ac_objext
5635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5655 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5656 # So say no if there are warnings
2987 if test -s conftest.err; then 5657 if test -s conftest.err; then
2988 compiler_o_lo=no 5658 compiler_o_lo=no
2989 else 5659 else
2990 compiler_o_lo=yes 5660 compiler_o_lo=yes
2991 fi 5661 fi
2992 5662
2993else 5663else
2994 echo "configure: failed program was:" >&5 5664 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5665sed 's/^/| /' conftest.$ac_ext >&5
5666
2996fi 5667fi
2997rm -f conftest* 5668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5670echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5671 CFLAGS="$save_CFLAGS"
3000else 5672else
3001 compiler_o_lo=no 5673 compiler_o_lo=no
3002fi 5674fi
3003## 5675##
3007## 5679##
3008# Check to see if we can do hard links to lock some files if needed 5680# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5681hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5682if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5683 # do not overwrite the value of need_locks provided by the user
5684 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 5685echo $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 5686 hard_links=yes
3015 $rm conftest* 5687 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5689 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5690 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5692 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5693echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5694 if test "$hard_links" = no; then
5695 { 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 5696echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5697 need_locks=warn
3024 fi 5698 fi
3025else 5699else
3026 need_locks=no 5700 need_locks=no
3027fi 5701fi
3030 5704
3031## FIXME: this should be a separate macro 5705## FIXME: this should be a separate macro
3032## 5706##
3033if test "$GCC" = yes; then 5707if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5708 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5709 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 5710echo $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 5711 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5712 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5713 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5714 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5715 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5716/* confdefs.h. */
3043#include "confdefs.h" 5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
3044 5721
3045int main() { 5722int
5723main ()
5724{
3046int some_variable = 0; 5725int some_variable = 0;
5726 ;
3047; return 0; } 5727 return 0;
3048EOF 5728}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5751 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5752 # So say no if there are warnings
3053 if test -s conftest.err; then 5753 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5754 compiler_rtti_exceptions=no
3055 else 5755 else
3056 compiler_rtti_exceptions=yes 5756 compiler_rtti_exceptions=yes
3057 fi 5757 fi
3058 5758
3059else 5759else
3060 echo "configure: failed program was:" >&5 5760 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5761sed 's/^/| /' conftest.$ac_ext >&5
5762
3062fi 5763fi
3063rm -f conftest* 5764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5765 CFLAGS="$save_CFLAGS"
5766 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5767echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5768
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5769 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5770 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5771 else
3070 no_builtin_flag=' -fno-builtin' 5772 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5776## END FIXME
3075 5777
3076## FIXME: this should be a separate macro 5778## FIXME: this should be a separate macro
3077## 5779##
3078# See if the linker supports building shared libraries. 5780# See if the linker supports building shared libraries.
5781echo "$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 5782echo $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 5783
3082allow_undefined_flag= 5784allow_undefined_flag=
3083no_undefined_flag= 5785no_undefined_flag=
3084need_lib_prefix=unknown 5786need_lib_prefix=unknown
3085need_version=unknown 5787need_version=unknown
3632 *) 6334 *)
3633 ld_shlibs=no 6335 ld_shlibs=no
3634 ;; 6336 ;;
3635 esac 6337 esac
3636fi 6338fi
6339echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6340echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6341test "$ld_shlibs" = no && can_build_shared=no
3639## 6342##
3640## END FIXME 6343## END FIXME
3641 6344
3642## FIXME: this should be a separate macro 6345## FIXME: this should be a separate macro
3643## 6346##
3644# Check hardcoding attributes. 6347# Check hardcoding attributes.
6348echo "$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 6349echo $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= 6350hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6351if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6352 test -n "$runpath_var"; then
3650 6353
3651 # We can hardcode non-existant directories. 6354 # We can hardcode non-existant directories.
3664else 6367else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6368 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6369 # directories.
3667 hardcode_action=unsupported 6370 hardcode_action=unsupported
3668fi 6371fi
6372echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6373echo "${ECHO_T}$hardcode_action" >&6
3670## 6374##
3671## END FIXME 6375## END FIXME
3672 6376
3673## FIXME: this should be a separate macro 6377## FIXME: this should be a separate macro
3674## 6378##
3675striplib= 6379striplib=
3676old_striplib= 6380old_striplib=
6381echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6382echo $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 6383if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6386 echo "$as_me:$LINENO: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
3683else 6388else
3684 echo "$ac_t""no" 1>&6 6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
3685fi 6391fi
3686## 6392##
3687## END FIXME 6393## END FIXME
3688 6394
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6395reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6396test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6397
3692## FIXME: this should be a separate macro 6398## FIXME: this should be a separate macro
3693## 6399##
3694# PORTME Fill in your ld.so characteristics 6400# PORTME Fill in your ld.so characteristics
6401echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6402echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6403library_names_spec=
3698libname_spec='lib$name' 6404libname_spec='lib$name'
3699soname_spec= 6405soname_spec=
3700postinstall_cmds= 6406postinstall_cmds=
3701postuninstall_cmds= 6407postuninstall_cmds=
4017 6723
4018*) 6724*)
4019 dynamic_linker=no 6725 dynamic_linker=no
4020 ;; 6726 ;;
4021esac 6727esac
6728echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6729echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6730test "$dynamic_linker" = no && can_build_shared=no
4024## 6731##
4025## END FIXME 6732## END FIXME
4026 6733
4027## FIXME: this should be a separate macro 6734## FIXME: this should be a separate macro
4028## 6735##
4029# Report the final consequences. 6736# Report the final consequences.
6737echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6738echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6739echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6740echo "${ECHO_T}$can_build_shared" >&6
4033## 6741##
4034## END FIXME 6742## END FIXME
4035 6743
4036if test "$hardcode_action" = relink; then 6744if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6745 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6774 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6775 lt_cv_dlopen_libs=
4068 ;; 6776 ;;
4069 6777
4070 *) 6778 *)
6779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6780echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6781if 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 6782 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6783else
4077 ac_save_LIBS="$LIBS" 6784 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6785LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6786cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6787/* confdefs.h. */
4081#include "confdefs.h" 6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h. */
6792
4082/* Override any gcc2 internal prototype to avoid an error. */ 6793/* Override any gcc2 internal prototype to avoid an error. */
6794#ifdef __cplusplus
6795extern "C"
6796#endif
4083/* We use char because int might match the return type of a gcc2 6797/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6798 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6799char dlopen ();
4086 6800int
4087int main() { 6801main ()
6802{
4088dlopen() 6803dlopen ();
6804 ;
4089; return 0; } 6805 return 0;
4090EOF 6806}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6813 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_lib_dl_dlopen=yes
4094else 6830else
4095 echo "configure: failed program was:" >&5 6831 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6832sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6833
4098 eval "ac_cv_lib_$ac_lib_var=no" 6834ac_cv_lib_dl_dlopen=no
4099fi 6835fi
4100rm -f conftest* 6836rm -f conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6838LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6839fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6840echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6842if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6844else
4108 echo "$ac_t""no" 1>&6 6845 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6846echo $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 6847if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6848 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6849else
4114 cat > conftest.$ac_ext <<EOF 6850 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6851/* confdefs.h. */
4116#include "confdefs.h" 6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6858#define dlopen innocuous_dlopen
6859
4117/* System header to define __stub macros and hopefully few prototypes, 6860/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6861 which can conflict with char dlopen (); below.
6862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 <limits.h> exists even on freestanding compilers. */
6864
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
4119#include <assert.h> 6868# include <assert.h>
6869#endif
6870
6871#undef dlopen
6872
4120/* Override any gcc2 internal prototype to avoid an error. */ 6873/* Override any gcc2 internal prototype to avoid an error. */
6874#ifdef __cplusplus
6875extern "C"
6876{
6877#endif
4121/* We use char because int might match the return type of a gcc2 6878/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6879 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6880char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6881/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6882 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6883 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6884#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6885choke me
4132#else 6886#else
4133dlopen(); 6887char (*f) () = dlopen;
4134#endif 6888#endif
6889#ifdef __cplusplus
6890}
6891#endif
4135 6892
6893int
6894main ()
6895{
6896return f != dlopen;
6897 ;
4136; return 0; } 6898 return 0;
4137EOF 6899}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
6902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6922 ac_cv_func_dlopen=yes
4141else 6923else
4142 echo "configure: failed program was:" >&5 6924 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6925sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6926
4145 eval "ac_cv_func_dlopen=no" 6927ac_cv_func_dlopen=no
4146fi 6928fi
4147rm -f conftest* 6929rm -f conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
4148fi 6931fi
4149 6932echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6933echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6934if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6935 lt_cv_dlopen="dlopen"
4153else 6936else
4154 echo "$ac_t""no" 1>&6 6937 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6938echo $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 6939if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6940 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6941else
4160 cat > conftest.$ac_ext <<EOF 6942 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6943/* confdefs.h. */
4162#include "confdefs.h" 6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
6948/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6950#define shl_load innocuous_shl_load
6951
4163/* System header to define __stub macros and hopefully few prototypes, 6952/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6953 which can conflict with char shl_load (); below.
6954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955 <limits.h> exists even on freestanding compilers. */
6956
6957#ifdef __STDC__
6958# include <limits.h>
6959#else
4165#include <assert.h> 6960# include <assert.h>
6961#endif
6962
6963#undef shl_load
6964
4166/* Override any gcc2 internal prototype to avoid an error. */ 6965/* Override any gcc2 internal prototype to avoid an error. */
6966#ifdef __cplusplus
6967extern "C"
6968{
6969#endif
4167/* We use char because int might match the return type of a gcc2 6970/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6971 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6972char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6973/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6974 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6975 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6976#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6977choke me
4178#else 6978#else
4179shl_load(); 6979char (*f) () = shl_load;
4180#endif 6980#endif
6981#ifdef __cplusplus
6982}
6983#endif
4181 6984
6985int
6986main ()
6987{
6988return f != shl_load;
6989 ;
4182; return 0; } 6990 return 0;
4183EOF 6991}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6992_ACEOF
6993rm -f conftest.$ac_objext conftest$ac_exeext
6994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995 (eval $ac_link) 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7014 ac_cv_func_shl_load=yes
4187else 7015else
4188 echo "configure: failed program was:" >&5 7016 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7017sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7018
4191 eval "ac_cv_func_shl_load=no" 7019ac_cv_func_shl_load=no
4192fi 7020fi
4193rm -f conftest* 7021rm -f conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
4194fi 7023fi
4195 7024echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7025echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7026if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7027 lt_cv_dlopen="shl_load"
4199else 7028else
4200 echo "$ac_t""no" 1>&6 7029 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7030echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7031if 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 7032 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7033else
4207 ac_save_LIBS="$LIBS" 7034 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7035LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7036cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7037/* confdefs.h. */
4211#include "confdefs.h" 7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
7042
4212/* Override any gcc2 internal prototype to avoid an error. */ 7043/* Override any gcc2 internal prototype to avoid an error. */
7044#ifdef __cplusplus
7045extern "C"
7046#endif
4213/* We use char because int might match the return type of a gcc2 7047/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7048 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7049char dlopen ();
4216 7050int
4217int main() { 7051main ()
7052{
4218dlopen() 7053dlopen ();
7054 ;
4219; return 0; } 7055 return 0;
4220EOF 7056}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7057_ACEOF
7058rm -f conftest.$ac_objext conftest$ac_exeext
7059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 (eval $ac_link) 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7063 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_lib_svld_dlopen=yes
4224else 7080else
4225 echo "configure: failed program was:" >&5 7081 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7082sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7083
4228 eval "ac_cv_lib_$ac_lib_var=no" 7084ac_cv_lib_svld_dlopen=no
4229fi 7085fi
4230rm -f conftest* 7086rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7088LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7089fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7090echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7091echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7092if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7093 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7094else
4238 echo "$ac_t""no" 1>&6 7095 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7096echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7097if 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 7098 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7099else
4245 ac_save_LIBS="$LIBS" 7100 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7101LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7102cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7103/* confdefs.h. */
4249#include "confdefs.h" 7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108
4250/* Override any gcc2 internal prototype to avoid an error. */ 7109/* Override any gcc2 internal prototype to avoid an error. */
7110#ifdef __cplusplus
7111extern "C"
7112#endif
4251/* We use char because int might match the return type of a gcc2 7113/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7114 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7115char shl_load ();
4254 7116int
4255int main() { 7117main ()
7118{
4256shl_load() 7119shl_load ();
7120 ;
4257; return 0; } 7121 return 0;
4258EOF 7122}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7123_ACEOF
7124rm -f conftest.$ac_objext conftest$ac_exeext
7125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7129 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_lib_dld_shl_load=yes
4262else 7146else
4263 echo "configure: failed program was:" >&5 7147 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7148sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7149
4266 eval "ac_cv_lib_$ac_lib_var=no" 7150ac_cv_lib_dld_shl_load=no
4267fi 7151fi
4268rm -f conftest* 7152rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7154LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7155fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7156echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7157echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7158if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7160fi
4278 7161
4279
4280fi
4281 7162
4282
4283fi 7163fi
4284 7164
4285
4286fi
4287 7165
4288 7166fi
7167
7168
7169fi
7170
7171
4289fi 7172fi
4290 7173
4291 ;; 7174 ;;
4292 esac 7175 esac
4293 7176
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7189 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7190
4308 save_LIBS="$LIBS" 7191 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7192 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7193
7194 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 7195echo $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 7196if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7197 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7198else
4316 if test "$cross_compiling" = yes; then : 7199 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7200 lt_cv_dlopen_self=cross
4318else 7201else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7203 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7204 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7205#line 7205 "configure"
4323#include "confdefs.h" 7206#include "confdefs.h"
4324 7207
4325#if HAVE_DLFCN_H 7208#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7209#include <dlfcn.h>
4327#endif 7210#endif
4378 } 7261 }
4379 7262
4380 exit (status); 7263 exit (status);
4381} 7264}
4382EOF 7265EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7271 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7272 lt_status=$?
4386 case x$lt_status in 7273 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7280 lt_cv_dlopen_self=no
4394 fi 7281 fi
4395fi 7282fi
4396rm -fr conftest* 7283rm -fr conftest*
4397 7284
4398
4399fi
4400 7285
7286fi
7287echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7288echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7289
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7290 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7291 LDFLAGS="$LDFLAGS $link_static_flag"
7292 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 7293echo $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 7294if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7295 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7296else
4410 if test "$cross_compiling" = yes; then : 7297 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7298 lt_cv_dlopen_self_static=cross
4412else 7299else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7301 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7302 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7303#line 7303 "configure"
4417#include "confdefs.h" 7304#include "confdefs.h"
4418 7305
4419#if HAVE_DLFCN_H 7306#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7307#include <dlfcn.h>
4421#endif 7308#endif
4472 } 7359 }
4473 7360
4474 exit (status); 7361 exit (status);
4475} 7362}
4476EOF 7363EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7369 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7370 lt_status=$?
4480 case x$lt_status in 7371 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7378 lt_cv_dlopen_self_static=no
4488 fi 7379 fi
4489fi 7380fi
4490rm -fr conftest* 7381rm -fr conftest*
4491 7382
4492
4493fi
4494 7383
7384fi
7385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7386echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7387 fi
4497 7388
4498 CPPFLAGS="$save_CPPFLAGS" 7389 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7390 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7391 LIBS="$save_LIBS"
4522 ;; 7413 ;;
4523 '$CC '*) 7414 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7415 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7417 # to ld, don't add -lc before -lgcc.
7418 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 7419echo $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 7420 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7421 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7422else
4532 $rm conftest* 7423 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7424 echo 'static int dummy;' > conftest.$ac_ext
4534 7425
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; then
4536 soname=conftest 7431 soname=conftest
4537 lib=conftest 7432 lib=conftest
4538 libobjs=conftest.$ac_objext 7433 libobjs=conftest.$ac_objext
4539 deplibs= 7434 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7435 wl=$lt_cv_prog_cc_wl
4543 verstring= 7438 verstring=
4544 output_objdir=. 7439 output_objdir=.
4545 libname=conftest 7440 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7441 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7442 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; } 7443 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7444 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }
4549 then 7448 then
4550 lt_cv_archive_cmds_need_lc=no 7449 lt_cv_archive_cmds_need_lc=no
4551 else 7450 else
4552 lt_cv_archive_cmds_need_lc=yes 7451 lt_cv_archive_cmds_need_lc=yes
4553 fi 7452 fi
4555 else 7454 else
4556 cat conftest.err 1>&5 7455 cat conftest.err 1>&5
4557 fi 7456 fi
4558fi 7457fi
4559 7458
7459 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7460echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7461 ;;
4562 esac 7462 esac
4563fi 7463fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7464need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7465##
5130 8030
5131MALLOC_TYPE=S 8031MALLOC_TYPE=S
5132support_addstrings=no 8032support_addstrings=no
5133support_frills=no 8033support_frills=no
5134support_linespace=no 8034support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8035support_inheritpixmap=no
5137support_keepscrolling=no 8036support_keepscrolling=no
5138support_selectionscrolling=no 8037support_selectionscrolling=no
5139support_menubar=no 8038support_menubar=no
5140support_mousewheel=no 8039support_mousewheel=no
5141support_mouseslipwheel=no 8040support_mouseslipwheel=no
5142support_oldselection=no
5143support_utmp=no 8041support_utmp=no
5144support_wtmp=no 8042support_wtmp=no
5145support_lastlog=no 8043support_lastlog=no
5146support_cursor_blink=no 8044support_cursor_blink=no
8045support_text_blink=no
5147support_pointer_blank=no 8046support_pointer_blank=no
5148support_scroll_rxvt=no 8047support_scroll_rxvt=no
5149support_scroll_next=no 8048support_scroll_next=no
5150support_scroll_xterm=no 8049support_scroll_xterm=no
8050support_scroll_plain=no
5151support_xim=no 8051support_xim=no
5152support_xpm=no 8052support_xpm=no
5153support_xft=no 8053support_xft=no
5154support_unicode3=no 8054support_unicode3=no
8055support_combining=no
5155codesets= 8056codesets=
5156 8057
5157 8058
5158if test "x$enable_shared" = xyes; then 8059if test "x$enable_shared" = xyes; then
8060
5159 cat >> confdefs.h <<\EOF 8061cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8062#define LIBRXVT 1
5161EOF 8063_ACEOF
5162 8064
5163 INSTALL_LIBRXVT=yes 8065 INSTALL_LIBRXVT=yes
5164fi 8066fi
5165 8067
5166 8068
5169 enableval="$enable_everything" 8071 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8072 if test x$enableval = xyes; then
5171 support_24bit=yes 8073 support_24bit=yes
5172 support_frills=yes 8074 support_frills=yes
5173 support_linespace=yes 8075 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8076 support_inheritpixmap=yes
5176 support_keepscrolling=yes 8077 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8078 support_selectionscrolling=yes
5178 support_lastlog=yes 8079 support_lastlog=yes
5179 support_menubar=yes 8080 support_menubar=yes
5180 support_mousewheel=yes 8081 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8082 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes 8083 support_cursor_blink=yes
8084 support_text_blink=yes
5184 support_pointer_blank=yes 8085 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8086 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8087 support_scroll_next=yes
5187 support_scroll_xterm=yes 8088 support_scroll_xterm=yes
8089 support_scroll_plain=yes
5188 support_utmp=yes 8090 support_utmp=yes
5189 support_wtmp=yes 8091 support_wtmp=yes
5190 support_xim=yes 8092 support_xim=yes
5191 support_xpm=yes 8093 support_xpm=yes
5192 support_xft=yes 8094 support_xft=yes
5193 support_unicode3=yes 8095 support_unicode3=yes
8096 support_combining=yes
5194 codesets=all 8097 codesets=all
5195 fi 8098 fi
5196fi 8099fi;
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 8100
5218# Check whether --enable-unicode3 or --disable-unicode3 was given. 8101# Check whether --enable-unicode3 or --disable-unicode3 was given.
5219if test "${enable_unicode3+set}" = set; then 8102if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3" 8103 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then 8104 if test x$enableval = xyes -o x$enableval = xno; then
5222 support_unicode3=yes 8105 support_unicode3=yes
5223 fi 8106 fi
5224fi 8107fi;
5225 8108
8109# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes
8114 fi
8115fi;
5226 8116
5227# Check whether --enable-xft or --disable-xft was given. 8117# Check whether --enable-xft or --disable-xft was given.
5228if test "${enable_xft+set}" = set; then 8118if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft" 8119 enableval="$enable_xft"
5230 if test x$enableval = xyes; then 8120 if test x$enableval = xyes -o x$enableval = xno; then
5231 support_xft=yes 8121 support_xft=yes
5232 fi 8122 fi
5233fi 8123fi;
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 8124
5258# Check whether --enable-utmp or --disable-utmp was given. 8125# Check whether --enable-utmp or --disable-utmp was given.
5259if test "${enable_utmp+set}" = set; then 8126if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp" 8127 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then 8128 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval 8129 support_utmp=$enableval
5263 fi 8130 fi
5264fi 8131fi;
5265
5266 8132
5267# Check whether --enable-wtmp or --disable-wtmp was given. 8133# Check whether --enable-wtmp or --disable-wtmp was given.
5268if test "${enable_wtmp+set}" = set; then 8134if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp" 8135 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then 8136 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval 8137 support_wtmp=$enableval
5272 fi 8138 fi
5273fi 8139fi;
5274
5275 8140
5276# Check whether --enable-lastlog or --disable-lastlog was given. 8141# Check whether --enable-lastlog or --disable-lastlog was given.
5277if test "${enable_lastlog+set}" = set; then 8142if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog" 8143 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then 8144 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval 8145 support_lastlog=$enableval
5281 fi 8146 fi
5282fi 8147fi;
5283
5284 8148
5285# Check whether --enable-xpm-background or --disable-xpm-background was given. 8149# Check whether --enable-xpm-background or --disable-xpm-background was given.
5286if test "${enable_xpm_background+set}" = set; then 8150if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background" 8151 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then 8152 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval 8153 support_xpm=$enableval
5290 fi 8154 fi
5291fi 8155fi;
5292
5293 8156
5294# Check whether --enable-transparency or --disable-transparency was given. 8157# Check whether --enable-transparency or --disable-transparency was given.
5295if test "${enable_transparency+set}" = set; then 8158if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency" 8159 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then 8160 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval 8161 support_inheritpixmap=$enableval
5299 fi 8162 fi
5300fi 8163fi;
5301
5302 8164
5303# Check whether --enable-menubar or --disable-menubar was given. 8165# Check whether --enable-menubar or --disable-menubar was given.
5304if test "${enable_menubar+set}" = set; then 8166if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar" 8167 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then 8168 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval 8169 support_menubar=$enableval
5308 fi 8170 fi
5309fi 8171fi;
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 8172
5321# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8173# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322if test "${enable_rxvt_scroll+set}" = set; then 8174if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll" 8175 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then 8176 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval 8177 support_scroll_rxvt=$enableval
5326 fi 8178 fi
5327fi 8179fi;
5328
5329 8180
5330# Check whether --enable-next-scroll or --disable-next-scroll was given. 8181# Check whether --enable-next-scroll or --disable-next-scroll was given.
5331if test "${enable_next_scroll+set}" = set; then 8182if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll" 8183 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then 8184 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval 8185 support_scroll_next=$enableval
5335 fi 8186 fi
5336fi 8187fi;
5337
5338 8188
5339# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8189# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340if test "${enable_xterm_scroll+set}" = set; then 8190if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll" 8191 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then 8192 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval 8193 support_scroll_xterm=$enableval
5344 fi 8194 fi
5345fi 8195fi;
5346 8196
8197# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8198if test "${enable_plain_scroll+set}" = set; then
8199 enableval="$enable_plain_scroll"
8200 if test x$enableval = xyes -o x$enableval = xno; then
8201 support_scroll_plain=$enableval
8202 fi
8203fi;
5347 8204
5348# Check whether --enable-half-shadow or --disable-half-shadow was given. 8205# Check whether --enable-half-shadow or --disable-half-shadow was given.
5349if test "${enable_half_shadow+set}" = set; then 8206if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow" 8207 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then 8208 if test x$enableval = xyes; then
8209
5352 cat >> confdefs.h <<\EOF 8210cat >>confdefs.h <<\_ACEOF
5353#define HALFSHADOW 1 8211#define HALFSHADOW 1
5354EOF 8212_ACEOF
5355 8213
5356 fi 8214 fi
5357fi 8215fi;
5358 8216
8217
8218# Check whether --with-codesets or --without-codesets was given.
8219if test "${with_codesets+set}" = set; then
8220 withval="$with_codesets"
8221 codesets="$withval"
8222fi;
5359 8223
5360# Check whether --enable-xim or --disable-xim was given. 8224# Check whether --enable-xim or --disable-xim was given.
5361if test "${enable_xim+set}" = set; then 8225if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim" 8226 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then 8227 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval 8228 support_xim=$enableval
5365 fi 8229 fi
5366fi 8230fi;
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 8231
5381# Check whether --enable-ttygid or --disable-ttygid was given. 8232# Check whether --enable-ttygid or --disable-ttygid was given.
5382if test "${enable_ttygid+set}" = set; then 8233if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid" 8234 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then 8235 if test x$enableval = xyes; then
8236
5385 cat >> confdefs.h <<\EOF 8237cat >>confdefs.h <<\_ACEOF
5386#define TTY_GID_SUPPORT 1 8238#define TTY_GID_SUPPORT 1
5387EOF 8239_ACEOF
5388 8240
5389 fi 8241 fi
5390fi 8242fi;
5391
5392 8243
5393# Check whether --enable-backspace-key or --disable-backspace-key was given. 8244# Check whether --enable-backspace-key or --disable-backspace-key was given.
5394if test "${enable_backspace_key+set}" = set; then 8245if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key" 8246 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then 8247 if test x$enableval = xno; then
8248
5397 cat >> confdefs.h <<\EOF 8249cat >>confdefs.h <<\_ACEOF
5398#define NO_BACKSPACE_KEY 1 8250#define NO_BACKSPACE_KEY 1
5399EOF 8251_ACEOF
5400 8252
5401 fi 8253 fi
5402fi 8254fi;
5403
5404 8255
5405# Check whether --enable-delete-key or --disable-delete-key was given. 8256# Check whether --enable-delete-key or --disable-delete-key was given.
5406if test "${enable_delete_key+set}" = set; then 8257if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key" 8258 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then 8259 if test x$enableval = xno; then
8260
5409 cat >> confdefs.h <<\EOF 8261cat >>confdefs.h <<\_ACEOF
5410#define NO_DELETE_KEY 1 8262#define NO_DELETE_KEY 1
5411EOF 8263_ACEOF
5412 8264
5413 fi 8265 fi
5414fi 8266fi;
5415
5416 8267
5417# Check whether --enable-resources or --disable-resources was given. 8268# Check whether --enable-resources or --disable-resources was given.
5418if test "${enable_resources+set}" = set; then 8269if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources" 8270 enableval="$enable_resources"
5420 if test x$enableval = xno; then 8271 if test x$enableval = xno; then
8272
5421 cat >> confdefs.h <<\EOF 8273cat >>confdefs.h <<\_ACEOF
5422#define NO_RESOURCES 1 8274#define NO_RESOURCES 1
5423EOF 8275_ACEOF
5424 8276
5425 fi 8277 fi
5426fi 8278fi;
5427
5428 8279
5429# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8280# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430if test "${enable_xgetdefault+set}" = set; then 8281if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault" 8282 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then 8283 if test x$enableval = xyes; then
8284
5433 cat >> confdefs.h <<\EOF 8285cat >>confdefs.h <<\_ACEOF
5434#define USE_XGETDEFAULT 1 8286#define USE_XGETDEFAULT 1
5435EOF 8287_ACEOF
5436 8288
5437 fi 8289 fi
5438fi 8290fi;
8291
8292RESFALLBACK=Rxvt
8293# Check whether --enable-fallback or --disable-fallback was given.
8294if test "${enable_fallback+set}" = set; then
8295 enableval="$enable_fallback"
8296
8297 test x$enableval = xyes && enableval=Rxvt
8298 test x$enableval = xno && enableval=
8299 RESFALLBACK="$enableval"
8300
8301fi;
8302
8303if test x$RESFALLBACK != x; then
8304
8305cat >>confdefs.h <<_ACEOF
8306#define RESFALLBACK "$RESFALLBACK"
8307_ACEOF
8308
8309fi
8310
8311RESNAME=urxvt
8312
8313# Check whether --with-res-name or --without-res-name was given.
8314if test "${with_res_name+set}" = set; then
8315 withval="$with_res_name"
8316 RESNAME="$withval"
8317fi;
8318
8319cat >>confdefs.h <<_ACEOF
8320#define RESNAME "$RESNAME"
8321_ACEOF
8322
8323
8324RESCLASS=URxvt
8325
8326# Check whether --with-res-class or --without-res-class was given.
8327if test "${with_res_class+set}" = set; then
8328 withval="$with_res_class"
8329 RESCLASS="$withval"
8330fi;
8331
8332cat >>confdefs.h <<_ACEOF
8333#define RESCLASS "$RESCLASS"
8334_ACEOF
8335
8336
8337RXVTNAME=urxvt
8338
8339# Check whether --with-name or --without-name was given.
8340if test "${with_name+set}" = set; then
8341 withval="$with_name"
8342 RXVTNAME="$withval"
8343fi;
8344
8345RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5439 8346
5440 8347
5441# Check whether --enable-strings or --disable-strings was given. 8348# Check whether --enable-strings or --disable-strings was given.
5442if test "${enable_strings+set}" = set; then 8349if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings" 8350 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then 8351 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval 8352 support_addstrings=$enableval
5446 fi 8353 fi
5447fi 8354fi;
5448
5449 8355
5450# Check whether --enable-swapscreen or --disable-swapscreen was given. 8356# Check whether --enable-swapscreen or --disable-swapscreen was given.
5451if test "${enable_swapscreen+set}" = set; then 8357if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen" 8358 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then 8359 if test x$enableval = xno; then
8360
5454 cat >> confdefs.h <<\EOF 8361cat >>confdefs.h <<\_ACEOF
5455#define NO_SECONDARY_SCREEN 1 8362#define NO_SECONDARY_SCREEN 1
5456EOF 8363_ACEOF
5457 8364
5458 fi 8365 fi
5459fi 8366fi;
5460
5461 8367
5462# Check whether --enable-frills or --disable-frills was given. 8368# Check whether --enable-frills or --disable-frills was given.
5463if test "${enable_frills+set}" = set; then 8369if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills" 8370 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then 8371 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval 8372 support_frills=$enableval
5467 fi 8373 fi
5468fi 8374fi;
5469
5470 8375
5471# Check whether --enable-linespace or --disable-linespace was given. 8376# Check whether --enable-linespace or --disable-linespace was given.
5472if test "${enable_linespace+set}" = set; then 8377if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace" 8378 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then 8379 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval 8380 support_linespace=$enableval
5476 fi 8381 fi
5477fi 8382fi;
5478
5479 8383
5480# Check whether --enable-24bit or --disable-24bit was given. 8384# Check whether --enable-24bit or --disable-24bit was given.
5481if test "${enable_24bit+set}" = set; then 8385if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit" 8386 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then 8387 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval 8388 support_24bit=$enableval
5485 fi 8389 fi
5486fi 8390fi;
5487
5488 8391
5489# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8392# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490if test "${enable_keepscrolling+set}" = set; then 8393if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling" 8394 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then 8395 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval 8396 support_keepscrolling=$enableval
5494 fi 8397 fi
5495fi 8398fi;
5496
5497 8399
5498# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8400# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499if test "${enable_selectionscrolling+set}" = set; then 8401if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling" 8402 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then 8403 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval 8404 support_selectionscrolling=$enableval
5503 fi 8405 fi
5504fi 8406fi;
5505
5506 8407
5507# Check whether --enable-mousewheel or --disable-mousewheel was given. 8408# Check whether --enable-mousewheel or --disable-mousewheel was given.
5508if test "${enable_mousewheel+set}" = set; then 8409if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel" 8410 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then 8411 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval 8412 support_mousewheel=$enableval
5512 fi 8413 fi
5513fi 8414fi;
5514
5515 8415
5516# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8416# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517if test "${enable_slipwheeling+set}" = set; then 8417if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling" 8418 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then 8419 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval 8420 support_mouseslipwheel=$enableval
5521 fi 8421 fi
5522fi 8422fi;
5523
5524
5525# Check whether --enable-old-selection or --disable-old-selection was given.
5526if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval
5530 fi
5531fi
5532
5533
5534# Check whether --enable-new-selection or --disable-new-selection was given.
5535if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then
5538 cat >> confdefs.h <<\EOF
5539#define NO_NEW_SELECTION 1
5540EOF
5541
5542 fi
5543fi
5544
5545 8423
5546# Check whether --enable-dmalloc or --disable-dmalloc was given. 8424# Check whether --enable-dmalloc or --disable-dmalloc was given.
5547if test "${enable_dmalloc+set}" = set; then 8425if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc" 8426 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then 8427 if test x$enableval = xyes; then
5550 MALLOC_TYPE=G 8428 MALLOC_TYPE=G
5551 DEBUG=-DDEBUG_MALLOC 8429 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc" 8430 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include 8431 DINCLUDE=-I/usr/local/include
5554 fi 8432 fi
5555fi 8433fi;
5556
5557 8434
5558# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8435# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559if test "${enable_dlmalloc+set}" = set; then 8436if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc" 8437 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then 8438 if test x$enableval = xyes; then
5562 MALLOC_TYPE=D 8439 MALLOC_TYPE=D
5563 DEBUG= 8440 DEBUG=
5564 DLIB="-L/usr/local/lib -ldlmalloc" 8441 DLIB="-L/usr/local/lib -ldlmalloc"
5565 DINCLUDE= 8442 DINCLUDE=
5566 fi 8443 fi
5567fi 8444fi;
5568
5569 8445
5570# Check whether --enable-smart-resize or --disable-smart-resize was given. 8446# Check whether --enable-smart-resize or --disable-smart-resize was given.
5571if test "${enable_smart_resize+set}" = set; then 8447if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize" 8448 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then 8449 if test x$enableval = xyes; then
8450
5574 cat >> confdefs.h <<\EOF 8451cat >>confdefs.h <<\_ACEOF
5575#define SMART_RESIZE 1 8452#define SMART_RESIZE 1
5576EOF 8453_ACEOF
5577 8454
5578 fi 8455 fi
5579fi 8456fi;
5580
5581 8457
5582# Check whether --enable-256-color or --disable-256-color was given. 8458# Check whether --enable-256-color or --disable-256-color was given.
5583if test "${enable_256_color+set}" = set; then 8459if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color" 8460 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then 8461 if test x$enableval = xyes; then
8462
5586 cat >> confdefs.h <<\EOF 8463cat >>confdefs.h <<\_ACEOF
5587#define TTY_256COLOR 1 8464#define TTY_256COLOR 1
5588EOF 8465_ACEOF
5589 8466
5590 fi 8467 fi
5591fi 8468fi;
5592
5593 8469
5594# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8470# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595if test "${enable_cursor_blink+set}" = set; then 8471if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink" 8472 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then 8473 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval 8474 support_cursor_blink=$enableval
5599 fi 8475 fi
5600fi 8476fi;
5601 8477
8478# Check whether --enable-text-blink or --disable-text-blink was given.
8479if test "${enable_text_blink+set}" = set; then
8480 enableval="$enable_text_blink"
8481 if test x$enableval = xyes -o x$enableval = xno; then
8482 support_text_blink=$enableval
8483 fi
8484fi;
5602 8485
5603# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8486# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604if test "${enable_pointer_blank+set}" = set; then 8487if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank" 8488 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then 8489 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval 8490 support_pointer_blank=$enableval
5608 fi 8491 fi
5609fi 8492fi;
5610 8493
5611 8494
5612# Check whether --with-term or --without-term was given. 8495# Check whether --with-term or --without-term was given.
5613if test "${with_term+set}" = set; then 8496if test "${with_term+set}" = set; then
5614 withval="$with_term" 8497 withval="$with_term"
5615 if test x$withval != x; then 8498 if test x$withval != x; then
8499
5616 cat >> confdefs.h <<EOF 8500cat >>confdefs.h <<_ACEOF
5617#define TERMENV "$withval" 8501#define TERMENV "$withval"
5618EOF 8502_ACEOF
5619 term="$withval" 8503 term="$withval"
5620 fi 8504 fi
5621fi 8505fi;
5622 8506
5623 8507
5624# Check whether --with-terminfo or --without-terminfo was given. 8508# Check whether --with-terminfo or --without-terminfo was given.
5625if test "${with_terminfo+set}" = set; then 8509if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo" 8510 withval="$with_terminfo"
5627 if test x$withval != x; then 8511 if test x$withval != x; then
8512
5628 cat >> confdefs.h <<EOF 8513cat >>confdefs.h <<_ACEOF
5629#define RXVT_TERMINFO "$withval" 8514#define RXVT_TERMINFO "$withval"
5630EOF 8515_ACEOF
5631 terminfo="$withval" 8516 terminfo="$withval"
5632 fi 8517 fi
5633fi 8518fi;
5634 8519
5635 8520
5636 8521
5637cat >> confdefs.h <<\EOF 8522cat >>confdefs.h <<\_ACEOF
5638#define PROTOTYPES 1 8523#define PROTOTYPES 1
5639EOF 8524_ACEOF
5640 8525
5641 8526
5642if test -z "$CFLAGS"; then 8527if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then 8528 if test -z "$CCOPTS"; then
5644 CCOPTS='-O' 8529 CCOPTS='-O'
5646 CFLAGS="$CCOPTS" 8531 CFLAGS="$CCOPTS"
5647fi 8532fi
5648 8533
5649# Extract the first word of "mv", so it can be a program name with args. 8534# Extract the first word of "mv", so it can be a program name with args.
5650set dummy mv; ac_word=$2 8535set dummy mv; ac_word=$2
8536echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8537echo $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 8538if test "${ac_cv_path_MV+set}" = set; then
5654 echo $ac_n "(cached) $ac_c" 1>&6 8539 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else 8540else
5656 case "$MV" in 8541 case $MV in
5657 /*) 8542 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8543 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5659 ;; 8544 ;;
5660 ?:/*)
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5662 ;;
5663 *) 8545 *)
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 ac_dummy="$PATH" 8547for as_dir in $PATH
5666 for ac_dir in $ac_dummy; do 8548do
8549 IFS=$as_save_IFS
5667 test -z "$ac_dir" && ac_dir=. 8550 test -z "$as_dir" && as_dir=.
5668 if test -f $ac_dir/$ac_word; then 8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_MV="$ac_dir/$ac_word" 8553 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 8555 break 2
5671 fi 8556 fi
5672 done 8557done
5673 IFS="$ac_save_ifs" 8558done
8559
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8560 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5675 ;; 8561 ;;
5676esac 8562esac
5677fi 8563fi
5678MV="$ac_cv_path_MV" 8564MV=$ac_cv_path_MV
8565
5679if test -n "$MV"; then 8566if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6 8567 echo "$as_me:$LINENO: result: $MV" >&5
8568echo "${ECHO_T}$MV" >&6
5681else 8569else
5682 echo "$ac_t""no" 1>&6 8570 echo "$as_me:$LINENO: result: no" >&5
8571echo "${ECHO_T}no" >&6
5683fi 8572fi
5684 8573
5685# Extract the first word of "rm", so it can be a program name with args. 8574# Extract the first word of "rm", so it can be a program name with args.
5686set dummy rm; ac_word=$2 8575set dummy rm; ac_word=$2
8576echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8577echo $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 8578if test "${ac_cv_path_RM+set}" = set; then
5690 echo $ac_n "(cached) $ac_c" 1>&6 8579 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else 8580else
5692 case "$RM" in 8581 case $RM in
5693 /*) 8582 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8583 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5695 ;; 8584 ;;
5696 ?:/*)
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5698 ;;
5699 *) 8585 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 ac_dummy="$PATH" 8587for as_dir in $PATH
5702 for ac_dir in $ac_dummy; do 8588do
8589 IFS=$as_save_IFS
5703 test -z "$ac_dir" && ac_dir=. 8590 test -z "$as_dir" && as_dir=.
5704 if test -f $ac_dir/$ac_word; then 8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_RM="$ac_dir/$ac_word" 8593 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 8595 break 2
5707 fi 8596 fi
5708 done 8597done
5709 IFS="$ac_save_ifs" 8598done
8599
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8600 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5711 ;; 8601 ;;
5712esac 8602esac
5713fi 8603fi
5714RM="$ac_cv_path_RM" 8604RM=$ac_cv_path_RM
8605
5715if test -n "$RM"; then 8606if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6 8607 echo "$as_me:$LINENO: result: $RM" >&5
8608echo "${ECHO_T}$RM" >&6
5717else 8609else
5718 echo "$ac_t""no" 1>&6 8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
5719fi 8612fi
5720 8613
5721# Extract the first word of "cp", so it can be a program name with args. 8614# Extract the first word of "cp", so it can be a program name with args.
5722set dummy cp; ac_word=$2 8615set dummy cp; ac_word=$2
8616echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8617echo $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 8618if test "${ac_cv_path_CP+set}" = set; then
5726 echo $ac_n "(cached) $ac_c" 1>&6 8619 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else 8620else
5728 case "$CP" in 8621 case $CP in
5729 /*) 8622 [\\/]* | ?:[\\/]*)
5730 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8623 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5731 ;; 8624 ;;
5732 ?:/*)
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5734 ;;
5735 *) 8625 *)
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 ac_dummy="$PATH" 8627for as_dir in $PATH
5738 for ac_dir in $ac_dummy; do 8628do
8629 IFS=$as_save_IFS
5739 test -z "$ac_dir" && ac_dir=. 8630 test -z "$as_dir" && as_dir=.
5740 if test -f $ac_dir/$ac_word; then 8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_path_CP="$ac_dir/$ac_word" 8633 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 8635 break 2
5743 fi 8636 fi
5744 done 8637done
5745 IFS="$ac_save_ifs" 8638done
8639
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8640 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5747 ;; 8641 ;;
5748esac 8642esac
5749fi 8643fi
5750CP="$ac_cv_path_CP" 8644CP=$ac_cv_path_CP
8645
5751if test -n "$CP"; then 8646if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6 8647 echo "$as_me:$LINENO: result: $CP" >&5
8648echo "${ECHO_T}$CP" >&6
5753else 8649else
5754 echo "$ac_t""no" 1>&6 8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
5755fi 8652fi
5756 8653
5757# Extract the first word of "ln", so it can be a program name with args. 8654# Extract the first word of "ln", so it can be a program name with args.
5758set dummy ln; ac_word=$2 8655set dummy ln; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8657echo $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 8658if test "${ac_cv_path_LN+set}" = set; then
5762 echo $ac_n "(cached) $ac_c" 1>&6 8659 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else 8660else
5764 case "$LN" in 8661 case $LN in
5765 /*) 8662 [\\/]* | ?:[\\/]*)
5766 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8663 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5767 ;; 8664 ;;
5768 ?:/*)
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5770 ;;
5771 *) 8665 *)
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 ac_dummy="$PATH" 8667for as_dir in $PATH
5774 for ac_dir in $ac_dummy; do 8668do
8669 IFS=$as_save_IFS
5775 test -z "$ac_dir" && ac_dir=. 8670 test -z "$as_dir" && as_dir=.
5776 if test -f $ac_dir/$ac_word; then 8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_path_LN="$ac_dir/$ac_word" 8673 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 8675 break 2
5779 fi 8676 fi
5780 done 8677done
5781 IFS="$ac_save_ifs" 8678done
8679
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8680 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5783 ;; 8681 ;;
5784esac 8682esac
5785fi 8683fi
5786LN="$ac_cv_path_LN" 8684LN=$ac_cv_path_LN
8685
5787if test -n "$LN"; then 8686if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6 8687 echo "$as_me:$LINENO: result: $LN" >&5
8688echo "${ECHO_T}$LN" >&6
5789else 8689else
5790 echo "$ac_t""no" 1>&6 8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
5791fi 8692fi
5792 8693
5793# Extract the first word of "sed", so it can be a program name with args. 8694# Extract the first word of "sed", so it can be a program name with args.
5794set dummy sed; ac_word=$2 8695set dummy sed; ac_word=$2
8696echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8697echo $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 8698if test "${ac_cv_path_SED+set}" = set; then
5798 echo $ac_n "(cached) $ac_c" 1>&6 8699 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else 8700else
5800 case "$SED" in 8701 case $SED in
5801 /*) 8702 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8703 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5803 ;; 8704 ;;
5804 ?:/*)
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5806 ;;
5807 *) 8705 *)
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 ac_dummy="$PATH" 8707for as_dir in $PATH
5810 for ac_dir in $ac_dummy; do 8708do
8709 IFS=$as_save_IFS
5811 test -z "$ac_dir" && ac_dir=. 8710 test -z "$as_dir" && as_dir=.
5812 if test -f $ac_dir/$ac_word; then 8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_path_SED="$ac_dir/$ac_word" 8713 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 8715 break 2
5815 fi 8716 fi
5816 done 8717done
5817 IFS="$ac_save_ifs" 8718done
8719
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8720 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5819 ;; 8721 ;;
5820esac 8722esac
5821fi 8723fi
5822SED="$ac_cv_path_SED" 8724SED=$ac_cv_path_SED
8725
5823if test -n "$SED"; then 8726if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6 8727 echo "$as_me:$LINENO: result: $SED" >&5
8728echo "${ECHO_T}$SED" >&6
5825else 8729else
5826 echo "$ac_t""no" 1>&6 8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
5827fi 8732fi
5828 8733
5829# Extract the first word of "echo", so it can be a program name with args. 8734# Extract the first word of "echo", so it can be a program name with args.
5830set dummy echo; ac_word=$2 8735set dummy echo; ac_word=$2
8736echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8737echo $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 8738if test "${ac_cv_path_ECHO+set}" = set; then
5834 echo $ac_n "(cached) $ac_c" 1>&6 8739 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else 8740else
5836 case "$ECHO" in 8741 case $ECHO in
5837 /*) 8742 [\\/]* | ?:[\\/]*)
5838 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8743 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5839 ;; 8744 ;;
5840 ?:/*)
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5842 ;;
5843 *) 8745 *)
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 ac_dummy="$PATH" 8747for as_dir in $PATH
5846 for ac_dir in $ac_dummy; do 8748do
8749 IFS=$as_save_IFS
5847 test -z "$ac_dir" && ac_dir=. 8750 test -z "$as_dir" && as_dir=.
5848 if test -f $ac_dir/$ac_word; then 8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_path_ECHO="$ac_dir/$ac_word" 8753 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 8755 break 2
5851 fi 8756 fi
5852 done 8757done
5853 IFS="$ac_save_ifs" 8758done
8759
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8760 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5855 ;; 8761 ;;
5856esac 8762esac
5857fi 8763fi
5858ECHO="$ac_cv_path_ECHO" 8764ECHO=$ac_cv_path_ECHO
8765
5859if test -n "$ECHO"; then 8766if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6 8767 echo "$as_me:$LINENO: result: $ECHO" >&5
8768echo "${ECHO_T}$ECHO" >&6
5861else 8769else
5862 echo "$ac_t""no" 1>&6 8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
5863fi 8772fi
5864 8773
5865# Extract the first word of "cmp", so it can be a program name with args. 8774# Extract the first word of "cmp", so it can be a program name with args.
5866set dummy cmp; ac_word=$2 8775set dummy cmp; ac_word=$2
8776echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8777echo $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 8778if test "${ac_cv_path_CMP+set}" = set; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 8779 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else 8780else
5872 case "$CMP" in 8781 case $CMP in
5873 /*) 8782 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8783 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5875 ;; 8784 ;;
5876 ?:/*)
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5878 ;;
5879 *) 8785 *)
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 ac_dummy="$PATH" 8787for as_dir in $PATH
5882 for ac_dir in $ac_dummy; do 8788do
8789 IFS=$as_save_IFS
5883 test -z "$ac_dir" && ac_dir=. 8790 test -z "$as_dir" && as_dir=.
5884 if test -f $ac_dir/$ac_word; then 8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_CMP="$ac_dir/$ac_word" 8793 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 8795 break 2
5887 fi 8796 fi
5888 done 8797done
5889 IFS="$ac_save_ifs" 8798done
8799
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8800 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 ;; 8801 ;;
5892esac 8802esac
5893fi 8803fi
5894CMP="$ac_cv_path_CMP" 8804CMP=$ac_cv_path_CMP
8805
5895if test -n "$CMP"; then 8806if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6 8807 echo "$as_me:$LINENO: result: $CMP" >&5
8808echo "${ECHO_T}$CMP" >&6
5897else 8809else
5898 echo "$ac_t""no" 1>&6 8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
5899fi 8812fi
5900 8813
5901# Extract the first word of "tbl", so it can be a program name with args. 8814# Extract the first word of "tbl", so it can be a program name with args.
5902set dummy tbl; ac_word=$2 8815set dummy tbl; ac_word=$2
8816echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8817echo $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 8818if test "${ac_cv_path_TBL+set}" = set; then
5906 echo $ac_n "(cached) $ac_c" 1>&6 8819 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else 8820else
5908 case "$TBL" in 8821 case $TBL in
5909 /*) 8822 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8823 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5911 ;; 8824 ;;
5912 ?:/*)
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5914 ;;
5915 *) 8825 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 ac_dummy="$PATH" 8827for as_dir in $PATH
5918 for ac_dir in $ac_dummy; do 8828do
8829 IFS=$as_save_IFS
5919 test -z "$ac_dir" && ac_dir=. 8830 test -z "$as_dir" && as_dir=.
5920 if test -f $ac_dir/$ac_word; then 8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_path_TBL="$ac_dir/$ac_word" 8833 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 8835 break 2
5923 fi 8836 fi
5924 done 8837done
5925 IFS="$ac_save_ifs" 8838done
8839
5926 ;; 8840 ;;
5927esac 8841esac
5928fi 8842fi
5929TBL="$ac_cv_path_TBL" 8843TBL=$ac_cv_path_TBL
8844
5930if test -n "$TBL"; then 8845if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6 8846 echo "$as_me:$LINENO: result: $TBL" >&5
8847echo "${ECHO_T}$TBL" >&6
5932else 8848else
5933 echo "$ac_t""no" 1>&6 8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
5934fi 8851fi
5935 8852
5936 8853
5937 8854
5938 8855
5939# If we find X, set shell vars x_includes and x_libraries to the 8856echo "$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 8857echo $ECHO_N "checking for X... $ECHO_C" >&6
5944echo "configure:5945: checking for X" >&5 8858
5945 8859
5946# Check whether --with-x or --without-x was given. 8860# Check whether --with-x or --without-x was given.
5947if test "${with_x+set}" = set; then 8861if test "${with_x+set}" = set; then
5948 withval="$with_x" 8862 withval="$with_x"
5949 : 8863
5950fi 8864fi;
5951
5952# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8865# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5953if test "x$with_x" = xno; then 8866if test "x$with_x" = xno; then
5954 # The user explicitly disabled X. 8867 # The user explicitly disabled X.
5955 have_x=disabled 8868 have_x=disabled
5956else 8869else
5957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8870 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5958 # Both variables are already set. 8871 # Both variables are already set.
5959 have_x=yes 8872 have_x=yes
5960 else 8873 else
5961if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8874 if test "${ac_cv_have_x+set}" = set; then
5962 echo $ac_n "(cached) $ac_c" 1>&6 8875 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else 8876else
5964 # One or both of the vars are not set, and there is no cached value. 8877 # One or both of the vars are not set, and there is no cached value.
5965ac_x_includes=NO ac_x_libraries=NO 8878ac_x_includes=no ac_x_libraries=no
5966rm -fr conftestdir 8879rm -fr conftest.dir
5967if mkdir conftestdir; then 8880if mkdir conftest.dir; then
5968 cd conftestdir 8881 cd conftest.dir
5969 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8882 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5970 cat > Imakefile <<'EOF' 8883 cat >Imakefile <<'_ACEOF'
5971acfindx: 8884acfindx:
5972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8885 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5973EOF 8886_ACEOF
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8887 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8889 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8890 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do 8891 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8892 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then 8893 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break 8894 ac_im_usrlibdir=$ac_im_libdir; break
5982 fi 8895 fi
5983 done 8896 done
5984 # Screen out bogus values from the imake configuration. They are 8897 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because 8898 # bogus both because they are the default anyway, and because
5986 # using them would break gcc on systems where it needs fixed includes. 8899 # using them would break gcc on systems where it needs fixed includes.
5987 case "$ac_im_incroot" in 8900 case $ac_im_incroot in
5988 /usr/include) ;; 8901 /usr/include) ;;
5989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8902 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5990 esac 8903 esac
5991 case "$ac_im_usrlibdir" in 8904 case $ac_im_usrlibdir in
5992 /usr/lib | /lib) ;; 8905 /usr/lib | /lib) ;;
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8906 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5994 esac 8907 esac
5995 fi 8908 fi
5996 cd .. 8909 cd ..
5997 rm -fr conftestdir 8910 rm -fr conftest.dir
5998fi 8911fi
5999 8912
8913# Standard set of common directories for X headers.
8914# Check X11 before X11Rn because it is often a symlink to the current release.
8915ac_x_header_dirs='
8916/usr/X11/include
8917/usr/X11R6/include
8918/usr/X11R5/include
8919/usr/X11R4/include
8920
8921/usr/include/X11
8922/usr/include/X11R6
8923/usr/include/X11R5
8924/usr/include/X11R4
8925
8926/usr/local/X11/include
8927/usr/local/X11R6/include
8928/usr/local/X11R5/include
8929/usr/local/X11R4/include
8930
8931/usr/local/include/X11
8932/usr/local/include/X11R6
8933/usr/local/include/X11R5
8934/usr/local/include/X11R4
8935
8936/usr/X386/include
8937/usr/x386/include
8938/usr/XFree86/include/X11
8939
8940/usr/include
8941/usr/local/include
8942/usr/unsupported/include
8943/usr/athena/include
8944/usr/local/x11r5/include
8945/usr/lpp/Xamples/include
8946
8947/usr/openwin/include
8948/usr/openwin/share/include'
8949
6000if test "$ac_x_includes" = NO; then 8950if test "$ac_x_includes" = no; then
6001 # Guess where to find include files, by looking for this one X11 .h file. 8951 # 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. 8952 # First, try using that file with no special directory specified.
8953 cat >conftest.$ac_ext <<_ACEOF
8954/* confdefs.h. */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
6005cat > conftest.$ac_ext <<EOF 8957cat >>conftest.$ac_ext <<_ACEOF
6006#line 6007 "configure" 8958/* end confdefs.h. */
6007#include "confdefs.h" 8959#include <X11/Intrinsic.h>
6008#include <$x_direct_test_include> 8960_ACEOF
6009EOF 8961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8963 ac_status=$?
6012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } >/dev/null; then
8969 if test -s conftest.err; then
8970 ac_cpp_err=$ac_cxx_preproc_warn_flag
8971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8972 else
8973 ac_cpp_err=
8974 fi
8975else
8976 ac_cpp_err=yes
8977fi
6013if test -z "$ac_err"; then 8978if test -z "$ac_cpp_err"; then
6014 rm -rf conftest*
6015 # We can compile using X headers with no special include directory. 8979 # We can compile using X headers with no special include directory.
6016ac_x_includes= 8980ac_x_includes=
6017else 8981else
6018 echo "$ac_err" >&5
6019 echo "configure: failed program was:" >&5 8982 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 8983sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -rf conftest* 8984
6022 # Look for the header file in a standard set of common directories. 8985 for ac_dir in $ac_x_header_dirs; do
6023# Check X11 before X11Rn because it is often a symlink to the current release. 8986 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 8987 ac_x_includes=$ac_dir
6062 break 8988 break
6063 fi 8989 fi
6064 done 8990done
6065fi 8991fi
6066rm -f conftest* 8992rm -f conftest.err conftest.$ac_ext
6067fi # $ac_x_includes = NO 8993fi # $ac_x_includes = no
6068 8994
6069if test "$ac_x_libraries" = NO; then 8995if test "$ac_x_libraries" = no; then
6070 # Check for the libraries. 8996 # 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. 8997 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently. 8998 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS" 8999 ac_save_LIBS=$LIBS
6078 LIBS="-l$x_direct_test_library $LIBS" 9000 LIBS="-lXt $LIBS"
9001 cat >conftest.$ac_ext <<_ACEOF
9002/* confdefs.h. */
9003_ACEOF
9004cat confdefs.h >>conftest.$ac_ext
6079cat > conftest.$ac_ext <<EOF 9005cat >>conftest.$ac_ext <<_ACEOF
6080#line 6081 "configure" 9006/* end confdefs.h. */
6081#include "confdefs.h" 9007#include <X11/Intrinsic.h>
6082 9008int
6083int main() { 9009main ()
6084${x_direct_test_function}() 9010{
9011XtMalloc (0)
9012 ;
6085; return 0; } 9013 return 0;
6086EOF 9014}
6087if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -rf conftest* 9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
6089 LIBS="$ac_save_LIBS" 9037 LIBS=$ac_save_LIBS
6090# We can link X programs with no special library path. 9038# We can link X programs with no special library path.
6091ac_x_libraries= 9039ac_x_libraries=
6092else 9040else
6093 echo "configure: failed program was:" >&5 9041 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5 9042sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -rf conftest* 9043
6096 LIBS="$ac_save_LIBS" 9044LIBS=$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/` \ 9045for 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 9046do
9047 # Don't even attempt the hair of trying to link an X program!
6136 for ac_extension in a so sl; do 9048 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9049 if test -r $ac_dir/libXt.$ac_extension; then
6138 ac_x_libraries=$ac_dir 9050 ac_x_libraries=$ac_dir
6139 break 2 9051 break 2
6140 fi 9052 fi
6141 done 9053 done
6142done 9054done
6143fi 9055fi
6144rm -f conftest* 9056rm -f conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
6145fi # $ac_x_libraries = NO 9058fi # $ac_x_libraries = no
6146 9059
6147if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9060if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6148 # Didn't find X anywhere. Cache the known absence of X. 9061 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no" 9062 ac_cv_have_x="have_x=no"
6150else 9063else
6151 # Record where we found X for the cache. 9064 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \ 9065 ac_cv_have_x="have_x=yes \
6153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9066 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6154fi 9067fi
6155fi 9068fi
9069
6156 fi 9070 fi
6157 eval "$ac_cv_have_x" 9071 eval "$ac_cv_have_x"
6158fi # $with_x != no 9072fi # $with_x != no
6159 9073
6160if test "$have_x" != yes; then 9074if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6 9075 echo "$as_me:$LINENO: result: $have_x" >&5
9076echo "${ECHO_T}$have_x" >&6
6162 no_x=yes 9077 no_x=yes
6163else 9078else
6164 # If each of the values was on the command line, it overrides each guess. 9079 # 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 9080 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9081 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values. 9082 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \ 9083 ac_cv_have_x="have_x=yes \
6169 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9084 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9085 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9086echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6171fi 9087fi
6172 9088
6173if test "$no_x" = yes; then 9089if test "$no_x" = yes; then
6174 # Not all programs may use this symbol, but it does not hurt to define it. 9090 # Not all programs may use this symbol, but it does not hurt to define it.
9091
6175 cat >> confdefs.h <<\EOF 9092cat >>confdefs.h <<\_ACEOF
6176#define X_DISPLAY_MISSING 1 9093#define X_DISPLAY_MISSING 1
6177EOF 9094_ACEOF
6178 9095
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9096 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6180else 9097else
6181 if test -n "$x_includes"; then 9098 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes" 9099 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # It would also be nice to do this for all -L options, not just this one. 9102 # It would also be nice to do this for all -L options, not just this one.
6186 if test -n "$x_libraries"; then 9103 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries" 9104 X_LIBS="$X_LIBS -L$x_libraries"
6188 # For Solaris; some versions of Sun CC require a space after -R and 9105 # For Solaris; some versions of Sun CC require a space after -R and
6189 # others require no space. Words are not sufficient . . . . 9106 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in 9107 case `(uname -sr) 2>/dev/null` in
6191 "SunOS 5"*) 9108 "SunOS 5"*)
9109 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 9110echo $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" 9111 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF 9112 cat >conftest.$ac_ext <<_ACEOF
6196#line 6197 "configure" 9113/* confdefs.h. */
6197#include "confdefs.h" 9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
6198 9118
6199int main() { 9119int
9120main ()
9121{
6200 9122
9123 ;
6201; return 0; } 9124 return 0;
6202EOF 9125}
6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
9128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -rf conftest* 9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
6205 ac_R_nospace=yes 9148 ac_R_nospace=yes
6206else 9149else
6207 echo "configure: failed program was:" >&5 9150 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 9151sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -rf conftest* 9152
6210 ac_R_nospace=no 9153ac_R_nospace=no
6211fi 9154fi
6212rm -f conftest* 9155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
6213 if test $ac_R_nospace = yes; then 9157 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6 9158 echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6
6215 X_LIBS="$X_LIBS -R$x_libraries" 9160 X_LIBS="$X_LIBS -R$x_libraries"
6216 else 9161 else
6217 LIBS="$ac_xsave_LIBS -R $x_libraries" 9162 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF 9163 cat >conftest.$ac_ext <<_ACEOF
6219#line 6220 "configure" 9164/* confdefs.h. */
6220#include "confdefs.h" 9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h. */
6221 9169
6222int main() { 9170int
9171main ()
9172{
6223 9173
9174 ;
6224; return 0; } 9175 return 0;
6225EOF 9176}
6226if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9177_ACEOF
9178rm -f conftest.$ac_objext conftest$ac_exeext
9179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -rf conftest* 9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
6228 ac_R_space=yes 9199 ac_R_space=yes
6229else 9200else
6230 echo "configure: failed program was:" >&5 9201 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 9202sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -rf conftest* 9203
6233 ac_R_space=no 9204ac_R_space=no
6234fi 9205fi
6235rm -f conftest* 9206rm -f conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
6236 if test $ac_R_space = yes; then 9208 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6 9209 echo "$as_me:$LINENO: result: yes" >&5
9210echo "${ECHO_T}yes" >&6
6238 X_LIBS="$X_LIBS -R $x_libraries" 9211 X_LIBS="$X_LIBS -R $x_libraries"
6239 else 9212 else
9213 echo "$as_me:$LINENO: result: neither works" >&5
6240 echo "$ac_t""neither works" 1>&6 9214echo "${ECHO_T}neither works" >&6
6241 fi 9215 fi
6242 fi 9216 fi
6243 LIBS="$ac_xsave_LIBS" 9217 LIBS=$ac_xsave_LIBS
6244 esac 9218 esac
6245 fi 9219 fi
6246 9220
6247 # Check for system-dependent libraries X programs must link with. 9221 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries 9222 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking. 9223 # (-lICE), since we may need -lsocket or whatever for X linking.
6250 9224
6251 if test "$ISC" = yes; then 9225 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6253 else 9227 else
6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9228 # Martyn Johnson says this is needed for Ultrix, if the X
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says 9229 # libraries were built with DECnet support. And Karl Berry says
6256 # the Alpha needs dnet_stub (dnet does not exist). 9230 # the Alpha needs dnet_stub (dnet does not exist).
9231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9232 cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238
9239/* Override any gcc2 internal prototype to avoid an error. */
9240#ifdef __cplusplus
9241extern "C"
9242#endif
9243/* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245char XOpenDisplay ();
9246int
9247main ()
9248{
9249XOpenDisplay ();
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 (eval $ac_try) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 :
9276else
9277 echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9281echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5 9282if 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 9283 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else 9284else
6263 ac_save_LIBS="$LIBS" 9285 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ldnet $LIBS" 9286LIBS="-ldnet $LIBS"
6265cat > conftest.$ac_ext <<EOF 9287cat >conftest.$ac_ext <<_ACEOF
6266#line 6267 "configure" 9288/* confdefs.h. */
6267#include "confdefs.h" 9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293
6268/* Override any gcc2 internal prototype to avoid an error. */ 9294/* Override any gcc2 internal prototype to avoid an error. */
9295#ifdef __cplusplus
9296extern "C"
9297#endif
6269/* We use char because int might match the return type of a gcc2 9298/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */ 9299 builtin and then its argument prototype would still apply. */
6271char dnet_ntoa(); 9300char dnet_ntoa ();
6272 9301int
6273int main() { 9302main ()
9303{
6274dnet_ntoa() 9304dnet_ntoa ();
9305 ;
6275; return 0; } 9306 return 0;
6276EOF 9307}
6277if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -rf conftest* 9314 rm -f conftest.er1
6279 eval "ac_cv_lib_$ac_lib_var=yes" 9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_lib_dnet_dnet_ntoa=yes
6280else 9331else
6281 echo "configure: failed program was:" >&5 9332 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 9333sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -rf conftest* 9334
6284 eval "ac_cv_lib_$ac_lib_var=no" 9335ac_cv_lib_dnet_dnet_ntoa=no
6285fi 9336fi
6286rm -f conftest* 9337rm -f conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
6287LIBS="$ac_save_LIBS" 9339LIBS=$ac_check_lib_save_LIBS
6288
6289fi 9340fi
6290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9341echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6291 echo "$ac_t""yes" 1>&6 9342echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9343if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9344 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6293else
6294 echo "$ac_t""no" 1>&6
6295fi 9345fi
6296 9346
6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9347 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9348 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 9349echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5 9350if 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 9351 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else 9352else
6304 ac_save_LIBS="$LIBS" 9353 ac_check_lib_save_LIBS=$LIBS
6305LIBS="-ldnet_stub $LIBS" 9354LIBS="-ldnet_stub $LIBS"
6306cat > conftest.$ac_ext <<EOF 9355cat >conftest.$ac_ext <<_ACEOF
6307#line 6308 "configure" 9356/* confdefs.h. */
6308#include "confdefs.h" 9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361
6309/* Override any gcc2 internal prototype to avoid an error. */ 9362/* Override any gcc2 internal prototype to avoid an error. */
9363#ifdef __cplusplus
9364extern "C"
9365#endif
6310/* We use char because int might match the return type of a gcc2 9366/* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */ 9367 builtin and then its argument prototype would still apply. */
6312char dnet_ntoa(); 9368char dnet_ntoa ();
6313 9369int
6314int main() { 9370main ()
9371{
6315dnet_ntoa() 9372dnet_ntoa ();
9373 ;
6316; return 0; } 9374 return 0;
6317EOF 9375}
6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9376_ACEOF
9377rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -rf conftest* 9382 rm -f conftest.er1
6320 eval "ac_cv_lib_$ac_lib_var=yes" 9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6321else 9399else
6322 echo "configure: failed program was:" >&5 9400 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5 9401sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -rf conftest* 9402
6325 eval "ac_cv_lib_$ac_lib_var=no" 9403ac_cv_lib_dnet_stub_dnet_ntoa=no
6326fi 9404fi
6327rm -f conftest* 9405rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
6328LIBS="$ac_save_LIBS" 9407LIBS=$ac_check_lib_save_LIBS
6329
6330fi 9408fi
6331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9409echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6332 echo "$ac_t""yes" 1>&6 9410echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9411if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9412 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6334else
6335 echo "$ac_t""no" 1>&6
6336fi 9413fi
6337 9414
6338 fi 9415 fi
9416fi
9417rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS="$ac_xsave_LIBS"
6339 9420
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9421 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions. 9422 # to get the SysV transport functions.
6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9423 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6343 # needs -lnsl. 9424 # needs -lnsl.
6344 # The nsl library prevents programs from opening the X display 9425 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to dickey@clark.net. 9426 # on Irix 5.2, according to T.E. Dickey.
9427 # The functions gethostbyname, getservbyname, and inet_addr are
9428 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9429 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9430echo $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 9431if test "${ac_cv_func_gethostbyname+set}" = set; then
6349 echo $ac_n "(cached) $ac_c" 1>&6 9432 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else 9433else
6351 cat > conftest.$ac_ext <<EOF 9434 cat >conftest.$ac_ext <<_ACEOF
6352#line 6353 "configure" 9435/* confdefs.h. */
6353#include "confdefs.h" 9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442#define gethostbyname innocuous_gethostbyname
9443
6354/* System header to define __stub macros and hopefully few prototypes, 9444/* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char gethostbyname(); below. */ 9445 which can conflict with char gethostbyname (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9448
9449#ifdef __STDC__
9450# include <limits.h>
9451#else
6356#include <assert.h> 9452# include <assert.h>
9453#endif
9454
9455#undef gethostbyname
9456
6357/* Override any gcc2 internal prototype to avoid an error. */ 9457/* Override any gcc2 internal prototype to avoid an error. */
9458#ifdef __cplusplus
9459extern "C"
9460{
9461#endif
6358/* We use char because int might match the return type of a gcc2 9462/* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */ 9463 builtin and then its argument prototype would still apply. */
6360char gethostbyname(); 9464char gethostbyname ();
6361
6362int main() {
6363
6364/* The GNU C library defines this for functions which it implements 9465/* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named 9466 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */ 9467 something starting with __ and the normal name is an alias. */
6367#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9468#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6368choke me 9469choke me
6369#else 9470#else
6370gethostbyname(); 9471char (*f) () = gethostbyname;
6371#endif 9472#endif
9473#ifdef __cplusplus
9474}
9475#endif
6372 9476
9477int
9478main ()
9479{
9480return f != gethostbyname;
9481 ;
6373; return 0; } 9482 return 0;
6374EOF 9483}
6375if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
9486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -rf conftest* 9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest$ac_exeext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
6377 eval "ac_cv_func_gethostbyname=yes" 9506 ac_cv_func_gethostbyname=yes
6378else 9507else
6379 echo "configure: failed program was:" >&5 9508 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 9509sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -rf conftest* 9510
6382 eval "ac_cv_func_gethostbyname=no" 9511ac_cv_func_gethostbyname=no
6383fi 9512fi
6384rm -f conftest* 9513rm -f conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
6385fi 9515fi
6386 9516echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6387if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9517echo "${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 9518
6394 if test $ac_cv_func_gethostbyname = no; then 9519 if test $ac_cv_func_gethostbyname = no; then
9520 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9521echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5 9522if 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 9523 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else 9524else
6401 ac_save_LIBS="$LIBS" 9525 ac_check_lib_save_LIBS=$LIBS
6402LIBS="-lnsl $LIBS" 9526LIBS="-lnsl $LIBS"
6403cat > conftest.$ac_ext <<EOF 9527cat >conftest.$ac_ext <<_ACEOF
6404#line 6405 "configure" 9528/* confdefs.h. */
6405#include "confdefs.h" 9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533
6406/* Override any gcc2 internal prototype to avoid an error. */ 9534/* Override any gcc2 internal prototype to avoid an error. */
9535#ifdef __cplusplus
9536extern "C"
9537#endif
6407/* We use char because int might match the return type of a gcc2 9538/* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */ 9539 builtin and then its argument prototype would still apply. */
6409char gethostbyname(); 9540char gethostbyname ();
6410 9541int
6411int main() { 9542main ()
9543{
6412gethostbyname() 9544gethostbyname ();
9545 ;
6413; return 0; } 9546 return 0;
6414EOF 9547}
6415if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -rf conftest* 9554 rm -f conftest.er1
6417 eval "ac_cv_lib_$ac_lib_var=yes" 9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_lib_nsl_gethostbyname=yes
6418else 9571else
6419 echo "configure: failed program was:" >&5 9572 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5 9573sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -rf conftest* 9574
6422 eval "ac_cv_lib_$ac_lib_var=no" 9575ac_cv_lib_nsl_gethostbyname=no
6423fi 9576fi
6424rm -f conftest* 9577rm -f conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
6425LIBS="$ac_save_LIBS" 9579LIBS=$ac_check_lib_save_LIBS
6426
6427fi 9580fi
6428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9581echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6429 echo "$ac_t""yes" 1>&6 9582echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9583if test $ac_cv_lib_nsl_gethostbyname = yes; then
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6431else
6432 echo "$ac_t""no" 1>&6
6433fi 9585fi
6434 9586
9587 if test $ac_cv_lib_nsl_gethostbyname = no; then
9588 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9589echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9590if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-lbsd $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
9602/* Override any gcc2 internal prototype to avoid an error. */
9603#ifdef __cplusplus
9604extern "C"
9605#endif
9606/* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9608char gethostbyname ();
9609int
9610main ()
9611{
9612gethostbyname ();
9613 ;
9614 return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
9618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619 (eval $ac_link) 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_bsd_gethostbyname=yes
9639else
9640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643ac_cv_lib_bsd_gethostbyname=no
9644fi
9645rm -f conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
9649echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9650echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9651if test $ac_cv_lib_bsd_gethostbyname = yes; then
9652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9653fi
9654
9655 fi
6435 fi 9656 fi
6436 9657
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9658 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT 9659 # 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 9660 # 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 9661 # on later versions), says Simon Leinen: it contains gethostby*
6441 # gethostby* variants that don't use the nameserver (or something). 9662 # variants that don't use the name server (or something). -lsocket
6442 # -lsocket must be given before -lnsl if both are needed. 9663 # must be given before -lnsl if both are needed. We assume that
6443 # We assume that if connect needs -lnsl, so does gethostbyname. 9664 # if connect needs -lnsl, so does gethostbyname.
9665 echo "$as_me:$LINENO: checking for connect" >&5
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6 9666echo $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 9667if test "${ac_cv_func_connect+set}" = set; then
6447 echo $ac_n "(cached) $ac_c" 1>&6 9668 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else 9669else
6449 cat > conftest.$ac_ext <<EOF 9670 cat >conftest.$ac_ext <<_ACEOF
6450#line 6451 "configure" 9671/* confdefs.h. */
6451#include "confdefs.h" 9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9678#define connect innocuous_connect
9679
6452/* System header to define __stub macros and hopefully few prototypes, 9680/* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char connect(); below. */ 9681 which can conflict with char connect (); below.
9682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683 <limits.h> exists even on freestanding compilers. */
9684
9685#ifdef __STDC__
9686# include <limits.h>
9687#else
6454#include <assert.h> 9688# include <assert.h>
9689#endif
9690
9691#undef connect
9692
6455/* Override any gcc2 internal prototype to avoid an error. */ 9693/* Override any gcc2 internal prototype to avoid an error. */
9694#ifdef __cplusplus
9695extern "C"
9696{
9697#endif
6456/* We use char because int might match the return type of a gcc2 9698/* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */ 9699 builtin and then its argument prototype would still apply. */
6458char connect(); 9700char connect ();
6459
6460int main() {
6461
6462/* The GNU C library defines this for functions which it implements 9701/* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named 9702 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */ 9703 something starting with __ and the normal name is an alias. */
6465#if defined (__stub_connect) || defined (__stub___connect) 9704#if defined (__stub_connect) || defined (__stub___connect)
6466choke me 9705choke me
6467#else 9706#else
6468connect(); 9707char (*f) () = connect;
6469#endif 9708#endif
9709#ifdef __cplusplus
9710}
9711#endif
6470 9712
9713int
9714main ()
9715{
9716return f != connect;
9717 ;
6471; return 0; } 9718 return 0;
6472EOF 9719}
6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -rf conftest* 9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
6475 eval "ac_cv_func_connect=yes" 9742 ac_cv_func_connect=yes
6476else 9743else
6477 echo "configure: failed program was:" >&5 9744 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 9745sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -rf conftest* 9746
6480 eval "ac_cv_func_connect=no" 9747ac_cv_func_connect=no
6481fi 9748fi
6482rm -f conftest* 9749rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
6483fi 9751fi
6484 9752echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6485if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9753echo "${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 9754
6492 if test $ac_cv_func_connect = no; then 9755 if test $ac_cv_func_connect = no; then
9756 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9757echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6494echo "configure:6495: checking for connect in -lsocket" >&5 9758if 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 9759 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else 9760else
6499 ac_save_LIBS="$LIBS" 9761 ac_check_lib_save_LIBS=$LIBS
6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9762LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501cat > conftest.$ac_ext <<EOF 9763cat >conftest.$ac_ext <<_ACEOF
6502#line 6503 "configure" 9764/* confdefs.h. */
6503#include "confdefs.h" 9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769
6504/* Override any gcc2 internal prototype to avoid an error. */ 9770/* Override any gcc2 internal prototype to avoid an error. */
9771#ifdef __cplusplus
9772extern "C"
9773#endif
6505/* We use char because int might match the return type of a gcc2 9774/* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */ 9775 builtin and then its argument prototype would still apply. */
6507char connect(); 9776char connect ();
6508 9777int
6509int main() { 9778main ()
9779{
6510connect() 9780connect ();
9781 ;
6511; return 0; } 9782 return 0;
6512EOF 9783}
6513if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -rf conftest* 9790 rm -f conftest.er1
6515 eval "ac_cv_lib_$ac_lib_var=yes" 9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_socket_connect=yes
6516else 9807else
6517 echo "configure: failed program was:" >&5 9808 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5 9809sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -rf conftest* 9810
6520 eval "ac_cv_lib_$ac_lib_var=no" 9811ac_cv_lib_socket_connect=no
6521fi 9812fi
6522rm -f conftest* 9813rm -f conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
6523LIBS="$ac_save_LIBS" 9815LIBS=$ac_check_lib_save_LIBS
6524
6525fi 9816fi
6526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9817echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6527 echo "$ac_t""yes" 1>&6 9818echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9819if test $ac_cv_lib_socket_connect = yes; then
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9820 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6529else
6530 echo "$ac_t""no" 1>&6
6531fi 9821fi
6532 9822
6533 fi 9823 fi
6534 9824
6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9825 # Guillermo Gomez says -lposix is necessary on A/UX.
9826 echo "$as_me:$LINENO: checking for remove" >&5
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6 9827echo $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 9828if test "${ac_cv_func_remove+set}" = set; then
6539 echo $ac_n "(cached) $ac_c" 1>&6 9829 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else 9830else
6541 cat > conftest.$ac_ext <<EOF 9831 cat >conftest.$ac_ext <<_ACEOF
6542#line 6543 "configure" 9832/* confdefs.h. */
6543#include "confdefs.h" 9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839#define remove innocuous_remove
9840
6544/* System header to define __stub macros and hopefully few prototypes, 9841/* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char remove(); below. */ 9842 which can conflict with char remove (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9845
9846#ifdef __STDC__
9847# include <limits.h>
9848#else
6546#include <assert.h> 9849# include <assert.h>
9850#endif
9851
9852#undef remove
9853
6547/* Override any gcc2 internal prototype to avoid an error. */ 9854/* Override any gcc2 internal prototype to avoid an error. */
9855#ifdef __cplusplus
9856extern "C"
9857{
9858#endif
6548/* We use char because int might match the return type of a gcc2 9859/* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */ 9860 builtin and then its argument prototype would still apply. */
6550char remove(); 9861char remove ();
6551
6552int main() {
6553
6554/* The GNU C library defines this for functions which it implements 9862/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 9863 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 9864 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_remove) || defined (__stub___remove) 9865#if defined (__stub_remove) || defined (__stub___remove)
6558choke me 9866choke me
6559#else 9867#else
6560remove(); 9868char (*f) () = remove;
6561#endif 9869#endif
9870#ifdef __cplusplus
9871}
9872#endif
6562 9873
9874int
9875main ()
9876{
9877return f != remove;
9878 ;
6563; return 0; } 9879 return 0;
6564EOF 9880}
6565if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
9883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -rf conftest* 9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
6567 eval "ac_cv_func_remove=yes" 9903 ac_cv_func_remove=yes
6568else 9904else
6569 echo "configure: failed program was:" >&5 9905 echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5 9906sed 's/^/| /' conftest.$ac_ext >&5
6571 rm -rf conftest* 9907
6572 eval "ac_cv_func_remove=no" 9908ac_cv_func_remove=no
6573fi 9909fi
6574rm -f conftest* 9910rm -f conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
6575fi 9912fi
6576 9913echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6577if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9914echo "${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 9915
6584 if test $ac_cv_func_remove = no; then 9916 if test $ac_cv_func_remove = no; then
9917 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9918echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6586echo "configure:6587: checking for remove in -lposix" >&5 9919if 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 9920 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else 9921else
6591 ac_save_LIBS="$LIBS" 9922 ac_check_lib_save_LIBS=$LIBS
6592LIBS="-lposix $LIBS" 9923LIBS="-lposix $LIBS"
6593cat > conftest.$ac_ext <<EOF 9924cat >conftest.$ac_ext <<_ACEOF
6594#line 6595 "configure" 9925/* confdefs.h. */
6595#include "confdefs.h" 9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
6596/* Override any gcc2 internal prototype to avoid an error. */ 9931/* Override any gcc2 internal prototype to avoid an error. */
9932#ifdef __cplusplus
9933extern "C"
9934#endif
6597/* We use char because int might match the return type of a gcc2 9935/* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */ 9936 builtin and then its argument prototype would still apply. */
6599char remove(); 9937char remove ();
6600 9938int
6601int main() { 9939main ()
9940{
6602remove() 9941remove ();
9942 ;
6603; return 0; } 9943 return 0;
6604EOF 9944}
6605if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -rf conftest* 9951 rm -f conftest.er1
6607 eval "ac_cv_lib_$ac_lib_var=yes" 9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_lib_posix_remove=yes
6608else 9968else
6609 echo "configure: failed program was:" >&5 9969 echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 9970sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -rf conftest* 9971
6612 eval "ac_cv_lib_$ac_lib_var=no" 9972ac_cv_lib_posix_remove=no
6613fi 9973fi
6614rm -f conftest* 9974rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
6615LIBS="$ac_save_LIBS" 9976LIBS=$ac_check_lib_save_LIBS
6616
6617fi 9977fi
6618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9978echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6619 echo "$ac_t""yes" 1>&6 9979echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9980if test $ac_cv_lib_posix_remove = yes; then
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6621else
6622 echo "$ac_t""no" 1>&6
6623fi 9982fi
6624 9983
6625 fi 9984 fi
6626 9985
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9986 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9987 echo "$as_me:$LINENO: checking for shmat" >&5
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6 9988echo $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 9989if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ac_n "(cached) $ac_c" 1>&6 9990 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else 9991else
6633 cat > conftest.$ac_ext <<EOF 9992 cat >conftest.$ac_ext <<_ACEOF
6634#line 6635 "configure" 9993/* confdefs.h. */
6635#include "confdefs.h" 9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
9998/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000#define shmat innocuous_shmat
10001
6636/* System header to define __stub macros and hopefully few prototypes, 10002/* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char shmat(); below. */ 10003 which can conflict with char shmat (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10006
10007#ifdef __STDC__
10008# include <limits.h>
10009#else
6638#include <assert.h> 10010# include <assert.h>
10011#endif
10012
10013#undef shmat
10014
6639/* Override any gcc2 internal prototype to avoid an error. */ 10015/* Override any gcc2 internal prototype to avoid an error. */
10016#ifdef __cplusplus
10017extern "C"
10018{
10019#endif
6640/* We use char because int might match the return type of a gcc2 10020/* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */ 10021 builtin and then its argument prototype would still apply. */
6642char shmat(); 10022char shmat ();
6643
6644int main() {
6645
6646/* The GNU C library defines this for functions which it implements 10023/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 10024 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 10025 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shmat) || defined (__stub___shmat) 10026#if defined (__stub_shmat) || defined (__stub___shmat)
6650choke me 10027choke me
6651#else 10028#else
6652shmat(); 10029char (*f) () = shmat;
6653#endif 10030#endif
10031#ifdef __cplusplus
10032}
10033#endif
6654 10034
10035int
10036main ()
10037{
10038return f != shmat;
10039 ;
6655; return 0; } 10040 return 0;
6656EOF 10041}
6657if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10042_ACEOF
10043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -rf conftest* 10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
6659 eval "ac_cv_func_shmat=yes" 10064 ac_cv_func_shmat=yes
6660else 10065else
6661 echo "configure: failed program was:" >&5 10066 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 10067sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -rf conftest* 10068
6664 eval "ac_cv_func_shmat=no" 10069ac_cv_func_shmat=no
6665fi 10070fi
6666rm -f conftest* 10071rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
6667fi 10073fi
6668 10074echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10075echo "${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 10076
6676 if test $ac_cv_func_shmat = no; then 10077 if test $ac_cv_func_shmat = no; then
10078 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10079echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6678echo "configure:6679: checking for shmat in -lipc" >&5 10080if 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 10081 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else 10082else
6683 ac_save_LIBS="$LIBS" 10083 ac_check_lib_save_LIBS=$LIBS
6684LIBS="-lipc $LIBS" 10084LIBS="-lipc $LIBS"
6685cat > conftest.$ac_ext <<EOF 10085cat >conftest.$ac_ext <<_ACEOF
6686#line 6687 "configure" 10086/* confdefs.h. */
6687#include "confdefs.h" 10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
6688/* Override any gcc2 internal prototype to avoid an error. */ 10092/* Override any gcc2 internal prototype to avoid an error. */
10093#ifdef __cplusplus
10094extern "C"
10095#endif
6689/* We use char because int might match the return type of a gcc2 10096/* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */ 10097 builtin and then its argument prototype would still apply. */
6691char shmat(); 10098char shmat ();
6692 10099int
6693int main() { 10100main ()
10101{
6694shmat() 10102shmat ();
10103 ;
6695; return 0; } 10104 return 0;
6696EOF 10105}
6697if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -rf conftest* 10112 rm -f conftest.er1
6699 eval "ac_cv_lib_$ac_lib_var=yes" 10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_ipc_shmat=yes
6700else 10129else
6701 echo "configure: failed program was:" >&5 10130 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5 10131sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -rf conftest* 10132
6704 eval "ac_cv_lib_$ac_lib_var=no" 10133ac_cv_lib_ipc_shmat=no
6705fi 10134fi
6706rm -f conftest* 10135rm -f conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
6707LIBS="$ac_save_LIBS" 10137LIBS=$ac_check_lib_save_LIBS
6708
6709fi 10138fi
6710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10139echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6711 echo "$ac_t""yes" 1>&6 10140echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10141if test $ac_cv_lib_ipc_shmat = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6713else
6714 echo "$ac_t""no" 1>&6
6715fi 10143fi
6716 10144
6717 fi 10145 fi
6718 fi 10146 fi
6719 10147
6720 # Check for libraries that X11R6 Xt/Xaw programs need. 10148 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS" 10149 ac_save_LDFLAGS=$LDFLAGS
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10150 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10151 # 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 10152 # 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. 10153 # 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 10154 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable. 10155 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10156 # John Interrante, Karl Berry
10157 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10158echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5 10159if 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 10160 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else 10161else
6735 ac_save_LIBS="$LIBS" 10162 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10163LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737cat > conftest.$ac_ext <<EOF 10164cat >conftest.$ac_ext <<_ACEOF
6738#line 6739 "configure" 10165/* confdefs.h. */
6739#include "confdefs.h" 10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h. */
10170
6740/* Override any gcc2 internal prototype to avoid an error. */ 10171/* Override any gcc2 internal prototype to avoid an error. */
10172#ifdef __cplusplus
10173extern "C"
10174#endif
6741/* We use char because int might match the return type of a gcc2 10175/* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */ 10176 builtin and then its argument prototype would still apply. */
6743char IceConnectionNumber(); 10177char IceConnectionNumber ();
6744 10178int
6745int main() { 10179main ()
10180{
6746IceConnectionNumber() 10181IceConnectionNumber ();
10182 ;
6747; return 0; } 10183 return 0;
6748EOF 10184}
6749if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10185_ACEOF
10186rm -f conftest.$ac_objext conftest$ac_exeext
10187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -rf conftest* 10191 rm -f conftest.er1
6751 eval "ac_cv_lib_$ac_lib_var=yes" 10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_lib_ICE_IceConnectionNumber=yes
6752else 10208else
6753 echo "configure: failed program was:" >&5 10209 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5 10210sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -rf conftest* 10211
6756 eval "ac_cv_lib_$ac_lib_var=no" 10212ac_cv_lib_ICE_IceConnectionNumber=no
6757fi 10213fi
6758rm -f conftest* 10214rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
6759LIBS="$ac_save_LIBS" 10216LIBS=$ac_check_lib_save_LIBS
6760
6761fi 10217fi
6762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10218echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6763 echo "$ac_t""yes" 1>&6 10219echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10220if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10221 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6765else
6766 echo "$ac_t""no" 1>&6
6767fi 10222fi
6768 10223
6769 LDFLAGS="$ac_save_LDFLAGS" 10224 LDFLAGS=$ac_save_LDFLAGS
6770 10225
6771fi 10226fi
6772 10227
6773 10228
6774 10229
6775if test x$support_xpm = xyes; then 10230if test x$support_xpm = xyes; then
6776 10231
6777 10232
6778 10233
6779# Initialize some more variables set by options. 10234# Initialize some more variables set by options.
6780# The variables have the same names as the options, with 10235# The variables have the same names as the options, with
6781# dashes changed to underlines. 10236# dashes changed to underlines.
6782 10237
6783# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10238# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6784# paths, otherwise set no_xpm=yes. 10239# paths, otherwise set no_xpm=yes.
6785# Uses ac_ vars as temps to allow command line to override cache and checks. 10240# Uses ac_ vars as temps to allow command line to override cache and checks.
10241echo "$as_me:$LINENO: checking for libXpm" >&5
6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10242echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6787echo "configure:6788: checking for libXpm" >&5 10243
6788 10244
6789# Check whether --with-xpm_includes or --without-xpm_includes was given. 10245# Check whether --with-xpm_includes or --without-xpm_includes was given.
6790if test "${with_xpm_includes+set}" = set; then 10246if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes" 10247 withval="$with_xpm_includes"
6792 xpm_includes="$withval" 10248 xpm_includes="$withval"
6793else 10249else
6794 xpm_includes=NO 10250 xpm_includes=NO
6795fi 10251fi;
6796 10252
6797# Check whether --with-xpm_library or --without-xpm_library was given. 10253# Check whether --with-xpm_library or --without-xpm_library was given.
6798if test "${with_xpm_library+set}" = set; then 10254if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library" 10255 withval="$with_xpm_library"
6800 xpm_libraries="$withval" 10256 xpm_libraries="$withval"
6801else 10257else
6802 xpm_libraries=NO 10258 xpm_libraries=NO
6803fi 10259fi;
6804
6805 10260
6806# --without-xpm overrides everything else, but does not touch the cache. 10261# --without-xpm overrides everything else, but does not touch the cache.
10262
6807# Check whether --with-xpm or --without-xpm was given. 10263# Check whether --with-xpm or --without-xpm was given.
6808if test "${with_xpm+set}" = set; then 10264if test "${with_xpm+set}" = set; then
6809 withval="$with_xpm" 10265 withval="$with_xpm"
6810 : 10266
6811fi 10267fi;
6812
6813if test "$with_xpm" = no; then 10268if test "$with_xpm" = no; then
6814 have_xpm=disabled 10269 have_xpm=disabled
6815else 10270else
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10271 if test "${ac_cv_have_xpm+set}" = set; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 10272 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else 10273else
6819 10274
6820 vt_xpm_include_X11=no 10275 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then 10276 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes 10277 vt_xpm_includes=$xpm_includes
6823 else 10278 else
6824 vt_xpm_includes=NO 10279 vt_xpm_includes=NO
6834 10289
6835ac_save_CPPFLAGS="$CPPFLAGS" 10290ac_save_CPPFLAGS="$CPPFLAGS"
6836CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10291CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6837 10292
6838 # First, try using that file with no special directory specified. 10293 # First, try using that file with no special directory specified.
6839cat > conftest.$ac_ext <<EOF 10294cat >conftest.$ac_ext <<_ACEOF
6840#line 6841 "configure" 10295/* confdefs.h. */
6841#include "confdefs.h" 10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
6842#include <X11/xpm.h> 10300#include <X11/xpm.h>
6843EOF 10301_ACEOF
6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10302if { (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; } 10303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10304 ac_status=$?
10305 grep -v '^ *+' conftest.er1 >conftest.err
10306 rm -f conftest.er1
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } >/dev/null; then
10310 if test -s conftest.err; then
10311 ac_cpp_err=$ac_cxx_preproc_warn_flag
10312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10313 else
10314 ac_cpp_err=
10315 fi
10316else
10317 ac_cpp_err=yes
10318fi
6847if test -z "$ac_err"; then 10319if test -z "$ac_cpp_err"; then
6848 rm -rf conftest*
6849 # We can compile using X headers with no special include directory. 10320 # We can compile using X headers with no special include directory.
6850vt_xpm_includes= 10321vt_xpm_includes=
6851vt_xpm_include_X11=yes 10322vt_xpm_include_X11=yes
6852else 10323else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5 10324 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5 10325sed 's/^/| /' conftest.$ac_ext >&5
6856 rm -rf conftest* 10326
6857 CPPFLAGS="$ac_save_CPPFLAGS" 10327 CPPFLAGS="$ac_save_CPPFLAGS"
6858# Look for the header file in a standard set of common directories. 10328# Look for the header file in a standard set of common directories.
6859 for ac_dir in \ 10329 for ac_dir in \
6860 /usr/X11/include \ 10330 /usr/X11/include \
6861 /usr/X11R6/include \ 10331 /usr/X11R6/include \
6902 break 10372 break
6903 fi 10373 fi
6904 fi 10374 fi
6905 done 10375 done
6906fi 10376fi
6907rm -f conftest* 10377rm -f conftest.err conftest.$ac_ext
6908fi 10378fi
6909 10379
6910if test "$vt_xpm_libraries" = NO; then 10380if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries. 10381 # Check for the libraries.
6912 10382
6913 # See if we find them without any special options. 10383 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently. 10384 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS" 10385 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10386 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917cat > conftest.$ac_ext <<EOF 10387cat >conftest.$ac_ext <<_ACEOF
6918#line 6919 "configure" 10388/* confdefs.h. */
6919#include "confdefs.h" 10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
6920 10393
6921int main() { 10394int
10395main ()
10396{
6922XpmReadFileToPixmap() 10397XpmReadFileToPixmap()
10398 ;
6923; return 0; } 10399 return 0;
6924EOF 10400}
6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>conftest.er1
10405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -rf conftest* 10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest$ac_exeext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
6927 LIBS="$ac_save_LIBS" 10423 LIBS="$ac_save_LIBS"
6928# We can link libXpm with no special library path. 10424# We can link libXpm with no special library path.
6929vt_xpm_libraries= 10425vt_xpm_libraries=
6930else 10426else
6931 echo "configure: failed program was:" >&5 10427 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 10428sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -rf conftest* 10429
6934 LIBS="$ac_save_LIBS" 10430LIBS="$ac_save_LIBS"
6935# First see if replacing the include by lib works. 10431# First see if replacing the include by lib works.
6936for ac_dir in \ 10432for ac_dir in \
6937 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10433 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6938 /usr/X11/lib \ 10434 /usr/X11/lib \
6939 /usr/X11R6/lib \ 10435 /usr/X11R6/lib \
6976 break 2 10472 break 2
6977 fi 10473 fi
6978 done 10474 done
6979done 10475done
6980fi 10476fi
6981rm -f conftest* 10477rm -f conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
6982fi 10479fi
6983 10480
6984 10481
6985 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10482 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6986 ac_cv_have_xpm="have_xpm=no" 10483 ac_cv_have_xpm="have_xpm=no"
6992fi 10489fi
6993 eval "$ac_cv_have_xpm" 10490 eval "$ac_cv_have_xpm"
6994fi 10491fi
6995 10492
6996if test "$have_xpm" != yes; then 10493if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6 10494 echo "$as_me:$LINENO: result: $have_xpm" >&5
10495echo "${ECHO_T}$have_xpm" >&6
6998 no_xpm=yes 10496 no_xpm=yes
6999else 10497else
7000 if test "$xpm_includes" != NO; then 10498 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then 10499 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then 10500 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes 10501 vt_xpm_include_X11=yes
7004 fi 10502 fi
7005 else 10503 else
7006 vt_xpm_include_X11=no 10504 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then 10505 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF 10506 cat >conftest.$ac_ext <<_ACEOF
7009#line 7010 "configure" 10507/* confdefs.h. */
7010#include "confdefs.h" 10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
7011#include <X11/xpm.h> 10512#include <X11/xpm.h>
7012EOF 10513_ACEOF
7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10514if { (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; } 10515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } >/dev/null; then
10522 if test -s conftest.err; then
10523 ac_cpp_err=$ac_cxx_preproc_warn_flag
10524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10525 else
10526 ac_cpp_err=
10527 fi
10528else
10529 ac_cpp_err=yes
10530fi
7016if test -z "$ac_err"; then 10531if test -z "$ac_cpp_err"; then
7017 rm -rf conftest*
7018 vt_xpm_include_X11=yes 10532 vt_xpm_include_X11=yes
7019else 10533else
7020 echo "$ac_err" >&5
7021 echo "configure: failed program was:" >&5 10534 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5 10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537
7023fi 10538fi
7024rm -f conftest* 10539rm -f conftest.err conftest.$ac_ext
7025 else 10540 else
7026 if test -r "$xpm_includes/X11/xpm.h"; then 10541 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes 10542 vt_xpm_include_X11=yes
7028 fi 10543 fi
7029 fi 10544 fi
7036 # Update the cache value to reflect the command line values. 10551 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \ 10552 ac_cv_have_xpm="have_xpm=yes \
7038 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10553 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7039 vt_xpm_include_X11=$vt_xpm_include_X11" 10554 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 eval "$ac_cv_have_xpm" 10555 eval "$ac_cv_have_xpm"
10556 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 10557echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7042 if test -n "$vt_xpm_includes"; then 10558 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10559 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7044 fi 10560 fi
7045 if test -n "$vt_xpm_includes"; then 10561 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes" 10562 XPM_CFLAGS="-I$vt_xpm_includes"
7048 XPM_LIBS="-lXpm" 10564 XPM_LIBS="-lXpm"
7049 if test -n "$vt_xpm_libraries"; then 10565 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10566 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7051 fi 10567 fi
7052 if test "x$vt_xpm_include_X11" = xyes; then 10568 if test "x$vt_xpm_include_X11" = xyes; then
10569
7053 cat >> confdefs.h <<\EOF 10570cat >>confdefs.h <<\_ACEOF
7054#define XPM_INC_X11 1 10571#define XPM_INC_X11 1
7055EOF 10572_ACEOF
7056 10573
7057 fi 10574 fi
7058fi 10575fi
7059 10576
7060 10577
7064 if test x$no_xpm = xyes; then 10581 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification 10582 support_xpm=needsmanualspecification
7066 fi 10583 fi
7067fi 10584fi
7068 10585
10586echo "$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 10587echo $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 10588if test "${ac_cv_header_sys_wait_h+set}" = set; then
7072 echo $ac_n "(cached) $ac_c" 1>&6 10589 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else 10590else
7074 cat > conftest.$ac_ext <<EOF 10591 cat >conftest.$ac_ext <<_ACEOF
7075#line 7076 "configure" 10592/* confdefs.h. */
7076#include "confdefs.h" 10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */
7077#include <sys/types.h> 10597#include <sys/types.h>
7078#include <sys/wait.h> 10598#include <sys/wait.h>
7079#ifndef WEXITSTATUS 10599#ifndef WEXITSTATUS
7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10600# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7081#endif 10601#endif
7082#ifndef WIFEXITED 10602#ifndef WIFEXITED
7083#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10603# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7084#endif 10604#endif
7085int main() { 10605
10606int
10607main ()
10608{
7086int s; 10609 int s;
7087wait (&s); 10610 wait (&s);
7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10612 ;
7089; return 0; } 10613 return 0;
7090EOF 10614}
7091if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -rf conftest* 10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest.$ac_objext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
7093 ac_cv_header_sys_wait_h=yes 10637 ac_cv_header_sys_wait_h=yes
7094else 10638else
7095 echo "configure: failed program was:" >&5 10639 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 10640sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -rf conftest* 10641
7098 ac_cv_header_sys_wait_h=no 10642ac_cv_header_sys_wait_h=no
7099fi 10643fi
7100rm -f conftest* 10644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi 10645fi
7102 10646echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7103echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10647echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7104if test $ac_cv_header_sys_wait_h = yes; then 10648if test $ac_cv_header_sys_wait_h = yes; then
10649
7105 cat >> confdefs.h <<\EOF 10650cat >>confdefs.h <<\_ACEOF
7106#define HAVE_SYS_WAIT_H 1 10651#define HAVE_SYS_WAIT_H 1
7107EOF 10652_ACEOF
7108 10653
7109fi 10654fi
7110 10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
7111for ac_hdr in \ 10675for ac_header in \
7112 assert.h \ 10676 assert.h \
7113 fcntl.h \ 10677 fcntl.h \
7114 grp.h \ 10678 grp.h \
7115 libc.h \ 10679 libc.h \
7116 lastlog.h \ 10680 lastlog.h \
7128 utmp.h \ 10692 utmp.h \
7129 utmpx.h \ 10693 utmpx.h \
7130 stdint.h \ 10694 stdint.h \
7131 10695
7132do 10696do
7133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135echo "configure:7136: checking for $ac_hdr" >&5 10701if 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 10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138else 10706else
10707 # Is the header compilable?
10708echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat > conftest.$ac_ext <<EOF 10710cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 10711/* confdefs.h. */
7141#include "confdefs.h" 10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
7142#include <$ac_hdr> 10717#include <$ac_header>
7143EOF 10718_ACEOF
7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10719rm -f conftest.$ac_objext
7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10721 (eval $ac_compile) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
10745ac_header_compiler=no
10746fi
10747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749echo "${ECHO_T}$ac_header_compiler" >&6
10750
10751# Is the header present?
10752echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#include <$ac_header>
10761_ACEOF
10762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_cxx_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10773 else
10774 ac_cpp_err=
10775 fi
10776else
10777 ac_cpp_err=yes
10778fi
7147if test -z "$ac_err"; then 10779if test -z "$ac_cpp_err"; then
7148 rm -rf conftest* 10780 ac_header_preproc=yes
7149 eval "ac_cv_header_$ac_safe=yes"
7150else 10781else
7151 echo "$ac_err" >&5
7152 echo "configure: failed program was:" >&5 10782 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 10783sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -rf conftest* 10784
7155 eval "ac_cv_header_$ac_safe=no" 10785 ac_header_preproc=no
7156fi 10786fi
7157rm -f conftest* 10787rm -f conftest.err conftest.$ac_ext
10788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789echo "${ECHO_T}$ac_header_preproc" >&6
10790
10791# So? What about this header?
10792case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10793 yes:no: )
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10799 ;;
10800 no:yes:* )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813 (
10814 cat <<\_ASBOX
10815## ------------------------------------------ ##
10816## Report this to the AC_PACKAGE_NAME lists. ##
10817## ------------------------------------------ ##
10818_ASBOX
10819 ) |
10820 sed "s/^/$as_me: WARNING: /" >&2
10821 ;;
10822esac
10823echo "$as_me:$LINENO: checking for $ac_header" >&5
10824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 eval "$as_ac_Header=\$ac_header_preproc"
7158fi 10829fi
7159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "$ac_t""yes" 1>&6 10831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10832
10833fi
10834if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >> confdefs.h <<EOF 10835 cat >>confdefs.h <<_ACEOF
7163#define $ac_tr_hdr 1 10836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164EOF 10837_ACEOF
7165 10838
7166else
7167 echo "$ac_t""no" 1>&6
7168fi 10839fi
10840
7169done 10841done
7170 10842
7171 10843
10844echo "$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 10845echo $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 10846if test "${ac_cv_header_time+set}" = set; then
7175 echo $ac_n "(cached) $ac_c" 1>&6 10847 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else 10848else
7177 cat > conftest.$ac_ext <<EOF 10849 cat >conftest.$ac_ext <<_ACEOF
7178#line 7179 "configure" 10850/* confdefs.h. */
7179#include "confdefs.h" 10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
7180#include <sys/types.h> 10855#include <sys/types.h>
7181#include <sys/time.h> 10856#include <sys/time.h>
7182#include <time.h> 10857#include <time.h>
7183int main() { 10858
7184struct tm *tp; 10859int
10860main ()
10861{
10862if ((struct tm *) 0)
10863return 0;
10864 ;
7185; return 0; } 10865 return 0;
7186EOF 10866}
7187if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10867_ACEOF
10868rm -f conftest.$ac_objext
10869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -rf conftest* 10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
7189 ac_cv_header_time=yes 10889 ac_cv_header_time=yes
7190else 10890else
7191 echo "configure: failed program was:" >&5 10891 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 10892sed 's/^/| /' conftest.$ac_ext >&5
7193 rm -rf conftest* 10893
7194 ac_cv_header_time=no 10894ac_cv_header_time=no
7195fi 10895fi
7196rm -f conftest* 10896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi 10897fi
7198 10898echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7199echo "$ac_t""$ac_cv_header_time" 1>&6 10899echo "${ECHO_T}$ac_cv_header_time" >&6
7200if test $ac_cv_header_time = yes; then 10900if test $ac_cv_header_time = yes; then
10901
7201 cat >> confdefs.h <<\EOF 10902cat >>confdefs.h <<\_ACEOF
7202#define TIME_WITH_SYS_TIME 1 10903#define TIME_WITH_SYS_TIME 1
7203EOF 10904_ACEOF
7204 10905
7205fi 10906fi
7206 10907
7207 10908
10909echo "$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 10910echo $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 10911if test "${rxvt_cv_header_sysioctl+set}" = set; then
7211 echo $ac_n "(cached) $ac_c" 1>&6 10912 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else 10913else
7213 cat > conftest.$ac_ext <<EOF 10914 cat >conftest.$ac_ext <<_ACEOF
7214#line 7215 "configure" 10915/* confdefs.h. */
7215#include "confdefs.h" 10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
7216#include <stdio.h> 10920#include <stdio.h>
7217#include <sys/ioctl.h> 10921#include <sys/ioctl.h>
7218#ifdef HAVE_TERMIOS_H 10922#ifdef HAVE_TERMIOS_H
7219#include <termios.h> 10923#include <termios.h>
7220#endif 10924#endif
7221int main() { 10925int
10926main ()
10927{
7222int a = ECHO; 10928int a = ECHO;
10929 ;
7223; return 0; } 10930 return 0;
7224EOF 10931}
7225if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935 (eval $ac_compile) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -rf conftest* 10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
7227 rxvt_cv_header_sysioctl=yes 10954 rxvt_cv_header_sysioctl=yes
7228else 10955else
7229 echo "configure: failed program was:" >&5 10956 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 10957sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest* 10958
7232 rxvt_cv_header_sysioctl=no 10959rxvt_cv_header_sysioctl=no
7233fi 10960fi
7234rm -f conftest* 10961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi 10962fi
7236 10963echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7237echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10964echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7238 10965
7239if test -n "$GCC"; then 10966if test -n "$GCC"; then
7240 LDARG="-Wl," 10967 LDARG="-Wl,"
7241else 10968else
7242 LDARG="" 10969 LDARG=""
7245 10972
7246ac_save_CFLAGS=$CFLAGS 10973ac_save_CFLAGS=$CFLAGS
7247ac_save_LIBS=$LIBS 10974ac_save_LIBS=$LIBS
7248CFLAGS="$CFLAGS $X_CFLAGS" 10975CFLAGS="$CFLAGS $X_CFLAGS"
7249LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10976LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10977echo "$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 10978echo $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 10979if test "${rxvt_cv_rpath+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 10980 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 10981else
7255 if test "$cross_compiling" = yes; then 10982 if test "$cross_compiling" = yes; then
10983 { 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 10984echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7257else 10985else
7258 cat > conftest.$ac_ext <<EOF 10986 cat >conftest.$ac_ext <<_ACEOF
7259#line 7260 "configure" 10987/* confdefs.h. */
7260#include "confdefs.h" 10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h. */
7261 10992
7262main() 10993main()
7263{ 10994{
7264 exit(0); 10995 exit(0);
7265 (void) XOpenDisplay("foobar"); 10996 (void) XOpenDisplay("foobar");
7266} 10997}
7267EOF 10998_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 10999rm -f conftest$ac_exeext
7269then 11000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
7270 rxvt_cv_rpath=yes 11010 rxvt_cv_rpath=yes
7271else 11011else
11012 echo "$as_me: program exited with status $ac_status" >&5
7272 echo "configure: failed program was:" >&5 11013echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 11014sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -fr conftest* 11015
11016( exit $ac_status )
7275 rxvt_cv_rpath=no 11017rxvt_cv_rpath=no
7276fi 11018fi
7277rm -fr conftest* 11019rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278fi 11020fi
7279
7280fi 11021fi
7281 11022echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7282echo "$ac_t""$rxvt_cv_rpath" 1>&6 11023echo "${ECHO_T}$rxvt_cv_rpath" >&6
7283if test x$rxvt_cv_rpath != xyes; then 11024if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11025 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"` 11026 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11027 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 11028echo $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 11029if test "${rxvt_cv_R+set}" = set; then
7289 echo $ac_n "(cached) $ac_c" 1>&6 11030 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else 11031else
7291 if test "$cross_compiling" = yes; then 11032 if test "$cross_compiling" = yes; then
7292 rxvt_cv_R=no 11033 rxvt_cv_R=no
7293else 11034else
7294 cat > conftest.$ac_ext <<EOF 11035 cat >conftest.$ac_ext <<_ACEOF
7295#line 7296 "configure" 11036/* confdefs.h. */
7296#include "confdefs.h" 11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
7297 11041
7298main() 11042main()
7299{ 11043{
7300 exit(0); 11044 exit(0);
7301 (void) XOpenDisplay("foobar"); 11045 (void) XOpenDisplay("foobar");
7302} 11046}
7303EOF 11047_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 11048rm -f conftest$ac_exeext
7305then 11049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
7306 rxvt_cv_R=yes 11059 rxvt_cv_R=yes
7307else 11060else
11061 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "configure: failed program was:" >&5 11062echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5 11063sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -fr conftest* 11064
11065( exit $ac_status )
7311 rxvt_cv_R=no 11066rxvt_cv_R=no
7312fi 11067fi
7313rm -fr conftest* 11068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7314fi 11069fi
7315
7316fi 11070fi
7317 11071echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7318echo "$ac_t""$rxvt_cv_R" 1>&6 11072echo "${ECHO_T}$rxvt_cv_R" >&6
7319 if test x$rxvt_cv_R != xyes; then 11073 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11074 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7321 fi 11075 fi
7322fi 11076fi
7323 11077
11078echo "$as_me:$LINENO: checking for XPointer" >&5
7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11079echo $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 11080if test "${rxvt_cv_xpointer+set}" = set; then
7327 echo $ac_n "(cached) $ac_c" 1>&6 11081 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else 11082else
7329 cat > conftest.$ac_ext <<EOF 11083 cat >conftest.$ac_ext <<_ACEOF
7330#line 7331 "configure" 11084/* confdefs.h. */
7331#include "confdefs.h" 11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
7332#include <X11/Xlib.h> 11089#include <X11/Xlib.h>
7333int main() { 11090int
11091main ()
11092{
7334XPointer dummy; 11093XPointer dummy;
11094 ;
7335; return 0; } 11095 return 0;
7336EOF 11096}
7337if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11097_ACEOF
11098rm -f conftest.$ac_objext
11099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -rf conftest* 11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
7339 rxvt_cv_xpointer=yes 11119 rxvt_cv_xpointer=yes
7340else 11120else
7341 echo "configure: failed program was:" >&5 11121 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5 11122sed 's/^/| /' conftest.$ac_ext >&5
7343 rm -rf conftest* 11123
7344 rxvt_cv_xpointer=no 11124rxvt_cv_xpointer=no
7345fi 11125fi
7346rm -f conftest* 11126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi 11127fi
7348 11128echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7349echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11129echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7350if test x$rxvt_cv_xpointer = xyes; then 11130if test x$rxvt_cv_xpointer = xyes; then
11131
7351 cat >> confdefs.h <<\EOF 11132cat >>confdefs.h <<\_ACEOF
7352#define HAVE_XPOINTER 1 11133#define HAVE_XPOINTER 1
7353EOF 11134_ACEOF
7354 11135
7355fi 11136fi
7356LIBS=$ac_save_LIBS 11137LIBS=$ac_save_LIBS
7357CFLAGS=$ac_save_CFLAGS 11138CFLAGS=$ac_save_CFLAGS
7358 11139
7359 11140
7360echo $ac_n "checking for working const""... $ac_c" 1>&6 11141echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361echo "configure:7362: checking for working const" >&5 11142echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11143if test "${ac_cv_c_const+set}" = set; then
7363 echo $ac_n "(cached) $ac_c" 1>&6 11144 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else 11145else
7365 cat > conftest.$ac_ext <<EOF 11146 cat >conftest.$ac_ext <<_ACEOF
7366#line 7367 "configure" 11147/* confdefs.h. */
7367#include "confdefs.h" 11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
7368 11152
7369int main() { 11153int
7370 11154main ()
11155{
11156/* FIXME: Include the comments suggested by Paul. */
11157#ifndef __cplusplus
7371/* Ultrix mips cc rejects this. */ 11158 /* Ultrix mips cc rejects this. */
7372typedef int charset[2]; const charset x; 11159 typedef int charset[2];
11160 const charset x;
7373/* SunOS 4.1.1 cc rejects this. */ 11161 /* SunOS 4.1.1 cc rejects this. */
7374char const *const *ccp; 11162 char const *const *ccp;
7375char **p; 11163 char **p;
7376/* NEC SVR4.0.2 mips cc rejects this. */ 11164 /* NEC SVR4.0.2 mips cc rejects this. */
7377struct point {int x, y;}; 11165 struct point {int x, y;};
7378static struct point const zero = {0,0}; 11166 static struct point const zero = {0,0};
7379/* AIX XL C 1.02.0.0 rejects this. 11167 /* 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 11168 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 */ 11169 an arm of an if-expression whose if-part is not a constant
11170 expression */
7382const char *g = "string"; 11171 const char *g = "string";
7383ccp = &g + (g ? g-g : 0); 11172 ccp = &g + (g ? g-g : 0);
7384/* HPUX 7.0 cc rejects these. */ 11173 /* HPUX 7.0 cc rejects these. */
7385++ccp; 11174 ++ccp;
7386p = (char**) ccp; 11175 p = (char**) ccp;
7387ccp = (char const *const *) p; 11176 ccp = (char const *const *) p;
7388{ /* SCO 3.2v4 cc rejects this. */ 11177 { /* SCO 3.2v4 cc rejects this. */
7389 char *t; 11178 char *t;
7390 char const *s = 0 ? (char *) 0 : (char const *) 0; 11179 char const *s = 0 ? (char *) 0 : (char const *) 0;
7391 11180
7392 *t++ = 0; 11181 *t++ = 0;
11182 }
11183 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11184 int x[] = {25, 17};
11185 const int *foo = &x[0];
11186 ++foo;
11187 }
11188 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11189 typedef const int *iptr;
11190 iptr p = 0;
11191 ++p;
11192 }
11193 { /* AIX XL C 1.02.0.0 rejects this saying
11194 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11195 struct s { int j; const int *ap[3]; };
11196 struct s *b; b->j = 5;
11197 }
11198 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11199 const int foo = 10;
11200 }
11201#endif
11202
11203 ;
11204 return 0;
7393} 11205}
7394{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11206_ACEOF
7395 int x[] = {25, 17}; 11207rm -f conftest.$ac_objext
7396 const int *foo = &x[0]; 11208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 ++foo; 11209 (eval $ac_compile) 2>conftest.er1
7398} 11210 ac_status=$?
7399{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11211 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* 11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
7417 ac_cv_c_const=yes 11228 ac_cv_c_const=yes
7418else 11229else
7419 echo "configure: failed program was:" >&5 11230 echo "$as_me: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 11231sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -rf conftest* 11232
7422 ac_cv_c_const=no 11233ac_cv_c_const=no
7423fi 11234fi
7424rm -f conftest* 11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi 11236fi
7426 11237echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7427echo "$ac_t""$ac_cv_c_const" 1>&6 11238echo "${ECHO_T}$ac_cv_c_const" >&6
7428if test $ac_cv_c_const = no; then 11239if test $ac_cv_c_const = no; then
11240
7429 cat >> confdefs.h <<\EOF 11241cat >>confdefs.h <<\_ACEOF
7430#define const 11242#define const
7431EOF 11243_ACEOF
7432 11244
7433fi 11245fi
7434 11246
11247echo "$as_me:$LINENO: checking for inline" >&5
7435echo $ac_n "checking for inline""... $ac_c" 1>&6 11248echo $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 11249if test "${ac_cv_c_inline+set}" = set; then
7438 echo $ac_n "(cached) $ac_c" 1>&6 11250 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 11251else
7440 ac_cv_c_inline=no 11252 ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do 11253for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF 11254 cat >conftest.$ac_ext <<_ACEOF
7443#line 7444 "configure" 11255/* confdefs.h. */
7444#include "confdefs.h" 11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260#ifndef __cplusplus
11261typedef int foo_t;
11262static $ac_kw foo_t static_foo () {return 0; }
11263$ac_kw foo_t foo () {return 0; }
11264#endif
7445 11265
7446int main() { 11266_ACEOF
7447} $ac_kw foo() { 11267rm -f conftest.$ac_objext
7448; return 0; } 11268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449EOF 11269 (eval $ac_compile) 2>conftest.er1
7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -rf conftest* 11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
7452 ac_cv_c_inline=$ac_kw; break 11288 ac_cv_c_inline=$ac_kw; break
7453else 11289else
7454 echo "configure: failed program was:" >&5 11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293fi
11294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295done
11296
11297fi
11298echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11299echo "${ECHO_T}$ac_cv_c_inline" >&6
11300
11301
11302case $ac_cv_c_inline in
11303 inline | yes) ;;
11304 *)
11305 case $ac_cv_c_inline in
11306 no) ac_val=;;
11307 *) ac_val=$ac_cv_c_inline;;
11308 esac
11309 cat >>confdefs.h <<_ACEOF
11310#ifndef __cplusplus
11311#define inline $ac_val
11312#endif
11313_ACEOF
11314 ;;
11315esac
11316
11317
11318
11319echo "$as_me:$LINENO: checking for mode_t" >&5
11320echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11321if test "${ac_cv_type_mode_t+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 cat >conftest.$ac_ext <<_ACEOF
11325/* confdefs.h. */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
11330$ac_includes_default
11331int
11332main ()
11333{
11334if ((mode_t *) 0)
11335 return 0;
11336if (sizeof (mode_t))
11337 return 0;
11338 ;
11339 return 0;
11340}
11341_ACEOF
11342rm -f conftest.$ac_objext
11343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
7455 cat conftest.$ac_ext >&5 11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest.$ac_objext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_type_mode_t=yes
11364else
11365 echo "$as_me: failed program was:" >&5
11366sed 's/^/| /' conftest.$ac_ext >&5
11367
11368ac_cv_type_mode_t=no
11369fi
11370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11371fi
11372echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11373echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11374if test $ac_cv_type_mode_t = yes; then
11375 :
11376else
11377
11378cat >>confdefs.h <<_ACEOF
11379#define mode_t int
11380_ACEOF
11381
11382fi
11383
11384echo "$as_me:$LINENO: checking for pid_t" >&5
11385echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11386if test "${ac_cv_type_pid_t+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_includes_default
11396int
11397main ()
11398{
11399if ((pid_t *) 0)
11400 return 0;
11401if (sizeof (pid_t))
11402 return 0;
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407rm -f conftest.$ac_objext
11408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409 (eval $ac_compile) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_type_pid_t=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433ac_cv_type_pid_t=no
11434fi
11435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436fi
11437echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11438echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11439if test $ac_cv_type_pid_t = yes; then
11440 :
11441else
11442
11443cat >>confdefs.h <<_ACEOF
11444#define pid_t int
11445_ACEOF
11446
11447fi
11448
11449echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11450echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11451if test "${ac_cv_type_uid_t+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460#include <sys/types.h>
11461
11462_ACEOF
11463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11464 $EGREP "uid_t" >/dev/null 2>&1; then
11465 ac_cv_type_uid_t=yes
11466else
11467 ac_cv_type_uid_t=no
7456fi 11468fi
7457rm -f conftest* 11469rm -f conftest*
11470
11471fi
11472echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11473echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11474if test $ac_cv_type_uid_t = no; then
11475
11476cat >>confdefs.h <<\_ACEOF
11477#define uid_t int
11478_ACEOF
11479
11480
11481cat >>confdefs.h <<\_ACEOF
11482#define gid_t int
11483_ACEOF
11484
11485fi
11486
11487
11488
11489echo "$as_me:$LINENO: checking for char" >&5
11490echo $ECHO_N "checking for char... $ECHO_C" >&6
11491if test "${ac_cv_type_char+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500$ac_includes_default
11501int
11502main ()
11503{
11504if ((char *) 0)
11505 return 0;
11506if (sizeof (char))
11507 return 0;
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext
11513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_cv_type_char=yes
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538ac_cv_type_char=no
11539fi
11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541fi
11542echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11543echo "${ECHO_T}$ac_cv_type_char" >&6
11544
11545echo "$as_me:$LINENO: checking size of char" >&5
11546echo $ECHO_N "checking size of char... $ECHO_C" >&6
11547if test "${ac_cv_sizeof_char+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550 if test "$ac_cv_type_char" = yes; then
11551 # The cast to unsigned long works around a bug in the HP C Compiler
11552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11554 # This bug is HP SR number 8606223364.
11555 if test "$cross_compiling" = yes; then
11556 # Depending upon the size, compute the lo and hi bounds.
11557cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563$ac_includes_default
11564int
11565main ()
11566{
11567static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11568test_array [0] = 0
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_lo=0 ac_mid=0
11596 while :; do
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603$ac_includes_default
11604int
11605main ()
11606{
11607static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11608test_array [0] = 0
11609
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext
11615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_hi=$ac_mid; break
11636else
11637 echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
11640ac_lo=`expr $ac_mid + 1`
11641 if test $ac_lo -le $ac_mid; then
11642 ac_lo= ac_hi=
11643 break
11644 fi
11645 ac_mid=`expr 2 '*' $ac_mid + 1`
11646fi
11647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 done
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
11659$ac_includes_default
11660int
11661main ()
11662{
11663static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11664test_array [0] = 0
11665
11666 ;
11667 return 0;
11668}
11669_ACEOF
11670rm -f conftest.$ac_objext
11671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_hi=-1 ac_mid=-1
11692 while :; do
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699$ac_includes_default
11700int
11701main ()
11702{
11703static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11704test_array [0] = 0
11705
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_lo=$ac_mid; break
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736ac_hi=`expr '(' $ac_mid ')' - 1`
11737 if test $ac_mid -le $ac_hi; then
11738 ac_lo= ac_hi=
11739 break
11740 fi
11741 ac_mid=`expr 2 '*' $ac_mid`
11742fi
11743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 done
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_lo= ac_hi=
11750fi
11751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752fi
11753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11754# Binary search between lo and hi bounds.
11755while test "x$ac_lo" != "x$ac_hi"; do
11756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763$ac_includes_default
11764int
11765main ()
11766{
11767static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11768test_array [0] = 0
11769
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext
11775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_hi=$ac_mid
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800ac_lo=`expr '(' $ac_mid ')' + 1`
11801fi
11802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458done 11803done
7459 11804case $ac_lo in
7460fi 11805?*) ac_cv_sizeof_char=$ac_lo;;
7461 11806'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7462echo "$ac_t""$ac_cv_c_inline" 1>&6 11807See \`config.log' for more details." >&5
7463case "$ac_cv_c_inline" in 11808echo "$as_me: error: cannot compute sizeof (char), 77
7464 inline | yes) ;; 11809See \`config.log' for more details." >&2;}
7465 no) cat >> confdefs.h <<\EOF 11810 { (exit 1); exit 1; }; } ;;
7466#define inline
7467EOF
7468 ;;
7469 *) cat >> confdefs.h <<EOF
7470#define inline $ac_cv_c_inline
7471EOF
7472 ;;
7473esac 11811esac
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 11812else
11813 if test "$cross_compiling" = yes; then
11814 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11815echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11816 { (exit 1); exit 1; }; }
11817else
7482 cat > conftest.$ac_ext <<EOF 11818 cat >conftest.$ac_ext <<_ACEOF
7483#line 7484 "configure" 11819/* confdefs.h. */
7484#include "confdefs.h" 11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
11824$ac_includes_default
11825long longval () { return (long) (sizeof (char)); }
11826unsigned long ulongval () { return (long) (sizeof (char)); }
11827#include <stdio.h>
7485#include <stdlib.h> 11828#include <stdlib.h>
7486#include <stdarg.h> 11829int
7487#include <string.h> 11830main ()
7488#include <float.h> 11831{
7489EOF 11832
7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11833 FILE *f = fopen ("conftest.val", "w");
7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11834 if (! f)
7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11835 exit (1);
7493if test -z "$ac_err"; then 11836 if (((long) (sizeof (char))) < 0)
7494 rm -rf conftest* 11837 {
7495 ac_cv_header_stdc=yes 11838 long i = longval ();
11839 if (i != ((long) (sizeof (char))))
11840 exit (1);
11841 fprintf (f, "%ld\n", i);
11842 }
7496else 11843 else
7497 echo "$ac_err" >&5 11844 {
11845 unsigned long i = ulongval ();
11846 if (i != ((long) (sizeof (char))))
11847 exit (1);
11848 fprintf (f, "%lu\n", i);
11849 }
11850 exit (ferror (f) || fclose (f) != 0);
11851
11852 ;
11853 return 0;
11854}
11855_ACEOF
11856rm -f conftest$ac_exeext
11857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858 (eval $ac_link) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_sizeof_char=`cat conftest.val`
11868else
11869 echo "$as_me: program exited with status $ac_status" >&5
7498 echo "configure: failed program was:" >&5 11870echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5 11871sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -rf conftest* 11872
7501 ac_cv_header_stdc=no 11873( exit $ac_status )
11874{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11875See \`config.log' for more details." >&5
11876echo "$as_me: error: cannot compute sizeof (char), 77
11877See \`config.log' for more details." >&2;}
11878 { (exit 1); exit 1; }; }
7502fi 11879fi
11880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11881fi
11882fi
7503rm -f conftest* 11883rm -f conftest.val
11884else
11885 ac_cv_sizeof_char=0
11886fi
11887fi
11888echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11889echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11890cat >>confdefs.h <<_ACEOF
11891#define SIZEOF_CHAR $ac_cv_sizeof_char
11892_ACEOF
7504 11893
11894
11895echo "$as_me:$LINENO: checking for short" >&5
11896echo $ECHO_N "checking for short... $ECHO_C" >&6
11897if test "${ac_cv_type_short+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906$ac_includes_default
11907int
11908main ()
11909{
11910if ((short *) 0)
11911 return 0;
11912if (sizeof (short))
11913 return 0;
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext
11919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_type_short=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944ac_cv_type_short=no
11945fi
11946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947fi
11948echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11949echo "${ECHO_T}$ac_cv_type_short" >&6
11950
11951echo "$as_me:$LINENO: checking size of short" >&5
11952echo $ECHO_N "checking size of short... $ECHO_C" >&6
11953if test "${ac_cv_sizeof_short+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
7505if test $ac_cv_header_stdc = yes; then 11956 if test "$ac_cv_type_short" = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11957 # The cast to unsigned long works around a bug in the HP C Compiler
11958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11960 # This bug is HP SR number 8606223364.
11961 if test "$cross_compiling" = yes; then
11962 # Depending upon the size, compute the lo and hi bounds.
7507cat > conftest.$ac_ext <<EOF 11963cat >conftest.$ac_ext <<_ACEOF
7508#line 7509 "configure" 11964/* confdefs.h. */
7509#include "confdefs.h" 11965_ACEOF
7510#include <string.h> 11966cat confdefs.h >>conftest.$ac_ext
7511EOF 11967cat >>conftest.$ac_ext <<_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11968/* end confdefs.h. */
7513 egrep "memchr" >/dev/null 2>&1; then 11969$ac_includes_default
7514 : 11970int
7515else 11971main ()
11972{
11973static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11974test_array [0] = 0
11975
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -rf conftest* 11985 rm -f conftest.er1
7517 ac_cv_header_stdc=no 11986 cat conftest.err >&5
7518fi 11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_lo=0 ac_mid=0
12002 while :; do
12003 cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009$ac_includes_default
12010int
12011main ()
12012{
12013static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12014test_array [0] = 0
12015
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext
12021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022 (eval $ac_compile) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
7519rm -f conftest* 12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_hi=$ac_mid; break
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
7520 12045
12046ac_lo=`expr $ac_mid + 1`
12047 if test $ac_lo -le $ac_mid; then
12048 ac_lo= ac_hi=
12049 break
12050 fi
12051 ac_mid=`expr 2 '*' $ac_mid + 1`
7521fi 12052fi
12053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054 done
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
7522 12058
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 12059cat >conftest.$ac_ext <<_ACEOF
7526#line 7527 "configure" 12060/* confdefs.h. */
7527#include "confdefs.h" 12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065$ac_includes_default
12066int
12067main ()
12068{
12069static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12070test_array [0] = 0
12071
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest.$ac_objext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_hi=-1 ac_mid=-1
12098 while :; do
12099 cat >conftest.$ac_ext <<_ACEOF
12100/* confdefs.h. */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h. */
12105$ac_includes_default
12106int
12107main ()
12108{
12109static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12110test_array [0] = 0
12111
12112 ;
12113 return 0;
12114}
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_lo=$ac_mid; break
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142ac_hi=`expr '(' $ac_mid ')' - 1`
12143 if test $ac_mid -le $ac_hi; then
12144 ac_lo= ac_hi=
12145 break
12146 fi
12147 ac_mid=`expr 2 '*' $ac_mid`
12148fi
12149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12150 done
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155ac_lo= ac_hi=
12156fi
12157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158fi
12159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160# Binary search between lo and hi bounds.
12161while test "x$ac_lo" != "x$ac_hi"; do
12162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169$ac_includes_default
12170int
12171main ()
12172{
12173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12174test_array [0] = 0
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_hi=$ac_mid
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206ac_lo=`expr '(' $ac_mid ')' + 1`
12207fi
12208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12209done
12210case $ac_lo in
12211?*) ac_cv_sizeof_short=$ac_lo;;
12212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12213See \`config.log' for more details." >&5
12214echo "$as_me: error: cannot compute sizeof (short), 77
12215See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; } ;;
12217esac
12218else
12219 if test "$cross_compiling" = yes; then
12220 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12221echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12222 { (exit 1); exit 1; }; }
12223else
12224 cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230$ac_includes_default
12231long longval () { return (long) (sizeof (short)); }
12232unsigned long ulongval () { return (long) (sizeof (short)); }
12233#include <stdio.h>
7528#include <stdlib.h> 12234#include <stdlib.h>
7529EOF 12235int
7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12236main ()
7531 egrep "free" >/dev/null 2>&1; then 12237{
7532 : 12238
12239 FILE *f = fopen ("conftest.val", "w");
12240 if (! f)
12241 exit (1);
12242 if (((long) (sizeof (short))) < 0)
12243 {
12244 long i = longval ();
12245 if (i != ((long) (sizeof (short))))
12246 exit (1);
12247 fprintf (f, "%ld\n", i);
12248 }
7533else 12249 else
7534 rm -rf conftest* 12250 {
7535 ac_cv_header_stdc=no 12251 unsigned long i = ulongval ();
12252 if (i != ((long) (sizeof (short))))
12253 exit (1);
12254 fprintf (f, "%lu\n", i);
12255 }
12256 exit (ferror (f) || fclose (f) != 0);
12257
12258 ;
12259 return 0;
12260}
12261_ACEOF
12262rm -f conftest$ac_exeext
12263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_sizeof_short=`cat conftest.val`
12274else
12275 echo "$as_me: program exited with status $ac_status" >&5
12276echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279( exit $ac_status )
12280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12281See \`config.log' for more details." >&5
12282echo "$as_me: error: cannot compute sizeof (short), 77
12283See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }
7536fi 12285fi
12286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12287fi
12288fi
7537rm -f conftest* 12289rm -f conftest.val
7538 12290else
12291 ac_cv_sizeof_short=0
7539fi 12292fi
12293fi
12294echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12295echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12296cat >>confdefs.h <<_ACEOF
12297#define SIZEOF_SHORT $ac_cv_sizeof_short
12298_ACEOF
7540 12299
12300
12301echo "$as_me:$LINENO: checking for int" >&5
12302echo $ECHO_N "checking for int... $ECHO_C" >&6
12303if test "${ac_cv_type_int+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312$ac_includes_default
12313int
12314main ()
12315{
12316if ((int *) 0)
12317 return 0;
12318if (sizeof (int))
12319 return 0;
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext
12325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_type_int=yes
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_type_int=no
12351fi
12352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12355echo "${ECHO_T}$ac_cv_type_int" >&6
12356
12357echo "$as_me:$LINENO: checking size of int" >&5
12358echo $ECHO_N "checking size of int... $ECHO_C" >&6
12359if test "${ac_cv_sizeof_int+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
7541if test $ac_cv_header_stdc = yes; then 12362 if test "$ac_cv_type_int" = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12363 # The cast to unsigned long works around a bug in the HP C Compiler
12364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12366 # This bug is HP SR number 8606223364.
7543if test "$cross_compiling" = yes; then 12367 if test "$cross_compiling" = yes; then
7544 : 12368 # Depending upon the size, compute the lo and hi bounds.
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
12376int
12377main ()
12378{
12379static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12380test_array [0] = 0
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext
12387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_lo=0 ac_mid=0
12408 while :; do
12409 cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h. */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h. */
12415$ac_includes_default
12416int
12417main ()
12418{
12419static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12420test_array [0] = 0
12421
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426rm -f conftest.$ac_objext
12427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest.$ac_objext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_hi=$ac_mid; break
7545else 12448else
12449 echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452ac_lo=`expr $ac_mid + 1`
12453 if test $ac_lo -le $ac_mid; then
12454 ac_lo= ac_hi=
12455 break
12456 fi
12457 ac_mid=`expr 2 '*' $ac_mid + 1`
12458fi
12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 done
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
12472int
12473main ()
12474{
12475static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12476test_array [0] = 0
12477
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_hi=-1 ac_mid=-1
12504 while :; do
12505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511$ac_includes_default
12512int
12513main ()
12514{
12515static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12516test_array [0] = 0
12517
12518 ;
12519 return 0;
12520}
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_lo=$ac_mid; break
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548ac_hi=`expr '(' $ac_mid ')' - 1`
12549 if test $ac_mid -le $ac_hi; then
12550 ac_lo= ac_hi=
12551 break
12552 fi
12553 ac_mid=`expr 2 '*' $ac_mid`
12554fi
12555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12556 done
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561ac_lo= ac_hi=
12562fi
12563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12566# Binary search between lo and hi bounds.
12567while test "x$ac_lo" != "x$ac_hi"; do
12568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7546 cat > conftest.$ac_ext <<EOF 12569 cat >conftest.$ac_ext <<_ACEOF
7547#line 7548 "configure" 12570/* confdefs.h. */
7548#include "confdefs.h" 12571_ACEOF
7549#include <ctype.h> 12572cat confdefs.h >>conftest.$ac_ext
7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12573cat >>conftest.$ac_ext <<_ACEOF
7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12574/* end confdefs.h. */
7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12575$ac_includes_default
7553int main () { int i; for (i = 0; i < 256; i++) 12576int
7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12577main ()
7555exit (0); } 12578{
12579static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12580test_array [0] = 0
7556 12581
7557EOF 12582 ;
7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12583 return 0;
7559then 12584}
7560 : 12585_ACEOF
12586rm -f conftest.$ac_objext
12587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest.$ac_objext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_hi=$ac_mid
7561else 12608else
7562 echo "configure: failed program was:" >&5 12609 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 12610sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -fr conftest*
7565 ac_cv_header_stdc=no
7566fi
7567rm -fr conftest*
7568fi
7569 12611
12612ac_lo=`expr '(' $ac_mid ')' + 1`
7570fi 12613fi
7571fi 12614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 12615done
7573echo "$ac_t""$ac_cv_header_stdc" 1>&6 12616case $ac_lo in
7574if test $ac_cv_header_stdc = yes; then 12617?*) ac_cv_sizeof_int=$ac_lo;;
7575 cat >> confdefs.h <<\EOF 12618'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7576#define STDC_HEADERS 1 12619See \`config.log' for more details." >&5
7577EOF 12620echo "$as_me: error: cannot compute sizeof (int), 77
7578 12621See \`config.log' for more details." >&2;}
7579fi 12622 { (exit 1); exit 1; }; } ;;
7580 12623esac
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 12624else
12625 if test "$cross_compiling" = yes; then
12626 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12627echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12628 { (exit 1); exit 1; }; }
12629else
7586 cat > conftest.$ac_ext <<EOF 12630 cat >conftest.$ac_ext <<_ACEOF
7587#line 7588 "configure" 12631/* confdefs.h. */
7588#include "confdefs.h" 12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636$ac_includes_default
12637long longval () { return (long) (sizeof (int)); }
12638unsigned long ulongval () { return (long) (sizeof (int)); }
7589#include <sys/types.h> 12639#include <stdio.h>
7590#if STDC_HEADERS
7591#include <stdlib.h> 12640#include <stdlib.h>
7592#include <stddef.h> 12641int
7593#endif 12642main ()
7594EOF 12643{
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12644
7596 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12645 FILE *f = fopen ("conftest.val", "w");
7597 rm -rf conftest* 12646 if (! f)
7598 ac_cv_type_mode_t=yes 12647 exit (1);
12648 if (((long) (sizeof (int))) < 0)
12649 {
12650 long i = longval ();
12651 if (i != ((long) (sizeof (int))))
12652 exit (1);
12653 fprintf (f, "%ld\n", i);
12654 }
7599else 12655 else
7600 rm -rf conftest* 12656 {
7601 ac_cv_type_mode_t=no 12657 unsigned long i = ulongval ();
12658 if (i != ((long) (sizeof (int))))
12659 exit (1);
12660 fprintf (f, "%lu\n", i);
12661 }
12662 exit (ferror (f) || fclose (f) != 0);
12663
12664 ;
12665 return 0;
12666}
12667_ACEOF
12668rm -f conftest$ac_exeext
12669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12670 (eval $ac_link) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_cv_sizeof_int=`cat conftest.val`
12680else
12681 echo "$as_me: program exited with status $ac_status" >&5
12682echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685( exit $ac_status )
12686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12687See \`config.log' for more details." >&5
12688echo "$as_me: error: cannot compute sizeof (int), 77
12689See \`config.log' for more details." >&2;}
12690 { (exit 1); exit 1; }; }
7602fi 12691fi
12692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12693fi
12694fi
7603rm -f conftest* 12695rm -f conftest.val
7604 12696else
12697 ac_cv_sizeof_int=0
7605fi 12698fi
7606echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12699fi
7607if test $ac_cv_type_mode_t = no; then 12700echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12701echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7608 cat >> confdefs.h <<\EOF 12702cat >>confdefs.h <<_ACEOF
7609#define mode_t int 12703#define SIZEOF_INT $ac_cv_sizeof_int
7610EOF 12704_ACEOF
7611 12705
7612fi
7613 12706
7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12707echo "$as_me:$LINENO: checking for long" >&5
7615echo "configure:7616: checking for pid_t" >&5 12708echo $ECHO_N "checking for long... $ECHO_C" >&6
7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12709if test "${ac_cv_type_long+set}" = set; then
7617 echo $ac_n "(cached) $ac_c" 1>&6 12710 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else 12711else
7619 cat > conftest.$ac_ext <<EOF 12712 cat >conftest.$ac_ext <<_ACEOF
7620#line 7621 "configure" 12713/* confdefs.h. */
7621#include "confdefs.h" 12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
12717/* end confdefs.h. */
12718$ac_includes_default
12719int
12720main ()
12721{
12722if ((long *) 0)
12723 return 0;
12724if (sizeof (long))
12725 return 0;
12726 ;
12727 return 0;
12728}
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_type_long=yes
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756ac_cv_type_long=no
12757fi
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759fi
12760echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12761echo "${ECHO_T}$ac_cv_type_long" >&6
12762
12763echo "$as_me:$LINENO: checking size of long" >&5
12764echo $ECHO_N "checking size of long... $ECHO_C" >&6
12765if test "${ac_cv_sizeof_long+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12767else
12768 if test "$ac_cv_type_long" = yes; then
12769 # The cast to unsigned long works around a bug in the HP C Compiler
12770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12772 # This bug is HP SR number 8606223364.
12773 if test "$cross_compiling" = yes; then
12774 # Depending upon the size, compute the lo and hi bounds.
12775cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781$ac_includes_default
12782int
12783main ()
12784{
12785static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12786test_array [0] = 0
12787
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_lo=0 ac_mid=0
12814 while :; do
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821$ac_includes_default
12822int
12823main ()
12824{
12825static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12826test_array [0] = 0
12827
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext
12833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_hi=$ac_mid; break
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858ac_lo=`expr $ac_mid + 1`
12859 if test $ac_lo -le $ac_mid; then
12860 ac_lo= ac_hi=
12861 break
12862 fi
12863 ac_mid=`expr 2 '*' $ac_mid + 1`
12864fi
12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 done
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877$ac_includes_default
12878int
12879main ()
12880{
12881static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12882test_array [0] = 0
12883
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext
12889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_hi=-1 ac_mid=-1
12910 while :; do
12911 cat >conftest.$ac_ext <<_ACEOF
12912/* confdefs.h. */
12913_ACEOF
12914cat confdefs.h >>conftest.$ac_ext
12915cat >>conftest.$ac_ext <<_ACEOF
12916/* end confdefs.h. */
12917$ac_includes_default
12918int
12919main ()
12920{
12921static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12922test_array [0] = 0
12923
12924 ;
12925 return 0;
12926}
12927_ACEOF
12928rm -f conftest.$ac_objext
12929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_lo=$ac_mid; break
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954ac_hi=`expr '(' $ac_mid ')' - 1`
12955 if test $ac_mid -le $ac_hi; then
12956 ac_lo= ac_hi=
12957 break
12958 fi
12959 ac_mid=`expr 2 '*' $ac_mid`
12960fi
12961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 done
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_lo= ac_hi=
12968fi
12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970fi
12971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12972# Binary search between lo and hi bounds.
12973while test "x$ac_lo" != "x$ac_hi"; do
12974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12975 cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981$ac_includes_default
12982int
12983main ()
12984{
12985static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12986test_array [0] = 0
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest.$ac_objext
12993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_hi=$ac_mid
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018ac_lo=`expr '(' $ac_mid ')' + 1`
13019fi
13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021done
13022case $ac_lo in
13023?*) ac_cv_sizeof_long=$ac_lo;;
13024'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13025See \`config.log' for more details." >&5
13026echo "$as_me: error: cannot compute sizeof (long), 77
13027See \`config.log' for more details." >&2;}
13028 { (exit 1); exit 1; }; } ;;
13029esac
13030else
13031 if test "$cross_compiling" = yes; then
13032 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13033echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13034 { (exit 1); exit 1; }; }
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042$ac_includes_default
13043long longval () { return (long) (sizeof (long)); }
13044unsigned long ulongval () { return (long) (sizeof (long)); }
7622#include <sys/types.h> 13045#include <stdio.h>
7623#if STDC_HEADERS
7624#include <stdlib.h> 13046#include <stdlib.h>
7625#include <stddef.h> 13047int
7626#endif 13048main ()
7627EOF 13049{
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13050
7629 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13051 FILE *f = fopen ("conftest.val", "w");
7630 rm -rf conftest* 13052 if (! f)
7631 ac_cv_type_pid_t=yes 13053 exit (1);
13054 if (((long) (sizeof (long))) < 0)
13055 {
13056 long i = longval ();
13057 if (i != ((long) (sizeof (long))))
13058 exit (1);
13059 fprintf (f, "%ld\n", i);
13060 }
7632else 13061 else
7633 rm -rf conftest* 13062 {
7634 ac_cv_type_pid_t=no 13063 unsigned long i = ulongval ();
13064 if (i != ((long) (sizeof (long))))
13065 exit (1);
13066 fprintf (f, "%lu\n", i);
13067 }
13068 exit (ferror (f) || fclose (f) != 0);
13069
13070 ;
13071 return 0;
13072}
13073_ACEOF
13074rm -f conftest$ac_exeext
13075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_sizeof_long=`cat conftest.val`
13086else
13087 echo "$as_me: program exited with status $ac_status" >&5
13088echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
13091( exit $ac_status )
13092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13093See \`config.log' for more details." >&5
13094echo "$as_me: error: cannot compute sizeof (long), 77
13095See \`config.log' for more details." >&2;}
13096 { (exit 1); exit 1; }; }
7635fi 13097fi
13098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13099fi
13100fi
7636rm -f conftest* 13101rm -f conftest.val
7637 13102else
13103 ac_cv_sizeof_long=0
7638fi 13104fi
7639echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13105fi
7640if test $ac_cv_type_pid_t = no; then 13106echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13107echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7641 cat >> confdefs.h <<\EOF 13108cat >>confdefs.h <<_ACEOF
7642#define pid_t int 13109#define SIZEOF_LONG $ac_cv_sizeof_long
7643EOF 13110_ACEOF
7644 13111
7645fi
7646 13112
7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13113echo "$as_me:$LINENO: checking for long long" >&5
7648echo "configure:7649: checking for uid_t in sys/types.h" >&5 13114echo $ECHO_N "checking for long long... $ECHO_C" >&6
7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13115if test "${ac_cv_type_long_long+set}" = set; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 13116 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else 13117else
7652 cat > conftest.$ac_ext <<EOF 13118 cat >conftest.$ac_ext <<_ACEOF
7653#line 7654 "configure" 13119/* confdefs.h. */
7654#include "confdefs.h" 13120_ACEOF
7655#include <sys/types.h> 13121cat confdefs.h >>conftest.$ac_ext
7656EOF 13122cat >>conftest.$ac_ext <<_ACEOF
7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13123/* end confdefs.h. */
7658 egrep "uid_t" >/dev/null 2>&1; then 13124$ac_includes_default
13125int
13126main ()
13127{
13128if ((long long *) 0)
13129 return 0;
13130if (sizeof (long long))
13131 return 0;
13132 ;
13133 return 0;
13134}
13135_ACEOF
13136rm -f conftest.$ac_objext
13137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -rf conftest* 13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
7660 ac_cv_type_uid_t=yes 13157 ac_cv_type_long_long=yes
7661else 13158else
7662 rm -rf conftest* 13159 echo "$as_me: failed program was:" >&5
7663 ac_cv_type_uid_t=no 13160sed 's/^/| /' conftest.$ac_ext >&5
7664fi
7665rm -f conftest*
7666 13161
13162ac_cv_type_long_long=no
7667fi 13163fi
7668 13164rm -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 13165fi
13166echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13167echo "${ECHO_T}$ac_cv_type_long_long" >&6
7680 13168
7681 13169echo "$as_me:$LINENO: checking size of long long" >&5
7682 13170echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7683echo $ac_n "checking size of char""... $ac_c" 1>&6 13171if 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 13172 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else 13173else
13174 if test "$ac_cv_type_long_long" = yes; then
13175 # The cast to unsigned long works around a bug in the HP C Compiler
13176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13178 # This bug is HP SR number 8606223364.
7688 if test "$cross_compiling" = yes; then 13179 if test "$cross_compiling" = yes; then
7689 ac_cv_sizeof_char=1 13180 # Depending upon the size, compute the lo and hi bounds.
13181cat >conftest.$ac_ext <<_ACEOF
13182/* confdefs.h. */
13183_ACEOF
13184cat confdefs.h >>conftest.$ac_ext
13185cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h. */
13187$ac_includes_default
13188int
13189main ()
13190{
13191static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13192test_array [0] = 0
13193
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext
13199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_lo=0 ac_mid=0
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
13228int
13229main ()
13230{
13231static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13232test_array [0] = 0
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_hi=$ac_mid; break
7690else 13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264ac_lo=`expr $ac_mid + 1`
13265 if test $ac_lo -le $ac_mid; then
13266 ac_lo= ac_hi=
13267 break
13268 fi
13269 ac_mid=`expr 2 '*' $ac_mid + 1`
13270fi
13271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13272 done
13273else
13274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283$ac_includes_default
13284int
13285main ()
13286{
13287static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13288test_array [0] = 0
13289
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294rm -f conftest.$ac_objext
13295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest.$ac_objext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_hi=-1 ac_mid=-1
13316 while :; do
13317 cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h. */
13323$ac_includes_default
13324int
13325main ()
13326{
13327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13328test_array [0] = 0
13329
13330 ;
13331 return 0;
13332}
13333_ACEOF
13334rm -f conftest.$ac_objext
13335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_lo=$ac_mid; break
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360ac_hi=`expr '(' $ac_mid ')' - 1`
13361 if test $ac_mid -le $ac_hi; then
13362 ac_lo= ac_hi=
13363 break
13364 fi
13365 ac_mid=`expr 2 '*' $ac_mid`
13366fi
13367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368 done
13369else
13370 echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373ac_lo= ac_hi=
13374fi
13375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376fi
13377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378# Binary search between lo and hi bounds.
13379while test "x$ac_lo" != "x$ac_hi"; do
13380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7691 cat > conftest.$ac_ext <<EOF 13381 cat >conftest.$ac_ext <<_ACEOF
7692#line 7693 "configure" 13382/* confdefs.h. */
7693#include "confdefs.h" 13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
13386/* end confdefs.h. */
13387$ac_includes_default
13388int
13389main ()
13390{
13391static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13392test_array [0] = 0
13393
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_hi=$ac_mid
13420else
13421 echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424ac_lo=`expr '(' $ac_mid ')' + 1`
13425fi
13426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13427done
13428case $ac_lo in
13429?*) ac_cv_sizeof_long_long=$ac_lo;;
13430'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13431See \`config.log' for more details." >&5
13432echo "$as_me: error: cannot compute sizeof (long long), 77
13433See \`config.log' for more details." >&2;}
13434 { (exit 1); exit 1; }; } ;;
13435esac
13436else
13437 if test "$cross_compiling" = yes; then
13438 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13439echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13440 { (exit 1); exit 1; }; }
13441else
13442 cat >conftest.$ac_ext <<_ACEOF
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448$ac_includes_default
13449long longval () { return (long) (sizeof (long long)); }
13450unsigned long ulongval () { return (long) (sizeof (long long)); }
7694#include <stdio.h> 13451#include <stdio.h>
7695#include <sys/types.h> 13452#include <stdlib.h>
13453int
7696main() 13454main ()
7697{ 13455{
13456
7698 FILE *f=fopen("conftestval", "w"); 13457 FILE *f = fopen ("conftest.val", "w");
7699 if (!f) exit(1); 13458 if (! f)
7700 fprintf(f, "%d\n", sizeof(char));
7701 exit(0); 13459 exit (1);
13460 if (((long) (sizeof (long long))) < 0)
13461 {
13462 long i = longval ();
13463 if (i != ((long) (sizeof (long long))))
13464 exit (1);
13465 fprintf (f, "%ld\n", i);
13466 }
13467 else
13468 {
13469 unsigned long i = ulongval ();
13470 if (i != ((long) (sizeof (long long))))
13471 exit (1);
13472 fprintf (f, "%lu\n", i);
13473 }
13474 exit (ferror (f) || fclose (f) != 0);
13475
13476 ;
13477 return 0;
7702} 13478}
7703EOF 13479_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 13480rm -f conftest$ac_exeext
7705then 13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_char=`cat conftestval` 13491 ac_cv_sizeof_long_long=`cat conftest.val`
7707else 13492else
13493 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "configure: failed program was:" >&5 13494echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5 13495sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -fr conftest* 13496
7711 ac_cv_sizeof_char=0 13497( exit $ac_status )
13498{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13499See \`config.log' for more details." >&5
13500echo "$as_me: error: cannot compute sizeof (long long), 77
13501See \`config.log' for more details." >&2;}
13502 { (exit 1); exit 1; }; }
7712fi 13503fi
13504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13505fi
13506fi
7713rm -fr conftest* 13507rm -f conftest.val
13508else
13509 ac_cv_sizeof_long_long=0
7714fi 13510fi
7715
7716fi 13511fi
7717echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13512echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13513echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7718cat >> confdefs.h <<EOF 13514cat >>confdefs.h <<_ACEOF
7719#define SIZEOF_CHAR $ac_cv_sizeof_char 13515#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7720EOF 13516_ACEOF
7721 13517
7722 13518
7723echo $ac_n "checking size of short""... $ac_c" 1>&6 13519echo "$as_me:$LINENO: checking for int *" >&5
7724echo "configure:7725: checking size of short" >&5 13520echo $ECHO_N "checking for int *... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13521if test "${ac_cv_type_int_p+set}" = set; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 13522 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 13523else
13524 cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531int
13532main ()
13533{
13534if ((int * *) 0)
13535 return 0;
13536if (sizeof (int *))
13537 return 0;
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13544 (eval $ac_compile) 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_type_int_p=yes
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568ac_cv_type_int_p=no
13569fi
13570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571fi
13572echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13573echo "${ECHO_T}$ac_cv_type_int_p" >&6
13574
13575echo "$as_me:$LINENO: checking size of int *" >&5
13576echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13577if test "${ac_cv_sizeof_int_p+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580 if test "$ac_cv_type_int_p" = yes; then
13581 # The cast to unsigned long works around a bug in the HP C Compiler
13582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13584 # This bug is HP SR number 8606223364.
7728 if test "$cross_compiling" = yes; then 13585 if test "$cross_compiling" = yes; then
7729 ac_cv_sizeof_short=2 13586 # Depending upon the size, compute the lo and hi bounds.
13587cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h. */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593$ac_includes_default
13594int
13595main ()
13596{
13597static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13598test_array [0] = 0
13599
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604rm -f conftest.$ac_objext
13605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_lo=0 ac_mid=0
13626 while :; do
13627 cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633$ac_includes_default
13634int
13635main ()
13636{
13637static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13638test_array [0] = 0
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_hi=$ac_mid; break
7730else 13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670ac_lo=`expr $ac_mid + 1`
13671 if test $ac_lo -le $ac_mid; then
13672 ac_lo= ac_hi=
13673 break
13674 fi
13675 ac_mid=`expr 2 '*' $ac_mid + 1`
13676fi
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689$ac_includes_default
13690int
13691main ()
13692{
13693static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13694test_array [0] = 0
13695
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700rm -f conftest.$ac_objext
13701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_hi=-1 ac_mid=-1
13722 while :; do
13723 cat >conftest.$ac_ext <<_ACEOF
13724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
13728/* end confdefs.h. */
13729$ac_includes_default
13730int
13731main ()
13732{
13733static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13734test_array [0] = 0
13735
13736 ;
13737 return 0;
13738}
13739_ACEOF
13740rm -f conftest.$ac_objext
13741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13742 (eval $ac_compile) 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_lo=$ac_mid; break
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_hi=`expr '(' $ac_mid ')' - 1`
13767 if test $ac_mid -le $ac_hi; then
13768 ac_lo= ac_hi=
13769 break
13770 fi
13771 ac_mid=`expr 2 '*' $ac_mid`
13772fi
13773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 done
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779ac_lo= ac_hi=
13780fi
13781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782fi
13783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13784# Binary search between lo and hi bounds.
13785while test "x$ac_lo" != "x$ac_hi"; do
13786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat > conftest.$ac_ext <<EOF 13787 cat >conftest.$ac_ext <<_ACEOF
7732#line 7733 "configure" 13788/* confdefs.h. */
7733#include "confdefs.h" 13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h. */
13793$ac_includes_default
13794int
13795main ()
13796{
13797static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13798test_array [0] = 0
13799
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804rm -f conftest.$ac_objext
13805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806 (eval $ac_compile) 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_hi=$ac_mid
13826else
13827 echo "$as_me: failed program was:" >&5
13828sed 's/^/| /' conftest.$ac_ext >&5
13829
13830ac_lo=`expr '(' $ac_mid ')' + 1`
13831fi
13832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13833done
13834case $ac_lo in
13835?*) ac_cv_sizeof_int_p=$ac_lo;;
13836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13837See \`config.log' for more details." >&5
13838echo "$as_me: error: cannot compute sizeof (int *), 77
13839See \`config.log' for more details." >&2;}
13840 { (exit 1); exit 1; }; } ;;
13841esac
13842else
13843 if test "$cross_compiling" = yes; then
13844 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13845echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13846 { (exit 1); exit 1; }; }
13847else
13848 cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
13853/* end confdefs.h. */
13854$ac_includes_default
13855long longval () { return (long) (sizeof (int *)); }
13856unsigned long ulongval () { return (long) (sizeof (int *)); }
7734#include <stdio.h> 13857#include <stdio.h>
7735#include <sys/types.h> 13858#include <stdlib.h>
13859int
7736main() 13860main ()
7737{ 13861{
13862
7738 FILE *f=fopen("conftestval", "w"); 13863 FILE *f = fopen ("conftest.val", "w");
7739 if (!f) exit(1); 13864 if (! f)
7740 fprintf(f, "%d\n", sizeof(short));
7741 exit(0); 13865 exit (1);
13866 if (((long) (sizeof (int *))) < 0)
13867 {
13868 long i = longval ();
13869 if (i != ((long) (sizeof (int *))))
13870 exit (1);
13871 fprintf (f, "%ld\n", i);
13872 }
13873 else
13874 {
13875 unsigned long i = ulongval ();
13876 if (i != ((long) (sizeof (int *))))
13877 exit (1);
13878 fprintf (f, "%lu\n", i);
13879 }
13880 exit (ferror (f) || fclose (f) != 0);
13881
13882 ;
13883 return 0;
7742} 13884}
7743EOF 13885_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 13886rm -f conftest$ac_exeext
7745then 13887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
7746 ac_cv_sizeof_short=`cat conftestval` 13897 ac_cv_sizeof_int_p=`cat conftest.val`
7747else 13898else
13899 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "configure: failed program was:" >&5 13900echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5 13901sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -fr conftest* 13902
7751 ac_cv_sizeof_short=0 13903( exit $ac_status )
13904{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13905See \`config.log' for more details." >&5
13906echo "$as_me: error: cannot compute sizeof (int *), 77
13907See \`config.log' for more details." >&2;}
13908 { (exit 1); exit 1; }; }
7752fi 13909fi
13910rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13911fi
13912fi
7753rm -fr conftest* 13913rm -f conftest.val
13914else
13915 ac_cv_sizeof_int_p=0
7754fi 13916fi
7755
7756fi 13917fi
7757echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13918echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13919echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7758cat >> confdefs.h <<EOF 13920cat >>confdefs.h <<_ACEOF
7759#define SIZEOF_SHORT $ac_cv_sizeof_short 13921#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7760EOF 13922_ACEOF
7761 13923
7762 13924
7763echo $ac_n "checking size of int""... $ac_c" 1>&6 13925
7764echo "configure:7765: checking size of int" >&5 13926
7765if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13927echo "$as_me:$LINENO: checking for int16_t" >&5
13928echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13929if test "${rxvt_cv_int16_t+set}" = set; then
7766 echo $ac_n "(cached) $ac_c" 1>&6 13930 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else 13931else
7768 if test "$cross_compiling" = yes; then
7769 ac_cv_sizeof_int=4
7770else
7771 cat > conftest.$ac_ext <<EOF 13932 cat >conftest.$ac_ext <<_ACEOF
7772#line 7773 "configure" 13933/* confdefs.h. */
7773#include "confdefs.h" 13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
7774#include <stdio.h> 13938#include <stdint.h>
7775#include <sys/types.h> 13939int
7776main() 13940main ()
7777{ 13941{
7778 FILE *f=fopen("conftestval", "w"); 13942int16_t dummy;
7779 if (!f) exit(1); 13943 ;
7780 fprintf(f, "%d\n", sizeof(int)); 13944 return 0;
7781 exit(0);
7782} 13945}
7783EOF 13946_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 13947rm -f conftest.$ac_objext
7785then 13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 ac_cv_sizeof_int=`cat conftestval` 13949 (eval $ac_compile) 2>conftest.er1
7787else 13950 ac_status=$?
7788 echo "configure: failed program was:" >&5 13951 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.$ac_ext >&5
7790 rm -fr conftest* 13952 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 13953 cat conftest.err >&5
7830 rm -fr conftest* 13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ac_cv_sizeof_long=0 13955 (exit $ac_status); } &&
7832fi 13956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7833rm -fr conftest* 13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834fi 13958 (eval $ac_try) 2>&5
7835 13959 ac_status=$?
7836fi 13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13961 (exit $ac_status); }; } &&
7838cat >> confdefs.h <<EOF 13962 { ac_try='test -s conftest.$ac_objext'
7839#define SIZEOF_LONG $ac_cv_sizeof_long 13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840EOF 13964 (eval $ac_try) 2>&5
7841 13965 ac_status=$?
7842 13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843echo $ac_n "checking size of long long""... $ac_c" 1>&6 13967 (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 13968 rxvt_cv_int16_t=yes
7941else 13969else
7942 echo "configure: failed program was:" >&5 13970 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5 13971sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -rf conftest* 13972
7945 if test $ac_cv_sizeof_char -ge 2; then 13973if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char" 13974 rxvt_cv_int16_t=" char"
7947else 13975else
7948 if test $ac_cv_sizeof_short -ge 2; then 13976 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short" 13977 rxvt_cv_int16_t=" short"
7950 else 13978 else
7962 fi 13990 fi
7963 fi 13991 fi
7964 fi 13992 fi
7965fi 13993fi
7966fi 13994fi
7967rm -f conftest* 13995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi 13996fi
7969 13997echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7970echo "$ac_t""$rxvt_cv_int16_t" 1>&6 13998echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7971if test x"$rxvt_cv_int16_t" != xyes; then 13999if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14000 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7973else 14001else
7974 if test x"" = x; then 14002 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */" 14003 rxvt_int16_typedef="/* typedef short int16_t; */"
7976 else 14004 else
7977 rxvt_int16_typedef="/* typedef short int16_t; */" 14005 rxvt_int16_typedef="/* typedef short int16_t; */"
7978 fi 14006 fi
7979fi 14007fi
7980 14008
14009echo "$as_me:$LINENO: checking for uint16_t" >&5
7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14010echo $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 14011if test "${rxvt_cv_uint16_t+set}" = set; then
7984 echo $ac_n "(cached) $ac_c" 1>&6 14012 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else 14013else
7986 cat > conftest.$ac_ext <<EOF 14014 cat >conftest.$ac_ext <<_ACEOF
7987#line 7988 "configure" 14015/* confdefs.h. */
7988#include "confdefs.h" 14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
7989#include <stdint.h> 14020#include <stdint.h>
7990int main() { 14021int
14022main ()
14023{
7991uint16_t dummy; 14024uint16_t dummy;
14025 ;
7992; return 0; } 14026 return 0;
7993EOF 14027}
7994if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14028_ACEOF
14029rm -f conftest.$ac_objext
14030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -rf conftest* 14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
7996 rxvt_cv_uint16_t=yes 14050 rxvt_cv_uint16_t=yes
7997else 14051else
7998 echo "configure: failed program was:" >&5 14052 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 14053sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -rf conftest* 14054
8001 if test $ac_cv_sizeof_char -ge 2; then 14055if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char" 14056 rxvt_cv_uint16_t="unsigned char"
8003else 14057else
8004 if test $ac_cv_sizeof_short -ge 2; then 14058 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short" 14059 rxvt_cv_uint16_t="unsigned short"
8006 else 14060 else
8018 fi 14072 fi
8019 fi 14073 fi
8020 fi 14074 fi
8021fi 14075fi
8022fi 14076fi
8023rm -f conftest* 14077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi 14078fi
8025 14079echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8026echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14080echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8027if test x"$rxvt_cv_uint16_t" != xyes; then 14081if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14082 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8029else 14083else
8030 if test x"unsigned" = x; then 14084 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14085 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8032 else 14086 else
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14087 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8034 fi 14088 fi
8035fi 14089fi
8036 14090
14091echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14092echo $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 14093if test "${rxvt_cv_int32_t+set}" = set; then
8040 echo $ac_n "(cached) $ac_c" 1>&6 14094 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else 14095else
8042 cat > conftest.$ac_ext <<EOF 14096 cat >conftest.$ac_ext <<_ACEOF
8043#line 8044 "configure" 14097/* confdefs.h. */
8044#include "confdefs.h" 14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
8045#include <stdint.h> 14102#include <stdint.h>
8046int main() { 14103int
14104main ()
14105{
8047int32_t dummy; 14106int32_t dummy;
14107 ;
8048; return 0; } 14108 return 0;
8049EOF 14109}
8050if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -rf conftest* 14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
8052 rxvt_cv_int32_t=yes 14132 rxvt_cv_int32_t=yes
8053else 14133else
8054 echo "configure: failed program was:" >&5 14134 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5 14135sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -rf conftest* 14136
8057 if test $ac_cv_sizeof_char -ge 4; then 14137if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char" 14138 rxvt_cv_int32_t=" char"
8059else 14139else
8060 if test $ac_cv_sizeof_short -ge 4; then 14140 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short" 14141 rxvt_cv_int32_t=" short"
8062 else 14142 else
8074 fi 14154 fi
8075 fi 14155 fi
8076 fi 14156 fi
8077fi 14157fi
8078fi 14158fi
8079rm -f conftest* 14159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi 14160fi
8081 14161echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8082echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14162echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8083if test x"$rxvt_cv_int32_t" != xyes; then 14163if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14164 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8085else 14165else
8086 if test x"" = x; then 14166 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */" 14167 rxvt_int32_typedef="/* typedef int int32_t; */"
8088 else 14168 else
8089 rxvt_int32_typedef="/* typedef int int32_t; */" 14169 rxvt_int32_typedef="/* typedef int int32_t; */"
8090 fi 14170 fi
8091fi 14171fi
8092 14172
14173echo "$as_me:$LINENO: checking for uint32_t" >&5
8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14174echo $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 14175if test "${rxvt_cv_uint32_t+set}" = set; then
8096 echo $ac_n "(cached) $ac_c" 1>&6 14176 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else 14177else
8098 cat > conftest.$ac_ext <<EOF 14178 cat >conftest.$ac_ext <<_ACEOF
8099#line 8100 "configure" 14179/* confdefs.h. */
8100#include "confdefs.h" 14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h. */
8101#include <stdint.h> 14184#include <stdint.h>
8102int main() { 14185int
14186main ()
14187{
8103uint32_t dummy; 14188uint32_t dummy;
14189 ;
8104; return 0; } 14190 return 0;
8105EOF 14191}
8106if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14192_ACEOF
14193rm -f conftest.$ac_objext
14194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -rf conftest* 14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
8108 rxvt_cv_uint32_t=yes 14214 rxvt_cv_uint32_t=yes
8109else 14215else
8110 echo "configure: failed program was:" >&5 14216 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5 14217sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest* 14218
8113 if test $ac_cv_sizeof_char -ge 4; then 14219if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char" 14220 rxvt_cv_uint32_t="unsigned char"
8115else 14221else
8116 if test $ac_cv_sizeof_short -ge 4; then 14222 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short" 14223 rxvt_cv_uint32_t="unsigned short"
8118 else 14224 else
8130 fi 14236 fi
8131 fi 14237 fi
8132 fi 14238 fi
8133fi 14239fi
8134fi 14240fi
8135rm -f conftest* 14241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi 14242fi
8137 14243echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8138echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14244echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8139if test x"$rxvt_cv_uint32_t" != xyes; then 14245if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14246 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8141else 14247else
8142 if test x"unsigned" = x; then 14248 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14249 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8144 else 14250 else
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14251 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8146 fi 14252 fi
8147fi 14253fi
8148 14254
8149if test $ac_cv_sizeof_int_p -eq 8; then 14255if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t" 14256 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14257 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8152else 14258else
8164 fi 14270 fi
8165fi 14271fi
8166 14272
8167 14273
8168 14274
14275echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14276echo $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 14277if test "${ac_cv_type_signal+set}" = set; then
8172 echo $ac_n "(cached) $ac_c" 1>&6 14278 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else 14279else
8174 cat > conftest.$ac_ext <<EOF 14280 cat >conftest.$ac_ext <<_ACEOF
8175#line 8176 "configure" 14281/* confdefs.h. */
8176#include "confdefs.h" 14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
8177#include <sys/types.h> 14286#include <sys/types.h>
8178#include <signal.h> 14287#include <signal.h>
8179#ifdef signal 14288#ifdef signal
8180#undef signal 14289# undef signal
8181#endif 14290#endif
8182#ifdef __cplusplus 14291#ifdef __cplusplus
8183extern "C" void (*signal (int, void (*)(int)))(int); 14292extern "C" void (*signal (int, void (*)(int)))(int);
8184#else 14293#else
8185void (*signal ()) (); 14294void (*signal ()) ();
8186#endif 14295#endif
8187 14296
8188int main() { 14297int
14298main ()
14299{
8189int i; 14300int i;
14301 ;
8190; return 0; } 14302 return 0;
8191EOF 14303}
8192if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -rf conftest* 14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
8194 ac_cv_type_signal=void 14326 ac_cv_type_signal=void
8195else 14327else
8196 echo "configure: failed program was:" >&5 14328 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5 14329sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -rf conftest* 14330
8199 ac_cv_type_signal=int 14331ac_cv_type_signal=int
8200fi 14332fi
8201rm -f conftest* 14333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi 14334fi
8203 14335echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8204echo "$ac_t""$ac_cv_type_signal" 1>&6 14336echo "${ECHO_T}$ac_cv_type_signal" >&6
14337
8205cat >> confdefs.h <<EOF 14338cat >>confdefs.h <<_ACEOF
8206#define RETSIGTYPE $ac_cv_type_signal 14339#define RETSIGTYPE $ac_cv_type_signal
8207EOF 14340_ACEOF
8208 14341
8209 14342
8210 14343
8211case "$host_alias" in 14344case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;; 14345 *ultrix) ac_cv_func_setsid='no' ;;
8213 *) break;; 14346 *) break;;
8214esac 14347esac
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
8215 14366
8216for ac_func in \ 14367for ac_func in \
8217 atexit \ 14368 atexit \
8218 revoke \ 14369 revoke \
8219 unsetenv \ 14370 unsetenv \
8232 nanosleep \ 14383 nanosleep \
8233 updwtmp \ 14384 updwtmp \
8234 ttyslot \ 14385 ttyslot \
8235 14386
8236do 14387do
14388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14389echo "$as_me:$LINENO: checking for $ac_func" >&5
8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8238echo "configure:8239: checking for $ac_func" >&5 14391if 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 14392 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else 14393else
8242 cat > conftest.$ac_ext <<EOF 14394 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 14395/* confdefs.h. */
8244#include "confdefs.h" 14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
14399/* end confdefs.h. */
14400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14402#define $ac_func innocuous_$ac_func
14403
8245/* System header to define __stub macros and hopefully few prototypes, 14404/* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */ 14405 which can conflict with char $ac_func (); below.
14406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14407 <limits.h> exists even on freestanding compilers. */
14408
14409#ifdef __STDC__
14410# include <limits.h>
14411#else
8247#include <assert.h> 14412# include <assert.h>
14413#endif
14414
14415#undef $ac_func
14416
8248/* Override any gcc2 internal prototype to avoid an error. */ 14417/* Override any gcc2 internal prototype to avoid an error. */
14418#ifdef __cplusplus
14419extern "C"
14420{
14421#endif
8249/* We use char because int might match the return type of a gcc2 14422/* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */ 14423 builtin and then its argument prototype would still apply. */
8251char $ac_func(); 14424char $ac_func ();
8252
8253int main() {
8254
8255/* The GNU C library defines this for functions which it implements 14425/* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named 14426 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */ 14427 something starting with __ and the normal name is an alias. */
8258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259choke me 14429choke me
8260#else 14430#else
8261$ac_func(); 14431char (*f) () = $ac_func;
8262#endif 14432#endif
14433#ifdef __cplusplus
14434}
14435#endif
8263 14436
14437int
14438main ()
14439{
14440return f != $ac_func;
14441 ;
8264; return 0; } 14442 return 0;
8265EOF 14443}
8266if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14444_ACEOF
14445rm -f conftest.$ac_objext conftest$ac_exeext
14446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -rf conftest* 14450 rm -f conftest.er1
8268 eval "ac_cv_func_$ac_func=yes" 14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 eval "$as_ac_var=yes"
8269else 14467else
8270 echo "configure: failed program was:" >&5 14468 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5 14469sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8274fi
8275rm -f conftest*
8276fi
8277 14470
8278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14471eval "$as_ac_var=no"
8279 echo "$ac_t""yes" 1>&6 14472fi
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14473rm -f conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475fi
14476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14478if test `eval echo '${'$as_ac_var'}'` = yes; then
8281 cat >> confdefs.h <<EOF 14479 cat >>confdefs.h <<_ACEOF
8282#define $ac_tr_func 1 14480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8283EOF 14481_ACEOF
8284 14482
8285else
8286 echo "$ac_t""no" 1>&6
8287fi 14483fi
8288done 14484done
8289 14485
8290 14486
8291 14487
8292ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14488if test "${ac_cv_header_utmp_h+set}" = set; then
14489 echo "$as_me:$LINENO: checking for utmp.h" >&5
8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14490echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8294echo "configure:8295: checking for utmp.h" >&5 14491if 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 14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493fi
14494echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14495echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8297else 14496else
14497 # Is the header compilable?
14498echo "$as_me:$LINENO: checking utmp.h usability" >&5
14499echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8298 cat > conftest.$ac_ext <<EOF 14500cat >conftest.$ac_ext <<_ACEOF
8299#line 8300 "configure" 14501/* confdefs.h. */
8300#include "confdefs.h" 14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506$ac_includes_default
8301#include <utmp.h> 14507#include <utmp.h>
8302EOF 14508_ACEOF
8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14509rm -f conftest.$ac_objext
8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_header_compiler=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_header_compiler=no
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539echo "${ECHO_T}$ac_header_compiler" >&6
14540
14541# Is the header present?
14542echo "$as_me:$LINENO: checking utmp.h presence" >&5
14543echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550#include <utmp.h>
14551_ACEOF
14552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null; then
14560 if test -s conftest.err; then
14561 ac_cpp_err=$ac_cxx_preproc_warn_flag
14562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14563 else
14564 ac_cpp_err=
14565 fi
14566else
14567 ac_cpp_err=yes
14568fi
8306if test -z "$ac_err"; then 14569if test -z "$ac_cpp_err"; then
8307 rm -rf conftest* 14570 ac_header_preproc=yes
8308 eval "ac_cv_header_$ac_safe=yes"
8309else 14571else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5 14572 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5 14573sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -rf conftest* 14574
8314 eval "ac_cv_header_$ac_safe=no" 14575 ac_header_preproc=no
8315fi 14576fi
8316rm -f conftest* 14577rm -f conftest.err conftest.$ac_ext
14578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579echo "${ECHO_T}$ac_header_preproc" >&6
14580
14581# So? What about this header?
14582case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14583 yes:no: )
14584 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14587echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14588 ac_header_preproc=yes
14589 ;;
14590 no:yes:* )
14591 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14592echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14594echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14596echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14598echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14600echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14602echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14603 (
14604 cat <<\_ASBOX
14605## ------------------------------------------ ##
14606## Report this to the AC_PACKAGE_NAME lists. ##
14607## ------------------------------------------ ##
14608_ASBOX
14609 ) |
14610 sed "s/^/$as_me: WARNING: /" >&2
14611 ;;
14612esac
14613echo "$as_me:$LINENO: checking for utmp.h" >&5
14614echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14615if test "${ac_cv_header_utmp_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618 ac_cv_header_utmp_h=$ac_header_preproc
8317fi 14619fi
8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14620echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8319 echo "$ac_t""yes" 1>&6 14621echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14622
14623fi
14624if test $ac_cv_header_utmp_h = yes; then
14625 echo "$as_me:$LINENO: checking for struct utmp" >&5
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14626echo $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 14627if test "${rxvt_cv_struct_utmp+set}" = set; then
8323 echo $ac_n "(cached) $ac_c" 1>&6 14628 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else 14629else
8325 cat > conftest.$ac_ext <<EOF 14630 cat >conftest.$ac_ext <<_ACEOF
8326#line 8327 "configure" 14631/* confdefs.h. */
8327#include "confdefs.h" 14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
8328#include <sys/types.h> 14636#include <sys/types.h>
8329#include <stdint.h> 14637#include <stdint.h>
8330#include <utmp.h> 14638#include <utmp.h>
8331int main() { 14639int
14640main ()
14641{
8332struct utmp ut; 14642struct utmp ut;
14643 ;
8333; return 0; } 14644 return 0;
8334EOF 14645}
8335if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14646_ACEOF
14647rm -f conftest.$ac_objext
14648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -rf conftest* 14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
8337 rxvt_cv_struct_utmp=yes 14668 rxvt_cv_struct_utmp=yes
8338else 14669else
8339 echo "configure: failed program was:" >&5 14670 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 14671sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -rf conftest* 14672
8342 rxvt_cv_struct_utmp=no 14673rxvt_cv_struct_utmp=no
8343fi 14674fi
8344rm -f conftest* 14675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi 14676fi
8346 14677echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8347echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14678echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8348if test x$rxvt_cv_struct_utmp = xyes; then 14679if test x$rxvt_cv_struct_utmp = xyes; then
14680
8349 cat >> confdefs.h <<\EOF 14681cat >>confdefs.h <<\_ACEOF
8350#define HAVE_STRUCT_UTMP 1 14682#define HAVE_STRUCT_UTMP 1
8351EOF 14683_ACEOF
8352 14684
8353fi 14685fi
8354 14686
8355 14687
14688echo "$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 14689echo $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 14690if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8359 echo $ac_n "(cached) $ac_c" 1>&6 14691 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else 14692else
8361 cat > conftest.$ac_ext <<EOF 14693 cat >conftest.$ac_ext <<_ACEOF
8362#line 8363 "configure" 14694/* confdefs.h. */
8363#include "confdefs.h" 14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
8364#include <sys/types.h> 14699#include <sys/types.h>
8365#include <utmp.h> 14700#include <utmp.h>
8366int main() { 14701int
14702main ()
14703{
8367struct utmp ut; ut.ut_host; 14704struct utmp ut; ut.ut_host;
14705 ;
8368; return 0; } 14706 return 0;
8369EOF 14707}
8370if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14708_ACEOF
14709rm -f conftest.$ac_objext
14710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -rf conftest* 14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
8372 rxvt_cv_struct_utmp_host=yes 14730 rxvt_cv_struct_utmp_host=yes
8373else 14731else
8374 echo "configure: failed program was:" >&5 14732 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5 14733sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -rf conftest* 14734
8377 rxvt_cv_struct_utmp_host=no 14735rxvt_cv_struct_utmp_host=no
8378fi 14736fi
8379rm -f conftest* 14737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi 14738fi
8381 14739echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8382echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14740echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8383if test x$rxvt_cv_struct_utmp_host = xyes; then 14741if test x$rxvt_cv_struct_utmp_host = xyes; then
14742
8384 cat >> confdefs.h <<\EOF 14743cat >>confdefs.h <<\_ACEOF
8385#define HAVE_UTMP_HOST 1 14744#define HAVE_UTMP_HOST 1
8386EOF 14745_ACEOF
8387 14746
8388fi 14747fi
8389 14748
14749echo "$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 14750echo $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 14751if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8393 echo $ac_n "(cached) $ac_c" 1>&6 14752 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else 14753else
8395 cat > conftest.$ac_ext <<EOF 14754 cat >conftest.$ac_ext <<_ACEOF
8396#line 8397 "configure" 14755/* confdefs.h. */
8397#include "confdefs.h" 14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
8398#include <sys/types.h> 14760#include <sys/types.h>
8399#include <utmp.h> 14761#include <utmp.h>
8400int main() { 14762int
14763main ()
14764{
8401struct utmp ut; ut.ut_pid; 14765struct utmp ut; ut.ut_pid;
14766 ;
8402; return 0; } 14767 return 0;
8403EOF 14768}
8404if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>conftest.er1
14773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -rf conftest* 14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest.$ac_objext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
8406 rxvt_cv_struct_utmp_pid=yes 14791 rxvt_cv_struct_utmp_pid=yes
8407else 14792else
8408 echo "configure: failed program was:" >&5 14793 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5 14794sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -rf conftest* 14795
8411 rxvt_cv_struct_utmp_pid=no 14796rxvt_cv_struct_utmp_pid=no
8412fi 14797fi
8413rm -f conftest* 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi 14799fi
8415 14800echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8416echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14801echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8417if test x$rxvt_cv_struct_utmp_pid = xyes; then 14802if test x$rxvt_cv_struct_utmp_pid = xyes; then
14803
8418 cat >> confdefs.h <<\EOF 14804cat >>confdefs.h <<\_ACEOF
8419#define HAVE_UTMP_PID 1 14805#define HAVE_UTMP_PID 1
8420EOF 14806_ACEOF
8421 14807
8422fi 14808fi
8423 14809
8424else
8425 echo "$ac_t""no" 1>&6
8426fi 14810fi
8427
8428 14811
8429ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14812
14813
14814if test "${ac_cv_header_utmpx_h+set}" = set; then
14815 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14816echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8431echo "configure:8432: checking for utmpx.h" >&5 14817if 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 14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819fi
14820echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14821echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8434else 14822else
14823 # Is the header compilable?
14824echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14825echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8435 cat > conftest.$ac_ext <<EOF 14826cat >conftest.$ac_ext <<_ACEOF
8436#line 8437 "configure" 14827/* confdefs.h. */
8437#include "confdefs.h" 14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
8438#include <utmpx.h> 14833#include <utmpx.h>
8439EOF 14834_ACEOF
8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14835rm -f conftest.$ac_objext
8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14837 (eval $ac_compile) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861ac_header_compiler=no
14862fi
14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865echo "${ECHO_T}$ac_header_compiler" >&6
14866
14867# Is the header present?
14868echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14869echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14870cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876#include <utmpx.h>
14877_ACEOF
14878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null; then
14886 if test -s conftest.err; then
14887 ac_cpp_err=$ac_cxx_preproc_warn_flag
14888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14889 else
14890 ac_cpp_err=
14891 fi
14892else
14893 ac_cpp_err=yes
14894fi
8443if test -z "$ac_err"; then 14895if test -z "$ac_cpp_err"; then
8444 rm -rf conftest* 14896 ac_header_preproc=yes
8445 eval "ac_cv_header_$ac_safe=yes"
8446else 14897else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5 14898 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 14899sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest* 14900
8451 eval "ac_cv_header_$ac_safe=no" 14901 ac_header_preproc=no
8452fi 14902fi
8453rm -f conftest* 14903rm -f conftest.err conftest.$ac_ext
14904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905echo "${ECHO_T}$ac_header_preproc" >&6
14906
14907# So? What about this header?
14908case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14909 yes:no: )
14910 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14911echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14913echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14915 ;;
14916 no:yes:* )
14917 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14918echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14920echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14922echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14924echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14926echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14928echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14929 (
14930 cat <<\_ASBOX
14931## ------------------------------------------ ##
14932## Report this to the AC_PACKAGE_NAME lists. ##
14933## ------------------------------------------ ##
14934_ASBOX
14935 ) |
14936 sed "s/^/$as_me: WARNING: /" >&2
14937 ;;
14938esac
14939echo "$as_me:$LINENO: checking for utmpx.h" >&5
14940echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14941if test "${ac_cv_header_utmpx_h+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 ac_cv_header_utmpx_h=$ac_header_preproc
8454fi 14945fi
8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14946echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8456 echo "$ac_t""yes" 1>&6 14947echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14948
14949fi
14950if test $ac_cv_header_utmpx_h = yes; then
14951 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14952echo $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 14953if test "${rxvt_cv_struct_utmpx+set}" = set; then
8460 echo $ac_n "(cached) $ac_c" 1>&6 14954 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else 14955else
8462 cat > conftest.$ac_ext <<EOF 14956 cat >conftest.$ac_ext <<_ACEOF
8463#line 8464 "configure" 14957/* confdefs.h. */
8464#include "confdefs.h" 14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h. */
8465#include <sys/types.h> 14962#include <sys/types.h>
8466#include <utmpx.h> 14963#include <utmpx.h>
8467int main() { 14964int
14965main ()
14966{
8468struct utmpx ut; 14967struct utmpx ut;
14968 ;
8469; return 0; } 14969 return 0;
8470EOF 14970}
8471if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -rf conftest* 14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
8473 rxvt_cv_struct_utmpx=yes 14993 rxvt_cv_struct_utmpx=yes
8474else 14994else
8475 echo "configure: failed program was:" >&5 14995 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5 14996sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -rf conftest* 14997
8478 rxvt_cv_struct_utmpx=no 14998rxvt_cv_struct_utmpx=no
8479fi 14999fi
8480rm -f conftest* 15000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi 15001fi
8482 15002echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8483echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15003echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8484if test x$rxvt_cv_struct_utmpx = xyes; then 15004if test x$rxvt_cv_struct_utmpx = xyes; then
15005
8485 cat >> confdefs.h <<\EOF 15006cat >>confdefs.h <<\_ACEOF
8486#define HAVE_STRUCT_UTMPX 1 15007#define HAVE_STRUCT_UTMPX 1
8487EOF 15008_ACEOF
8488 15009
8489fi 15010fi
8490 15011
8491 15012
15013echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15014echo $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 15015if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8495 echo $ac_n "(cached) $ac_c" 1>&6 15016 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else 15017else
8497 cat > conftest.$ac_ext <<EOF 15018 cat >conftest.$ac_ext <<_ACEOF
8498#line 8499 "configure" 15019/* confdefs.h. */
8499#include "confdefs.h" 15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */
8500#include <sys/types.h> 15024#include <sys/types.h>
8501#include <utmpx.h> 15025#include <utmpx.h>
8502int main() { 15026int
15027main ()
15028{
8503struct utmpx utx; utx.ut_host; 15029struct utmpx utx; utx.ut_host;
15030 ;
8504; return 0; } 15031 return 0;
8505EOF 15032}
8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15033_ACEOF
15034rm -f conftest.$ac_objext
15035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036 (eval $ac_compile) 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -rf conftest* 15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
8508 rxvt_cv_struct_utmpx_host=yes 15055 rxvt_cv_struct_utmpx_host=yes
8509else 15056else
8510 echo "configure: failed program was:" >&5 15057 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5 15058sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest* 15059
8513 rxvt_cv_struct_utmpx_host=no 15060rxvt_cv_struct_utmpx_host=no
8514fi 15061fi
8515rm -f conftest* 15062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi 15063fi
8517 15064echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8518echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15065echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8519if test x$rxvt_cv_struct_utmpx_host = xyes; then 15066if test x$rxvt_cv_struct_utmpx_host = xyes; then
15067
8520 cat >> confdefs.h <<\EOF 15068cat >>confdefs.h <<\_ACEOF
8521#define HAVE_UTMPX_HOST 1 15069#define HAVE_UTMPX_HOST 1
8522EOF 15070_ACEOF
8523 15071
8524fi 15072fi
8525 15073
8526else
8527 echo "$ac_t""no" 1>&6
8528fi 15074fi
8529
8530 15075
15076
15077
15078echo "$as_me:$LINENO: checking for struct lastlog" >&5
8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15079echo $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 15080if test "${rxvt_cv_struct_lastlog+set}" = set; then
8534 echo $ac_n "(cached) $ac_c" 1>&6 15081 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else 15082else
8536 cat > conftest.$ac_ext <<EOF 15083 cat >conftest.$ac_ext <<_ACEOF
8537#line 8538 "configure" 15084/* confdefs.h. */
8538#include "confdefs.h" 15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
8539#include <sys/types.h> 15089#include <sys/types.h>
8540#include <utmp.h> 15090#include <utmp.h>
8541#ifdef HAVE_LASTLOG_H 15091#ifdef HAVE_LASTLOG_H
8542#include <lastlog.h> 15092#include <lastlog.h>
8543#endif 15093#endif
8544 15094
8545int main() { 15095int
15096main ()
15097{
8546struct lastlog ll; 15098struct lastlog ll;
15099 ;
8547; return 0; } 15100 return 0;
8548EOF 15101}
8549if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15102_ACEOF
15103rm -f conftest.$ac_objext
15104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105 (eval $ac_compile) 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -rf conftest* 15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; } &&
15118 { ac_try='test -s conftest.$ac_objext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
8551 rxvt_cv_struct_lastlog=yes 15124 rxvt_cv_struct_lastlog=yes
8552else 15125else
8553 echo "configure: failed program was:" >&5 15126 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 15127sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -rf conftest* 15128
8556 rxvt_cv_struct_lastlog=no 15129rxvt_cv_struct_lastlog=no
8557fi 15130fi
8558rm -f conftest* 15131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi 15132fi
8560 15133echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8561echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15134echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8562if test x$rxvt_cv_struct_lastlog = xyes; then 15135if test x$rxvt_cv_struct_lastlog = xyes; then
15136
8563 cat >> confdefs.h <<\EOF 15137cat >>confdefs.h <<\_ACEOF
8564#define HAVE_STRUCT_LASTLOG 1 15138#define HAVE_STRUCT_LASTLOG 1
8565EOF 15139_ACEOF
8566 15140
8567fi 15141fi
8568 15142
15143echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15144echo $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 15145if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8572 echo $ac_n "(cached) $ac_c" 1>&6 15146 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else 15147else
8574 cat > conftest.$ac_ext <<EOF 15148 cat >conftest.$ac_ext <<_ACEOF
8575#line 8576 "configure" 15149/* confdefs.h. */
8576#include "confdefs.h" 15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
8577#include <sys/types.h> 15154#include <sys/types.h>
8578#include <utmpx.h> 15155#include <utmpx.h>
8579#ifdef HAVE_LASTLOG_H 15156#ifdef HAVE_LASTLOG_H
8580#include <lastlog.h> 15157#include <lastlog.h>
8581#endif 15158#endif
8582 15159
8583int main() { 15160int
15161main ()
15162{
8584struct lastlogx ll; 15163struct lastlogx ll;
15164 ;
8585; return 0; } 15165 return 0;
8586EOF 15166}
8587if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -rf conftest* 15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
8589 rxvt_cv_struct_lastlogx=yes 15189 rxvt_cv_struct_lastlogx=yes
8590else 15190else
8591 echo "configure: failed program was:" >&5 15191 echo "$as_me: failed program was:" >&5
8592 cat conftest.$ac_ext >&5 15192sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -rf conftest* 15193
8594 rxvt_cv_struct_lastlogx=no 15194rxvt_cv_struct_lastlogx=no
8595fi 15195fi
8596rm -f conftest* 15196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi 15197fi
8598 15198echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8599echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15199echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8600if test x$rxvt_cv_struct_lastlogx = xyes; then 15200if test x$rxvt_cv_struct_lastlogx = xyes; then
15201
8601 cat >> confdefs.h <<\EOF 15202cat >>confdefs.h <<\_ACEOF
8602#define HAVE_STRUCT_LASTLOGX 1 15203#define HAVE_STRUCT_LASTLOGX 1
8603EOF 15204_ACEOF
8604 15205
8605fi 15206fi
8606 15207
8607 15208
15209echo "$as_me:$LINENO: checking where utmp is located" >&5
8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15210echo $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 15211if test "${rxvt_cv_path_utmp+set}" = set; then
8611 echo $ac_n "(cached) $ac_c" 1>&6 15212 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else 15213else
8613 if test "$cross_compiling" = yes; then 15214 if test "$cross_compiling" = yes; then
15215 { 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 15216echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8615else 15217else
8616 cat > conftest.$ac_ext <<EOF 15218 cat >conftest.$ac_ext <<_ACEOF
8617#line 8618 "configure" 15219/* confdefs.h. */
8618#include "confdefs.h" 15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
15223/* end confdefs.h. */
8619#include <stdio.h> 15224#include <stdio.h>
8620#include <sys/types.h> 15225#include <sys/types.h>
8621#include <utmp.h> 15226#include <utmp.h>
8622#include <errno.h> 15227#include <errno.h>
8623main() 15228main()
8640 exit(0); 15245 exit(0);
8641 } 15246 }
8642 } 15247 }
8643 exit(0); 15248 exit(0);
8644} 15249}
8645EOF 15250_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 15251rm -f conftest$ac_exeext
8647then 15252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
8648 rxvt_cv_path_utmp=`cat conftestval` 15262 rxvt_cv_path_utmp=`cat conftestval`
8649else 15263else
15264 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "configure: failed program was:" >&5 15265echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5 15266sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -fr conftest* 15267
15268( exit $ac_status )
8653 rxvt_cv_path_utmp= 15269rxvt_cv_path_utmp=
8654fi 15270fi
8655rm -fr conftest* 15271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi 15272fi
8657
8658fi 15273fi
8659 15274echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8660echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15275echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8661if test x$rxvt_cv_path_utmp != x; then 15276if test x$rxvt_cv_path_utmp != x; then
15277
8662 cat >> confdefs.h <<EOF 15278cat >>confdefs.h <<_ACEOF
8663#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15279#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8664EOF 15280_ACEOF
8665 15281
8666fi 15282fi
8667 15283
8668 15284
15285echo "$as_me:$LINENO: checking where utmpx is located" >&5
8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15286echo $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 15287if test "${rxvt_cv_path_utmpx+set}" = set; then
8672 echo $ac_n "(cached) $ac_c" 1>&6 15288 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else 15289else
8674 if test "$cross_compiling" = yes; then 15290 if test "$cross_compiling" = yes; then
15291 { 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 15292echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8676else 15293else
8677 cat > conftest.$ac_ext <<EOF 15294 cat >conftest.$ac_ext <<_ACEOF
8678#line 8679 "configure" 15295/* confdefs.h. */
8679#include "confdefs.h" 15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
8680#include <stdio.h> 15300#include <stdio.h>
8681#include <sys/types.h> 15301#include <sys/types.h>
8682#include <utmpx.h> 15302#include <utmpx.h>
8683#include <errno.h> 15303#include <errno.h>
8684#include <sys/stat.h> 15304#include <sys/stat.h>
8711 exit(0); 15331 exit(0);
8712 } 15332 }
8713 } 15333 }
8714 exit(0); 15334 exit(0);
8715} 15335}
8716EOF 15336_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 15337rm -f conftest$ac_exeext
8718then 15338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339 (eval $ac_link) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
8719 rxvt_cv_path_utmpx=`cat conftestval` 15348 rxvt_cv_path_utmpx=`cat conftestval`
8720else 15349else
15350 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "configure: failed program was:" >&5 15351echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5 15352sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -fr conftest* 15353
15354( exit $ac_status )
8724 rxvt_cv_path_utmpx= 15355rxvt_cv_path_utmpx=
8725fi 15356fi
8726rm -fr conftest* 15357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727fi 15358fi
8728
8729fi 15359fi
8730 15360echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8731echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15361echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8732if test x$rxvt_cv_path_utmpx != x; then 15362if test x$rxvt_cv_path_utmpx != x; then
15363
8733 cat >> confdefs.h <<EOF 15364cat >>confdefs.h <<_ACEOF
8734#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15365#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8735EOF 15366_ACEOF
8736 15367
8737fi 15368fi
8738 15369
8739 15370
15371echo "$as_me:$LINENO: checking where wtmp is located" >&5
8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15372echo $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 15373if test "${rxvt_cv_path_wtmp+set}" = set; then
8743 echo $ac_n "(cached) $ac_c" 1>&6 15374 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else 15375else
8745 if test "$cross_compiling" = yes; then 15376 if test "$cross_compiling" = yes; then
15377 { 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 15378echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8747else 15379else
8748 cat > conftest.$ac_ext <<EOF 15380 cat >conftest.$ac_ext <<_ACEOF
8749#line 8750 "configure" 15381/* confdefs.h. */
8750#include "confdefs.h" 15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
8751#include <stdio.h> 15386#include <stdio.h>
8752#include <sys/types.h> 15387#include <sys/types.h>
8753#ifdef HAVE_UTMP_H 15388#ifdef HAVE_UTMP_H
8754#include <utmp.h> 15389#include <utmp.h>
8755#endif 15390#endif
8756#include <errno.h> 15391#include <errno.h>
8757main() 15392main()
8758{ 15393{
8759 char **w, *wtmplist[] = { 15394 char **w, *wtmplist[] = {
8760 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15395 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8761 FILE *a, *f=fopen("conftestval", "w"); 15396 FILE *a, *f=fopen("conftestval", "w");
8762 if (!f) exit(1); 15397 if (!f) exit(1);
8763#ifdef WTMP_FILE 15398#ifdef WTMP_FILE
8764 fprintf(f, "%s\n", WTMP_FILE); 15399 fprintf(f, "%s\n", WTMP_FILE);
8765 exit(0); 15400 exit(0);
8774 exit(0); 15409 exit(0);
8775 } 15410 }
8776 } 15411 }
8777 exit(0); 15412 exit(0);
8778} 15413}
8779EOF 15414_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 15415rm -f conftest$ac_exeext
8781then 15416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
8782 rxvt_cv_path_wtmp=`cat conftestval` 15426 rxvt_cv_path_wtmp=`cat conftestval`
8783else 15427else
15428 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "configure: failed program was:" >&5 15429echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5 15430sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -fr conftest* 15431
15432( exit $ac_status )
8787 rxvt_cv_path_wtmp= 15433rxvt_cv_path_wtmp=
8788fi 15434fi
8789rm -fr conftest* 15435rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790fi 15436fi
8791
8792fi 15437fi
8793 15438echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8794echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15439echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8795if test x$rxvt_cv_path_wtmp != x; then 15440if test x$rxvt_cv_path_wtmp != x; then
15441
8796 cat >> confdefs.h <<EOF 15442cat >>confdefs.h <<_ACEOF
8797#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15443#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8798EOF 15444_ACEOF
8799 15445
8800fi 15446fi
8801 15447
15448echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15449echo $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 15450if test "${rxvt_cv_path_wtmpx+set}" = set; then
8805 echo $ac_n "(cached) $ac_c" 1>&6 15451 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else 15452else
8807 if test "$cross_compiling" = yes; then 15453 if test "$cross_compiling" = yes; then
15454 { 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 15455echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8809else 15456else
8810 cat > conftest.$ac_ext <<EOF 15457 cat >conftest.$ac_ext <<_ACEOF
8811#line 8812 "configure" 15458/* confdefs.h. */
8812#include "confdefs.h" 15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
8813#include <stdio.h> 15463#include <stdio.h>
8814#ifdef HAVE_UTMPX_H 15464#ifdef HAVE_UTMPX_H
8815#include <utmpx.h> 15465#include <utmpx.h>
8816#endif 15466#endif
8817#include <errno.h> 15467#include <errno.h>
8818main() 15468main()
8819{ 15469{
8820 char **w, *wtmplist[] = { 15470 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15471 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w"); 15472 FILE *a, *f=fopen("conftestval", "w");
8823 if (!f) exit(1); 15473 if (!f) exit(1);
8824#ifdef WTMPX_FILE 15474#ifdef WTMPX_FILE
8825 fprintf(f, "%s\n", WTMPX_FILE); 15475 fprintf(f, "%s\n", WTMPX_FILE);
8826 exit(0); 15476 exit(0);
8835 exit(0); 15485 exit(0);
8836 } 15486 }
8837 } 15487 }
8838 exit(0); 15488 exit(0);
8839} 15489}
8840EOF 15490_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 15491rm -f conftest$ac_exeext
8842then 15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
8843 rxvt_cv_path_wtmpx=`cat conftestval` 15502 rxvt_cv_path_wtmpx=`cat conftestval`
8844else 15503else
15504 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "configure: failed program was:" >&5 15505echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5 15506sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -fr conftest* 15507
15508( exit $ac_status )
8848 rxvt_cv_path_wtmpx= 15509rxvt_cv_path_wtmpx=
8849fi 15510fi
8850rm -fr conftest* 15511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851fi 15512fi
8852
8853fi 15513fi
8854 15514echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8855echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15515echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8856if test x$rxvt_cv_path_wtmpx != x; then 15516if test x$rxvt_cv_path_wtmpx != x; then
15517
8857 cat >> confdefs.h <<EOF 15518cat >>confdefs.h <<_ACEOF
8858#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15519#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8859EOF 15520_ACEOF
8860 15521
8861fi 15522fi
8862 15523
15524echo "$as_me:$LINENO: checking where lastlog is located" >&5
8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15525echo $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 15526if test "${rxvt_cv_path_lastlog+set}" = set; then
8866 echo $ac_n "(cached) $ac_c" 1>&6 15527 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else 15528else
8868 if test "$cross_compiling" = yes; then 15529 if test "$cross_compiling" = yes; then
15530 { 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 15531echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8870else 15532else
8871 cat > conftest.$ac_ext <<EOF 15533 cat >conftest.$ac_ext <<_ACEOF
8872#line 8873 "configure" 15534/* confdefs.h. */
8873#include "confdefs.h" 15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
8874#include <stdio.h> 15539#include <stdio.h>
8875#include <sys/types.h> 15540#include <sys/types.h>
8876#ifdef HAVE_UTMPX_H 15541#ifdef HAVE_UTMPX_H
8877#include <utmpx.h> 15542#include <utmpx.h>
8878#elif defined(HAVE_UTMP_H) 15543#elif defined(HAVE_UTMP_H)
8901 exit(0); 15566 exit(0);
8902 } 15567 }
8903 } 15568 }
8904 exit(0); 15569 exit(0);
8905} 15570}
8906EOF 15571_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 15572rm -f conftest$ac_exeext
8908then 15573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15574 (eval $ac_link) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
8909 rxvt_cv_path_lastlog=`cat conftestval` 15583 rxvt_cv_path_lastlog=`cat conftestval`
8910else 15584else
15585 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "configure: failed program was:" >&5 15586echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5 15587sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -fr conftest* 15588
15589( exit $ac_status )
8914 rxvt_cv_path_lastlog= 15590rxvt_cv_path_lastlog=
8915fi 15591fi
8916rm -fr conftest* 15592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917fi 15593fi
8918
8919fi 15594fi
8920 15595echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8921echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15596echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8922if test x$rxvt_cv_path_lastlog != x; then 15597if test x$rxvt_cv_path_lastlog != x; then
15598
8923 cat >> confdefs.h <<EOF 15599cat >>confdefs.h <<_ACEOF
8924#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15600#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8925EOF 15601_ACEOF
8926 15602
8927 if test -d "$rxvt_cv_path_lastlog"; then 15603 if test -d "$rxvt_cv_path_lastlog"; then
15604
8928 cat >> confdefs.h <<\EOF 15605cat >>confdefs.h <<\_ACEOF
8929#define LASTLOG_IS_DIR 1 15606#define LASTLOG_IS_DIR 1
8930EOF 15607_ACEOF
8931 15608
8932 fi 15609 fi
8933fi 15610fi
8934 15611
15612echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15613echo $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 15614if test "${rxvt_cv_path_lastlogx+set}" = set; then
8938 echo $ac_n "(cached) $ac_c" 1>&6 15615 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else 15616else
8940 if test "$cross_compiling" = yes; then 15617 if test "$cross_compiling" = yes; then
15618 { 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 15619echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8942else 15620else
8943 cat > conftest.$ac_ext <<EOF 15621 cat >conftest.$ac_ext <<_ACEOF
8944#line 8945 "configure" 15622/* confdefs.h. */
8945#include "confdefs.h" 15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
8946#include <stdio.h> 15627#include <stdio.h>
8947#ifdef HAVE_UTMPX_H 15628#ifdef HAVE_UTMPX_H
8948#include <utmpx.h> 15629#include <utmpx.h>
8949#endif 15630#endif
8950#include <errno.h> 15631#include <errno.h>
8967 exit(0); 15648 exit(0);
8968 } 15649 }
8969 } 15650 }
8970 exit(0); 15651 exit(0);
8971} 15652}
8972EOF 15653_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 15654rm -f conftest$ac_exeext
8974then 15655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15656 (eval $ac_link) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
8975 rxvt_cv_path_lastlogx=`cat conftestval` 15665 rxvt_cv_path_lastlogx=`cat conftestval`
8976else 15666else
15667 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "configure: failed program was:" >&5 15668echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5 15669sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -fr conftest* 15670
15671( exit $ac_status )
8980 rxvt_cv_path_lastlogx= 15672rxvt_cv_path_lastlogx=
8981fi 15673fi
8982rm -fr conftest* 15674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi 15675fi
8984
8985fi 15676fi
8986 15677echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8987echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15678echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8988if test x$rxvt_cv_path_lastlogx != x; then 15679if test x$rxvt_cv_path_lastlogx != x; then
15680
8989 cat >> confdefs.h <<EOF 15681cat >>confdefs.h <<_ACEOF
8990#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15682#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8991EOF 15683_ACEOF
8992 15684
8993fi 15685fi
8994 15686
8995 15687
15688echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15689echo $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 15690if test "${rxvt_cv_path_ttytab+set}" = set; then
8999 echo $ac_n "(cached) $ac_c" 1>&6 15691 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else 15692else
9001 for ttys_file in /etc/ttys /etc/ttytab; 15693 for ttys_file in /etc/ttys /etc/ttytab;
9002do 15694do
9003 if test -f "$ttys_file" ; then 15695 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file 15696 rxvt_cv_path_ttytab=$ttys_file
9005 break 15697 break
9006 fi 15698 fi
9007done 15699done
9008 15700
9009fi 15701fi
9010 15702echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
9011echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15703echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
9012if test x$rxvt_cv_path_ttytab != x; then 15704if test x$rxvt_cv_path_ttytab != x; then
15705
9013 cat >> confdefs.h <<EOF 15706cat >>confdefs.h <<_ACEOF
9014#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15707#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9015EOF 15708_ACEOF
9016 15709
9017fi 15710fi
9018 15711
9019 15712
9020ac_save_LIBS=$LIBS 15713ac_save_LIBS=$LIBS
9022CFLAGS="$CFLAGS $X_CFLAGS" 15715CFLAGS="$CFLAGS $X_CFLAGS"
9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15716LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15717if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15718 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9026fi 15719fi
15720echo "$as_me:$LINENO: checking for working Xlocale" >&5
9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15721echo $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 15722if test "${rxvt_cv_func_xlocale+set}" = set; then
9030 echo $ac_n "(cached) $ac_c" 1>&6 15723 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else 15724else
9032 if test "$cross_compiling" = yes; then 15725 if test "$cross_compiling" = yes; then
15726 { 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 15727echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9034else 15728else
9035 cat > conftest.$ac_ext <<EOF 15729 cat >conftest.$ac_ext <<_ACEOF
9036#line 9037 "configure" 15730/* confdefs.h. */
9037#include "confdefs.h" 15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
9038#include <X11/Xlib.h> 15735#include <X11/Xlib.h>
9039main() { 15736main() {
9040char *p; 15737char *p;
9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15738if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042exit (XSupportsLocale() ? 0 : 1); 15739exit (XSupportsLocale() ? 0 : 1);
9043else 15740else
9044exit (1);} 15741exit (1);}
9045EOF 15742_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 15743rm -f conftest$ac_exeext
9047then 15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
9048 rxvt_cv_func_xlocale=yes 15754 rxvt_cv_func_xlocale=yes
9049else 15755else
15756 echo "$as_me: program exited with status $ac_status" >&5
9050 echo "configure: failed program was:" >&5 15757echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 15758sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -fr conftest* 15759
15760( exit $ac_status )
9053 rxvt_cv_func_xlocale=no 15761rxvt_cv_func_xlocale=no
9054fi 15762fi
9055rm -fr conftest* 15763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056fi 15764fi
9057
9058fi 15765fi
9059 15766echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9060echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15767echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9061if test x$rxvt_cv_func_xlocale = xyes; then 15768if test x$rxvt_cv_func_xlocale = xyes; then
15769
9062 cat >> confdefs.h <<\EOF 15770cat >>confdefs.h <<\_ACEOF
9063#define HAVE_XLOCALE 1 15771#define HAVE_XLOCALE 1
9064EOF 15772_ACEOF
9065 15773
9066fi 15774fi
9067 15775
15776echo "$as_me:$LINENO: checking for working X setlocale" >&5
9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15777echo $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 15778if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9071 echo $ac_n "(cached) $ac_c" 1>&6 15779 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else 15780else
9073 cat > conftest.$ac_ext <<EOF 15781 cat >conftest.$ac_ext <<_ACEOF
9074#line 9075 "configure" 15782/* confdefs.h. */
9075#include "confdefs.h" 15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
9076#define X_LOCALE 1 15787#define X_LOCALE 1
9077#include <X11/Xlocale.h> 15788#include <X11/Xlocale.h>
9078int main() { 15789int
15790main ()
15791{
9079setlocale(LC_CTYPE, ""); 15792setlocale(LC_CTYPE, "");
15793 ;
9080; return 0; } 15794 return 0;
9081EOF 15795}
9082if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15796_ACEOF
15797rm -f conftest.$ac_objext conftest$ac_exeext
15798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -rf conftest* 15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
9084 rxvt_cv_func_xsetlocale=yes 15818 rxvt_cv_func_xsetlocale=yes
9085else 15819else
9086 echo "configure: failed program was:" >&5 15820 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5 15821sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest* 15822
9089 rxvt_cv_func_xsetlocale=no 15823rxvt_cv_func_xsetlocale=no
9090fi 15824fi
9091rm -f conftest* 15825rm -f conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
9092fi 15827fi
9093 15828echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9094echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15829echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9095if test x$rxvt_cv_func_xsetlocale = xyes; then 15830if test x$rxvt_cv_func_xsetlocale = xyes; then
15831
9096 cat >> confdefs.h <<\EOF 15832cat >>confdefs.h <<\_ACEOF
9097#define HAVE_XSETLOCALE 1 15833#define HAVE_XSETLOCALE 1
9098EOF 15834_ACEOF
9099 15835
9100fi 15836fi
9101LIBS=$ac_save_LIBS 15837LIBS=$ac_save_LIBS
9102CFLAGS=$ac_save_CFLAGS 15838CFLAGS=$ac_save_CFLAGS
9103 15839
15840echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15841echo $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 15842if test "${rxvt_cv_func_setlocale+set}" = set; then
9107 echo $ac_n "(cached) $ac_c" 1>&6 15843 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else 15844else
9109 cat > conftest.$ac_ext <<EOF 15845 cat >conftest.$ac_ext <<_ACEOF
9110#line 9111 "configure" 15846/* confdefs.h. */
9111#include "confdefs.h" 15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
9112#include <locale.h> 15851#include <clocale>
9113int main() { 15852int
15853main ()
15854{
9114setlocale(LC_CTYPE, ""); 15855setlocale(LC_CTYPE, "");
15856 ;
9115; return 0; } 15857 return 0;
9116EOF 15858}
9117if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15859_ACEOF
15860rm -f conftest.$ac_objext conftest$ac_exeext
15861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15862 (eval $ac_link) 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -rf conftest* 15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest$ac_exeext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
9119 rxvt_cv_func_setlocale=yes 15881 rxvt_cv_func_setlocale=yes
9120else 15882else
9121 echo "configure: failed program was:" >&5 15883 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 15884sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -rf conftest* 15885
9124 rxvt_cv_func_setlocale=no 15886rxvt_cv_func_setlocale=no
9125fi 15887fi
9126rm -f conftest* 15888rm -f conftest.err conftest.$ac_objext \
15889 conftest$ac_exeext conftest.$ac_ext
9127fi 15890fi
9128 15891echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9129echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15892echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9130if test x$rxvt_cv_func_setlocale = xyes; then 15893if test x$rxvt_cv_func_setlocale = xyes; then
15894
9131 cat >> confdefs.h <<\EOF 15895cat >>confdefs.h <<\_ACEOF
9132#define HAVE_SETLOCALE 1 15896#define HAVE_SETLOCALE 1
9133EOF 15897_ACEOF
9134 15898
9135fi 15899fi
9136 15900
15901echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15902echo $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 15903if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9140 echo $ac_n "(cached) $ac_c" 1>&6 15904 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else 15905else
9142 cat > conftest.$ac_ext <<EOF 15906 cat >conftest.$ac_ext <<_ACEOF
9143#line 9144 "configure" 15907/* confdefs.h. */
9144#include "confdefs.h" 15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
9145#include <langinfo.h> 15912#include <langinfo.h>
9146int main() { 15913int
15914main ()
15915{
9147nl_langinfo(CODESET); 15916nl_langinfo(CODESET);
15917 ;
9148; return 0; } 15918 return 0;
9149EOF 15919}
9150if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15920_ACEOF
15921rm -f conftest.$ac_objext conftest$ac_exeext
15922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923 (eval $ac_link) 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -rf conftest* 15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
9152 rxvt_cv_func_nl_langinfo=yes 15942 rxvt_cv_func_nl_langinfo=yes
9153else 15943else
9154 echo "configure: failed program was:" >&5 15944 echo "$as_me: failed program was:" >&5
9155 cat conftest.$ac_ext >&5 15945sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -rf conftest* 15946
9157 rxvt_cv_func_nl_langinfo=no 15947rxvt_cv_func_nl_langinfo=no
9158fi 15948fi
9159rm -f conftest* 15949rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
9160fi 15951fi
9161 15952echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9162echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15953echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9163if test x$rxvt_cv_func_nl_langinfo = xyes; then 15954if test x$rxvt_cv_func_nl_langinfo = xyes; then
15955
9164 cat >> confdefs.h <<\EOF 15956cat >>confdefs.h <<\_ACEOF
9165#define HAVE_NL_LANGINFO 1 15957#define HAVE_NL_LANGINFO 1
9166EOF 15958_ACEOF
9167 15959
9168fi 15960fi
9169 15961
15962echo "$as_me:$LINENO: checking for getpt" >&5
9170echo $ac_n "checking for getpt""... $ac_c" 1>&6 15963echo $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 15964if test "${rxvt_cv_func_getpt+set}" = set; then
9173 echo $ac_n "(cached) $ac_c" 1>&6 15965 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else 15966else
9175 cat > conftest.$ac_ext <<EOF 15967 cat >conftest.$ac_ext <<_ACEOF
9176#line 9177 "configure" 15968/* confdefs.h. */
9177#include "confdefs.h" 15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
9178#define _GNU_SOURCE 15973#define _GNU_SOURCE
9179#ifdef HAVE_STDLIB_H 15974#ifdef HAVE_STDLIB_H
9180# include <stdlib.h> 15975# include <cstdlib>
9181#endif 15976#endif
9182int main() { 15977int
15978main ()
15979{
9183(void)getpt(); 15980(void)getpt();
15981 ;
9184; return 0; } 15982 return 0;
9185EOF 15983}
9186if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15984_ACEOF
15985rm -f conftest.$ac_objext conftest$ac_exeext
15986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -rf conftest* 15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
9188 rxvt_cv_func_getpt=yes 16006 rxvt_cv_func_getpt=yes
9189else 16007else
9190 echo "configure: failed program was:" >&5 16008 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 16009sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -rf conftest* 16010
9193 rxvt_cv_func_getpt=no 16011rxvt_cv_func_getpt=no
9194fi 16012fi
9195rm -f conftest* 16013rm -f conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
9196fi 16015fi
9197 16016echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9198echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16017echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9199if test x$rxvt_cv_func_getpt = xyes; then 16018if test x$rxvt_cv_func_getpt = xyes; then
16019
9200 cat >> confdefs.h <<\EOF 16020cat >>confdefs.h <<\_ACEOF
9201#define HAVE_GETPT 1 16021#define HAVE_GETPT 1
9202EOF 16022_ACEOF
9203 16023
9204fi 16024fi
9205 16025
16026echo "$as_me:$LINENO: checking for pty/tty type" >&5
9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16027echo $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 16028if test "${rxvt_cv_ptys+set}" = set; then
9209 echo $ac_n "(cached) $ac_c" 1>&6 16029 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else 16030else
9211 if test x$ac_cv_func_openpty = xyes; then 16031 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY 16032 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then 16033 else if test x$ac_cv_func__getpty = xyes; then
9214 rxvt_cv_ptys=SGI4 16034 rxvt_cv_ptys=SGI4
9237fi 16057fi
9238fi 16058fi
9239fi 16059fi
9240 16060
9241fi 16061fi
9242 16062echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9243echo "$ac_t""$rxvt_cv_ptys" 1>&6 16063echo "${ECHO_T}$rxvt_cv_ptys" >&6
9244 16064
9245if test x$rxvt_cv_ptys = xOPENPTY; then 16065if test x$rxvt_cv_ptys = xOPENPTY; then
16066
9246 cat >> confdefs.h <<\EOF 16067cat >>confdefs.h <<\_ACEOF
9247#define PTYS_ARE_OPENPTY 1 16068#define PTYS_ARE_OPENPTY 1
9248EOF 16069_ACEOF
9249 16070
9250fi 16071fi
9251if test x$rxvt_cv_ptys = xSCO; then 16072if test x$rxvt_cv_ptys = xSCO; then
16073
9252 cat >> confdefs.h <<\EOF 16074cat >>confdefs.h <<\_ACEOF
9253#define PTYS_ARE_NUMERIC 1 16075#define PTYS_ARE_NUMERIC 1
9254EOF 16076_ACEOF
9255 16077
9256fi 16078fi
9257if test x$rxvt_cv_ptys = xSTREAMS; then 16079if test x$rxvt_cv_ptys = xSTREAMS; then
16080
9258 cat >> confdefs.h <<\EOF 16081cat >>confdefs.h <<\_ACEOF
9259#define PTYS_ARE_PTMX 1 16082#define PTYS_ARE_PTMX 1
9260EOF 16083_ACEOF
9261 16084
9262fi 16085fi
9263if test x$rxvt_cv_ptys = xPTC; then 16086if test x$rxvt_cv_ptys = xPTC; then
16087
9264 cat >> confdefs.h <<\EOF 16088cat >>confdefs.h <<\_ACEOF
9265#define PTYS_ARE_PTC 1 16089#define PTYS_ARE_PTC 1
9266EOF 16090_ACEOF
9267 16091
9268fi 16092fi
9269if test x$rxvt_cv_ptys = xSGI4; then 16093if test x$rxvt_cv_ptys = xSGI4; then
16094
9270 cat >> confdefs.h <<\EOF 16095cat >>confdefs.h <<\_ACEOF
9271#define PTYS_ARE__GETPTY 1 16096#define PTYS_ARE__GETPTY 1
9272EOF 16097_ACEOF
9273 16098
9274fi 16099fi
9275if test x$rxvt_cv_ptys = xCONVEX; then 16100if test x$rxvt_cv_ptys = xCONVEX; then
16101
9276 cat >> confdefs.h <<\EOF 16102cat >>confdefs.h <<\_ACEOF
9277#define PTYS_ARE_GETPTY 1 16103#define PTYS_ARE_GETPTY 1
9278EOF 16104_ACEOF
9279 16105
9280fi 16106fi
9281if test x$rxvt_cv_ptys = xGLIBC; then 16107if test x$rxvt_cv_ptys = xGLIBC; then
16108
9282 cat >> confdefs.h <<\EOF 16109cat >>confdefs.h <<\_ACEOF
9283#define PTYS_ARE_GETPT 1 16110#define PTYS_ARE_GETPT 1
9284EOF 16111_ACEOF
9285 16112
9286fi 16113fi
9287if test x$rxvt_cv_ptys = xHPUX; then 16114if test x$rxvt_cv_ptys = xHPUX; then
16115
9288 cat >> confdefs.h <<\EOF 16116cat >>confdefs.h <<\_ACEOF
9289#define PTYS_ARE_CLONE 1 16117#define PTYS_ARE_CLONE 1
9290EOF 16118_ACEOF
9291 16119
9292fi 16120fi
9293if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16121if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16122
9294 cat >> confdefs.h <<\EOF 16123cat >>confdefs.h <<\_ACEOF
9295#define PTYS_ARE_SEARCHED 1 16124#define PTYS_ARE_SEARCHED 1
9296EOF 16125_ACEOF
9297 16126
9298fi 16127fi
9299 16128
9300 16129
16130{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9301echo "checking for pty ranges" 1>&6 16131echo "$as_me: checking for pty ranges..." >&6;}
9302echo "configure:9303: checking for pty ranges" >&5
9303ptys=`echo /dev/pty??` 16132ptys=`echo /dev/pty??`
9304pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16133pch1=`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'` 16134pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9306if test x$pch1 != x; then 16135if test x$pch1 != x; then
16136
9307 cat >> confdefs.h <<EOF 16137cat >>confdefs.h <<_ACEOF
9308#define PTYCHAR1 "$pch1" 16138#define PTYCHAR1 "$pch1"
9309EOF 16139_ACEOF
9310 16140
9311fi 16141fi
9312if test x$pch2 != x; then 16142if test x$pch2 != x; then
16143
9313 cat >> confdefs.h <<EOF 16144cat >>confdefs.h <<_ACEOF
9314#define PTYCHAR2 "$pch2" 16145#define PTYCHAR2 "$pch2"
9315EOF 16146_ACEOF
9316 16147
9317fi 16148fi
9318 16149
16150echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16151echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9320echo "configure:9321: checking for setlocale in -lxpg4" >&5 16152if 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 16153 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else 16154else
9325 ac_save_LIBS="$LIBS" 16155 ac_check_lib_save_LIBS=$LIBS
9326LIBS="-lxpg4 $LIBS" 16156LIBS="-lxpg4 $LIBS"
9327cat > conftest.$ac_ext <<EOF 16157cat >conftest.$ac_ext <<_ACEOF
9328#line 9329 "configure" 16158/* confdefs.h. */
9329#include "confdefs.h" 16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
16163
9330/* Override any gcc2 internal prototype to avoid an error. */ 16164/* Override any gcc2 internal prototype to avoid an error. */
16165#ifdef __cplusplus
16166extern "C"
16167#endif
9331/* We use char because int might match the return type of a gcc2 16168/* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */ 16169 builtin and then its argument prototype would still apply. */
9333char setlocale(); 16170char setlocale ();
9334 16171int
9335int main() { 16172main ()
16173{
9336setlocale() 16174setlocale ();
16175 ;
9337; return 0; } 16176 return 0;
9338EOF 16177}
9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16178_ACEOF
16179rm -f conftest.$ac_objext conftest$ac_exeext
16180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -rf conftest* 16184 rm -f conftest.er1
9341 eval "ac_cv_lib_$ac_lib_var=yes" 16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest$ac_exeext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_cv_lib_xpg4_setlocale=yes
9342else 16201else
9343 echo "configure: failed program was:" >&5 16202 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5 16203sed 's/^/| /' conftest.$ac_ext >&5
9345 rm -rf conftest* 16204
9346 eval "ac_cv_lib_$ac_lib_var=no" 16205ac_cv_lib_xpg4_setlocale=no
9347fi 16206fi
9348rm -f conftest* 16207rm -f conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
9349LIBS="$ac_save_LIBS" 16209LIBS=$ac_check_lib_save_LIBS
9350
9351fi 16210fi
9352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16211echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9353 echo "$ac_t""yes" 1>&6 16212echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16213if test $ac_cv_lib_xpg4_setlocale = yes; then
9354 LIBS="$LIBS -lxpg4" 16214 LIBS="$LIBS -lxpg4"
9355else
9356 echo "$ac_t""no" 1>&6
9357fi 16215fi
9358 16216
9359 16217
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 16218if test x$support_inheritpixmap = xyes; then
16219
9367 cat >> confdefs.h <<\EOF 16220cat >>confdefs.h <<\_ACEOF
9368#define TRANSPARENT 1 16221#define TRANSPARENT 1
9369EOF 16222_ACEOF
9370 16223
9371fi 16224fi
9372if test x$support_keepscrolling = xno; then 16225if test x$support_keepscrolling = xno; then
16226
9373 cat >> confdefs.h <<\EOF 16227cat >>confdefs.h <<\_ACEOF
9374#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16228#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9375EOF 16229_ACEOF
9376 16230
9377fi 16231fi
9378if test x$support_selectionscrolling = xyes; then 16232if test x$support_selectionscrolling = xyes; then
16233
9379 cat >> confdefs.h <<\EOF 16234cat >>confdefs.h <<\_ACEOF
9380#define SELECTION_SCROLLING 1 16235#define SELECTION_SCROLLING 1
9381EOF 16236_ACEOF
9382 16237
9383fi 16238fi
9384if test x$support_menubar = xyes; then 16239if test x$support_menubar = xyes; then
16240
9385 cat >> confdefs.h <<\EOF 16241cat >>confdefs.h <<\_ACEOF
9386#define MENUBAR 1 16242#define MENUBAR 1
9387EOF 16243_ACEOF
9388 16244
9389fi 16245fi
9390if test x$support_frills = xno; then 16246if test x$support_frills = xno; then
16247
9391 cat >> confdefs.h <<\EOF 16248cat >>confdefs.h <<\_ACEOF
9392#define NO_FRILLS 1 16249#define NO_FRILLS 1
9393EOF 16250_ACEOF
9394 16251
9395fi 16252fi
9396if test x$support_linespace = xno; then 16253if test x$support_linespace = xno; then
16254
9397 cat >> confdefs.h <<\EOF 16255cat >>confdefs.h <<\_ACEOF
9398#define NO_LINESPACE 1 16256#define NO_LINESPACE 1
9399EOF 16257_ACEOF
9400 16258
9401fi 16259fi
9402if test x$support_24bit = xyes; then 16260if test x$support_24bit = xyes; then
16261
9403 cat >> confdefs.h <<\EOF 16262cat >>confdefs.h <<\_ACEOF
9404#define PREFER_24BIT 1 16263#define PREFER_24BIT 1
9405EOF 16264_ACEOF
9406 16265
9407fi 16266fi
9408if test x$support_mousewheel = xyes; then 16267if test x$support_mousewheel = xyes; then
16268
9409 cat >> confdefs.h <<\EOF 16269cat >>confdefs.h <<\_ACEOF
9410#define MOUSE_WHEEL 1 16270#define MOUSE_WHEEL 1
9411EOF 16271_ACEOF
9412 16272
9413fi 16273fi
9414if test x$support_mouseslipwheel = xyes; then 16274if test x$support_mouseslipwheel = xyes; then
16275
9415 cat >> confdefs.h <<\EOF 16276cat >>confdefs.h <<\_ACEOF
9416#define MOUSE_SLIP_WHEELING 1 16277#define MOUSE_SLIP_WHEELING 1
9417EOF 16278_ACEOF
9418
9419fi
9420if test x$support_oldselection = xno; then
9421 cat >> confdefs.h <<\EOF
9422#define NO_OLD_SELECTION 1
9423EOF
9424 16279
9425fi 16280fi
9426if test x$support_utmp = xyes; then 16281if test x$support_utmp = xyes; then
16282
9427 cat >> confdefs.h <<\EOF 16283cat >>confdefs.h <<\_ACEOF
9428#define UTMP_SUPPORT 1 16284#define UTMP_SUPPORT 1
9429EOF 16285_ACEOF
9430 16286
9431fi 16287fi
9432if test x$support_wtmp = xyes; then 16288if test x$support_wtmp = xyes; then
16289
9433 cat >> confdefs.h <<\EOF 16290cat >>confdefs.h <<\_ACEOF
9434#define WTMP_SUPPORT 1 16291#define WTMP_SUPPORT 1
9435EOF 16292_ACEOF
9436 16293
9437fi 16294fi
9438if test x$support_lastlog = xyes; then 16295if test x$support_lastlog = xyes; then
16296
9439 cat >> confdefs.h <<\EOF 16297cat >>confdefs.h <<\_ACEOF
9440#define LASTLOG_SUPPORT 1 16298#define LASTLOG_SUPPORT 1
9441EOF 16299_ACEOF
9442 16300
9443fi 16301fi
9444if test x$support_xim = xyes -o x$multichar_set = xyes; then 16302if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then 16303 if test x$rxvt_cv_func_xlocale = xyes; then
16304
9446 cat >> confdefs.h <<\EOF 16305cat >>confdefs.h <<\_ACEOF
9447#define USE_XIM 1 16306#define USE_XIM 1
9448EOF 16307_ACEOF
9449 16308
9450 fi 16309 fi
9451fi 16310fi
9452if test x$support_xpm = xyes; then 16311if test x$support_xpm = xyes; then
16312
9453 cat >> confdefs.h <<\EOF 16313cat >>confdefs.h <<\_ACEOF
9454#define XPM_BACKGROUND 1 16314#define XPM_BACKGROUND 1
9455EOF 16315_ACEOF
9456 16316
9457fi 16317fi
9458if test x$support_scroll_rxvt = xyes; then 16318if test x$support_scroll_rxvt = xyes; then
16319
9459 cat >> confdefs.h <<\EOF 16320cat >>confdefs.h <<\_ACEOF
9460#define RXVT_SCROLLBAR 1 16321#define RXVT_SCROLLBAR 1
9461EOF 16322_ACEOF
9462 16323
9463 scrolltypes="rxvt" 16324 scrolltypes="rxvt"
9464fi 16325fi
9465if test x$support_scroll_next = xyes; then 16326if test x$support_scroll_next = xyes; then
16327
9466 cat >> confdefs.h <<\EOF 16328cat >>confdefs.h <<\_ACEOF
9467#define NEXT_SCROLLBAR 1 16329#define NEXT_SCROLLBAR 1
9468EOF 16330_ACEOF
9469 16331
9470 scrolltypes="$scrolltypes next" 16332 scrolltypes="$scrolltypes next"
9471fi 16333fi
9472if test x$support_scroll_xterm = xyes; then 16334if test x$support_scroll_xterm = xyes; then
16335
9473 cat >> confdefs.h <<\EOF 16336cat >>confdefs.h <<\_ACEOF
9474#define XTERM_SCROLLBAR 1 16337#define XTERM_SCROLLBAR 1
9475EOF 16338_ACEOF
9476 16339
9477 scrolltypes="$scrolltypes xterm" 16340 scrolltypes="$scrolltypes xterm"
9478fi 16341fi
16342if test x$support_scroll_plain = xyes; then
16343
16344cat >>confdefs.h <<\_ACEOF
16345#define PLAIN_SCROLLBAR 1
16346_ACEOF
16347
16348 scrolltypes="$scrolltypes plain"
16349fi
9479if test x$support_pointer_blank = xyes; then 16350if test x$support_pointer_blank = xyes; then
16351
9480 cat >> confdefs.h <<\EOF 16352cat >>confdefs.h <<\_ACEOF
9481#define POINTER_BLANK 1 16353#define POINTER_BLANK 1
9482EOF 16354_ACEOF
9483 16355
9484fi 16356fi
9485if test x$support_cursor_blink = xyes; then 16357if test x$support_cursor_blink = xyes; then
16358
9486 cat >> confdefs.h <<\EOF 16359cat >>confdefs.h <<\_ACEOF
9487#define CURSOR_BLINK 1 16360#define CURSOR_BLINK 1
9488EOF 16361_ACEOF
16362
16363fi
16364if test x$support_text_blink = xyes; then
16365
16366cat >>confdefs.h <<\_ACEOF
16367#define TEXT_BLINK 1
16368_ACEOF
9489 16369
9490fi 16370fi
9491if test x$support_unicode3 = xyes; then 16371if test x$support_unicode3 = xyes; then
16372
9492 cat >> confdefs.h <<\EOF 16373cat >>confdefs.h <<\_ACEOF
9493#define UNICODE_3 1 16374#define UNICODE_3 1
9494EOF 16375_ACEOF
16376
16377fi
16378if test x$support_combining = xyes; then
16379
16380cat >>confdefs.h <<\_ACEOF
16381#define ENABLE_COMBINING 1
16382_ACEOF
9495 16383
9496fi 16384fi
9497if test x$codesets = xall; then 16385if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16386 codesets=jp,jp-ext,kr,cn,cn-ext
9499fi 16387fi
9500for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16388for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16389
9501 cat >> confdefs.h <<\EOF 16390cat >>confdefs.h <<\_ACEOF
9502#define ENCODING_EU 1 16391#define ENCODING_EU 1
9503EOF 16392_ACEOF
16393
16394
16395cat >>confdefs.h <<\_ACEOF
16396#define ENCODING_VN 1
16397_ACEOF
9504 16398
9505 case "$codeset" in 16399 case "$codeset" in
9506 VN ) cat >> confdefs.h <<\EOF 16400 JP )
16401cat >>confdefs.h <<\_ACEOF
9507#define ENCODING_VN 1 16402#define ENCODING_JP 1
9508EOF 16403_ACEOF
9509 ;; 16404 ;;
9510 JP ) cat >> confdefs.h <<\EOF 16405 JP_EXT )
16406cat >>confdefs.h <<\_ACEOF
9511#define ENCODING_JP 1 16407#define ENCODING_JP_EXT 1
9512EOF 16408_ACEOF
9513 ;; 16409 ;;
9514 JP_EXT ) cat >> confdefs.h <<\EOF 16410 KR )
16411cat >>confdefs.h <<\_ACEOF
9515#define ENCODING_JP_EXT 1 16412#define ENCODING_KR 1
9516EOF 16413_ACEOF
9517 ;; 16414 ;;
9518 KR ) cat >> confdefs.h <<\EOF 16415 CN )
16416cat >>confdefs.h <<\_ACEOF
9519#define ENCODING_KR 1 16417#define ENCODING_CN 1
9520EOF 16418_ACEOF
9521 ;; 16419 ;;
9522 CN ) cat >> confdefs.h <<\EOF 16420 CN_EXT )
9523#define ENCODING_CN 1 16421cat >>confdefs.h <<\_ACEOF
9524EOF
9525 ;;
9526 CN_EXT ) cat >> confdefs.h <<\EOF
9527#define ENCODING_CN_EXT 1 16422#define ENCODING_CN_EXT 1
9528EOF 16423_ACEOF
9529 ;; 16424 ;;
9530 esac 16425 esac
9531done 16426done
9532 16427
9533 16428
9553 16448
9554 16449
9555 16450
9556 16451
9557if test x$support_addstrings = xno; then 16452if test x$support_addstrings = xno; then
16453
9558 cat >> confdefs.h <<\EOF 16454cat >>confdefs.h <<\_ACEOF
9559#define NO_STRINGS 1 16455#define NO_STRINGS 1
9560EOF 16456_ACEOF
9561 16457
9562fi 16458fi
9563 16459
9564MCOMMON=./autoconf/Make.common 16460MCOMMON=./autoconf/Make.common
9565 16461
9566 16462
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 && 16463test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9579# Use a double $ so make ignores it. 16465# Use a double $ so make ignores it.
9580test "$program_suffix" != NONE && 16466test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9582 16468# Double any \ or $. echo might interpret backslashes.
9583# sed with no file args requires a program. 16469# By default was `s,x,x', remove it if useless.
9584test "$program_transform_name" = "" && program_transform_name="s,x,x," 16470cat <<\_ACEOF >conftest.sed
9585 16471s/[\\$]/&&/g;s/;s,x,x,$//
9586 16472_ACEOF
9587RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16473program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16474rm conftest.sed
9588 16475
9589 16476
9590 16477
9591 16478
9592 16479
9593if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16480if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>" 16481 include_stdint_h="#include <stdint.h>"
9595else 16482else
9596 include_stdint_h="/* #include <stdint.h> */" 16483 include_stdint_h="/* #include <stdint.h> */"
9597fi 16484fi
9598if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16485if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>" 16486 include_stdarg_h="#include <cstdarg>"
9600else 16487else
9601 include_stdarg_h="/* #include <stdarg.h> */" 16488 include_stdarg_h="/* #include <cstdarg> */"
9602fi 16489fi
9603if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16490if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>" 16491 include_stdlib_h="#include <cstdlib>"
9605else 16492else
9606 include_stdlib_h="/* #include <stdlib.h> */" 16493 include_stdlib_h="/* #include <cstdlib> */"
9607fi 16494fi
9608if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16495if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>" 16496 include_unistd_h="#include <unistd.h>"
9610else 16497else
9611 include_unistd_h="/* #include <unistd.h> */" 16498 include_unistd_h="/* #include <unistd.h> */"
9612fi 16499fi
9613if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16500if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>" 16501 include_string_h="#include <cstring>"
9615else 16502else
9616 include_string_h="/* #include <string.h> */" 16503 include_string_h="/* #include <cstring> */"
9617fi 16504fi
9618if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16505if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>" 16506 include_fcntl_h="#include <fcntl.h>"
9620else 16507else
9621 include_fcntl_h="/* #include <fcntl.h> */" 16508 include_fcntl_h="/* #include <fcntl.h> */"
9622fi 16509fi
9623if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16510if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>" 16511 include_util_h="#include <util.h>"
9625else 16512else
9626 include_util_h="/* #include <util.h> */" 16513 include_util_h="/* #include <util.h> */"
9627fi 16514fi
9628if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16515if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>" 16516 include_assert_h="#include <assert.h>"
9630else 16517else
9631 include_assert_h="/* #include <assert.h> */" 16518 include_assert_h="/* #include <assert.h> */"
9632fi 16519fi
9633if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16520if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>" 16521 include_sys_ioctl_h="#include <sys/ioctl.h>"
9635else 16522else
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16523 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9637fi 16524fi
9638if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16525if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9639 include_sys_select_h="#include <sys/select.h>" 16526 include_sys_select_h="#include <sys/select.h>"
9640else 16527else
9641 include_sys_select_h="/* #include <sys/select.h> */" 16528 include_sys_select_h="/* #include <sys/select.h> */"
9642fi 16529fi
9643if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16530if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9644 include_sys_strredir_h="#include <sys/strredir.h>" 16531 include_sys_strredir_h="#include <sys/strredir.h>"
9645else 16532else
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16533 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9647fi 16534fi
9648if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16535if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9649 include_sys_time_h="#include <sys/time.h>" 16536 include_sys_time_h="#include <sys/time.h>"
9650else 16537else
9651 include_sys_time_h="/* #include <sys/time.h> */" 16538 include_sys_time_h="/* #include <sys/time.h> */"
9652fi 16539fi
9653if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16540if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9654 include_time_h="#include <time.h>" 16541 include_time_h="#include <time.h>"
9655else 16542else
9656 include_time_h="/* #include <time.h> */" 16543 include_time_h="/* #include <time.h> */"
9657fi 16544fi
9658 16545
9659if test x$support_xft = xyes; then 16546if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`" 16547 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16548 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16549 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9663 16550
16551
9664 for ac_hdr in X11/Xft/Xft.h 16552for ac_header in X11/Xft/Xft.h
9665do 16553do
9666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555if eval "test \"\${$as_ac_Header+set}\" = set"; then
16556 echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668echo "configure:9669: checking for $ac_hdr" >&5 16558if 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 16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560fi
16561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671else 16563else
16564 # Is the header compilable?
16565echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9672 cat > conftest.$ac_ext <<EOF 16567cat >conftest.$ac_ext <<_ACEOF
9673#line 9674 "configure" 16568/* confdefs.h. */
9674#include "confdefs.h" 16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
16573$ac_includes_default
9675#include <$ac_hdr> 16574#include <$ac_header>
9676EOF 16575_ACEOF
9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16576rm -f conftest.$ac_objext
9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16578 (eval $ac_compile) 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_header_compiler=yes
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
16601
16602ac_header_compiler=no
16603fi
16604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16606echo "${ECHO_T}$ac_header_compiler" >&6
16607
16608# Is the header present?
16609echo "$as_me:$LINENO: checking $ac_header presence" >&5
16610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16611cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617#include <$ac_header>
16618_ACEOF
16619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } >/dev/null; then
16627 if test -s conftest.err; then
16628 ac_cpp_err=$ac_cxx_preproc_warn_flag
16629 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16630 else
16631 ac_cpp_err=
16632 fi
16633else
16634 ac_cpp_err=yes
16635fi
9680if test -z "$ac_err"; then 16636if test -z "$ac_cpp_err"; then
9681 rm -rf conftest* 16637 ac_header_preproc=yes
9682 eval "ac_cv_header_$ac_safe=yes"
9683else 16638else
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5 16639 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5 16640sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -rf conftest* 16641
9688 eval "ac_cv_header_$ac_safe=no" 16642 ac_header_preproc=no
9689fi 16643fi
9690rm -f conftest* 16644rm -f conftest.err conftest.$ac_ext
16645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16646echo "${ECHO_T}$ac_header_preproc" >&6
16647
16648# So? What about this header?
16649case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16650 yes:no: )
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16655 ac_header_preproc=yes
16656 ;;
16657 no:yes:* )
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16670 (
16671 cat <<\_ASBOX
16672## ------------------------------------------ ##
16673## Report this to the AC_PACKAGE_NAME lists. ##
16674## ------------------------------------------ ##
16675_ASBOX
16676 ) |
16677 sed "s/^/$as_me: WARNING: /" >&2
16678 ;;
16679esac
16680echo "$as_me:$LINENO: checking for $ac_header" >&5
16681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16682if eval "test \"\${$as_ac_Header+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 eval "$as_ac_Header=\$ac_header_preproc"
9691fi 16686fi
9692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "$ac_t""yes" 1>&6 16688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16689
16690fi
16691if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >> confdefs.h <<EOF 16692 cat >>confdefs.h <<_ACEOF
9696#define $ac_tr_hdr 1 16693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697EOF 16694_ACEOF
9698 16695
9699else 16696else
9700 echo "$ac_t""no" 1>&6
9701support_xft=no 16697 support_xft=no
9702fi 16698fi
16699
9703done 16700done
9704 16701
16702
16703echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16704echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5 16705if 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 16706 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else 16707else
9711 ac_save_LIBS="$LIBS" 16708 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-lXft $LIBS" 16709LIBS="-lXft $LIBS"
9713cat > conftest.$ac_ext <<EOF 16710cat >conftest.$ac_ext <<_ACEOF
9714#line 9715 "configure" 16711/* confdefs.h. */
9715#include "confdefs.h" 16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716
9716/* Override any gcc2 internal prototype to avoid an error. */ 16717/* Override any gcc2 internal prototype to avoid an error. */
16718#ifdef __cplusplus
16719extern "C"
16720#endif
9717/* We use char because int might match the return type of a gcc2 16721/* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */ 16722 builtin and then its argument prototype would still apply. */
9719char XftDrawString32(); 16723char XftDrawString32 ();
9720 16724int
9721int main() { 16725main ()
16726{
9722XftDrawString32() 16727XftDrawString32 ();
16728 ;
9723; return 0; } 16729 return 0;
9724EOF 16730}
9725if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16731_ACEOF
16732rm -f conftest.$ac_objext conftest$ac_exeext
16733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -rf conftest* 16737 rm -f conftest.er1
9727 eval "ac_cv_lib_$ac_lib_var=yes" 16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_lib_Xft_XftDrawString32=yes
9728else 16754else
9729 echo "configure: failed program was:" >&5 16755 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5 16756sed 's/^/| /' conftest.$ac_ext >&5
9731 rm -rf conftest* 16757
9732 eval "ac_cv_lib_$ac_lib_var=no" 16758ac_cv_lib_Xft_XftDrawString32=no
9733fi 16759fi
9734rm -f conftest* 16760rm -f conftest.err conftest.$ac_objext \
16761 conftest$ac_exeext conftest.$ac_ext
9735LIBS="$ac_save_LIBS" 16762LIBS=$ac_check_lib_save_LIBS
9736
9737fi 16763fi
9738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16764echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9739 echo "$ac_t""yes" 1>&6 16765echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16766if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF 16767 cat >>confdefs.h <<_ACEOF
9743#define $ac_tr_lib 1 16768#define HAVE_LIBXFT 1
9744EOF 16769_ACEOF
9745 16770
9746 LIBS="-lXft $LIBS" 16771 LIBS="-lXft $LIBS"
9747 16772
9748else 16773else
9749 echo "$ac_t""no" 1>&6
9750support_xft=no 16774 support_xft=no
9751fi 16775fi
9752 16776
9753 16777
9754 if test x$support_xft = xyes; then 16778 if test x$support_xft = xyes; then
16779
9755 cat >> confdefs.h <<\EOF 16780cat >>confdefs.h <<\_ACEOF
9756#define XFT 1 16781#define XFT 1
9757EOF 16782_ACEOF
9758 16783
9759 fi 16784 fi
9760fi 16785fi
9761 16786
9762trap '' 1 2 15 16787 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 16788cat >confcache <<\_ACEOF
9764# This file is a shell script that caches the results of configure 16789# 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 16790# tests run on this system so they can be shared between configure
9766# scripts and configure runs. It is not useful on other systems. 16791# 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. 16792# It is not useful on other systems. If it contains results you don't
16793# want to keep, you may remove or edit it.
9768# 16794#
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 16795# config.status only pays attention to the cache file if you give it
9776# --recheck option to rerun configure. 16796# the --recheck option to rerun configure.
9777# 16797#
9778EOF 16798# `ac_cv_env_foo' variables (set or unset) will be overridden when
16799# loading this file, other *unset* `ac_cv_foo' will be assigned the
16800# following values.
16801
16802_ACEOF
16803
9779# The following way of writing the cache mishandles newlines in values, 16804# The following way of writing the cache mishandles newlines in values,
9780# but we know of no workaround that is simple, portable, and efficient. 16805# but we know of no workaround that is simple, portable, and efficient.
9781# So, don't put newlines in cache variables' values. 16806# So, don't put newlines in cache variables' values.
9782# Ultrix sh set writes to stderr and can't be redirected directly, 16807# 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. 16808# and sets the high bit in the cache file unless we assign to the vars.
16809{
9784(set) 2>&1 | 16810 (set) 2>&1 |
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9786 *ac_space=\ *) 16812 *ac_space=\ *)
9787 # `set' does not quote correctly, so add quotes (double-quote substitution 16813 # `set' does not quote correctly, so add quotes (double-quote
9788 # turns \\\\ into \\, and sed turns \\ into \). 16814 # substitution turns \\\\ into \\, and sed turns \\ into \).
9789 sed -n \ 16815 sed -n \
9790 -e "s/'/'\\\\''/g" \ 16816 "s/'/'\\\\''/g;
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9792 ;; 16818 ;;
9793 *) 16819 *)
9794 # `set' quotes correctly as required by POSIX, so do not add quotes. 16820 # `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' 16821 sed -n \
16822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9796 ;; 16823 ;;
9797 esac >> confcache 16824 esac;
9798if cmp -s $cache_file confcache; then 16825} |
9799 : 16826 sed '
9800else 16827 t clear
16828 : clear
16829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16830 t end
16831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16832 : end' >>confcache
16833if diff $cache_file confcache >/dev/null 2>&1; then :; else
9801 if test -w $cache_file; then 16834 if test -w $cache_file; then
9802 echo "updating cache $cache_file" 16835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9803 cat confcache > $cache_file 16836 cat confcache >$cache_file
9804 else 16837 else
9805 echo "not updating unwritable cache $cache_file" 16838 echo "not updating unwritable cache $cache_file"
9806 fi 16839 fi
9807fi 16840fi
9808rm -f confcache 16841rm -f confcache
9809 16842
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 16843test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813# Let make expand exec_prefix. 16844# Let make expand exec_prefix.
9814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9815 16846
9816# Any assignment to VPATH causes Sun make to only execute 16847# 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. 16848# ${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. 16849# trailing colons and then remove the whole line if VPATH becomes empty
16850# (actually we leave an empty line to preserve line numbers).
9819if test "x$srcdir" = x.; then 16851if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16852 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16853s/:*\$(srcdir):*/:/;
16854s/:*\${srcdir}:*/:/;
16855s/:*@srcdir@:*/:/;
16856s/^\([^=]*=[ ]*\):*/\1/;
16857s/:*$//;
16858s/^[^=]*=[ ]*$//;
16859}'
9821fi 16860fi
9822
9823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9824 16861
9825DEFS=-DHAVE_CONFIG_H 16862DEFS=-DHAVE_CONFIG_H
9826 16863
9827# Without the "./", some shells look in PATH for config.status. 16864ac_libobjs=
16865ac_ltlibobjs=
16866for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16867 # 1. Remove the extension, and $U if already installed.
16868 ac_i=`echo "$ac_i" |
16869 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16870 # 2. Add them.
16871 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16872 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16873done
16874LIBOBJS=$ac_libobjs
16875
16876LTLIBOBJS=$ac_ltlibobjs
16877
16878
16879
9828: ${CONFIG_STATUS=./config.status} 16880: ${CONFIG_STATUS=./config.status}
9829 16881ac_clean_files_save=$ac_clean_files
16882ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16883{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9830echo creating $CONFIG_STATUS 16884echo "$as_me: creating $CONFIG_STATUS" >&6;}
9831rm -f $CONFIG_STATUS
9832cat > $CONFIG_STATUS <<EOF 16885cat >$CONFIG_STATUS <<_ACEOF
9833#! /bin/sh 16886#! $SHELL
9834# Generated automatically by configure. 16887# Generated by $as_me.
9835# Run this file to recreate the current configuration. 16888# 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 16889# Compiler output produced by configure, useful for debugging
9842# configure, is in ./config.log if it exists. 16890# configure, is in config.log if it exists.
9843 16891
9844ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16892debug=false
9845for ac_option 16893ac_cs_recheck=false
16894ac_cs_silent=false
16895SHELL=\${CONFIG_SHELL-$SHELL}
16896_ACEOF
16897
16898cat >>$CONFIG_STATUS <<\_ACEOF
16899## --------------------- ##
16900## M4sh Initialization. ##
16901## --------------------- ##
16902
16903# Be Bourne compatible
16904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16905 emulate sh
16906 NULLCMD=:
16907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16908 # is contrary to our usage. Disable this feature.
16909 alias -g '${1+"$@"}'='"$@"'
16910elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16911 set -o posix
16912fi
16913DUALCASE=1; export DUALCASE # for MKS sh
16914
16915# Support unset when possible.
16916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16917 as_unset=unset
16918else
16919 as_unset=false
16920fi
16921
16922
16923# Work around bugs in pre-3.0 UWIN ksh.
16924$as_unset ENV MAIL MAILPATH
16925PS1='$ '
16926PS2='> '
16927PS4='+ '
16928
16929# NLS nuisances.
16930for as_var in \
16931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16933 LC_TELEPHONE LC_TIME
9846do 16934do
16935 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16936 eval $as_var=C; export $as_var
16937 else
16938 $as_unset $as_var
16939 fi
16940done
16941
16942# Required to use basename.
16943if expr a : '\(a\)' >/dev/null 2>&1; then
16944 as_expr=expr
16945else
16946 as_expr=false
16947fi
16948
16949if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16950 as_basename=basename
16951else
16952 as_basename=false
16953fi
16954
16955
16956# Name of the executable.
16957as_me=`$as_basename "$0" ||
16958$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
16960 X"$0" : 'X\(/\)$' \| \
16961 . : '\(.\)' 2>/dev/null ||
16962echo X/"$0" |
16963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16964 /^X\/\(\/\/\)$/{ s//\1/; q; }
16965 /^X\/\(\/\).*/{ s//\1/; q; }
16966 s/.*/./; q'`
16967
16968
16969# PATH needs CR, and LINENO needs CR and PATH.
16970# Avoid depending upon Character Ranges.
16971as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16972as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16973as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16974as_cr_digits='0123456789'
16975as_cr_alnum=$as_cr_Letters$as_cr_digits
16976
16977# The user is always right.
16978if test "${PATH_SEPARATOR+set}" != set; then
16979 echo "#! /bin/sh" >conf$$.sh
16980 echo "exit 0" >>conf$$.sh
16981 chmod +x conf$$.sh
16982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16983 PATH_SEPARATOR=';'
16984 else
16985 PATH_SEPARATOR=:
16986 fi
16987 rm -f conf$$.sh
16988fi
16989
16990
16991 as_lineno_1=$LINENO
16992 as_lineno_2=$LINENO
16993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16994 test "x$as_lineno_1" != "x$as_lineno_2" &&
16995 test "x$as_lineno_3" = "x$as_lineno_2" || {
16996 # Find who we are. Look in the path if we contain no path at all
16997 # relative or not.
16998 case $0 in
16999 *[\\/]* ) as_myself=$0 ;;
17000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001for as_dir in $PATH
17002do
17003 IFS=$as_save_IFS
17004 test -z "$as_dir" && as_dir=.
17005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17006done
17007
17008 ;;
17009 esac
17010 # We did not find ourselves, most probably we were run as `sh COMMAND'
17011 # in which case we are not to be found in the path.
17012 if test "x$as_myself" = x; then
17013 as_myself=$0
17014 fi
17015 if test ! -f "$as_myself"; then
17016 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17017echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17018 { (exit 1); exit 1; }; }
17019 fi
17020 case $CONFIG_SHELL in
17021 '')
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17024do
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for as_base in sh bash ksh sh5; do
17028 case $as_dir in
17029 /*)
17030 if ("$as_dir/$as_base" -c '
17031 as_lineno_1=$LINENO
17032 as_lineno_2=$LINENO
17033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17034 test "x$as_lineno_1" != "x$as_lineno_2" &&
17035 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17036 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17037 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17038 CONFIG_SHELL=$as_dir/$as_base
17039 export CONFIG_SHELL
17040 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17041 fi;;
17042 esac
17043 done
17044done
17045;;
17046 esac
17047
17048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17049 # uniformly replaced by the line number. The first 'sed' inserts a
17050 # line-number line before each line; the second 'sed' does the real
17051 # work. The second script uses 'N' to pair each line-number line
17052 # with the numbered line, and appends trailing '-' during
17053 # substitution so that $LINENO is not a special case at line end.
17054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17055 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17056 sed '=' <$as_myself |
17057 sed '
17058 N
17059 s,$,-,
17060 : loop
17061 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17062 t loop
17063 s,-$,,
17064 s,^['$as_cr_digits']*\n,,
17065 ' >$as_me.lineno &&
17066 chmod +x $as_me.lineno ||
17067 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17068echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17069 { (exit 1); exit 1; }; }
17070
17071 # Don't try to exec as it changes $[0], causing all sort of problems
17072 # (the dirname of $[0] is not the place where we might find the
17073 # original and so on. Autoconf is especially sensible to this).
17074 . ./$as_me.lineno
17075 # Exit status is that of the last command.
17076 exit
17077}
17078
17079
17080case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17081 *c*,-n*) ECHO_N= ECHO_C='
17082' ECHO_T=' ' ;;
17083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17085esac
17086
17087if expr a : '\(a\)' >/dev/null 2>&1; then
17088 as_expr=expr
17089else
17090 as_expr=false
17091fi
17092
17093rm -f conf$$ conf$$.exe conf$$.file
17094echo >conf$$.file
17095if ln -s conf$$.file conf$$ 2>/dev/null; then
17096 # We could just check for DJGPP; but this test a) works b) is more generic
17097 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17098 if test -f conf$$.exe; then
17099 # Don't use ln at all; we don't have any links
17100 as_ln_s='cp -p'
17101 else
17102 as_ln_s='ln -s'
17103 fi
17104elif ln conf$$.file conf$$ 2>/dev/null; then
17105 as_ln_s=ln
17106else
17107 as_ln_s='cp -p'
17108fi
17109rm -f conf$$ conf$$.exe conf$$.file
17110
17111if mkdir -p . 2>/dev/null; then
17112 as_mkdir_p=:
17113else
17114 test -d ./-p && rmdir ./-p
17115 as_mkdir_p=false
17116fi
17117
17118as_executable_p="test -f"
17119
17120# Sed expression to map a string onto a valid CPP name.
17121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17122
17123# Sed expression to map a string onto a valid variable name.
17124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17125
17126
17127# IFS
17128# We need space, tab and new line, in precisely that order.
17129as_nl='
17130'
17131IFS=" $as_nl"
17132
17133# CDPATH.
17134$as_unset CDPATH
17135
17136exec 6>&1
17137
17138# Open the log real soon, to keep \$[0] and so on meaningful, and to
17139# report actual input values of CONFIG_FILES etc. instead of their
17140# values after options handling. Logging --version etc. is OK.
17141exec 5>>config.log
17142{
17143 echo
17144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17145## Running $as_me. ##
17146_ASBOX
17147} >&5
17148cat >&5 <<_CSEOF
17149
17150This file was extended by $as_me, which was
17151generated by GNU Autoconf 2.59. Invocation command line was
17152
17153 CONFIG_FILES = $CONFIG_FILES
17154 CONFIG_HEADERS = $CONFIG_HEADERS
17155 CONFIG_LINKS = $CONFIG_LINKS
17156 CONFIG_COMMANDS = $CONFIG_COMMANDS
17157 $ $0 $@
17158
17159_CSEOF
17160echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17161echo >&5
17162_ACEOF
17163
17164# Files that config.status was made for.
17165if test -n "$ac_config_files"; then
17166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17167fi
17168
17169if test -n "$ac_config_headers"; then
17170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17171fi
17172
17173if test -n "$ac_config_links"; then
17174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17175fi
17176
17177if test -n "$ac_config_commands"; then
17178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17179fi
17180
17181cat >>$CONFIG_STATUS <<\_ACEOF
17182
17183ac_cs_usage="\
17184\`$as_me' instantiates files from templates according to the
17185current configuration.
17186
17187Usage: $0 [OPTIONS] [FILE]...
17188
17189 -h, --help print this help, then exit
17190 -V, --version print version number, then exit
17191 -q, --quiet do not print progress messages
17192 -d, --debug don't remove temporary files
17193 --recheck update $as_me by reconfiguring in the same conditions
17194 --file=FILE[:TEMPLATE]
17195 instantiate the configuration file FILE
17196 --header=FILE[:TEMPLATE]
17197 instantiate the configuration header FILE
17198
17199Configuration files:
17200$config_files
17201
17202Configuration headers:
17203$config_headers
17204
17205Report bugs to <bug-autoconf@gnu.org>."
17206_ACEOF
17207
17208cat >>$CONFIG_STATUS <<_ACEOF
17209ac_cs_version="\\
17210config.status
17211configured by $0, generated by GNU Autoconf 2.59,
17212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17213
17214Copyright (C) 2003 Free Software Foundation, Inc.
17215This config.status script is free software; the Free Software Foundation
17216gives unlimited permission to copy, distribute and modify it."
17217srcdir=$srcdir
17218INSTALL="$INSTALL"
17219_ACEOF
17220
17221cat >>$CONFIG_STATUS <<\_ACEOF
17222# If no file are specified by the user, then we need to provide default
17223# value. By we need to know if files were specified by the user.
17224ac_need_defaults=:
17225while test $# != 0
17226do
17227 case $1 in
17228 --*=*)
17229 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17230 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17231 ac_shift=:
17232 ;;
17233 -*)
17234 ac_option=$1
17235 ac_optarg=$2
17236 ac_shift=shift
17237 ;;
17238 *) # This is not an option, so the user has probably given explicit
17239 # arguments.
17240 ac_option=$1
17241 ac_need_defaults=false;;
17242 esac
17243
9847 case "\$ac_option" in 17244 case $ac_option in
17245 # Handling of the options.
17246_ACEOF
17247cat >>$CONFIG_STATUS <<\_ACEOF
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17249 ac_cs_recheck=: ;;
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17250 --version | --vers* | -V )
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17251 echo "$ac_cs_version"; exit 0 ;;
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17252 --he | --h)
9853 exit 0 ;; 17253 # Conflict between --help and --header
9854 -help | --help | --hel | --he | --h) 17254 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17255Try \`$0 --help' for more information." >&5
17256echo "$as_me: error: ambiguous option: $1
17257Try \`$0 --help' for more information." >&2;}
17258 { (exit 1); exit 1; }; };;
17259 --help | --hel | -h )
9855 echo "\$ac_cs_usage"; exit 0 ;; 17260 echo "$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;; 17261 --debug | --d* | -d )
17262 debug=: ;;
17263 --file | --fil | --fi | --f )
17264 $ac_shift
17265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17266 ac_need_defaults=false;;
17267 --header | --heade | --head | --hea )
17268 $ac_shift
17269 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17270 ac_need_defaults=false;;
17271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17273 ac_cs_silent=: ;;
17274
17275 # This is an error.
17276 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17277Try \`$0 --help' for more information." >&5
17278echo "$as_me: error: unrecognized option: $1
17279Try \`$0 --help' for more information." >&2;}
17280 { (exit 1); exit 1; }; } ;;
17281
17282 *) ac_config_targets="$ac_config_targets $1" ;;
17283
17284 esac
17285 shift
17286done
17287
17288ac_configure_extra_args=
17289
17290if $ac_cs_silent; then
17291 exec 6>/dev/null
17292 ac_configure_extra_args="$ac_configure_extra_args --silent"
17293fi
17294
17295_ACEOF
17296cat >>$CONFIG_STATUS <<_ACEOF
17297if \$ac_cs_recheck; then
17298 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17299 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17300fi
17301
17302_ACEOF
17303
17304
17305
17306
17307
17308cat >>$CONFIG_STATUS <<\_ACEOF
17309for ac_config_target in $ac_config_targets
17310do
17311 case "$ac_config_target" in
17312 # Handling of arguments.
17313 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17314 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17315 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17316 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17317 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17318 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17319 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17320 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17321 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17322echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17323 { (exit 1); exit 1; }; };;
9857 esac 17324 esac
9858done 17325done
9859 17326
9860ac_given_srcdir=$srcdir 17327# If the user did not use the arguments to specify the items to instantiate,
9861ac_given_INSTALL="$INSTALL" 17328# then the envvar interface is used. Set only those that are not.
17329# We use the long form for the default assignment because of an extremely
17330# bizarre bug on SunOS 4.1.3.
17331if $ac_need_defaults; then
17332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17334fi
9862 17335
9863trap 'rm -fr `echo "autoconf/Make.common \ 17336# Have a temporary directory for convenience. Make it in the build tree
9864Makefile \ 17337# simply because there is no reason to put it here, and in addition,
9865doc/Makefile \ 17338# creating and moving files from /tmp can sometimes cause problems.
9866src/Makefile \ 17339# Create a temporary directory, and hook for its removal unless debugging.
9867src/graphics/Makefile \ 17340$debug ||
9868src/test/Makefile \ 17341{
9869src/rxvtlib.h \ 17342 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9870W11/Makefile \ 17343 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 17344}
9872EOF 17345
17346# Create a (secure) tmp directory for tmp files.
17347
17348{
17349 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17350 test -n "$tmp" && test -d "$tmp"
17351} ||
17352{
17353 tmp=./confstat$$-$RANDOM
17354 (umask 077 && mkdir $tmp)
17355} ||
17356{
17357 echo "$me: cannot create a temporary directory in ." >&2
17358 { (exit 1); exit 1; }
17359}
17360
17361_ACEOF
17362
9873cat >> $CONFIG_STATUS <<EOF 17363cat >>$CONFIG_STATUS <<_ACEOF
9874 17364
17365#
17366# CONFIG_FILES section.
17367#
17368
17369# No need to generate the scripts if there are no CONFIG_FILES.
17370# This happens for instance when ./config.status config.h
17371if test -n "\$CONFIG_FILES"; then
9875# Protect against being on the right side of a sed subst in config.status. 17372 # Protect against being on the right side of a sed subst in config.status.
9876sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17373 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17374 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9878$ac_vpsub 17375s,@SHELL@,$SHELL,;t t
17376s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17377s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17378s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17379s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17380s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17381s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17382s,@exec_prefix@,$exec_prefix,;t t
17383s,@prefix@,$prefix,;t t
17384s,@program_transform_name@,$program_transform_name,;t t
17385s,@bindir@,$bindir,;t t
17386s,@sbindir@,$sbindir,;t t
17387s,@libexecdir@,$libexecdir,;t t
17388s,@datadir@,$datadir,;t t
17389s,@sysconfdir@,$sysconfdir,;t t
17390s,@sharedstatedir@,$sharedstatedir,;t t
17391s,@localstatedir@,$localstatedir,;t t
17392s,@libdir@,$libdir,;t t
17393s,@includedir@,$includedir,;t t
17394s,@oldincludedir@,$oldincludedir,;t t
17395s,@infodir@,$infodir,;t t
17396s,@mandir@,$mandir,;t t
17397s,@build_alias@,$build_alias,;t t
17398s,@host_alias@,$host_alias,;t t
17399s,@target_alias@,$target_alias,;t t
17400s,@DEFS@,$DEFS,;t t
17401s,@ECHO_C@,$ECHO_C,;t t
17402s,@ECHO_N@,$ECHO_N,;t t
17403s,@ECHO_T@,$ECHO_T,;t t
17404s,@LIBS@,$LIBS,;t t
17405s,@VERSION@,$VERSION,;t t
17406s,@DATE@,$DATE,;t t
17407s,@LSMDATE@,$LSMDATE,;t t
17408s,@LIBVERSION@,$LIBVERSION,;t t
17409s,@CC@,$CC,;t t
17410s,@CFLAGS@,$CFLAGS,;t t
17411s,@LDFLAGS@,$LDFLAGS,;t t
17412s,@CPPFLAGS@,$CPPFLAGS,;t t
17413s,@ac_ct_CC@,$ac_ct_CC,;t t
17414s,@EXEEXT@,$EXEEXT,;t t
17415s,@OBJEXT@,$OBJEXT,;t t
17416s,@CXX@,$CXX,;t t
17417s,@CXXFLAGS@,$CXXFLAGS,;t t
17418s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17419s,@CPP@,$CPP,;t t
17420s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17421s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17422s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17423s,@AWK@,$AWK,;t t
17424s,@LINKER@,$LINKER,;t t
17425s,@CXXCPP@,$CXXCPP,;t t
17426s,@EGREP@,$EGREP,;t t
17427s,@build@,$build,;t t
17428s,@build_cpu@,$build_cpu,;t t
17429s,@build_vendor@,$build_vendor,;t t
17430s,@build_os@,$build_os,;t t
17431s,@host@,$host,;t t
17432s,@host_cpu@,$host_cpu,;t t
17433s,@host_vendor@,$host_vendor,;t t
17434s,@host_os@,$host_os,;t t
17435s,@LN_S@,$LN_S,;t t
17436s,@ECHO@,$ECHO,;t t
17437s,@RANLIB@,$RANLIB,;t t
17438s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17439s,@STRIP@,$STRIP,;t t
17440s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17441s,@LIBTOOL@,$LIBTOOL,;t t
17442s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17443s,@RXVTNAME@,$RXVTNAME,;t t
17444s,@MV@,$MV,;t t
17445s,@RM@,$RM,;t t
17446s,@CP@,$CP,;t t
17447s,@LN@,$LN,;t t
17448s,@SED@,$SED,;t t
17449s,@CMP@,$CMP,;t t
17450s,@TBL@,$TBL,;t t
17451s,@X_CFLAGS@,$X_CFLAGS,;t t
17452s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17453s,@X_LIBS@,$X_LIBS,;t t
17454s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17455s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17456s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17457s,@XPM_LIBS@,$XPM_LIBS,;t t
17458s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17459s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17460s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17461s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17462s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17463s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17464s,@DEBUG@,$DEBUG,;t t
17465s,@DINCLUDE@,$DINCLUDE,;t t
17466s,@DLIB@,$DLIB,;t t
17467s,@include_stdint_h@,$include_stdint_h,;t t
17468s,@include_stdarg_h@,$include_stdarg_h,;t t
17469s,@include_stdlib_h@,$include_stdlib_h,;t t
17470s,@include_unistd_h@,$include_unistd_h,;t t
17471s,@include_string_h@,$include_string_h,;t t
17472s,@include_fcntl_h@,$include_fcntl_h,;t t
17473s,@include_util_h@,$include_util_h,;t t
17474s,@include_assert_h@,$include_assert_h,;t t
17475s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17476s,@include_sys_select_h@,$include_sys_select_h,;t t
17477s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17478s,@include_sys_time_h@,$include_sys_time_h,;t t
17479s,@include_time_h@,$include_time_h,;t t
17480s,@LIBOBJS@,$LIBOBJS,;t t
17481s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17482/@MCOMMON@/r $MCOMMON
17483s,@MCOMMON@,,;t t
17484CEOF
17485
17486_ACEOF
17487
17488 cat >>$CONFIG_STATUS <<\_ACEOF
17489 # Split the substitutions into bite-sized pieces for seds with
17490 # small command number limits, like on Digital OSF/1 and HP-UX.
17491 ac_max_sed_lines=48
17492 ac_sed_frag=1 # Number of current file.
17493 ac_beg=1 # First line for current file.
17494 ac_end=$ac_max_sed_lines # Line after last line for current file.
17495 ac_more_lines=:
17496 ac_sed_cmds=
17497 while $ac_more_lines; do
17498 if test $ac_beg -gt 1; then
17499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17500 else
17501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17502 fi
17503 if test ! -s $tmp/subs.frag; then
17504 ac_more_lines=false
17505 else
17506 # The purpose of the label and of the branching condition is to
17507 # speed up the sed processing (if there are no `@' at all, there
17508 # is no need to browse any of the substitutions).
17509 # These are the two extra sed commands mentioned above.
17510 (echo ':t
17511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17512 if test -z "$ac_sed_cmds"; then
17513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17514 else
17515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17516 fi
17517 ac_sed_frag=`expr $ac_sed_frag + 1`
17518 ac_beg=$ac_end
17519 ac_end=`expr $ac_end + $ac_max_sed_lines`
17520 fi
17521 done
17522 if test -z "$ac_sed_cmds"; then
17523 ac_sed_cmds=cat
17524 fi
17525fi # test -n "$CONFIG_FILES"
17526
17527_ACEOF
17528cat >>$CONFIG_STATUS <<\_ACEOF
17529for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17531 case $ac_file in
17532 - | *:- | *:-:* ) # input from stdin
17533 cat >$tmp/stdin
17534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17538 * ) ac_file_in=$ac_file.in ;;
17539 esac
17540
17541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17544 X"$ac_file" : 'X\(//\)[^/]' \| \
17545 X"$ac_file" : 'X\(//\)$' \| \
17546 X"$ac_file" : 'X\(/\)' \| \
17547 . : '\(.\)' 2>/dev/null ||
17548echo X"$ac_file" |
17549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17551 /^X\(\/\/\)$/{ s//\1/; q; }
17552 /^X\(\/\).*/{ s//\1/; q; }
17553 s/.*/./; q'`
17554 { if $as_mkdir_p; then
17555 mkdir -p "$ac_dir"
17556 else
17557 as_dir="$ac_dir"
17558 as_dirs=
17559 while test ! -d "$as_dir"; do
17560 as_dirs="$as_dir $as_dirs"
17561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17563 X"$as_dir" : 'X\(//\)[^/]' \| \
17564 X"$as_dir" : 'X\(//\)$' \| \
17565 X"$as_dir" : 'X\(/\)' \| \
17566 . : '\(.\)' 2>/dev/null ||
17567echo X"$as_dir" |
17568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17570 /^X\(\/\/\)$/{ s//\1/; q; }
17571 /^X\(\/\).*/{ s//\1/; q; }
17572 s/.*/./; q'`
17573 done
17574 test ! -n "$as_dirs" || mkdir $as_dirs
17575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17576echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17577 { (exit 1); exit 1; }; }; }
17578
17579 ac_builddir=.
17580
17581if test "$ac_dir" != .; then
17582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17583 # A "../" for each directory in $ac_dir_suffix.
17584 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17585else
17586 ac_dir_suffix= ac_top_builddir=
17587fi
17588
17589case $srcdir in
17590 .) # No --srcdir option. We are building in place.
17591 ac_srcdir=.
17592 if test -z "$ac_top_builddir"; then
17593 ac_top_srcdir=.
17594 else
17595 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17596 fi ;;
17597 [\\/]* | ?:[\\/]* ) # Absolute path.
17598 ac_srcdir=$srcdir$ac_dir_suffix;
17599 ac_top_srcdir=$srcdir ;;
17600 *) # Relative path.
17601 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17602 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17603esac
17604
17605# Do not use `cd foo && pwd` to compute absolute paths, because
17606# the directories may not exist.
17607case `pwd` in
17608.) ac_abs_builddir="$ac_dir";;
17609*)
17610 case "$ac_dir" in
17611 .) ac_abs_builddir=`pwd`;;
17612 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17613 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17614 esac;;
17615esac
17616case $ac_abs_builddir in
17617.) ac_abs_top_builddir=${ac_top_builddir}.;;
17618*)
17619 case ${ac_top_builddir}. in
17620 .) ac_abs_top_builddir=$ac_abs_builddir;;
17621 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17622 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17623 esac;;
17624esac
17625case $ac_abs_builddir in
17626.) ac_abs_srcdir=$ac_srcdir;;
17627*)
17628 case $ac_srcdir in
17629 .) ac_abs_srcdir=$ac_abs_builddir;;
17630 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17631 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17632 esac;;
17633esac
17634case $ac_abs_builddir in
17635.) ac_abs_top_srcdir=$ac_top_srcdir;;
17636*)
17637 case $ac_top_srcdir in
17638 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17639 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17640 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17641 esac;;
17642esac
17643
17644
17645 case $INSTALL in
17646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17647 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17648 esac
17649
17650 # Let's still pretend it is `configure' which instantiates (i.e., don't
17651 # use $as_me), people would be surprised to read:
17652 # /* config.h. Generated by config.status. */
17653 if test x"$ac_file" = x-; then
17654 configure_input=
17655 else
17656 configure_input="$ac_file. "
17657 fi
17658 configure_input=$configure_input"Generated from `echo $ac_file_in |
17659 sed 's,.*/,,'` by configure."
17660
17661 # First look for the input files in the build tree, otherwise in the
17662 # src tree.
17663 ac_file_inputs=`IFS=:
17664 for f in $ac_file_in; do
17665 case $f in
17666 -) echo $tmp/stdin ;;
17667 [\\/$]*)
17668 # Absolute (can't be DOS-style, as IFS=:)
17669 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17670echo "$as_me: error: cannot find input file: $f" >&2;}
17671 { (exit 1); exit 1; }; }
17672 echo "$f";;
17673 *) # Relative
17674 if test -f "$f"; then
17675 # Build tree
17676 echo "$f"
17677 elif test -f "$srcdir/$f"; then
17678 # Source tree
17679 echo "$srcdir/$f"
17680 else
17681 # /dev/null tree
17682 { { 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 fi;;
17686 esac
17687 done` || { (exit 1); exit 1; }
17688
17689 if test x"$ac_file" != x-; then
17690 { echo "$as_me:$LINENO: creating $ac_file" >&5
17691echo "$as_me: creating $ac_file" >&6;}
17692 rm -f "$ac_file"
17693 fi
17694_ACEOF
17695cat >>$CONFIG_STATUS <<_ACEOF
17696 sed "$ac_vpsub
9879$extrasub 17697$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 17698_ACEOF
9973EOF
9974
9975cat >> $CONFIG_STATUS <<\EOF 17699cat >>$CONFIG_STATUS <<\_ACEOF
9976 17700:t
9977# Split the substitutions into bite-sized pieces for seds with 17701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9978# small command number limits, like on Digital OSF/1 and HP-UX. 17702s,@configure_input@,$configure_input,;t t
9979ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17703s,@srcdir@,$ac_srcdir,;t t
9980ac_file=1 # Number of current file. 17704s,@abs_srcdir@,$ac_abs_srcdir,;t t
9981ac_beg=1 # First line for current file. 17705s,@top_srcdir@,$ac_top_srcdir,;t t
9982ac_end=$ac_max_sed_cmds # Line after last line for current file. 17706s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9983ac_more_lines=: 17707s,@builddir@,$ac_builddir,;t t
9984ac_sed_cmds="" 17708s,@abs_builddir@,$ac_abs_builddir,;t t
9985while $ac_more_lines; do 17709s,@top_builddir@,$ac_top_builddir,;t t
9986 if test $ac_beg -gt 1; then 17710s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17711s,@INSTALL@,$ac_INSTALL,;t t
17712" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17713 rm -f $tmp/stdin
17714 if test x"$ac_file" != x-; then
17715 mv $tmp/out $ac_file
9988 else 17716 else
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17717 cat $tmp/out
17718 rm -f $tmp/out
9990 fi 17719 fi
9991 if test ! -s conftest.s$ac_file; then 17720
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 17721done
10005if test -z "$ac_sed_cmds"; then 17722_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 17723cat >>$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 17724
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17725#
10032 17726# CONFIG_HEADER section.
10033 # Remove last slash and all that follows it. Not all systems have dirname. 17727#
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 17728
10079# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17729# 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. 17730# NAME is the cpp macro being defined and VALUE is the value it is being given.
10081# 17731#
10082# ac_d sets the value in "#define NAME VALUE" lines. 17732# ac_d sets the value in "#define NAME VALUE" lines.
10083ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17733ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17734ac_dB='[ ].*$,\1#\2'
10085ac_dC='\3' 17735ac_dC=' '
10086ac_dD='%g' 17736ac_dD=',;t'
10087# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17737# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10088ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17738ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089ac_uB='\([ ]\)%\1#\2define\3' 17739ac_uB='$,\1#\2define\3'
10090ac_uC=' ' 17740ac_uC=' '
10091ac_uD='\4%g' 17741ac_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 17742
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 17743for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10107 case "$ac_file" in 17745 case $ac_file in
17746 - | *:- | *:-:* ) # input from stdin
17747 cat >$tmp/stdin
17748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10110 *) ac_file_in="${ac_file}.in" ;; 17752 * ) ac_file_in=$ac_file.in ;;
10111 esac 17753 esac
10112 17754
10113 echo creating $ac_file 17755 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17756echo "$as_me: creating $ac_file" >&6;}
10114 17757
10115 rm -f conftest.frag conftest.in conftest.out 17758 # 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"` 17759 # src tree.
10117 cat $ac_file_inputs > conftest.in 17760 ac_file_inputs=`IFS=:
17761 for f in $ac_file_in; do
17762 case $f in
17763 -) echo $tmp/stdin ;;
17764 [\\/$]*)
17765 # Absolute (can't be DOS-style, as IFS=:)
17766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17767echo "$as_me: error: cannot find input file: $f" >&2;}
17768 { (exit 1); exit 1; }; }
17769 # Do quote $f, to prevent DOS paths from being IFS'd.
17770 echo "$f";;
17771 *) # Relative
17772 if test -f "$f"; then
17773 # Build tree
17774 echo "$f"
17775 elif test -f "$srcdir/$f"; then
17776 # Source tree
17777 echo "$srcdir/$f"
17778 else
17779 # /dev/null tree
17780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17781echo "$as_me: error: cannot find input file: $f" >&2;}
17782 { (exit 1); exit 1; }; }
17783 fi;;
17784 esac
17785 done` || { (exit 1); exit 1; }
17786 # Remove the trailing spaces.
17787 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10118 17788
10119EOF 17789_ACEOF
10120 17790
10121# Transform confdefs.h into a sed script conftest.vals that substitutes 17791# Transform confdefs.h into two sed scripts, `conftest.defines' and
10122# the proper values into config.h.in to produce config.h. And first: 17792# `conftest.undefs', that substitutes the proper values into
17793# config.h.in to produce config.h. The first handles `#define'
17794# templates, and the second `#undef' templates.
10123# Protect against being on the right side of a sed subst in config.status. 17795# 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. 17796# config.status. Protect against being in an unquoted here document
10125rm -f conftest.vals 17797# in config.status.
10126cat > conftest.hdr <<\EOF 17798rm -f conftest.defines conftest.undefs
17799# Using a here document instead of a string reduces the quoting nightmare.
17800# Putting comments in sed scripts is not portable.
17801#
17802# `end' is used to avoid that the second main sed command (meant for
17803# 0-ary CPP macros) applies to n-ary macro definitions.
17804# See the Autoconf documentation for `clear'.
17805cat >confdef2sed.sed <<\_ACEOF
10127s/[\\&%]/\\&/g 17806s/[\\&,]/\\&/g
10128s%[\\$`]%\\&%g 17807s,[\\$`],\\&,g
10129s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17808t clear
10130s%ac_d%ac_u%gp 17809: clear
10131s%ac_u%ac_e%gp 17810s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10132EOF 17811t end
10133sed -n -f conftest.hdr confdefs.h > conftest.vals 17812s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10134rm -f conftest.hdr 17813: end
17814_ACEOF
17815# If some macros were called several times there might be several times
17816# the same #defines, which is useless. Nevertheless, we may not want to
17817# sort them, since we want the *last* AC-DEFINE to be honored.
17818uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17819sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17820rm -f confdef2sed.sed
10135 17821
10136# This sed command replaces #undef with comments. This is necessary, for 17822# This sed command replaces #undef with comments. This is necessary, for
10137# example, in the case of _POSIX_SOURCE, which is predefined and required 17823# example, in the case of _POSIX_SOURCE, which is predefined and required
10138# on some systems where configure will not decide to define it. 17824# on some systems where configure will not decide to define it.
10139cat >> conftest.vals <<\EOF 17825cat >>conftest.undefs <<\_ACEOF
10140s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17826s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10141EOF 17827_ACEOF
10142 17828
10143# Break up conftest.vals because some shells have a limit on 17829# 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. 17830# of here documents, and old seds have small limits too (100 cmds).
10145 17831echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17832echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17833echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17834echo ' :' >>$CONFIG_STATUS
10146rm -f conftest.tail 17835rm -f conftest.tail
10147while : 17836while grep . conftest.defines >/dev/null
10148do 17837do
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. 17838 # Write a limited-size here document to $tmp/defines.sed.
10153 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17839 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17840 # Speed up: don't consider the non `#define' lines.
17841 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17842 # Work around the forget-to-reset-the-flag bug.
17843 echo 't clr' >>$CONFIG_STATUS
17844 echo ': clr' >>$CONFIG_STATUS
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17845 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10155 echo 'CEOF 17846 echo 'CEOF
10156 sed -f conftest.frag conftest.in > conftest.out 17847 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10157 rm -f conftest.in 17848 rm -f $tmp/in
10158 mv conftest.out conftest.in 17849 mv $tmp/out $tmp/in
10159' >> $CONFIG_STATUS 17850' >>$CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17851 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10161 rm -f conftest.vals 17852 rm -f conftest.defines
10162 mv conftest.tail conftest.vals 17853 mv conftest.tail conftest.defines
10163done 17854done
17855rm -f conftest.defines
17856echo ' fi # grep' >>$CONFIG_STATUS
17857echo >>$CONFIG_STATUS
17858
17859# Break up conftest.undefs because some shells have a limit on the size
17860# of here documents, and old seds have small limits too (100 cmds).
17861echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10164rm -f conftest.vals 17862rm -f conftest.tail
17863while grep . conftest.undefs >/dev/null
17864do
17865 # Write a limited-size here document to $tmp/undefs.sed.
17866 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17867 # Speed up: don't consider the non `#undef'
17868 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17869 # Work around the forget-to-reset-the-flag bug.
17870 echo 't clr' >>$CONFIG_STATUS
17871 echo ': clr' >>$CONFIG_STATUS
17872 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17873 echo 'CEOF
17874 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17875 rm -f $tmp/in
17876 mv $tmp/out $tmp/in
17877' >>$CONFIG_STATUS
17878 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17879 rm -f conftest.undefs
17880 mv conftest.tail conftest.undefs
17881done
17882rm -f conftest.undefs
10165 17883
10166cat >> $CONFIG_STATUS <<\EOF 17884cat >>$CONFIG_STATUS <<\_ACEOF
10167 rm -f conftest.frag conftest.h 17885 # Let's still pretend it is `configure' which instantiates (i.e., don't
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17886 # use $as_me), people would be surprised to read:
10169 cat conftest.in >> conftest.h 17887 # /* config.h. Generated by config.status. */
10170 rm -f conftest.in 17888 if test x"$ac_file" = x-; then
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then 17889 echo "/* Generated by configure. */" >$tmp/config.h
10172 echo "$ac_file is unchanged"
10173 rm -f conftest.h
10174 else 17890 else
10175 # Remove last slash and all that follows it. Not all systems have dirname. 17891 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17892 fi
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17893 cat $tmp/in >>$tmp/config.h
10178 # The file is in a subdirectory. 17894 rm -f $tmp/in
17895 if test x"$ac_file" != x-; then
17896 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17897 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17898echo "$as_me: $ac_file is unchanged" >&6;}
17899 else
17900 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17902 X"$ac_file" : 'X\(//\)[^/]' \| \
17903 X"$ac_file" : 'X\(//\)$' \| \
17904 X"$ac_file" : 'X\(/\)' \| \
17905 . : '\(.\)' 2>/dev/null ||
17906echo X"$ac_file" |
17907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17909 /^X\(\/\/\)$/{ s//\1/; q; }
17910 /^X\(\/\).*/{ s//\1/; q; }
17911 s/.*/./; q'`
17912 { if $as_mkdir_p; then
17913 mkdir -p "$ac_dir"
17914 else
17915 as_dir="$ac_dir"
17916 as_dirs=
17917 while test ! -d "$as_dir"; do
17918 as_dirs="$as_dir $as_dirs"
17919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17921 X"$as_dir" : 'X\(//\)[^/]' \| \
17922 X"$as_dir" : 'X\(//\)$' \| \
17923 X"$as_dir" : 'X\(/\)' \| \
17924 . : '\(.\)' 2>/dev/null ||
17925echo X"$as_dir" |
17926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17928 /^X\(\/\/\)$/{ s//\1/; q; }
17929 /^X\(\/\).*/{ s//\1/; q; }
17930 s/.*/./; q'`
17931 done
10179 test ! -d "$ac_dir" && mkdir "$ac_dir" 17932 test ! -n "$as_dirs" || mkdir $as_dirs
17933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17935 { (exit 1); exit 1; }; }; }
17936
17937 rm -f $ac_file
17938 mv $tmp/config.h $ac_file
10180 fi 17939 fi
10181 rm -f $ac_file 17940 else
10182 mv conftest.h $ac_file 17941 cat $tmp/config.h
17942 rm -f $tmp/config.h
10183 fi 17943 fi
10184fi; done 17944done
17945_ACEOF
10185 17946
10186EOF
10187cat >> $CONFIG_STATUS <<EOF
10188
10189EOF
10190cat >> $CONFIG_STATUS <<\EOF 17947cat >>$CONFIG_STATUS <<\_ACEOF
10191 17948
10192exit 0 17949{ (exit 0); exit 0; }
10193EOF 17950_ACEOF
10194chmod +x $CONFIG_STATUS 17951chmod +x $CONFIG_STATUS
10195rm -fr confdefs* $ac_clean_files 17952ac_clean_files=$ac_clean_files_save
10196test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17953
17954
17955# configure is writing to config.log, and then calls config.status.
17956# config.status does its own redirection, appending to config.log.
17957# Unfortunately, on DOS this fails, as config.log is still kept open
17958# by configure, so config.status won't be able to write to it; its
17959# output is simply discarded. So we exec the FD to /dev/null,
17960# effectively closing config.log, so it can be properly (re)opened and
17961# appended to by config.status. When coming back to configure, we
17962# need to make the FD available again.
17963if test "$no_create" != yes; then
17964 ac_cs_success=:
17965 ac_config_status_args=
17966 test "$silent" = yes &&
17967 ac_config_status_args="$ac_config_status_args --quiet"
17968 exec 5>/dev/null
17969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17970 exec 5>>config.log
17971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17972 # would make configure fail if this is the last instruction.
17973 $ac_cs_success || { (exit 1); exit 1; }
17974fi
10197 17975
10198 17976
10199echo "Configuration: 17977echo "Configuration:
10200 17978
10201 Rxvt version: $VERSION : $DATE 17979 Rxvt version: $VERSION : $DATE
10202 Source code location: $srcdir 17980 Source code location: $srcdir
10203 Install path: ${prefix}/bin 17981 Install path: ${prefix}/bin
10204 Compiler: $CC 17982 Compiler: $CXX
10205 Compiler flags: $CFLAGS" 17983 Compiler flags: $CFLAGS
17984 Linker: $LINKER"
10206 17985
10207if test "$MALLOC_TYPE" = S; then 17986if test "$MALLOC_TYPE" = S; then
10208 echo " malloc support: system default" 17987 echo " malloc support: system default"
10209fi 17988fi
10210if test "$MALLOC_TYPE" = G; then 17989if test "$MALLOC_TYPE" = G; then
10221echo " 18000echo "
10222The following are set in config.h 18001The following are set in config.h
10223" 18002"
10224echo " pty/tty type: "$rxvt_cv_ptys 18003echo " pty/tty type: "$rxvt_cv_ptys
10225if test x$support_utmp != xyes; then 18004if test x$support_utmp != xyes; then
10226 echo " utmp support: disabled 18005 echo " utmp support: disabled"
10227" 18006 echo
10228else 18007else
10229 echo " utmp support: enabled 18008 echo " utmp support: enabled
10230 utmp file: $rxvt_cv_path_utmp 18009 utmp file: $rxvt_cv_path_utmp
10231 utmpx file: $rxvt_cv_path_utmpx 18010 utmpx file: $rxvt_cv_path_utmpx
10232 wtmp file: $rxvt_cv_path_wtmp 18011 wtmp file: $rxvt_cv_path_wtmp
10233 wtmpx file: $rxvt_cv_path_wtmpx 18012 wtmpx file: $rxvt_cv_path_wtmpx
10234 lastlog file: $rxvt_cv_path_lastlog 18013 lastlog file: $rxvt_cv_path_lastlog
10235 ttys/ttytab file: $rxvt_cv_path_ttytab 18014 ttys/ttytab file: $rxvt_cv_path_ttytab"
10236" 18015 echo
10237fi 18016fi
10238if test x$term != x; then 18017if test x$term != x; then
10239 echo " set TERM to: $term 18018 echo " set TERM to: $term"
10240"
10241fi 18019fi
10242if test x$terminfo != x; then 18020if test x$terminfo != x; then
10243 echo " set TERMINFO to: $terminfo 18021 echo " set TERMINFO to: $terminfo"
10244"
10245fi 18022fi
18023echo " default resource name: $RESNAME"
18024echo " resource class: $RESCLASS"
18025if test x$RESFALLBACK != x; then
18026 echo " resource class fallback: $RESFALLBACK"
18027fi
18028echo
10246if test x$rxvt_cv_ptys = xUNKNOWN; then 18029if test x$rxvt_cv_ptys = xUNKNOWN; then
10247 echo ".----------------------------------------------------------------." 18030 echo ".----------------------------------------------------------------."
10248 echo ". WARNING: could not determine pty/tty type. Do not build until ." 18031 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10249 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 18032 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10250 echo ".----------------------------------------------------------------." 18033 echo ".----------------------------------------------------------------."
10264 echo ". WARNING: --enable-xim was specified however the locale support ." 18047 echo ". WARNING: --enable-xim was specified however the locale support ."
10265 echo ". functions could not be found. ." 18048 echo ". functions could not be found. ."
10266 echo ". XIM is now being DISABLED! ." 18049 echo ". XIM is now being DISABLED! ."
10267 echo ".----------------------------------------------------------------." 18050 echo ".----------------------------------------------------------------."
10268fi 18051fi
18052
10269echo " *** Please check src/feature.h for further options *** 18053echo " *** Please check src/feature.h for further options ***"
10270" 18054echo
18055
18056echo ".----------------------------------------------------------------."
18057echo ". NOTE: most features are disabled by default, try ."
18058echo ". configure --help to get an idea of the optional features ."
18059echo ".----------------------------------------------------------------."
18060echo
18061

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines