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.11 by pcg, Wed Feb 25 12:03:46 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 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 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 RXVTNAME 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
745 939
940#
941# Report the --help message.
942#
943if test "$ac_init_help" = "long"; then
944 # Omit some internal or obsolete options to make the list less imposing.
945 # This message is too long to be a string in the A/UX 3.1 sh.
946 cat <<_ACEOF
947\`configure' configures this package to adapt to many kinds of systems.
948
949Usage: $0 [OPTION]... [VAR=VALUE]...
950
951To assign environment variables (e.g., CC, CFLAGS...), specify them as
952VAR=VALUE. See below for descriptions of some of the useful variables.
953
954Defaults for the options are specified in brackets.
955
956Configuration:
957 -h, --help display this help and exit
958 --help=short display options specific to this package
959 --help=recursive display the short help of all the included packages
960 -V, --version display version information and exit
961 -q, --quiet, --silent do not print \`checking...' messages
962 --cache-file=FILE cache test results in FILE [disabled]
963 -C, --config-cache alias for \`--cache-file=config.cache'
964 -n, --no-create do not create output files
965 --srcdir=DIR find the sources in DIR [configure dir or \`..']
966
967_ACEOF
968
969 cat <<_ACEOF
970Installation directories:
971 --prefix=PREFIX install architecture-independent files in PREFIX
972 [$ac_default_prefix]
973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
974 [PREFIX]
975
976By default, \`make install' will install all the files in
977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
978an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979for instance \`--prefix=\$HOME'.
980
981For better control, use the options below.
982
983Fine tuning of the installation directories:
984 --bindir=DIR user executables [EPREFIX/bin]
985 --sbindir=DIR system admin executables [EPREFIX/sbin]
986 --libexecdir=DIR program executables [EPREFIX/libexec]
987 --datadir=DIR read-only architecture-independent data [PREFIX/share]
988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
990 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
991 --libdir=DIR object code libraries [EPREFIX/lib]
992 --includedir=DIR C header files [PREFIX/include]
993 --oldincludedir=DIR C header files for non-gcc [/usr/include]
994 --infodir=DIR info documentation [PREFIX/info]
995 --mandir=DIR man documentation [PREFIX/man]
996_ACEOF
997
998 cat <<\_ACEOF
999
1000X features:
1001 --x-includes=DIR X include files are in DIR
1002 --x-libraries=DIR X library files are in DIR
1003
1004Program names:
1005 --program-prefix=PREFIX prepend PREFIX to installed program names
1006 --program-suffix=SUFFIX append SUFFIX to installed program names
1007 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012_ACEOF
1013fi
1014
1015if test -n "$ac_init_help"; then
1016
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-shared=PKGS build shared libraries default=no
1023 --enable-static=PKGS build static libraries default=yes
1024 --enable-fast-install=PKGS optimize for fast installation default=yes
1025 --disable-libtool-lock avoid locking (might break parallel builds)
1026 --enable-everything enable standard non-multichoice features: marked *
1027 NOTE: this option is order dependent
1028 NOTE: automatically enabled with --enable-shared
1029 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1030 --enable-xft enable xft support on systems that have it
1031 --enable-utmp enable utmp (utmpx) support
1032 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1033 --enable-lastlog enable lastlog support (requires --enable-utmp)
1034 --enable-xpm-background enable XPM background pixmaps
1035 --enable-transparency enable transparent backgrounds
1036 --enable-menubar enable menubar
1037 --enable-rxvt-scroll enable rxvt style scrollbar
1038 --enable-next-scroll enable NeXT style scrollbar
1039 --enable-xterm-scroll enable Xterm style scrollbar
1040 --enable-plain-scroll enable plain style scrollbar
1041 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1042 --enable-xim XIM (X Input Method) protocol support
1043 --enable-ttygid enable tty setting to group named "tty"
1044 --disable-backspace-key disable handling of the backspace key
1045 --disable-delete-key disable handling of the delete key
1046 --disable-resources disable all resource checking
1047 --enable-xgetdefault enable resources via X instead of our small version
1048 --enable-strings enable some replacement system functions
1049 --disable-swapscreen disable swap screen support
1050 --enable-frills enable support for rarely used features
1051 --enable-linespace enable support for linespace
1052 --enable-24bit enable support for using 24bit visuals if available
1053 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1054 --enable-selectionscrolling enable scrolling during selections
1055 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1056 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1057 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1058 --disable-new-selection disable new mouse (xterm) selection style support
1059 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1060 --enable-dlmalloc enable Doug Lea's malloc - for production use
1061 NOTE: enable only one malloc package
1062 --enable-smart-resize enable smart growth/shrink behaviour
1063 --enable-256-color enable 256-color support
1064 --enable-cursor-blink enable blinking cursor
1065 --enable-text-blink enable blinking text
1066 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1067
1068Optional Packages:
1069 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1070 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1071 --with-gnu-ld assume the C compiler uses GNU ld default=no
1072 --with-pic try to use only PIC/non-PIC objects default=use both
1073 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)
1074 --with-encoding=NAME set language default encoding to NAME (default: sjis)
1075 (eucj|sjis|big5|gb|kr|noenc)
1076 --with-term=NAME set the terminal to NAME (default \"rxvt\")
1077 --with-terminfo=PATH set the path to the terminfo tree to PATH
1078 --with-x use the X Window System
1079 --with-xpm-includes=DIR use XPM includes in DIR
1080 --with-xpm-library=DIR use XPM library in DIR
1081 --with-xpm use XPM
1082
1083Some influential environment variables:
1084 CC C compiler command
1085 CFLAGS C compiler flags
1086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1087 nonstandard directory <lib dir>
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir>
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CPP C preprocessor
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
1097_ACEOF
1098fi
1099
1100if test "$ac_init_help" = "recursive"; then
1101 # If there are subdirs, report their specific --help.
1102 ac_popdir=`pwd`
1103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104 test -d $ac_dir || continue
1105 ac_builddir=.
1106
1107if test "$ac_dir" != .; then
1108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109 # A "../" for each directory in $ac_dir_suffix.
1110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1111else
1112 ac_dir_suffix= ac_top_builddir=
1113fi
1114
1115case $srcdir in
1116 .) # No --srcdir option. We are building in place.
1117 ac_srcdir=.
1118 if test -z "$ac_top_builddir"; then
1119 ac_top_srcdir=.
1120 else
1121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1122 fi ;;
1123 [\\/]* | ?:[\\/]* ) # Absolute path.
1124 ac_srcdir=$srcdir$ac_dir_suffix;
1125 ac_top_srcdir=$srcdir ;;
1126 *) # Relative path.
1127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1129esac
1130
1131# Do not use `cd foo && pwd` to compute absolute paths, because
1132# the directories may not exist.
1133case `pwd` in
1134.) ac_abs_builddir="$ac_dir";;
1135*)
1136 case "$ac_dir" in
1137 .) ac_abs_builddir=`pwd`;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_builddir=${ac_top_builddir}.;;
1144*)
1145 case ${ac_top_builddir}. in
1146 .) ac_abs_top_builddir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_srcdir=$ac_srcdir;;
1153*)
1154 case $ac_srcdir in
1155 .) ac_abs_srcdir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_top_srcdir=$ac_top_srcdir;;
1162*)
1163 case $ac_top_srcdir in
1164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1167 esac;;
1168esac
1169
1170 cd $ac_dir
1171 # Check for guested configure; otherwise get Cygnus style configure.
1172 if test -f $ac_srcdir/configure.gnu; then
1173 echo
1174 $SHELL $ac_srcdir/configure.gnu --help=recursive
1175 elif test -f $ac_srcdir/configure; then
1176 echo
1177 $SHELL $ac_srcdir/configure --help=recursive
1178 elif test -f $ac_srcdir/configure.ac ||
1179 test -f $ac_srcdir/configure.in; then
1180 echo
1181 $ac_configure --help
1182 else
1183 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184 fi
1185 cd "$ac_popdir"
1186 done
1187fi
1188
1189test -n "$ac_init_help" && exit 0
1190if $ac_init_version; then
1191 cat <<\_ACEOF
1192
1193Copyright (C) 2003 Free Software Foundation, Inc.
1194This configure script is free software; the Free Software Foundation
1195gives unlimited permission to copy, distribute and modify it.
1196_ACEOF
1197 exit 0
1198fi
1199exec 5>config.log
1200cat >&5 <<_ACEOF
1201This file contains any messages produced by compilers while
1202running configure, to aid debugging if configure makes a mistake.
1203
1204It was created by $as_me, which was
1205generated by GNU Autoconf 2.59. Invocation command line was
1206
1207 $ $0 $@
1208
1209_ACEOF
1210{
1211cat <<_ASUNAME
1212## --------- ##
1213## Platform. ##
1214## --------- ##
1215
1216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1217uname -m = `(uname -m) 2>/dev/null || echo unknown`
1218uname -r = `(uname -r) 2>/dev/null || echo unknown`
1219uname -s = `(uname -s) 2>/dev/null || echo unknown`
1220uname -v = `(uname -v) 2>/dev/null || echo unknown`
1221
1222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1223/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1224
1225/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1226/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1228hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1229/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1230/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1231/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1232
1233_ASUNAME
1234
1235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1236for as_dir in $PATH
1237do
1238 IFS=$as_save_IFS
1239 test -z "$as_dir" && as_dir=.
1240 echo "PATH: $as_dir"
1241done
1242
1243} >&5
1244
1245cat >&5 <<_ACEOF
1246
1247
1248## ----------- ##
1249## Core tests. ##
1250## ----------- ##
1251
1252_ACEOF
1253
1254
1255# Keep a trace of the command line.
1256# Strip out --no-create and --no-recursion so they do not pile up.
1257# Strip out --silent because we don't want to record it for future runs.
1258# Also quote any args containing shell meta-characters.
1259# Make two passes to allow for proper duplicate-argument suppression.
1260ac_configure_args=
1261ac_configure_args0=
1262ac_configure_args1=
1263ac_sep=
1264ac_must_keep_next=false
1265for ac_pass in 1 2
1266do
1267 for ac_arg
1268 do
1269 case $ac_arg in
1270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 continue ;;
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 esac
1277 case $ac_pass in
1278 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1279 2)
1280 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1281 if test $ac_must_keep_next = true; then
1282 ac_must_keep_next=false # Got value, back to normal.
1283 else
1284 case $ac_arg in
1285 *=* | --config-cache | -C | -disable-* | --disable-* \
1286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1288 | -with-* | --with-* | -without-* | --without-* | --x)
1289 case "$ac_configure_args0 " in
1290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1291 esac
1292 ;;
1293 -* ) ac_must_keep_next=true ;;
1294 esac
1295 fi
1296 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1297 # Get rid of the leading space.
1298 ac_sep=" "
1299 ;;
1300 esac
1301 done
1302done
1303$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1304$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1305
1306# When interrupted or exit'd, cleanup temporary files, and complete
1307# config.log. We remove comments because anyway the quotes in there
1308# would cause problems or look ugly.
1309# WARNING: Be sure not to use single quotes in there, as some shells,
1310# such as our DU 5.0 friend, will then `close' the trap.
1311trap 'exit_status=$?
1312 # Save into config.log some information that might help in debugging.
1313 {
1314 echo
1315
1316 cat <<\_ASBOX
1317## ---------------- ##
1318## Cache variables. ##
1319## ---------------- ##
1320_ASBOX
1321 echo
1322 # The following way of writing the cache mishandles newlines in values,
1323{
1324 (set) 2>&1 |
1325 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1326 *ac_space=\ *)
1327 sed -n \
1328 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330 ;;
1331 *)
1332 sed -n \
1333 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1334 ;;
1335 esac;
1336}
1337 echo
1338
1339 cat <<\_ASBOX
1340## ----------------- ##
1341## Output variables. ##
1342## ----------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_vars
1346 do
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1349 done | sort
1350 echo
1351
1352 if test -n "$ac_subst_files"; then
1353 cat <<\_ASBOX
1354## ------------- ##
1355## Output files. ##
1356## ------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_files
1360 do
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1365 fi
1366
1367 if test -s confdefs.h; then
1368 cat <<\_ASBOX
1369## ----------- ##
1370## confdefs.h. ##
1371## ----------- ##
1372_ASBOX
1373 echo
1374 sed "/^$/d" confdefs.h | sort
1375 echo
1376 fi
1377 test "$ac_signal" != 0 &&
1378 echo "$as_me: caught signal $ac_signal"
1379 echo "$as_me: exit $exit_status"
1380 } >&5
1381 rm -f core *.core &&
1382 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1383 exit $exit_status
1384 ' 0
1385for ac_signal in 1 2 13 15; do
1386 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1387done
1388ac_signal=0
1389
1390# confdefs.h avoids OS command line length limits that DEFS can exceed.
1391rm -rf conftest* confdefs.h
1392# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1393echo >confdefs.h
1394
1395# Predefined preprocessor variables.
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_NAME "$PACKAGE_NAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_VERSION "$PACKAGE_VERSION"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_STRING "$PACKAGE_STRING"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419_ACEOF
1420
1421
1422# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1423# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1424if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1425 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1426 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1427 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1428 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1429 fi
753fi 1430fi
754for ac_site_file in $CONFIG_SITE; do 1431for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1432 if test -r "$ac_site_file"; then
1433 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1434echo "$as_me: loading site script $ac_site_file" >&6;}
1435 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1436 . "$ac_site_file"
758 fi 1437 fi
759done 1438done
760 1439
761if test -r "$cache_file"; then 1440if test -r "$cache_file"; then
1441 # Some versions of bash will fail to source /dev/null (special
1442 # files actually), so we avoid doing that.
1443 if test -f "$cache_file"; then
1444 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1445echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1446 case $cache_file in
1447 [\\/]* | ?:[\\/]* ) . $cache_file;;
1448 *) . ./$cache_file;;
1449 esac
1450 fi
764else 1451else
1452 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1453echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1454 >$cache_file
1455fi
1456
1457# Check that the precious variables saved in the cache have kept the same
1458# value.
1459ac_cache_corrupted=false
1460for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1467 set,)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,set)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,);;
1476 *)
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1485 fi;;
1486 esac
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1489 case $ac_new_val in
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1493 esac
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 esac
1498 fi
1499done
1500if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
767fi 1506fi
768 1507
769ac_ext=c 1508ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1509ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1510ac_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' 1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1513
776ac_exeext= 1514
777ac_objext=o 1515
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1516
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1517
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1518
781 ac_n= ac_c=' 1519
782' ac_t=' ' 1520
783 else 1521
784 ac_n=-n ac_c= ac_t= 1522
785 fi 1523
786else 1524
787 ac_n= ac_c='\c' ac_t= 1525
788fi 1526
1527
1528
1529
789 1530
790 1531
791ac_aux_dir= 1532ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1533for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1534 if test -f $ac_dir/install-sh; then
796 break 1537 break
797 elif test -f $ac_dir/install.sh; then 1538 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1539 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1540 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
801 fi 1546 fi
802done 1547done
803if test -z "$ac_aux_dir"; then 1548if test -z "$ac_aux_dir"; then
1549 { { 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; } 1550echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1551 { (exit 1); exit 1; }; }
805fi 1552fi
806ac_config_guess=$ac_aux_dir/config.guess 1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1556
1557 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1558
811 1559
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1560VERSION=`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` 1561DATE=`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` 1562LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1564echo ""
817echo "configuring for rxvt $VERSION" 1565echo "configuring for rxvt $VERSION"
818echo "" 1566echo ""
819 1567
820 1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1576set dummy ${ac_tool_prefix}gcc; ac_word=$2
1577echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578echo $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 1579if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1580 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1581else
828 if test -n "$CC"; then 1582 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1583 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1584else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1586for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1587do
1588 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1589 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1590 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1594 break 2
838 fi 1595 fi
839 done 1596done
840 IFS="$ac_save_ifs" 1597done
1598
841fi 1599fi
842fi 1600fi
843CC="$ac_cv_prog_CC" 1601CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1602if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1603 echo "$as_me:$LINENO: result: $CC" >&5
1604echo "${ECHO_T}$CC" >&6
846else 1605else
847 echo "$ac_t""no" 1>&6 1606 echo "$as_me:$LINENO: result: no" >&5
1607echo "${ECHO_T}no" >&6
848fi 1608fi
849 1609
1610fi
1611if test -z "$ac_cv_prog_CC"; then
1612 ac_ct_CC=$CC
1613 # Extract the first word of "gcc", so it can be a program name with args.
1614set dummy gcc; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619else
1620 if test -n "$ac_ct_CC"; then
1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622else
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_ac_ct_CC="gcc"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634done
1635done
1636
1637fi
1638fi
1639ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640if test -n "$ac_ct_CC"; then
1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642echo "${ECHO_T}$ac_ct_CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648 CC=$ac_ct_CC
1649else
1650 CC="$ac_cv_prog_CC"
1651fi
1652
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1656set dummy ${ac_tool_prefix}cc; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="${ac_tool_prefix}cc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690fi
1691if test -z "$ac_cv_prog_CC"; then
1692 ac_ct_CC=$CC
1693 # Extract the first word of "cc", so it can be a program name with args.
1694set dummy cc; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="cc"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 CC=$ac_ct_CC
1729else
1730 CC="$ac_cv_prog_CC"
1731fi
1732
1733fi
850if test -z "$CC"; then 1734if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1735 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1736set dummy cc; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1738echo $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 1739if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1740 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1741else
858 if test -n "$CC"; then 1742 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1743 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1744else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1745 ac_prog_rejected=no
863 ac_dummy="$PATH" 1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1747for as_dir in $PATH
1748do
1749 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1750 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1754 ac_prog_rejected=yes
869 continue 1755 continue
870 fi 1756 fi
871 ac_cv_prog_CC="cc" 1757 ac_cv_prog_CC="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1759 break 2
873 fi 1760 fi
874 done 1761done
875 IFS="$ac_save_ifs" 1762done
1763
876if test $ac_prog_rejected = yes; then 1764if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1765 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1766 set dummy $ac_cv_prog_CC
879 shift 1767 shift
880 if test $# -gt 0; then 1768 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1769 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1770 # 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. 1771 # first if we set CC to just the basename; use the full file name.
884 shift 1772 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1774 fi
889fi 1775fi
890fi 1776fi
891fi 1777fi
892CC="$ac_cv_prog_CC" 1778CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1779if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1780 echo "$as_me:$LINENO: result: $CC" >&5
1781echo "${ECHO_T}$CC" >&6
895else 1782else
896 echo "$ac_t""no" 1>&6 1783 echo "$as_me:$LINENO: result: no" >&5
1784echo "${ECHO_T}no" >&6
897fi 1785fi
898 1786
1787fi
899 if test -z "$CC"; then 1788if test -z "$CC"; then
900 case "`uname -s`" in 1789 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1790 for ac_prog in cl
1791 do
902 # Extract the first word of "cl", so it can be a program name with args. 1792 # 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 1793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1794echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1795echo $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 1796if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1797 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1798else
909 if test -n "$CC"; then 1799 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1800 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1801else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1803for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1804do
1805 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1806 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1807 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1811 break 2
1812 fi
1813done
1814done
1815
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827 test -n "$CC" && break
1828 done
1829fi
1830if test -z "$CC"; then
1831 ac_ct_CC=$CC
1832 for ac_prog in cl
1833do
1834 # Extract the first word of "$ac_prog", so it can be a program name with args.
1835set dummy $ac_prog; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_ac_ct_CC="$ac_prog"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855done
1856done
1857
1858fi
1859fi
1860ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861if test -n "$ac_ct_CC"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863echo "${ECHO_T}$ac_ct_CC" >&6
1864else
1865 echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869 test -n "$ac_ct_CC" && break
1870done
1871
1872 CC=$ac_ct_CC
1873fi
1874
1875fi
1876
1877
1878test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1879See \`config.log' for more details." >&5
1880echo "$as_me: error: no acceptable C compiler found in \$PATH
1881See \`config.log' for more details." >&2;}
1882 { (exit 1); exit 1; }; }
1883
1884# Provide some information about the compiler.
1885echo "$as_me:$LINENO:" \
1886 "checking for C compiler version" >&5
1887ac_compiler=`set X $ac_compile; echo $2`
1888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1889 (eval $ac_compiler --version </dev/null >&5) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }
1893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1894 (eval $ac_compiler -v </dev/null >&5) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }
1898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1899 (eval $ac_compiler -V </dev/null >&5) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }
1903
1904cat >conftest.$ac_ext <<_ACEOF
1905/* confdefs.h. */
1906_ACEOF
1907cat confdefs.h >>conftest.$ac_ext
1908cat >>conftest.$ac_ext <<_ACEOF
1909/* end confdefs.h. */
1910
1911int
1912main ()
1913{
1914
1915 ;
1916 return 0;
1917}
1918_ACEOF
1919ac_clean_files_save=$ac_clean_files
1920ac_clean_files="$ac_clean_files a.out a.exe b.out"
1921# Try to create an executable without -o first, disregard a.out.
1922# It will help us diagnose broken compilers, and finding out an intuition
1923# of exeext.
1924echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1925echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1926ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1927if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1928 (eval $ac_link_default) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 # Find the output, starting from the most likely. This scheme is
1933# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1934# resort.
1935
1936# Be careful to initialize this variable, since it used to be cached.
1937# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1938ac_cv_exeext=
1939# b.out is created by i960 compilers.
1940for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1941do
1942 test -f "$ac_file" || continue
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1945 ;;
1946 conftest.$ac_ext )
1947 # This is the source file.
1948 ;;
1949 [ab].out )
1950 # We found the default executable, but exeext='' is most
1951 # certainly right.
1952 break;;
1953 *.* )
1954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 # FIXME: I believe we export ac_cv_exeext for Libtool,
1956 # but it would be cool to find out if it's true. Does anybody
1957 # maintain Libtool? --akim.
1958 export ac_cv_exeext
1959 break;;
1960 * )
1961 break;;
1962 esac
1963done
1964else
1965 echo "$as_me: failed program was:" >&5
1966sed 's/^/| /' conftest.$ac_ext >&5
1967
1968{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1969See \`config.log' for more details." >&5
1970echo "$as_me: error: C compiler cannot create executables
1971See \`config.log' for more details." >&2;}
1972 { (exit 77); exit 77; }; }
1973fi
1974
1975ac_exeext=$ac_cv_exeext
1976echo "$as_me:$LINENO: result: $ac_file" >&5
1977echo "${ECHO_T}$ac_file" >&6
1978
1979# Check the compiler produces executables we can run. If not, either
1980# the compiler is broken, or we cross compile.
1981echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1982echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1983# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1984# If not cross compiling, check that we can run a simple program.
1985if test "$cross_compiling" != yes; then
1986 if { ac_try='./$ac_file'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 cross_compiling=no
1993 else
1994 if test "$cross_compiling" = maybe; then
1995 cross_compiling=yes
1996 else
1997 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1998If you meant to cross compile, use \`--host'.
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: cannot run C compiled programs.
2001If you meant to cross compile, use \`--host'.
2002See \`config.log' for more details." >&2;}
2003 { (exit 1); exit 1; }; }
919 fi 2004 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 2005 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2006fi
2007echo "$as_me:$LINENO: result: yes" >&5
2008echo "${ECHO_T}yes" >&6
935 2009
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2010rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2011ac_clean_files=$ac_clean_files_save
2012# Check the compiler produces executables we can run. If not, either
2013# the compiler is broken, or we cross compile.
2014echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2015echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2016echo "$as_me:$LINENO: result: $cross_compiling" >&5
2017echo "${ECHO_T}$cross_compiling" >&6
938 2018
939ac_ext=c 2019echo "$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. 2020echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2022 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2023 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2027# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2028# work properly (i.e., refer to `conftest.exe'), while it won't with
2029# `rm'.
2030for ac_file in conftest.exe conftest conftest.*; do
2031 test -f "$ac_file" || continue
2032 case $ac_file in
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 export ac_cv_exeext
2036 break;;
2037 * ) break;;
2038 esac
2039done
2040else
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2042See \`config.log' for more details." >&5
2043echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2044See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2046fi
945 2047
2048rm -f conftest$ac_cv_exeext
2049echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2050echo "${ECHO_T}$ac_cv_exeext" >&6
2051
2052rm -f conftest.$ac_ext
2053EXEEXT=$ac_cv_exeext
2054ac_exeext=$EXEEXT
2055echo "$as_me:$LINENO: checking for suffix of object files" >&5
2056echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2057if test "${ac_cv_objext+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 cat >conftest.$ac_ext <<_ACEOF
2061/* confdefs.h. */
2062_ACEOF
2063cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2064cat >>conftest.$ac_ext <<_ACEOF
2065/* end confdefs.h. */
947 2066
948#line 949 "configure" 2067int
949#include "confdefs.h" 2068main ()
2069{
950 2070
951main(){return(0);} 2071 ;
952EOF 2072 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2073}
954 ac_cv_prog_cc_works=yes 2074_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2075rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2077 (eval $ac_compile) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2082 case $ac_file in
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2085 break;;
2086 esac
2087done
958 else 2088else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2089 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2090sed '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 2091
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2092{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2093See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2094echo "$as_me: error: cannot compute suffix of object files: cannot compile
2095See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
977fi 2097fi
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 2098
2099rm -f conftest.$ac_cv_objext conftest.$ac_ext
2100fi
2101echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2102echo "${ECHO_T}$ac_cv_objext" >&6
2103OBJEXT=$ac_cv_objext
2104ac_objext=$OBJEXT
2105echo "$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 2106echo $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 2107if 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 2108 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2109else
988 cat > conftest.c <<EOF 2110 cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h. */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
2115/* end confdefs.h. */
2116
2117int
2118main ()
2119{
989#ifdef __GNUC__ 2120#ifndef __GNUC__
990 yes; 2121 choke me
991#endif 2122#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 2123
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2124 ;
1001 2125 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2126}
1003 GCC=yes 2127_ACEOF
2128rm -f conftest.$ac_objext
2129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>conftest.er1
2131 ac_status=$?
2132 grep -v '^ *+' conftest.er1 >conftest.err
2133 rm -f conftest.er1
2134 cat conftest.err >&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 (eval $ac_try) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; } &&
2143 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2149 ac_compiler_gnu=yes
1004else 2150else
1005 GCC= 2151 echo "$as_me: failed program was:" >&5
1006fi 2152sed 's/^/| /' conftest.$ac_ext >&5
1007 2153
2154ac_compiler_gnu=no
2155fi
2156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157ac_cv_c_compiler_gnu=$ac_compiler_gnu
2158
2159fi
2160echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2161echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2162GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2163ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2164ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2165CFLAGS="-g"
2166echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2167echo $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 2168if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2169 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2170else
1016 echo 'void f(){}' > conftest.c 2171 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2172/* confdefs.h. */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h. */
2177
2178int
2179main ()
2180{
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186rm -f conftest.$ac_objext
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2189 ac_status=$?
2190 grep -v '^ *+' conftest.er1 >conftest.err
2191 rm -f conftest.er1
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1018 ac_cv_prog_cc_g=yes 2207 ac_cv_prog_cc_g=yes
1019else 2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
1020 ac_cv_prog_cc_g=no 2212ac_cv_prog_cc_g=no
1021fi 2213fi
1022rm -f conftest* 2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2215fi
1025 2216echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2217echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2218if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2219 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2220elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2221 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2222 CFLAGS="-g -O2"
1032 else 2223 else
1033 CFLAGS="-g" 2224 CFLAGS="-g"
1037 CFLAGS="-O2" 2228 CFLAGS="-O2"
1038 else 2229 else
1039 CFLAGS= 2230 CFLAGS=
1040 fi 2231 fi
1041fi 2232fi
2233echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2234echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2235if test "${ac_cv_prog_cc_stdc+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 ac_cv_prog_cc_stdc=no
2239ac_save_CC=$CC
2240cat >conftest.$ac_ext <<_ACEOF
2241/* confdefs.h. */
2242_ACEOF
2243cat confdefs.h >>conftest.$ac_ext
2244cat >>conftest.$ac_ext <<_ACEOF
2245/* end confdefs.h. */
2246#include <stdarg.h>
2247#include <stdio.h>
2248#include <sys/types.h>
2249#include <sys/stat.h>
2250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2251struct buf { int x; };
2252FILE * (*rcsopen) (struct buf *, struct stat *, int);
2253static char *e (p, i)
2254 char **p;
2255 int i;
2256{
2257 return p[i];
2258}
2259static char *f (char * (*g) (char **, int), char **p, ...)
2260{
2261 char *s;
2262 va_list v;
2263 va_start (v,p);
2264 s = g (p, va_arg (v,int));
2265 va_end (v);
2266 return s;
2267}
1042 2268
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2270 function prototypes and stuff, but not '\xHH' hex character constants.
2271 These don't provoke an error unfortunately, instead are silently treated
2272 as 'x'. The following induces an error, until -std1 is added to get
2273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2274 array size at least. It's necessary to write '\x00'==0 to get something
2275 that's true only with -std1. */
2276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2277
2278int test (int i, double x);
2279struct s1 {int (*f) (int a);};
2280struct s2 {int (*f) (double a);};
2281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2282int argc;
2283char **argv;
2284int
2285main ()
2286{
2287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292# Don't try gcc -ansi; that turns off useful extensions and
2293# breaks some systems' header files.
2294# AIX -qlanglvl=ansi
2295# Ultrix and OSF/1 -std1
2296# HP-UX 10.20 and later -Ae
2297# HP-UX older versions -Aa -D_HPUX_SOURCE
2298# SVR4 -Xc -D__EXTENSIONS__
2299for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2300do
2301 CC="$ac_save_CC $ac_arg"
2302 rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>conftest.er1
2305 ac_status=$?
2306 grep -v '^ *+' conftest.er1 >conftest.err
2307 rm -f conftest.er1
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2323 ac_cv_prog_cc_stdc=$ac_arg
2324break
2325else
2326 echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329fi
2330rm -f conftest.err conftest.$ac_objext
2331done
2332rm -f conftest.$ac_ext conftest.$ac_objext
2333CC=$ac_save_CC
2334
2335fi
2336
2337case "x$ac_cv_prog_cc_stdc" in
2338 x|xno)
2339 echo "$as_me:$LINENO: result: none needed" >&5
2340echo "${ECHO_T}none needed" >&6 ;;
2341 *)
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2343echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2344 CC="$CC $ac_cv_prog_cc_stdc" ;;
2345esac
2346
2347# Some people use a C++ compiler to compile C. Since we use `exit',
2348# in C++ we need to declare it. In case someone uses the same compiler
2349# for both compiling C and C++ we need to have the C++ compiler decide
2350# the declaration of exit, since it's the most demanding environment.
2351cat >conftest.$ac_ext <<_ACEOF
2352#ifndef __cplusplus
2353 choke me
2354#endif
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2377 for ac_declaration in \
2378 '' \
2379 'extern "C" void std::exit (int) throw (); using std::exit;' \
2380 'extern "C" void std::exit (int); using std::exit;' \
2381 'extern "C" void exit (int) throw ();' \
2382 'extern "C" void exit (int);' \
2383 'void exit (int);'
2384do
2385 cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
2391$ac_declaration
2392#include <stdlib.h>
2393int
2394main ()
2395{
2396exit (42);
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2422 :
2423else
2424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427continue
2428fi
2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
2436$ac_declaration
2437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2466 break
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473done
2474rm -f conftest*
2475if test -n "$ac_declaration"; then
2476 echo '#ifdef __cplusplus' >>confdefs.h
2477 echo $ac_declaration >>confdefs.h
2478 echo '#endif' >>confdefs.h
2479fi
2480
2481else
2482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493ac_ext=cc
2494ac_cpp='$CXXCPP $CPPFLAGS'
2495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2498if test -n "$ac_tool_prefix"; then
2499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2500 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2501 # 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 2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2504echo $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 2505if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2506 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2507else
1052 if test -n "$CXX"; then 2508 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2510else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2512for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2513do
2514 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2515 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2520 break 2
1062 fi 2521 fi
2522done
2523done
2524
2525fi
2526fi
2527CXX=$ac_cv_prog_CXX
2528if test -n "$CXX"; then
2529 echo "$as_me:$LINENO: result: $CXX" >&5
2530echo "${ECHO_T}$CXX" >&6
2531else
2532 echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6
2534fi
2535
2536 test -n "$CXX" && break
1063 done 2537 done
1064 IFS="$ac_save_ifs"
1065fi 2538fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2539if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2540 ac_ct_CXX=$CXX
2541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2542do
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544set dummy $ac_prog; ac_word=$2
2545echo "$as_me:$LINENO: checking for $ac_word" >&5
2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2549else
1071 echo "$ac_t""no" 1>&6 2550 if test -n "$ac_ct_CXX"; then
1072fi 2551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2552else
1074test -n "$CXX" && break 2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_ac_ct_CXX="$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
1075done 2564done
2565done
2566
2567fi
2568fi
2569ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2570if test -n "$ac_ct_CXX"; then
2571 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2572echo "${ECHO_T}$ac_ct_CXX" >&6
2573else
2574 echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6
2576fi
2577
2578 test -n "$ac_ct_CXX" && break
2579done
1076test -n "$CXX" || CXX="gcc" 2580test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2581
2582 CXX=$ac_ct_CXX
2583fi
1078 2584
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 2585
1082ac_ext=C 2586# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2587echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2588 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2589ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2591 (eval $ac_compiler --version </dev/null >&5) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596 (eval $ac_compiler -v </dev/null >&5) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601 (eval $ac_compiler -V </dev/null >&5) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
1088 2605
2606echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2607echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2608if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
1090 2617
1091#line 1092 "configure" 2618int
1092#include "confdefs.h" 2619main ()
1093 2620{
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__ 2621#ifndef __GNUC__
1133 yes; 2622 choke me
1134#endif 2623#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 2624
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2625 ;
1144 2626 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2627}
1146 GXX=yes 2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2650 ac_compiler_gnu=yes
1147else 2651else
1148 GXX= 2652 echo "$as_me: failed program was:" >&5
1149fi 2653sed 's/^/| /' conftest.$ac_ext >&5
1150 2654
2655ac_compiler_gnu=no
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2659
2660fi
2661echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2662echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2663GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2664ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2665ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2666CXXFLAGS="-g"
2667echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2668echo $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 2669if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2670 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2671else
1159 echo 'void f(){}' > conftest.cc 2672 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678
2679int
2680main ()
2681{
2682
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1161 ac_cv_prog_cxx_g=yes 2708 ac_cv_prog_cxx_g=yes
1162else 2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
1163 ac_cv_prog_cxx_g=no 2713ac_cv_prog_cxx_g=no
1164fi 2714fi
1165rm -f conftest* 2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2716fi
1168 2717echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2718echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2719if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2720 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2721elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2722 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2723 CXXFLAGS="-g -O2"
1175 else 2724 else
1176 CXXFLAGS="-g" 2725 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2729 CXXFLAGS="-O2"
1181 else 2730 else
1182 CXXFLAGS= 2731 CXXFLAGS=
1183 fi 2732 fi
1184fi 2733fi
2734for ac_declaration in \
2735 '' \
2736 'extern "C" void std::exit (int) throw (); using std::exit;' \
2737 'extern "C" void std::exit (int); using std::exit;' \
2738 'extern "C" void exit (int) throw ();' \
2739 'extern "C" void exit (int);' \
2740 'void exit (int);'
2741do
2742 cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
2748$ac_declaration
2749#include <stdlib.h>
2750int
2751main ()
2752{
2753exit (42);
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
2759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>conftest.er1
2761 ac_status=$?
2762 grep -v '^ *+' conftest.er1 >conftest.err
2763 rm -f conftest.er1
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2779 :
2780else
2781 echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
1185 2783
2784continue
2785fi
2786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793$ac_declaration
2794int
2795main ()
2796{
2797exit (42);
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2823 break
2824else
2825 echo "$as_me: failed program was:" >&5
2826sed 's/^/| /' conftest.$ac_ext >&5
2827
2828fi
2829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830done
2831rm -f conftest*
2832if test -n "$ac_declaration"; then
2833 echo '#ifdef __cplusplus' >>confdefs.h
2834 echo $ac_declaration >>confdefs.h
2835 echo '#endif' >>confdefs.h
2836fi
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2849echo "$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 2850echo $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. 2851# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2852if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2853 CPP=
1191fi 2854fi
1192if test -z "$CPP"; then 2855if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2856 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2857 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2858else
1196 # This must be in double quotes, not single quotes, because CPP may get 2859 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2861 do
2862 ac_preproc_ok=false
2863for ac_c_preproc_warn_flag in '' yes
2864do
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2869 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2870 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2871 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2872/* confdefs.h. */
1203#include "confdefs.h" 2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877#ifdef __STDC__
2878# include <limits.h>
2879#else
1204#include <assert.h> 2880# include <assert.h>
1205Syntax Error 2881#endif
1206EOF 2882 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2883_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2895 else
2896 ac_cpp_err=
2897 fi
2898else
2899 ac_cpp_err=yes
2900fi
1210if test -z "$ac_err"; then 2901if test -z "$ac_cpp_err"; then
1211 : 2902 :
1212else 2903else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2904 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2905sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2906
1217 CPP="${CC-cc} -E -traditional-cpp" 2907 # Broken: fails on valid input.
2908continue
2909fi
2910rm -f conftest.err conftest.$ac_ext
2911
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2914 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2915/* confdefs.h. */
1220#include "confdefs.h" 2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920#include <ac_nonexistent.h>
2921_ACEOF
2922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933 else
2934 ac_cpp_err=
2935 fi
2936else
2937 ac_cpp_err=yes
2938fi
2939if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2941continue
2942else
2943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Passes both tests.
2947ac_preproc_ok=:
2948break
2949fi
2950rm -f conftest.err conftest.$ac_ext
2951
2952done
2953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954rm -f conftest.err conftest.$ac_ext
2955if $ac_preproc_ok; then
2956 break
2957fi
2958
2959 done
2960 ac_cv_prog_CPP=$CPP
2961
2962fi
2963 CPP=$ac_cv_prog_CPP
2964else
2965 ac_cv_prog_CPP=$CPP
2966fi
2967echo "$as_me:$LINENO: result: $CPP" >&5
2968echo "${ECHO_T}$CPP" >&6
2969ac_preproc_ok=false
2970for ac_c_preproc_warn_flag in '' yes
2971do
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
2984#ifdef __STDC__
2985# include <limits.h>
2986#else
1221#include <assert.h> 2987# include <assert.h>
1222Syntax Error 2988#endif
1223EOF 2989 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2990_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3004 fi
3005else
3006 ac_cpp_err=yes
3007fi
1227if test -z "$ac_err"; then 3008if test -z "$ac_cpp_err"; then
1228 : 3009 :
1229else 3010else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3011 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3012sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3013
1234 CPP="${CC-cc} -nologo -E" 3014 # Broken: fails on valid input.
3015continue
3016fi
3017rm -f conftest.err conftest.$ac_ext
3018
3019 # OK, works on sane cases. Now check whether non-existent headers
3020 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3021 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3022/* confdefs.h. */
1237#include "confdefs.h" 3023_ACEOF
1238#include <assert.h> 3024cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3025cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3026/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3027#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3028_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3040 else
3041 ac_cpp_err=
3042 fi
3043else
3044 ac_cpp_err=yes
3045fi
1244if test -z "$ac_err"; then 3046if test -z "$ac_cpp_err"; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
1245 : 3063 :
1246else 3064else
1247 echo "$ac_err" >&5 3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3066See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3068See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3069 { (exit 1); exit 1; }; }
1252fi 3070fi
1253rm -f conftest* 3071
1254fi 3072ac_ext=c
1255rm -f conftest* 3073ac_cpp='$CPP $CPPFLAGS'
1256fi 3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3076ac_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 3077
1266# Find a good install program. We prefer a C program (faster), 3078# 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 3079# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3080# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3081# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3082# SunOS /usr/etc/install
1271# IRIX /sbin/install 3083# IRIX /sbin/install
1272# AIX /bin/install 3084# AIX /bin/install
3085# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3089# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3090# ./install, which can be erroneously created by make from ./install.sh.
3091echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3092echo $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 3093if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3094if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3095 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3096else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3102 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3103case $as_dir/ in
3104 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3107 /usr/ucb/* ) ;;
1288 *) 3108 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3109 # 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 3110 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3111 # by default.
1292 for ac_prog in ginstall scoinst install; do 3112 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3115 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3117 # AIX install. It has an incompatible calling convention.
1297 : 3118 :
3119 elif test $ac_prog = install &&
3120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # program-specific install script used by HP pwplus--don't use.
3122 :
1298 else 3123 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3125 break 3
1301 fi 3126 fi
1302 fi 3127 fi
1303 done 3128 done
1304 ;;
1305 esac
1306 done 3129 done
1307 IFS="$ac_save_IFS" 3130 ;;
3131esac
3132done
3133
1308 3134
1309fi 3135fi
1310 if test "${ac_cv_path_install+set}" = set; then 3136 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3137 INSTALL=$ac_cv_path_install
1312 else 3138 else
1313 # As a last resort, use the slow shell script. We don't cache a 3139 # 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 3140 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3141 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3142 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3143 INSTALL=$ac_install_sh
1318 fi 3144 fi
1319fi 3145fi
3146echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3147echo "${ECHO_T}$INSTALL" >&6
1321 3148
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3150# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3152
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3154
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3156
1330for ac_prog in mawk gawk nawk awk 3157for ac_prog in gawk mawk nawk awk
1331do 3158do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3162echo $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 3163if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3164 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3165else
1339 if test -n "$AWK"; then 3166 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3168else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3170for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3171do
3172 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3173 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3176 ac_cv_prog_AWK="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185AWK=$ac_cv_prog_AWK
3186if test -n "$AWK"; then
3187 echo "$as_me:$LINENO: result: $AWK" >&5
3188echo "${ECHO_T}$AWK" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194 test -n "$AWK" && break
3195done
3196
3197
3198
3199
3200echo "$as_me:$LINENO: checking for egrep" >&5
3201echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202if test "${ac_cv_prog_egrep+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3206 then ac_cv_prog_egrep='grep -E'
3207 else ac_cv_prog_egrep='egrep'
1349 fi 3208 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3209fi
1353fi 3210echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3211echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3212 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3213
1361test -n "$AWK" && break
1362done
1363 3214
1364 3215
3216echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3217echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3218cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3219/* confdefs.h. */
1369#include "confdefs.h" 3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
1370#ifdef _AIX 3224#ifdef _AIX
1371 yes 3225 yes
1372#endif 3226#endif
1373 3227
1374EOF 3228_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3230 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3231 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3232echo "${ECHO_T}yes" >&6
3233cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3234#define _ALL_SOURCE 1
1380EOF 3235_ACEOF
1381 3236
1382else 3237else
1383 rm -rf conftest* 3238 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3239echo "${ECHO_T}no" >&6
1385fi 3240fi
1386rm -f conftest* 3241rm -f conftest*
1387 3242
1388 3243
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3244echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3245echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3246if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3247 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 3248else
1403 CC="$CC -Xp" 3249 ac_func_search_save_LIBS=$LIBS
1404 fi 3250ac_cv_search_strerror=no
3251cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257
3258/* Override any gcc2 internal prototype to avoid an error. */
3259#ifdef __cplusplus
3260extern "C"
3261#endif
3262/* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3264char strerror ();
3265int
3266main ()
3267{
3268strerror ();
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext conftest$ac_exeext
3274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest$ac_exeext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_search_strerror="none required"
1405else 3295else
1406 echo "$ac_t""no" 1>&6 3296 echo "$as_me: failed program was:" >&5
1407 ISC= 3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299fi
3300rm -f conftest.err conftest.$ac_objext \
3301 conftest$ac_exeext conftest.$ac_ext
3302if test "$ac_cv_search_strerror" = no; then
3303 for ac_lib in cposix; do
3304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312/* Override any gcc2 internal prototype to avoid an error. */
3313#ifdef __cplusplus
3314extern "C"
3315#endif
3316/* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318char strerror ();
3319int
3320main ()
3321{
3322strerror ();
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext conftest$ac_exeext
3328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_search_strerror="-l$ac_lib"
3349break
3350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354fi
3355rm -f conftest.err conftest.$ac_objext \
3356 conftest$ac_exeext conftest.$ac_ext
3357 done
3358fi
3359LIBS=$ac_func_search_save_LIBS
3360fi
3361echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3362echo "${ECHO_T}$ac_cv_search_strerror" >&6
3363if test "$ac_cv_search_strerror" != no; then
3364 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3365
1408fi 3366fi
1409 3367
1410 3368
1411# Check whether --enable-shared or --disable-shared was given. 3369# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3370if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3385 IFS="$ac_save_ifs"
1428 ;; 3386 ;;
1429esac 3387esac
1430else 3388else
1431 enable_shared=no 3389 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3390fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3391if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3392 enableval="$enable_static"
1436 p=${PACKAGE-default} 3393 p=${PACKAGE-default}
1437case "$enableval" in 3394case "$enableval" in
1438yes) enable_static=yes ;; 3395yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3406 IFS="$ac_save_ifs"
1450 ;; 3407 ;;
1451esac 3408esac
1452else 3409else
1453 enable_static=yes 3410 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. 3411fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3412if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3413 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3414 p=${PACKAGE-default}
1521case "$enableval" in 3415case "$enableval" in
1522yes) enable_fast_install=yes ;; 3416yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3427 IFS="$ac_save_ifs"
1534 ;; 3428 ;;
1535esac 3429esac
1536else 3430else
1537 enable_fast_install=yes 3431 enable_fast_install=yes
1538fi 3432fi;
1539
1540
1541# Make sure we can run config.sub. 3433# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3434$ac_config_sub sun4 >/dev/null 2>&1 ||
3435 { { 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; } 3436echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3437 { (exit 1); exit 1; }; }
1545 3438
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3439echo "$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 3440echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3441if test "${ac_cv_build+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 ac_cv_build_alias=$build_alias
3445test -z "$ac_cv_build_alias" &&
3446 ac_cv_build_alias=`$ac_config_guess`
3447test -z "$ac_cv_build_alias" &&
3448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450 { (exit 1); exit 1; }; }
3451ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454 { (exit 1); exit 1; }; }
1569 3455
1570build_alias=$build 3456fi
1571case "$build_alias" in 3457echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3458echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3459build=$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/'` 3460build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3461build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3462build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3463
3464
3465echo "$as_me:$LINENO: checking host system type" >&5
3466echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467if test "${ac_cv_host+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 ac_cv_host_alias=$host_alias
3471test -z "$ac_cv_host_alias" &&
3472 ac_cv_host_alias=$ac_cv_build_alias
3473ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480echo "${ECHO_T}$ac_cv_host" >&6
3481host=$ac_cv_host
3482host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
1584 3487
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3488# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3489if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3490 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3491 test "$withval" = no || with_gnu_ld=yes
1589else 3492else
1590 with_gnu_ld=no 3493 with_gnu_ld=no
1591fi 3494fi;
1592
1593ac_prog=ld 3495ac_prog=ld
1594if test "$GCC" = yes; then 3496if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3497 # Check if gcc -print-prog-name=ld gives a path.
3498 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 3499echo $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 3500 case $host in
1599 *-*-mingw*) 3501 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3502 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3504 *)
1621 # If it is relative, then search for the first ld in PATH. 3523 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3524 with_gnu_ld=unknown
1623 ;; 3525 ;;
1624 esac 3526 esac
1625elif test "$with_gnu_ld" = yes; then 3527elif test "$with_gnu_ld" = yes; then
3528 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3530else
3531 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3533fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3534if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3535 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3536else
1635 if test -z "$LD"; then 3537 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3539 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3540 test -z "$ac_dir" && ac_dir=.
1654fi 3556fi
1655fi 3557fi
1656 3558
1657LD="$lt_cv_path_LD" 3559LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3560if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3561 echo "$as_me:$LINENO: result: $LD" >&5
3562echo "${ECHO_T}$LD" >&6
1660else 3563else
1661 echo "$ac_t""no" 1>&6 3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
1662fi 3566fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569 { (exit 1); exit 1; }; }
3570echo "$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 3571echo $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 3572if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3573 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3574else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3575 # 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 3576if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3577 lt_cv_prog_gnu_ld=yes
1672else 3578else
1673 lt_cv_prog_gnu_ld=no 3579 lt_cv_prog_gnu_ld=no
1674fi 3580fi
1675fi 3581fi
1676 3582echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3583echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3584with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3585
1680 3586
3587echo "$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 3588echo $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 3589if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3590 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3591else
1686 lt_cv_ld_reload_flag='-r' 3592 lt_cv_ld_reload_flag='-r'
1687fi 3593fi
1688 3594echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3595echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3596reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3597test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3598
3599echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3600echo $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 3601if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3602 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3603else
1698 if test -n "$NM"; then 3604 if test -n "$NM"; then
1699 # Let the user override the test. 3605 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3606 lt_cv_path_NM="$NM"
1701else 3607else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3631fi
1726fi 3632fi
1727 3633
1728NM="$lt_cv_path_NM" 3634NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3635echo "$as_me:$LINENO: result: $NM" >&5
3636echo "${ECHO_T}$NM" >&6
1730 3637
3638echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3640LN_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 3641if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
1748else 3644else
1749 echo "$ac_t""no" 1>&6 3645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3646echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3647fi
1751 3648
3649echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3650echo $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 3651if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3652 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3653else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3654 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3655lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3656lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3657# Need to set the preceding variable on all platforms that support
1906 esac 3803 esac
1907 ;; 3804 ;;
1908esac 3805esac
1909 3806
1910fi 3807fi
1911 3808echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 3809echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 3810file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 3811deplibs_check_method=$lt_cv_deplibs_check_method
1915 3812
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 3813
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 3814
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 3815
1979 3816
1980 3817
1981 3818
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 3819# Check for command to grab the raw symbol name followed by C symbol from nm.
3820echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 3821echo $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 3822if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 3823 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 3824else
1988 3825
1989# These are sane defaults that work on at least a few old systems. 3826# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3827# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 3828
1992# Character class describing NM global symbol codes. 3829# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 3830symcode='[BCDEGRST]'
2055} 3892}
2056#endif 3893#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 3894main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 3895EOF
2059 3896
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 3902 # Now try to grab the symbols.
2062 nlist=conftest.nm 3903 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 3904 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3905 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 3909 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 3910 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 3911 mv -f "$nlist"T "$nlist"
2067 else 3912 else
2068 rm -f "$nlist"T 3913 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 3954 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 3955 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 3956 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 3957 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 3958 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 3964 pipe_works=yes
2116 fi 3965 fi
2117 LIBS="$save_LIBS" 3966 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 3967 CFLAGS="$save_CFLAGS"
2119 else 3968 else
2146 global_symbol_to_cdecl= 3995 global_symbol_to_cdecl=
2147else 3996else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3997 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 3998fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 3999if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4000 echo "$as_me:$LINENO: result: failed" >&5
4001echo "${ECHO_T}failed" >&6
4002else
4003 echo "$as_me:$LINENO: result: ok" >&5
4004echo "${ECHO_T}ok" >&6
4005fi
4006
4007echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018#include <stdlib.h>
4019#include <stdarg.h>
4020#include <string.h>
4021#include <float.h>
4022
4023int
4024main ()
4025{
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_header_stdc=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057ac_cv_header_stdc=no
4058fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061if test $ac_cv_header_stdc = yes; then
4062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069#include <string.h>
4070
4071_ACEOF
4072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "memchr" >/dev/null 2>&1; then
4074 :
4075else
4076 ac_cv_header_stdc=no
4077fi
4078rm -f conftest*
4079
4080fi
4081
4082if test $ac_cv_header_stdc = yes; then
4083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090#include <stdlib.h>
4091
4092_ACEOF
4093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "free" >/dev/null 2>&1; then
4095 :
4096else
4097 ac_cv_header_stdc=no
4098fi
4099rm -f conftest*
4100
4101fi
4102
4103if test $ac_cv_header_stdc = yes; then
4104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4105 if test "$cross_compiling" = yes; then
4106 :
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <ctype.h>
4115#if ((' ' & 0x0FF) == 0x020)
4116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4118#else
2153 echo "$ac_t""ok" 1>&6 4119# define ISLOWER(c) \
2154fi 4120 (('a' <= (c) && (c) <= 'i') \
4121 || ('j' <= (c) && (c) <= 'r') \
4122 || ('s' <= (c) && (c) <= 'z'))
4123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124#endif
2155 4125
2156for ac_hdr in dlfcn.h 4126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127int
4128main ()
4129{
4130 int i;
4131 for (i = 0; i < 256; i++)
4132 if (XOR (islower (i), ISLOWER (i))
4133 || toupper (i) != TOUPPER (i))
4134 exit(2);
4135 exit (0);
4136}
4137_ACEOF
4138rm -f conftest$ac_exeext
4139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 :
4150else
4151 echo "$as_me: program exited with status $ac_status" >&5
4152echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155( exit $ac_status )
4156ac_cv_header_stdc=no
4157fi
4158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4159fi
4160fi
4161fi
4162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4163echo "${ECHO_T}$ac_cv_header_stdc" >&6
4164if test $ac_cv_header_stdc = yes; then
4165
4166cat >>confdefs.h <<\_ACEOF
4167#define STDC_HEADERS 1
4168_ACEOF
4169
4170fi
4171
4172# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4183 inttypes.h stdint.h unistd.h
2157do 4184do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4186echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4188if 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 4189 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4190else
2164 cat > conftest.$ac_ext <<EOF 4191 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4192/* confdefs.h. */
2166#include "confdefs.h" 4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
4197$ac_includes_default
4198
2167#include <$ac_hdr> 4199#include <$ac_header>
2168EOF 4200_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4201rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4203 (eval $ac_compile) 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 eval "$as_ac_Header=yes"
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227eval "$as_ac_Header=no"
4228fi
4229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230fi
4231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4233if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236_ACEOF
4237
4238fi
4239
4240done
4241
4242
4243
4244for ac_header in dlfcn.h
4245do
4246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248 echo "$as_me:$LINENO: checking for $ac_header" >&5
4249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4250if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252fi
4253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255else
4256 # Is the header compilable?
4257echo "$as_me:$LINENO: checking $ac_header usability" >&5
4258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4259cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265$ac_includes_default
4266#include <$ac_header>
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_header_compiler=yes
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294ac_header_compiler=no
4295fi
4296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298echo "${ECHO_T}$ac_header_compiler" >&6
4299
4300# Is the header present?
4301echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4303cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309#include <$ac_header>
4310_ACEOF
4311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null; then
4319 if test -s conftest.err; then
4320 ac_cpp_err=$ac_c_preproc_warn_flag
4321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 else
4323 ac_cpp_err=
4324 fi
4325else
4326 ac_cpp_err=yes
4327fi
2172if test -z "$ac_err"; then 4328if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4329 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4330else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4331 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4332sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4333
2180 eval "ac_cv_header_$ac_safe=no" 4334 ac_header_preproc=no
2181fi 4335fi
2182rm -f conftest* 4336rm -f conftest.err conftest.$ac_ext
4337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4338echo "${ECHO_T}$ac_header_preproc" >&6
4339
4340# So? What about this header?
4341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4342 yes:no: )
4343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4347 ac_header_preproc=yes
4348 ;;
4349 no:yes:* )
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4362 (
4363 cat <<\_ASBOX
4364## ------------------------------------------ ##
4365## Report this to the AC_PACKAGE_NAME lists. ##
4366## ------------------------------------------ ##
4367_ASBOX
4368 ) |
4369 sed "s/^/$as_me: WARNING: /" >&2
4370 ;;
4371esac
4372echo "$as_me:$LINENO: checking for $ac_header" >&5
4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4378fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4381
4382fi
4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4384 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4386_ACEOF
2190 4387
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4388fi
4389
2194done 4390done
2195 4391
2196 4392
2197 4393
2198 4394
2199 4395
2200# Only perform the check for file, if the check method requires it 4396# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4397case "$deplibs_check_method" in
2202file_magic*) 4398file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4399 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4400 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 4401echo $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 4402if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4403 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4404else
2209 case "$MAGIC_CMD" in 4405 case "$MAGIC_CMD" in
2210 /*) 4406 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4408 ;;
2254esac 4450esac
2255fi 4451fi
2256 4452
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4454if test -n "$MAGIC_CMD"; then
4455 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4456echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4457else
2261 echo "$ac_t""no" 1>&6 4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
2262fi 4460fi
2263 4461
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4462if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4463 if test -n "$ac_tool_prefix"; then
4464 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4465echo $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 4466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4467 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4468else
2271 case "$MAGIC_CMD" in 4469 case "$MAGIC_CMD" in
2272 /*) 4470 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4472 ;;
2316esac 4514esac
2317fi 4515fi
2318 4516
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4518if test -n "$MAGIC_CMD"; then
4519 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4520echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4521else
2323 echo "$ac_t""no" 1>&6 4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
2324fi 4524fi
2325 4525
2326 else 4526 else
2327 MAGIC_CMD=: 4527 MAGIC_CMD=:
2328 fi 4528 fi
2330 4530
2331 fi 4531 fi
2332 ;; 4532 ;;
2333esac 4533esac
2334 4534
4535if 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. 4536 # 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 4537set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4539echo $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 4540if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4541 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4542else
2342 if test -n "$RANLIB"; then 4543 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4545else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4547for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4548do
4549 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4550 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4555 break 2
2352 fi 4556 fi
2353 done 4557done
2354 IFS="$ac_save_ifs" 4558done
4559
2355fi 4560fi
2356fi 4561fi
2357RANLIB="$ac_cv_prog_RANLIB" 4562RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4563if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4564 echo "$as_me:$LINENO: result: $RANLIB" >&5
4565echo "${ECHO_T}$RANLIB" >&6
2360else 4566else
2361 echo "$ac_t""no" 1>&6 4567 echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
2362fi 4569fi
2363 4570
2364 4571fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4572if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4573 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4574 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4575set dummy ranlib; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4577echo $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 4578if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4579 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4580else
2374 if test -n "$RANLIB"; then 4581 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4583else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4585for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4586do
4587 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4588 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4591 ac_cv_prog_ac_ct_RANLIB="ranlib"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4593 break 2
2384 fi 4594 fi
2385 done 4595done
2386 IFS="$ac_save_ifs" 4596done
4597
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4598 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4599fi
2389fi 4600fi
4601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4602if test -n "$ac_ct_RANLIB"; then
4603 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4604echo "${ECHO_T}$ac_ct_RANLIB" >&6
4605else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608fi
4609
4610 RANLIB=$ac_ct_RANLIB
4611else
2390RANLIB="$ac_cv_prog_RANLIB" 4612 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 4613fi
2396 4614
2397else 4615if 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. 4616 # 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 4617set dummy ${ac_tool_prefix}strip; ac_word=$2
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4619echo $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 4620if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4621 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4622else
2409 if test -n "$STRIP"; then 4623 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4625else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4627for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4628do
4629 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4630 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4635 break 2
2419 fi 4636 fi
2420 done 4637done
2421 IFS="$ac_save_ifs" 4638done
4639
2422fi 4640fi
2423fi 4641fi
2424STRIP="$ac_cv_prog_STRIP" 4642STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4643if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4644 echo "$as_me:$LINENO: result: $STRIP" >&5
4645echo "${ECHO_T}$STRIP" >&6
2427else 4646else
2428 echo "$ac_t""no" 1>&6 4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
2429fi 4649fi
2430 4650
2431 4651fi
2432if test -z "$ac_cv_prog_STRIP"; then 4652if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4653 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4654 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4655set dummy strip; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4657echo $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 4658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4659 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4660else
2441 if test -n "$STRIP"; then 4661 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4663else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4665for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4666do
4667 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4668 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4671 ac_cv_prog_ac_ct_STRIP="strip"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 4673 break 2
2451 fi 4674 fi
2452 done 4675done
2453 IFS="$ac_save_ifs" 4676done
4677
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 4679fi
2456fi 4680fi
4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682if test -n "$ac_ct_STRIP"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4684echo "${ECHO_T}$ac_ct_STRIP" >&6
4685else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688fi
4689
4690 STRIP=$ac_ct_STRIP
4691else
2457STRIP="$ac_cv_prog_STRIP" 4692 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 4693fi
2468 4694
2469 4695
2470enable_dlopen=no 4696enable_dlopen=no
2471enable_win32_dll=no 4697enable_win32_dll=no
2472 4698
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4699# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 4700if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 4701 enableval="$enable_libtool_lock"
2476 : 4702
2477fi 4703fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 4705
2481# Some flags need to be propagated to the compiler or linker for good 4706# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 4707# libtool support.
2483case "$host" in 4708case "$host" in
2484*-*-irix6*) 4709*-*-irix6*)
2485 # Find out which ABI we are using. 4710 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 4711 echo '#line 4711 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 4717 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 4718 *32-bit*)
2490 LD="${LD-ld} -32" 4719 LD="${LD-ld} -32"
2491 ;; 4720 ;;
2492 *N32*) 4721 *N32*)
2502 4731
2503*-*-sco3.2v5*) 4732*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 4734 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 4735 CFLAGS="$CFLAGS -belf"
4736 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 4737echo $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 4738if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 4739 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 4740else
2512 4741
4742
2513 ac_ext=c 4743 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 4744ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4745ac_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' 4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 4748
2520 cat > conftest.$ac_ext <<EOF 4749 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 4750/* confdefs.h. */
2522#include "confdefs.h" 4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
2523 4755
2524int main() { 4756int
4757main ()
4758{
2525 4759
4760 ;
2526; return 0; } 4761 return 0;
2527EOF 4762}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4763_ACEOF
4764rm -f conftest.$ac_objext conftest$ac_exeext
4765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 4785 lt_cv_cc_needs_belf=yes
2531else 4786else
2532 echo "configure: failed program was:" >&5 4787 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 4788sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 4789
2535 lt_cv_cc_needs_belf=no 4790lt_cv_cc_needs_belf=no
2536fi 4791fi
2537rm -f conftest* 4792rm -f conftest.err conftest.$ac_objext \
4793 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 4794 ac_ext=c
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 4795ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 4799
2545fi 4800fi
2546 4801echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 4802echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4803 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 4804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 4805 CFLAGS="$SAVE_CFLAGS"
2551 fi 4806 fi
2552 ;; 4807 ;;
2637set dummy $CC 4892set dummy $CC
2638compiler="$2" 4893compiler="$2"
2639 4894
2640## FIXME: this should be a separate macro 4895## FIXME: this should be a separate macro
2641## 4896##
4897echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 4898echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 4899rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 4900mkdir .libs 2>/dev/null
2646if test -d .libs; then 4901if test -d .libs; then
2647 objdir=.libs 4902 objdir=.libs
2648else 4903else
2649 # MS-DOS does not allow filenames that begin with a dot. 4904 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 4905 objdir=_libs
2651fi 4906fi
2652rmdir .libs 2>/dev/null 4907rmdir .libs 2>/dev/null
4908echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 4909echo "${ECHO_T}$objdir" >&6
2654## 4910##
2655## END FIXME 4911## END FIXME
2656 4912
2657 4913
2658## FIXME: this should be a separate macro 4914## FIXME: this should be a separate macro
2659## 4915##
4916
2660# Check whether --with-pic or --without-pic was given. 4917# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 4918if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 4919 withval="$with_pic"
2663 pic_mode="$withval" 4920 pic_mode="$withval"
2664else 4921else
2665 pic_mode=default 4922 pic_mode=default
2666fi 4923fi;
2667
2668test -z "$pic_mode" && pic_mode=default 4924test -z "$pic_mode" && pic_mode=default
2669 4925
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 4926# 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 4927# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 4928# the associated values are set (in the cache) correctly too.
4929echo "$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 4930echo $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 4931if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 4932 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 4933else
2678 lt_cv_prog_cc_pic= 4934 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 4935 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 4936 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 4937 lt_cv_prog_cc_static=
2804 fi 5060 fi
2805 5061
2806fi 5062fi
2807 5063
2808if test -z "$lt_cv_prog_cc_pic"; then 5064if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5065 echo "$as_me:$LINENO: result: none" >&5
5066echo "${ECHO_T}none" >&6
2810else 5067else
5068 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5069echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5070
2813 # Check to make sure the pic_flag actually works. 5071 # Check to make sure the pic_flag actually works.
5072 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 5073echo $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 5074 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5075 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5076else
2819 save_CFLAGS="$CFLAGS" 5077 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5078 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5079 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5080/* confdefs.h. */
2823#include "confdefs.h" 5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h. */
2824 5085
2825int main() { 5086int
5087main ()
5088{
2826 5089
5090 ;
2827; return 0; } 5091 return 0;
2828EOF 5092}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
2831 case "$host_os" in 5115 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5116 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5117 # 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 5118 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5119 # assume that PIC is not supported.
2841 ;; 5125 ;;
2842 *) 5126 *)
2843 lt_cv_prog_cc_pic_works=yes 5127 lt_cv_prog_cc_pic_works=yes
2844 ;; 5128 ;;
2845 esac 5129 esac
2846 5130
2847else 5131else
2848 echo "configure: failed program was:" >&5 5132 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5133sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5134
2851 lt_cv_prog_cc_pic_works=no 5135 lt_cv_prog_cc_pic_works=no
2852 5136
2853fi 5137fi
2854rm -f conftest* 5138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5139 CFLAGS="$save_CFLAGS"
2856 5140
2857fi 5141fi
2858 5142
2859 5143
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5144 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5145 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5146 lt_cv_prog_cc_can_build_shared=no
2863 else 5147 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5148 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5149 fi
2866 5150
5151 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5152echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5153fi
2869## 5154##
2870## END FIXME 5155## END FIXME
2871 5156
2872# Check for any special shared library compilation flags. 5157# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5158if test -n "$lt_cv_prog_cc_shlib"; then
5159 { 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 5160echo "$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 : 5161 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5162 else
5163 { 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 5164echo "$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 5165 lt_cv_prog_cc_can_build_shared=no
2879 fi 5166 fi
2880fi 5167fi
2881 5168
2882## FIXME: this should be a separate macro 5169## FIXME: this should be a separate macro
2883## 5170##
5171echo "$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 5172echo $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 5173if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5174 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5175else
2889 lt_cv_prog_cc_static_works=no 5176 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5177 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5178 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5179 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5180/* confdefs.h. */
2894#include "confdefs.h" 5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
2895 5185
2896int main() { 5186int
5187main ()
5188{
2897 5189
5190 ;
2898; return 0; } 5191 return 0;
2899EOF 5192}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5193_ACEOF
5194rm -f conftest.$ac_objext conftest$ac_exeext
5195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5215 lt_cv_prog_cc_static_works=yes
2903else 5216else
2904 echo "configure: failed program was:" >&5 5217 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5218sed 's/^/| /' conftest.$ac_ext >&5
5219
2906fi 5220fi
2907rm -f conftest* 5221rm -f conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5223 LDFLAGS="$save_LDFLAGS"
2909 5224
2910fi 5225fi
2911 5226
2912 5227
2913# Belt *and* braces to stop my trousers falling down: 5228# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5229test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5230echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5231echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5232
2917pic_flag="$lt_cv_prog_cc_pic" 5233pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5234special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5235wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5236link_static_flag="$lt_cv_prog_cc_static"
2925 5241
2926 5242
2927## FIXME: this should be a separate macro 5243## FIXME: this should be a separate macro
2928## 5244##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5245# Check to see if options -o and -c are simultaneously supported by compiler
5246echo "$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 5247echo $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 5248$rm -r conftest 2>/dev/null
2933mkdir conftest 5249mkdir conftest
2934cd conftest 5250cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5251echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5252mkdir out
2941# builds. 5257# builds.
2942chmod -w . 5258chmod -w .
2943save_CFLAGS="$CFLAGS" 5259save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5260CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5261compiler_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 5262if { (eval echo configure:5262: \"$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 5263 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5264 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5265 if test -s out/conftest.err; then
2950 compiler_c_o=no 5266 compiler_c_o=no
2951 else 5267 else
2954else 5270else
2955 # Append any errors to the config.log. 5271 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5272 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5273 compiler_c_o=no
2958fi 5274fi
5275echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5276echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5277CFLAGS="$save_CFLAGS"
2961chmod u+w . 5278chmod u+w .
2962$rm conftest* out/* 5279$rm conftest* out/*
2963rmdir out 5280rmdir out
2964cd .. 5281cd ..
2965rmdir conftest 5282rmdir conftest
2966$rm -r conftest 2>/dev/null 5283$rm -r conftest 2>/dev/null
2967 5284
2968if test x"$compiler_c_o" = x"yes"; then 5285if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5286 # Check to see if we can write to a .lo
5287 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 5288echo $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 5289 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5290 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5291 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5292 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5293/* confdefs.h. */
2977#include "confdefs.h" 5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
2978 5298
2979int main() { 5299int
5300main ()
5301{
2980int some_variable = 0; 5302int some_variable = 0;
5303 ;
2981; return 0; } 5304 return 0;
2982EOF 5305}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; } &&
5322 { ac_try='test -s conftest.$ac_objext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5328 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5329 # So say no if there are warnings
2987 if test -s conftest.err; then 5330 if test -s conftest.err; then
2988 compiler_o_lo=no 5331 compiler_o_lo=no
2989 else 5332 else
2990 compiler_o_lo=yes 5333 compiler_o_lo=yes
2991 fi 5334 fi
2992 5335
2993else 5336else
2994 echo "configure: failed program was:" >&5 5337 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5338sed 's/^/| /' conftest.$ac_ext >&5
5339
2996fi 5340fi
2997rm -f conftest* 5341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5343echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5344 CFLAGS="$save_CFLAGS"
3000else 5345else
3001 compiler_o_lo=no 5346 compiler_o_lo=no
3002fi 5347fi
3003## 5348##
3007## 5352##
3008# Check to see if we can do hard links to lock some files if needed 5353# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5354hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5355if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5356 # do not overwrite the value of need_locks provided by the user
5357 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 5358echo $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 5359 hard_links=yes
3015 $rm conftest* 5360 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5362 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5363 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5365 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5366echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5367 if test "$hard_links" = no; then
5368 { 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 5369echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5370 need_locks=warn
3024 fi 5371 fi
3025else 5372else
3026 need_locks=no 5373 need_locks=no
3027fi 5374fi
3030 5377
3031## FIXME: this should be a separate macro 5378## FIXME: this should be a separate macro
3032## 5379##
3033if test "$GCC" = yes; then 5380if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5381 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5382 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 5383echo $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 5384 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5385 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5386 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5387 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5388 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5389/* confdefs.h. */
3043#include "confdefs.h" 5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
3044 5394
3045int main() { 5395int
5396main ()
5397{
3046int some_variable = 0; 5398int some_variable = 0;
5399 ;
3047; return 0; } 5400 return 0;
3048EOF 5401}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5424 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5425 # So say no if there are warnings
3053 if test -s conftest.err; then 5426 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5427 compiler_rtti_exceptions=no
3055 else 5428 else
3056 compiler_rtti_exceptions=yes 5429 compiler_rtti_exceptions=yes
3057 fi 5430 fi
3058 5431
3059else 5432else
3060 echo "configure: failed program was:" >&5 5433 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5434sed 's/^/| /' conftest.$ac_ext >&5
5435
3062fi 5436fi
3063rm -f conftest* 5437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5438 CFLAGS="$save_CFLAGS"
5439 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5440echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5441
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5442 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5443 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5444 else
3070 no_builtin_flag=' -fno-builtin' 5445 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5449## END FIXME
3075 5450
3076## FIXME: this should be a separate macro 5451## FIXME: this should be a separate macro
3077## 5452##
3078# See if the linker supports building shared libraries. 5453# See if the linker supports building shared libraries.
5454echo "$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 5455echo $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 5456
3082allow_undefined_flag= 5457allow_undefined_flag=
3083no_undefined_flag= 5458no_undefined_flag=
3084need_lib_prefix=unknown 5459need_lib_prefix=unknown
3085need_version=unknown 5460need_version=unknown
3632 *) 6007 *)
3633 ld_shlibs=no 6008 ld_shlibs=no
3634 ;; 6009 ;;
3635 esac 6010 esac
3636fi 6011fi
6012echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6013echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6014test "$ld_shlibs" = no && can_build_shared=no
3639## 6015##
3640## END FIXME 6016## END FIXME
3641 6017
3642## FIXME: this should be a separate macro 6018## FIXME: this should be a separate macro
3643## 6019##
3644# Check hardcoding attributes. 6020# Check hardcoding attributes.
6021echo "$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 6022echo $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= 6023hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6024if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6025 test -n "$runpath_var"; then
3650 6026
3651 # We can hardcode non-existant directories. 6027 # We can hardcode non-existant directories.
3664else 6040else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6041 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6042 # directories.
3667 hardcode_action=unsupported 6043 hardcode_action=unsupported
3668fi 6044fi
6045echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6046echo "${ECHO_T}$hardcode_action" >&6
3670## 6047##
3671## END FIXME 6048## END FIXME
3672 6049
3673## FIXME: this should be a separate macro 6050## FIXME: this should be a separate macro
3674## 6051##
3675striplib= 6052striplib=
3676old_striplib= 6053old_striplib=
6054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6055echo $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 6056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6058 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6059 echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6
3683else 6061else
3684 echo "$ac_t""no" 1>&6 6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
3685fi 6064fi
3686## 6065##
3687## END FIXME 6066## END FIXME
3688 6067
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6068reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6069test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6070
3692## FIXME: this should be a separate macro 6071## FIXME: this should be a separate macro
3693## 6072##
3694# PORTME Fill in your ld.so characteristics 6073# PORTME Fill in your ld.so characteristics
6074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6076library_names_spec=
3698libname_spec='lib$name' 6077libname_spec='lib$name'
3699soname_spec= 6078soname_spec=
3700postinstall_cmds= 6079postinstall_cmds=
3701postuninstall_cmds= 6080postuninstall_cmds=
4017 6396
4018*) 6397*)
4019 dynamic_linker=no 6398 dynamic_linker=no
4020 ;; 6399 ;;
4021esac 6400esac
6401echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6402echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6403test "$dynamic_linker" = no && can_build_shared=no
4024## 6404##
4025## END FIXME 6405## END FIXME
4026 6406
4027## FIXME: this should be a separate macro 6407## FIXME: this should be a separate macro
4028## 6408##
4029# Report the final consequences. 6409# Report the final consequences.
6410echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6411echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6412echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6413echo "${ECHO_T}$can_build_shared" >&6
4033## 6414##
4034## END FIXME 6415## END FIXME
4035 6416
4036if test "$hardcode_action" = relink; then 6417if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6418 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6447 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6448 lt_cv_dlopen_libs=
4068 ;; 6449 ;;
4069 6450
4070 *) 6451 *)
6452 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6454if 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 6455 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6456else
4077 ac_save_LIBS="$LIBS" 6457 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6458LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6459cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6460/* confdefs.h. */
4081#include "confdefs.h" 6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465
4082/* Override any gcc2 internal prototype to avoid an error. */ 6466/* Override any gcc2 internal prototype to avoid an error. */
6467#ifdef __cplusplus
6468extern "C"
6469#endif
4083/* We use char because int might match the return type of a gcc2 6470/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6471 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6472char dlopen ();
4086 6473int
4087int main() { 6474main ()
6475{
4088dlopen() 6476dlopen ();
6477 ;
4089; return 0; } 6478 return 0;
4090EOF 6479}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6480_ACEOF
6481rm -f conftest.$ac_objext conftest$ac_exeext
6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6486 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_lib_dl_dlopen=yes
4094else 6503else
4095 echo "configure: failed program was:" >&5 6504 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6505sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6506
4098 eval "ac_cv_lib_$ac_lib_var=no" 6507ac_cv_lib_dl_dlopen=no
4099fi 6508fi
4100rm -f conftest* 6509rm -f conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6511LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6512fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6517else
4108 echo "$ac_t""no" 1>&6 6518 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6519echo $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 6520if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6521 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6522else
4114 cat > conftest.$ac_ext <<EOF 6523 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6524/* confdefs.h. */
4116#include "confdefs.h" 6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6531#define dlopen innocuous_dlopen
6532
4117/* System header to define __stub macros and hopefully few prototypes, 6533/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6534 which can conflict with char dlopen (); below.
6535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536 <limits.h> exists even on freestanding compilers. */
6537
6538#ifdef __STDC__
6539# include <limits.h>
6540#else
4119#include <assert.h> 6541# include <assert.h>
6542#endif
6543
6544#undef dlopen
6545
4120/* Override any gcc2 internal prototype to avoid an error. */ 6546/* Override any gcc2 internal prototype to avoid an error. */
6547#ifdef __cplusplus
6548extern "C"
6549{
6550#endif
4121/* We use char because int might match the return type of a gcc2 6551/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6552 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6553char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6554/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6555 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6556 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6557#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6558choke me
4132#else 6559#else
4133dlopen(); 6560char (*f) () = dlopen;
4134#endif 6561#endif
6562#ifdef __cplusplus
6563}
6564#endif
4135 6565
6566int
6567main ()
6568{
6569return f != dlopen;
6570 ;
4136; return 0; } 6571 return 0;
4137EOF 6572}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6573_ACEOF
6574rm -f conftest.$ac_objext conftest$ac_exeext
6575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6595 ac_cv_func_dlopen=yes
4141else 6596else
4142 echo "configure: failed program was:" >&5 6597 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6598sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6599
4145 eval "ac_cv_func_dlopen=no" 6600ac_cv_func_dlopen=no
4146fi 6601fi
4147rm -f conftest* 6602rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
4148fi 6604fi
4149 6605echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6606echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6607if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6608 lt_cv_dlopen="dlopen"
4153else 6609else
4154 echo "$ac_t""no" 1>&6 6610 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6611echo $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 6612if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6613 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6614else
4160 cat > conftest.$ac_ext <<EOF 6615 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6616/* confdefs.h. */
4162#include "confdefs.h" 6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6623#define shl_load innocuous_shl_load
6624
4163/* System header to define __stub macros and hopefully few prototypes, 6625/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6626 which can conflict with char shl_load (); below.
6627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6628 <limits.h> exists even on freestanding compilers. */
6629
6630#ifdef __STDC__
6631# include <limits.h>
6632#else
4165#include <assert.h> 6633# include <assert.h>
6634#endif
6635
6636#undef shl_load
6637
4166/* Override any gcc2 internal prototype to avoid an error. */ 6638/* Override any gcc2 internal prototype to avoid an error. */
6639#ifdef __cplusplus
6640extern "C"
6641{
6642#endif
4167/* We use char because int might match the return type of a gcc2 6643/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6644 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6645char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6646/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6647 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6648 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6649#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6650choke me
4178#else 6651#else
4179shl_load(); 6652char (*f) () = shl_load;
4180#endif 6653#endif
6654#ifdef __cplusplus
6655}
6656#endif
4181 6657
6658int
6659main ()
6660{
6661return f != shl_load;
6662 ;
4182; return 0; } 6663 return 0;
4183EOF 6664}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6665_ACEOF
6666rm -f conftest.$ac_objext conftest$ac_exeext
6667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 6687 ac_cv_func_shl_load=yes
4187else 6688else
4188 echo "configure: failed program was:" >&5 6689 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 6690sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 6691
4191 eval "ac_cv_func_shl_load=no" 6692ac_cv_func_shl_load=no
4192fi 6693fi
4193rm -f conftest* 6694rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
4194fi 6696fi
4195 6697echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6698echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 6699if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 6700 lt_cv_dlopen="shl_load"
4199else 6701else
4200 echo "$ac_t""no" 1>&6 6702 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 6703echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 6704if 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 6705 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 6706else
4207 ac_save_LIBS="$LIBS" 6707 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 6708LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 6709cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 6710/* confdefs.h. */
4211#include "confdefs.h" 6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */
6715
4212/* Override any gcc2 internal prototype to avoid an error. */ 6716/* Override any gcc2 internal prototype to avoid an error. */
6717#ifdef __cplusplus
6718extern "C"
6719#endif
4213/* We use char because int might match the return type of a gcc2 6720/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 6721 builtin and then its argument prototype would still apply. */
4215char dlopen(); 6722char dlopen ();
4216 6723int
4217int main() { 6724main ()
6725{
4218dlopen() 6726dlopen ();
6727 ;
4219; return 0; } 6728 return 0;
4220EOF 6729}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6730_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext
6732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 6736 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_lib_svld_dlopen=yes
4224else 6753else
4225 echo "configure: failed program was:" >&5 6754 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 6755sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 6756
4228 eval "ac_cv_lib_$ac_lib_var=no" 6757ac_cv_lib_svld_dlopen=no
4229fi 6758fi
4230rm -f conftest* 6759rm -f conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 6761LIBS=$ac_check_lib_save_LIBS
4232
4233fi 6762fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6763echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 6764echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6765if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 6766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 6767else
4238 echo "$ac_t""no" 1>&6 6768 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 6769echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 6770if 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 6771 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 6772else
4245 ac_save_LIBS="$LIBS" 6773 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 6774LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 6775cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 6776/* confdefs.h. */
4249#include "confdefs.h" 6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781
4250/* Override any gcc2 internal prototype to avoid an error. */ 6782/* Override any gcc2 internal prototype to avoid an error. */
6783#ifdef __cplusplus
6784extern "C"
6785#endif
4251/* We use char because int might match the return type of a gcc2 6786/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 6787 builtin and then its argument prototype would still apply. */
4253char shl_load(); 6788char shl_load ();
4254 6789int
4255int main() { 6790main ()
6791{
4256shl_load() 6792shl_load ();
6793 ;
4257; return 0; } 6794 return 0;
4258EOF 6795}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6796_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext
6798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 6802 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest$ac_exeext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_cv_lib_dld_shl_load=yes
4262else 6819else
4263 echo "configure: failed program was:" >&5 6820 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 6821sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 6822
4266 eval "ac_cv_lib_$ac_lib_var=no" 6823ac_cv_lib_dld_shl_load=no
4267fi 6824fi
4268rm -f conftest* 6825rm -f conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 6827LIBS=$ac_check_lib_save_LIBS
4270
4271fi 6828fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 6830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6831if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 6832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 6833fi
4278 6834
4279
4280fi
4281 6835
4282
4283fi 6836fi
4284 6837
4285
4286fi
4287 6838
4288 6839fi
6840
6841
6842fi
6843
6844
4289fi 6845fi
4290 6846
4291 ;; 6847 ;;
4292 esac 6848 esac
4293 6849
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 6862 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 6863
4308 save_LIBS="$LIBS" 6864 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 6865 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 6866
6867 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 6868echo $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 6869if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 6870 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 6871else
4316 if test "$cross_compiling" = yes; then : 6872 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 6873 lt_cv_dlopen_self=cross
4318else 6874else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 6876 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 6877 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 6878#line 6878 "configure"
4323#include "confdefs.h" 6879#include "confdefs.h"
4324 6880
4325#if HAVE_DLFCN_H 6881#if HAVE_DLFCN_H
4326#include <dlfcn.h> 6882#include <dlfcn.h>
4327#endif 6883#endif
4378 } 6934 }
4379 6935
4380 exit (status); 6936 exit (status);
4381} 6937}
4382EOF 6938EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 6944 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 6945 lt_status=$?
4386 case x$lt_status in 6946 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 6947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 6948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 6953 lt_cv_dlopen_self=no
4394 fi 6954 fi
4395fi 6955fi
4396rm -fr conftest* 6956rm -fr conftest*
4397 6957
4398
4399fi
4400 6958
6959fi
6960echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 6961echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 6962
4403 if test "x$lt_cv_dlopen_self" = xyes; then 6963 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 6964 LDFLAGS="$LDFLAGS $link_static_flag"
6965 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 6966echo $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 6967if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 6968 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 6969else
4410 if test "$cross_compiling" = yes; then : 6970 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 6971 lt_cv_dlopen_self_static=cross
4412else 6972else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 6974 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 6975 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 6976#line 6976 "configure"
4417#include "confdefs.h" 6977#include "confdefs.h"
4418 6978
4419#if HAVE_DLFCN_H 6979#if HAVE_DLFCN_H
4420#include <dlfcn.h> 6980#include <dlfcn.h>
4421#endif 6981#endif
4472 } 7032 }
4473 7033
4474 exit (status); 7034 exit (status);
4475} 7035}
4476EOF 7036EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7042 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7043 lt_status=$?
4480 case x$lt_status in 7044 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7051 lt_cv_dlopen_self_static=no
4488 fi 7052 fi
4489fi 7053fi
4490rm -fr conftest* 7054rm -fr conftest*
4491 7055
4492
4493fi
4494 7056
7057fi
7058echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7059echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7060 fi
4497 7061
4498 CPPFLAGS="$save_CPPFLAGS" 7062 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7063 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7064 LIBS="$save_LIBS"
4522 ;; 7086 ;;
4523 '$CC '*) 7087 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7088 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7090 # to ld, don't add -lc before -lgcc.
7091 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 7092echo $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 7093 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7094 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7095else
4532 $rm conftest* 7096 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7097 echo 'static int dummy;' > conftest.$ac_ext
4534 7098
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; then
4536 soname=conftest 7104 soname=conftest
4537 lib=conftest 7105 lib=conftest
4538 libobjs=conftest.$ac_objext 7106 libobjs=conftest.$ac_objext
4539 deplibs= 7107 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7108 wl=$lt_cv_prog_cc_wl
4543 verstring= 7111 verstring=
4544 output_objdir=. 7112 output_objdir=.
4545 libname=conftest 7113 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7114 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7115 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; } 7116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7117 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }
4549 then 7121 then
4550 lt_cv_archive_cmds_need_lc=no 7122 lt_cv_archive_cmds_need_lc=no
4551 else 7123 else
4552 lt_cv_archive_cmds_need_lc=yes 7124 lt_cv_archive_cmds_need_lc=yes
4553 fi 7125 fi
4555 else 7127 else
4556 cat conftest.err 1>&5 7128 cat conftest.err 1>&5
4557 fi 7129 fi
4558fi 7130fi
4559 7131
7132 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7133echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7134 ;;
4562 esac 7135 esac
4563fi 7136fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7137need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7138##
5130 7703
5131MALLOC_TYPE=S 7704MALLOC_TYPE=S
5132support_addstrings=no 7705support_addstrings=no
5133support_frills=no 7706support_frills=no
5134support_linespace=no 7707support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 7708support_inheritpixmap=no
5137support_keepscrolling=no 7709support_keepscrolling=no
5138support_selectionscrolling=no 7710support_selectionscrolling=no
5139support_menubar=no 7711support_menubar=no
5140support_mousewheel=no 7712support_mousewheel=no
5141support_mouseslipwheel=no 7713support_mouseslipwheel=no
5142support_oldselection=no 7714support_oldselection=no
5143support_utmp=no 7715support_utmp=no
5144support_wtmp=no 7716support_wtmp=no
5145support_lastlog=no 7717support_lastlog=no
5146support_cursor_blink=no 7718support_cursor_blink=no
7719support_text_blink=no
5147support_pointer_blank=no 7720support_pointer_blank=no
5148support_scroll_rxvt=no 7721support_scroll_rxvt=no
5149support_scroll_next=no 7722support_scroll_next=no
5150support_scroll_xterm=no 7723support_scroll_xterm=no
7724support_scroll_plain=no
5151support_xim=no 7725support_xim=no
5152support_xpm=no 7726support_xpm=no
5153support_xft=no 7727support_xft=no
5154support_unicode3=no 7728support_unicode3=no
5155codesets= 7729codesets=
5156 7730
5157 7731
5158if test "x$enable_shared" = xyes; then 7732if test "x$enable_shared" = xyes; then
7733
5159 cat >> confdefs.h <<\EOF 7734cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 7735#define LIBRXVT 1
5161EOF 7736_ACEOF
5162 7737
5163 INSTALL_LIBRXVT=yes 7738 INSTALL_LIBRXVT=yes
5164fi 7739fi
5165 7740
5166 7741
5169 enableval="$enable_everything" 7744 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 7745 if test x$enableval = xyes; then
5171 support_24bit=yes 7746 support_24bit=yes
5172 support_frills=yes 7747 support_frills=yes
5173 support_linespace=yes 7748 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 7749 support_inheritpixmap=yes
5176 support_keepscrolling=yes 7750 support_keepscrolling=yes
5177 support_selectionscrolling=yes 7751 support_selectionscrolling=yes
5178 support_lastlog=yes 7752 support_lastlog=yes
5179 support_menubar=yes 7753 support_menubar=yes
5180 support_mousewheel=yes 7754 support_mousewheel=yes
5181 support_mouseslipwheel=yes 7755 support_mouseslipwheel=yes
5182 support_oldselection=yes 7756 support_oldselection=yes
5183 support_cursor_blink=yes 7757 support_cursor_blink=yes
7758 support_text_blink=yes
5184 support_pointer_blank=yes 7759 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 7760 support_scroll_rxvt=yes
5186 support_scroll_next=yes 7761 support_scroll_next=yes
5187 support_scroll_xterm=yes 7762 support_scroll_xterm=yes
7763 support_scroll_plain=yes
5188 support_utmp=yes 7764 support_utmp=yes
5189 support_wtmp=yes 7765 support_wtmp=yes
5190 support_xim=yes 7766 support_xim=yes
5191 support_xpm=yes 7767 support_xpm=yes
5192 support_xft=yes 7768 support_xft=yes
5193 support_unicode3=yes 7769 support_unicode3=yes
5194 codesets=all 7770 codesets=all
5195 fi 7771 fi
5196fi 7772fi;
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 7773
5218# Check whether --enable-unicode3 or --disable-unicode3 was given. 7774# Check whether --enable-unicode3 or --disable-unicode3 was given.
5219if test "${enable_unicode3+set}" = set; then 7775if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3" 7776 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then 7777 if test x$enableval = xyes; then
5222 support_unicode3=yes 7778 support_unicode3=yes
5223 fi 7779 fi
5224fi 7780fi;
5225
5226 7781
5227# Check whether --enable-xft or --disable-xft was given. 7782# Check whether --enable-xft or --disable-xft was given.
5228if test "${enable_xft+set}" = set; then 7783if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft" 7784 enableval="$enable_xft"
5230 if test x$enableval = xyes; then 7785 if test x$enableval = xyes; then
5231 support_xft=yes 7786 support_xft=yes
5232 fi 7787 fi
5233fi 7788fi;
5234 7789
5235 7790
5236# Check whether --with-codesets or --without-codesets was given. 7791# Check whether --with-codesets or --without-codesets was given.
5237if test "${with_codesets+set}" = set; then 7792if test "${with_codesets+set}" = set; then
5238 withval="$with_codesets" 7793 withval="$with_codesets"
5239 if test x$enableval = xyes; then 7794 if test x$enableval = xyes; then
5240 codesets="$withval" 7795 codesets="$withval"
5241 fi 7796 fi
5242fi 7797fi;
5243 7798
5244 7799
5245# Check whether --with-encoding or --without-encoding was given. 7800# Check whether --with-encoding or --without-encoding was given.
5246if test "${with_encoding+set}" = set; then 7801if test "${with_encoding+set}" = set; then
5247 withval="$with_encoding" 7802 withval="$with_encoding"
5248 if test x$enableval = xyes; then 7803 if test x$enableval = xyes; then
5249 withval=`echo $withval | tr 'a-z' 'A-Z'` 7804 withval=`echo $withval | tr 'a-z' 'A-Z'`
7805
5250 cat >> confdefs.h <<EOF 7806cat >>confdefs.h <<_ACEOF
5251#define MULTICHAR_ENCODING $withval 7807#define MULTICHAR_ENCODING $withval
5252EOF 7808_ACEOF
5253 7809
5254 fi 7810 fi
5255fi 7811fi;
5256
5257 7812
5258# Check whether --enable-utmp or --disable-utmp was given. 7813# Check whether --enable-utmp or --disable-utmp was given.
5259if test "${enable_utmp+set}" = set; then 7814if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp" 7815 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then 7816 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval 7817 support_utmp=$enableval
5263 fi 7818 fi
5264fi 7819fi;
5265
5266 7820
5267# Check whether --enable-wtmp or --disable-wtmp was given. 7821# Check whether --enable-wtmp or --disable-wtmp was given.
5268if test "${enable_wtmp+set}" = set; then 7822if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp" 7823 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then 7824 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval 7825 support_wtmp=$enableval
5272 fi 7826 fi
5273fi 7827fi;
5274
5275 7828
5276# Check whether --enable-lastlog or --disable-lastlog was given. 7829# Check whether --enable-lastlog or --disable-lastlog was given.
5277if test "${enable_lastlog+set}" = set; then 7830if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog" 7831 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then 7832 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval 7833 support_lastlog=$enableval
5281 fi 7834 fi
5282fi 7835fi;
5283
5284 7836
5285# Check whether --enable-xpm-background or --disable-xpm-background was given. 7837# Check whether --enable-xpm-background or --disable-xpm-background was given.
5286if test "${enable_xpm_background+set}" = set; then 7838if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background" 7839 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then 7840 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval 7841 support_xpm=$enableval
5290 fi 7842 fi
5291fi 7843fi;
5292
5293 7844
5294# Check whether --enable-transparency or --disable-transparency was given. 7845# Check whether --enable-transparency or --disable-transparency was given.
5295if test "${enable_transparency+set}" = set; then 7846if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency" 7847 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then 7848 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval 7849 support_inheritpixmap=$enableval
5299 fi 7850 fi
5300fi 7851fi;
5301
5302 7852
5303# Check whether --enable-menubar or --disable-menubar was given. 7853# Check whether --enable-menubar or --disable-menubar was given.
5304if test "${enable_menubar+set}" = set; then 7854if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar" 7855 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then 7856 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval 7857 support_menubar=$enableval
5308 fi 7858 fi
5309fi 7859fi;
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 7860
5321# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 7861# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322if test "${enable_rxvt_scroll+set}" = set; then 7862if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll" 7863 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then 7864 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval 7865 support_scroll_rxvt=$enableval
5326 fi 7866 fi
5327fi 7867fi;
5328
5329 7868
5330# Check whether --enable-next-scroll or --disable-next-scroll was given. 7869# Check whether --enable-next-scroll or --disable-next-scroll was given.
5331if test "${enable_next_scroll+set}" = set; then 7870if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll" 7871 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then 7872 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval 7873 support_scroll_next=$enableval
5335 fi 7874 fi
5336fi 7875fi;
5337
5338 7876
5339# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 7877# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340if test "${enable_xterm_scroll+set}" = set; then 7878if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll" 7879 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then 7880 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval 7881 support_scroll_xterm=$enableval
5344 fi 7882 fi
5345fi 7883fi;
5346 7884
7885# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
7886if test "${enable_plain_scroll+set}" = set; then
7887 enableval="$enable_plain_scroll"
7888 if test x$enableval = xyes -o x$enableval = xno; then
7889 support_scroll_plain=$enableval
7890 fi
7891fi;
5347 7892
5348# Check whether --enable-half-shadow or --disable-half-shadow was given. 7893# Check whether --enable-half-shadow or --disable-half-shadow was given.
5349if test "${enable_half_shadow+set}" = set; then 7894if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow" 7895 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then 7896 if test x$enableval = xyes; then
7897
5352 cat >> confdefs.h <<\EOF 7898cat >>confdefs.h <<\_ACEOF
5353#define HALFSHADOW 1 7899#define HALFSHADOW 1
5354EOF 7900_ACEOF
5355 7901
5356 fi 7902 fi
5357fi 7903fi;
5358
5359 7904
5360# Check whether --enable-xim or --disable-xim was given. 7905# Check whether --enable-xim or --disable-xim was given.
5361if test "${enable_xim+set}" = set; then 7906if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim" 7907 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then 7908 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval 7909 support_xim=$enableval
5365 fi 7910 fi
5366fi 7911fi;
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 7912
5381# Check whether --enable-ttygid or --disable-ttygid was given. 7913# Check whether --enable-ttygid or --disable-ttygid was given.
5382if test "${enable_ttygid+set}" = set; then 7914if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid" 7915 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then 7916 if test x$enableval = xyes; then
7917
5385 cat >> confdefs.h <<\EOF 7918cat >>confdefs.h <<\_ACEOF
5386#define TTY_GID_SUPPORT 1 7919#define TTY_GID_SUPPORT 1
5387EOF 7920_ACEOF
5388 7921
5389 fi 7922 fi
5390fi 7923fi;
5391
5392 7924
5393# Check whether --enable-backspace-key or --disable-backspace-key was given. 7925# Check whether --enable-backspace-key or --disable-backspace-key was given.
5394if test "${enable_backspace_key+set}" = set; then 7926if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key" 7927 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then 7928 if test x$enableval = xno; then
7929
5397 cat >> confdefs.h <<\EOF 7930cat >>confdefs.h <<\_ACEOF
5398#define NO_BACKSPACE_KEY 1 7931#define NO_BACKSPACE_KEY 1
5399EOF 7932_ACEOF
5400 7933
5401 fi 7934 fi
5402fi 7935fi;
5403
5404 7936
5405# Check whether --enable-delete-key or --disable-delete-key was given. 7937# Check whether --enable-delete-key or --disable-delete-key was given.
5406if test "${enable_delete_key+set}" = set; then 7938if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key" 7939 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then 7940 if test x$enableval = xno; then
7941
5409 cat >> confdefs.h <<\EOF 7942cat >>confdefs.h <<\_ACEOF
5410#define NO_DELETE_KEY 1 7943#define NO_DELETE_KEY 1
5411EOF 7944_ACEOF
5412 7945
5413 fi 7946 fi
5414fi 7947fi;
5415
5416 7948
5417# Check whether --enable-resources or --disable-resources was given. 7949# Check whether --enable-resources or --disable-resources was given.
5418if test "${enable_resources+set}" = set; then 7950if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources" 7951 enableval="$enable_resources"
5420 if test x$enableval = xno; then 7952 if test x$enableval = xno; then
7953
5421 cat >> confdefs.h <<\EOF 7954cat >>confdefs.h <<\_ACEOF
5422#define NO_RESOURCES 1 7955#define NO_RESOURCES 1
5423EOF 7956_ACEOF
5424 7957
5425 fi 7958 fi
5426fi 7959fi;
5427
5428 7960
5429# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 7961# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430if test "${enable_xgetdefault+set}" = set; then 7962if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault" 7963 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then 7964 if test x$enableval = xyes; then
7965
5433 cat >> confdefs.h <<\EOF 7966cat >>confdefs.h <<\_ACEOF
5434#define USE_XGETDEFAULT 1 7967#define USE_XGETDEFAULT 1
5435EOF 7968_ACEOF
5436 7969
5437 fi 7970 fi
5438fi 7971fi;
5439
5440 7972
5441# Check whether --enable-strings or --disable-strings was given. 7973# Check whether --enable-strings or --disable-strings was given.
5442if test "${enable_strings+set}" = set; then 7974if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings" 7975 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then 7976 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval 7977 support_addstrings=$enableval
5446 fi 7978 fi
5447fi 7979fi;
5448
5449 7980
5450# Check whether --enable-swapscreen or --disable-swapscreen was given. 7981# Check whether --enable-swapscreen or --disable-swapscreen was given.
5451if test "${enable_swapscreen+set}" = set; then 7982if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen" 7983 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then 7984 if test x$enableval = xno; then
7985
5454 cat >> confdefs.h <<\EOF 7986cat >>confdefs.h <<\_ACEOF
5455#define NO_SECONDARY_SCREEN 1 7987#define NO_SECONDARY_SCREEN 1
5456EOF 7988_ACEOF
5457 7989
5458 fi 7990 fi
5459fi 7991fi;
5460
5461 7992
5462# Check whether --enable-frills or --disable-frills was given. 7993# Check whether --enable-frills or --disable-frills was given.
5463if test "${enable_frills+set}" = set; then 7994if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills" 7995 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then 7996 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval 7997 support_frills=$enableval
5467 fi 7998 fi
5468fi 7999fi;
5469
5470 8000
5471# Check whether --enable-linespace or --disable-linespace was given. 8001# Check whether --enable-linespace or --disable-linespace was given.
5472if test "${enable_linespace+set}" = set; then 8002if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace" 8003 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then 8004 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval 8005 support_linespace=$enableval
5476 fi 8006 fi
5477fi 8007fi;
5478
5479 8008
5480# Check whether --enable-24bit or --disable-24bit was given. 8009# Check whether --enable-24bit or --disable-24bit was given.
5481if test "${enable_24bit+set}" = set; then 8010if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit" 8011 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then 8012 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval 8013 support_24bit=$enableval
5485 fi 8014 fi
5486fi 8015fi;
5487
5488 8016
5489# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8017# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490if test "${enable_keepscrolling+set}" = set; then 8018if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling" 8019 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then 8020 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval 8021 support_keepscrolling=$enableval
5494 fi 8022 fi
5495fi 8023fi;
5496
5497 8024
5498# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8025# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499if test "${enable_selectionscrolling+set}" = set; then 8026if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling" 8027 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then 8028 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval 8029 support_selectionscrolling=$enableval
5503 fi 8030 fi
5504fi 8031fi;
5505
5506 8032
5507# Check whether --enable-mousewheel or --disable-mousewheel was given. 8033# Check whether --enable-mousewheel or --disable-mousewheel was given.
5508if test "${enable_mousewheel+set}" = set; then 8034if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel" 8035 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then 8036 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval 8037 support_mousewheel=$enableval
5512 fi 8038 fi
5513fi 8039fi;
5514
5515 8040
5516# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8041# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517if test "${enable_slipwheeling+set}" = set; then 8042if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling" 8043 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then 8044 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval 8045 support_mouseslipwheel=$enableval
5521 fi 8046 fi
5522fi 8047fi;
5523
5524 8048
5525# Check whether --enable-old-selection or --disable-old-selection was given. 8049# Check whether --enable-old-selection or --disable-old-selection was given.
5526if test "${enable_old_selection+set}" = set; then 8050if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection" 8051 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then 8052 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval 8053 support_oldselection=$enableval
5530 fi 8054 fi
5531fi 8055fi;
5532
5533 8056
5534# Check whether --enable-new-selection or --disable-new-selection was given. 8057# Check whether --enable-new-selection or --disable-new-selection was given.
5535if test "${enable_new_selection+set}" = set; then 8058if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection" 8059 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then 8060 if test x$enableval = xno; then
8061
5538 cat >> confdefs.h <<\EOF 8062cat >>confdefs.h <<\_ACEOF
5539#define NO_NEW_SELECTION 1 8063#define NO_NEW_SELECTION 1
5540EOF 8064_ACEOF
5541 8065
5542 fi 8066 fi
5543fi 8067fi;
5544
5545 8068
5546# Check whether --enable-dmalloc or --disable-dmalloc was given. 8069# Check whether --enable-dmalloc or --disable-dmalloc was given.
5547if test "${enable_dmalloc+set}" = set; then 8070if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc" 8071 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then 8072 if test x$enableval = xyes; then
5550 MALLOC_TYPE=G 8073 MALLOC_TYPE=G
5551 DEBUG=-DDEBUG_MALLOC 8074 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc" 8075 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include 8076 DINCLUDE=-I/usr/local/include
5554 fi 8077 fi
5555fi 8078fi;
5556
5557 8079
5558# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8080# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559if test "${enable_dlmalloc+set}" = set; then 8081if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc" 8082 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then 8083 if test x$enableval = xyes; then
5562 MALLOC_TYPE=D 8084 MALLOC_TYPE=D
5563 DEBUG= 8085 DEBUG=
5564 DLIB="-L/usr/local/lib -ldlmalloc" 8086 DLIB="-L/usr/local/lib -ldlmalloc"
5565 DINCLUDE= 8087 DINCLUDE=
5566 fi 8088 fi
5567fi 8089fi;
5568
5569 8090
5570# Check whether --enable-smart-resize or --disable-smart-resize was given. 8091# Check whether --enable-smart-resize or --disable-smart-resize was given.
5571if test "${enable_smart_resize+set}" = set; then 8092if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize" 8093 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then 8094 if test x$enableval = xyes; then
8095
5574 cat >> confdefs.h <<\EOF 8096cat >>confdefs.h <<\_ACEOF
5575#define SMART_RESIZE 1 8097#define SMART_RESIZE 1
5576EOF 8098_ACEOF
5577 8099
5578 fi 8100 fi
5579fi 8101fi;
5580
5581 8102
5582# Check whether --enable-256-color or --disable-256-color was given. 8103# Check whether --enable-256-color or --disable-256-color was given.
5583if test "${enable_256_color+set}" = set; then 8104if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color" 8105 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then 8106 if test x$enableval = xyes; then
8107
5586 cat >> confdefs.h <<\EOF 8108cat >>confdefs.h <<\_ACEOF
5587#define TTY_256COLOR 1 8109#define TTY_256COLOR 1
5588EOF 8110_ACEOF
5589 8111
5590 fi 8112 fi
5591fi 8113fi;
5592
5593 8114
5594# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8115# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595if test "${enable_cursor_blink+set}" = set; then 8116if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink" 8117 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then 8118 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval 8119 support_cursor_blink=$enableval
5599 fi 8120 fi
5600fi 8121fi;
5601 8122
8123# Check whether --enable-text-blink or --disable-text-blink was given.
8124if test "${enable_text_blink+set}" = set; then
8125 enableval="$enable_text_blink"
8126 if test x$enableval = xyes -o x$enableval = xno; then
8127 support_text_blink=$enableval
8128 fi
8129fi;
5602 8130
5603# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8131# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604if test "${enable_pointer_blank+set}" = set; then 8132if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank" 8133 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then 8134 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval 8135 support_pointer_blank=$enableval
5608 fi 8136 fi
5609fi 8137fi;
5610 8138
5611 8139
5612# Check whether --with-term or --without-term was given. 8140# Check whether --with-term or --without-term was given.
5613if test "${with_term+set}" = set; then 8141if test "${with_term+set}" = set; then
5614 withval="$with_term" 8142 withval="$with_term"
5615 if test x$withval != x; then 8143 if test x$withval != x; then
8144
5616 cat >> confdefs.h <<EOF 8145cat >>confdefs.h <<_ACEOF
5617#define TERMENV "$withval" 8146#define TERMENV "$withval"
5618EOF 8147_ACEOF
5619 term="$withval" 8148 term="$withval"
5620 fi 8149 fi
5621fi 8150fi;
5622 8151
5623 8152
5624# Check whether --with-terminfo or --without-terminfo was given. 8153# Check whether --with-terminfo or --without-terminfo was given.
5625if test "${with_terminfo+set}" = set; then 8154if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo" 8155 withval="$with_terminfo"
5627 if test x$withval != x; then 8156 if test x$withval != x; then
8157
5628 cat >> confdefs.h <<EOF 8158cat >>confdefs.h <<_ACEOF
5629#define RXVT_TERMINFO "$withval" 8159#define RXVT_TERMINFO "$withval"
5630EOF 8160_ACEOF
5631 terminfo="$withval" 8161 terminfo="$withval"
5632 fi 8162 fi
5633fi 8163fi;
5634 8164
5635 8165
5636 8166
5637cat >> confdefs.h <<\EOF 8167cat >>confdefs.h <<\_ACEOF
5638#define PROTOTYPES 1 8168#define PROTOTYPES 1
5639EOF 8169_ACEOF
5640 8170
5641 8171
5642if test -z "$CFLAGS"; then 8172if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then 8173 if test -z "$CCOPTS"; then
5644 CCOPTS='-O' 8174 CCOPTS='-O'
5646 CFLAGS="$CCOPTS" 8176 CFLAGS="$CCOPTS"
5647fi 8177fi
5648 8178
5649# Extract the first word of "mv", so it can be a program name with args. 8179# Extract the first word of "mv", so it can be a program name with args.
5650set dummy mv; ac_word=$2 8180set dummy mv; ac_word=$2
8181echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8182echo $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 8183if test "${ac_cv_path_MV+set}" = set; then
5654 echo $ac_n "(cached) $ac_c" 1>&6 8184 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else 8185else
5656 case "$MV" in 8186 case $MV in
5657 /*) 8187 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8188 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5659 ;; 8189 ;;
5660 ?:/*)
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5662 ;;
5663 *) 8190 *)
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 ac_dummy="$PATH" 8192for as_dir in $PATH
5666 for ac_dir in $ac_dummy; do 8193do
8194 IFS=$as_save_IFS
5667 test -z "$ac_dir" && ac_dir=. 8195 test -z "$as_dir" && as_dir=.
5668 if test -f $ac_dir/$ac_word; then 8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_MV="$ac_dir/$ac_word" 8198 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 8200 break 2
5671 fi 8201 fi
5672 done 8202done
5673 IFS="$ac_save_ifs" 8203done
8204
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8205 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5675 ;; 8206 ;;
5676esac 8207esac
5677fi 8208fi
5678MV="$ac_cv_path_MV" 8209MV=$ac_cv_path_MV
8210
5679if test -n "$MV"; then 8211if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6 8212 echo "$as_me:$LINENO: result: $MV" >&5
8213echo "${ECHO_T}$MV" >&6
5681else 8214else
5682 echo "$ac_t""no" 1>&6 8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
5683fi 8217fi
5684 8218
5685# Extract the first word of "rm", so it can be a program name with args. 8219# Extract the first word of "rm", so it can be a program name with args.
5686set dummy rm; ac_word=$2 8220set dummy rm; ac_word=$2
8221echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8222echo $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 8223if test "${ac_cv_path_RM+set}" = set; then
5690 echo $ac_n "(cached) $ac_c" 1>&6 8224 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else 8225else
5692 case "$RM" in 8226 case $RM in
5693 /*) 8227 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5695 ;; 8229 ;;
5696 ?:/*)
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5698 ;;
5699 *) 8230 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 ac_dummy="$PATH" 8232for as_dir in $PATH
5702 for ac_dir in $ac_dummy; do 8233do
8234 IFS=$as_save_IFS
5703 test -z "$ac_dir" && ac_dir=. 8235 test -z "$as_dir" && as_dir=.
5704 if test -f $ac_dir/$ac_word; then 8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_RM="$ac_dir/$ac_word" 8238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 8240 break 2
5707 fi 8241 fi
5708 done 8242done
5709 IFS="$ac_save_ifs" 8243done
8244
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8245 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5711 ;; 8246 ;;
5712esac 8247esac
5713fi 8248fi
5714RM="$ac_cv_path_RM" 8249RM=$ac_cv_path_RM
8250
5715if test -n "$RM"; then 8251if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6 8252 echo "$as_me:$LINENO: result: $RM" >&5
8253echo "${ECHO_T}$RM" >&6
5717else 8254else
5718 echo "$ac_t""no" 1>&6 8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
5719fi 8257fi
5720 8258
5721# Extract the first word of "cp", so it can be a program name with args. 8259# Extract the first word of "cp", so it can be a program name with args.
5722set dummy cp; ac_word=$2 8260set dummy cp; ac_word=$2
8261echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8262echo $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 8263if test "${ac_cv_path_CP+set}" = set; then
5726 echo $ac_n "(cached) $ac_c" 1>&6 8264 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else 8265else
5728 case "$CP" in 8266 case $CP in
5729 /*) 8267 [\\/]* | ?:[\\/]*)
5730 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8268 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5731 ;; 8269 ;;
5732 ?:/*)
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5734 ;;
5735 *) 8270 *)
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 ac_dummy="$PATH" 8272for as_dir in $PATH
5738 for ac_dir in $ac_dummy; do 8273do
8274 IFS=$as_save_IFS
5739 test -z "$ac_dir" && ac_dir=. 8275 test -z "$as_dir" && as_dir=.
5740 if test -f $ac_dir/$ac_word; then 8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_path_CP="$ac_dir/$ac_word" 8278 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 8280 break 2
5743 fi 8281 fi
5744 done 8282done
5745 IFS="$ac_save_ifs" 8283done
8284
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8285 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5747 ;; 8286 ;;
5748esac 8287esac
5749fi 8288fi
5750CP="$ac_cv_path_CP" 8289CP=$ac_cv_path_CP
8290
5751if test -n "$CP"; then 8291if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6 8292 echo "$as_me:$LINENO: result: $CP" >&5
8293echo "${ECHO_T}$CP" >&6
5753else 8294else
5754 echo "$ac_t""no" 1>&6 8295 echo "$as_me:$LINENO: result: no" >&5
8296echo "${ECHO_T}no" >&6
5755fi 8297fi
5756 8298
5757# Extract the first word of "ln", so it can be a program name with args. 8299# Extract the first word of "ln", so it can be a program name with args.
5758set dummy ln; ac_word=$2 8300set dummy ln; ac_word=$2
8301echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8302echo $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 8303if test "${ac_cv_path_LN+set}" = set; then
5762 echo $ac_n "(cached) $ac_c" 1>&6 8304 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else 8305else
5764 case "$LN" in 8306 case $LN in
5765 /*) 8307 [\\/]* | ?:[\\/]*)
5766 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8308 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5767 ;; 8309 ;;
5768 ?:/*)
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5770 ;;
5771 *) 8310 *)
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 ac_dummy="$PATH" 8312for as_dir in $PATH
5774 for ac_dir in $ac_dummy; do 8313do
8314 IFS=$as_save_IFS
5775 test -z "$ac_dir" && ac_dir=. 8315 test -z "$as_dir" && as_dir=.
5776 if test -f $ac_dir/$ac_word; then 8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_path_LN="$ac_dir/$ac_word" 8318 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 8320 break 2
5779 fi 8321 fi
5780 done 8322done
5781 IFS="$ac_save_ifs" 8323done
8324
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8325 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5783 ;; 8326 ;;
5784esac 8327esac
5785fi 8328fi
5786LN="$ac_cv_path_LN" 8329LN=$ac_cv_path_LN
8330
5787if test -n "$LN"; then 8331if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6 8332 echo "$as_me:$LINENO: result: $LN" >&5
8333echo "${ECHO_T}$LN" >&6
5789else 8334else
5790 echo "$ac_t""no" 1>&6 8335 echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6
5791fi 8337fi
5792 8338
5793# Extract the first word of "sed", so it can be a program name with args. 8339# Extract the first word of "sed", so it can be a program name with args.
5794set dummy sed; ac_word=$2 8340set dummy sed; ac_word=$2
8341echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8342echo $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 8343if test "${ac_cv_path_SED+set}" = set; then
5798 echo $ac_n "(cached) $ac_c" 1>&6 8344 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else 8345else
5800 case "$SED" in 8346 case $SED in
5801 /*) 8347 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8348 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5803 ;; 8349 ;;
5804 ?:/*)
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5806 ;;
5807 *) 8350 *)
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 ac_dummy="$PATH" 8352for as_dir in $PATH
5810 for ac_dir in $ac_dummy; do 8353do
8354 IFS=$as_save_IFS
5811 test -z "$ac_dir" && ac_dir=. 8355 test -z "$as_dir" && as_dir=.
5812 if test -f $ac_dir/$ac_word; then 8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_path_SED="$ac_dir/$ac_word" 8358 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 8360 break 2
5815 fi 8361 fi
5816 done 8362done
5817 IFS="$ac_save_ifs" 8363done
8364
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8365 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5819 ;; 8366 ;;
5820esac 8367esac
5821fi 8368fi
5822SED="$ac_cv_path_SED" 8369SED=$ac_cv_path_SED
8370
5823if test -n "$SED"; then 8371if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6 8372 echo "$as_me:$LINENO: result: $SED" >&5
8373echo "${ECHO_T}$SED" >&6
5825else 8374else
5826 echo "$ac_t""no" 1>&6 8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
5827fi 8377fi
5828 8378
5829# Extract the first word of "echo", so it can be a program name with args. 8379# Extract the first word of "echo", so it can be a program name with args.
5830set dummy echo; ac_word=$2 8380set dummy echo; ac_word=$2
8381echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8382echo $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 8383if test "${ac_cv_path_ECHO+set}" = set; then
5834 echo $ac_n "(cached) $ac_c" 1>&6 8384 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else 8385else
5836 case "$ECHO" in 8386 case $ECHO in
5837 /*) 8387 [\\/]* | ?:[\\/]*)
5838 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8388 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5839 ;; 8389 ;;
5840 ?:/*)
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5842 ;;
5843 *) 8390 *)
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 ac_dummy="$PATH" 8392for as_dir in $PATH
5846 for ac_dir in $ac_dummy; do 8393do
8394 IFS=$as_save_IFS
5847 test -z "$ac_dir" && ac_dir=. 8395 test -z "$as_dir" && as_dir=.
5848 if test -f $ac_dir/$ac_word; then 8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_path_ECHO="$ac_dir/$ac_word" 8398 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 8400 break 2
5851 fi 8401 fi
5852 done 8402done
5853 IFS="$ac_save_ifs" 8403done
8404
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8405 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5855 ;; 8406 ;;
5856esac 8407esac
5857fi 8408fi
5858ECHO="$ac_cv_path_ECHO" 8409ECHO=$ac_cv_path_ECHO
8410
5859if test -n "$ECHO"; then 8411if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6 8412 echo "$as_me:$LINENO: result: $ECHO" >&5
8413echo "${ECHO_T}$ECHO" >&6
5861else 8414else
5862 echo "$ac_t""no" 1>&6 8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
5863fi 8417fi
5864 8418
5865# Extract the first word of "cmp", so it can be a program name with args. 8419# Extract the first word of "cmp", so it can be a program name with args.
5866set dummy cmp; ac_word=$2 8420set dummy cmp; ac_word=$2
8421echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8422echo $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 8423if test "${ac_cv_path_CMP+set}" = set; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 8424 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else 8425else
5872 case "$CMP" in 8426 case $CMP in
5873 /*) 8427 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8428 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5875 ;; 8429 ;;
5876 ?:/*)
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5878 ;;
5879 *) 8430 *)
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 ac_dummy="$PATH" 8432for as_dir in $PATH
5882 for ac_dir in $ac_dummy; do 8433do
8434 IFS=$as_save_IFS
5883 test -z "$ac_dir" && ac_dir=. 8435 test -z "$as_dir" && as_dir=.
5884 if test -f $ac_dir/$ac_word; then 8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_CMP="$ac_dir/$ac_word" 8438 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 8440 break 2
5887 fi 8441 fi
5888 done 8442done
5889 IFS="$ac_save_ifs" 8443done
8444
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8445 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 ;; 8446 ;;
5892esac 8447esac
5893fi 8448fi
5894CMP="$ac_cv_path_CMP" 8449CMP=$ac_cv_path_CMP
8450
5895if test -n "$CMP"; then 8451if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6 8452 echo "$as_me:$LINENO: result: $CMP" >&5
8453echo "${ECHO_T}$CMP" >&6
5897else 8454else
5898 echo "$ac_t""no" 1>&6 8455 echo "$as_me:$LINENO: result: no" >&5
8456echo "${ECHO_T}no" >&6
5899fi 8457fi
5900 8458
5901# Extract the first word of "tbl", so it can be a program name with args. 8459# Extract the first word of "tbl", so it can be a program name with args.
5902set dummy tbl; ac_word=$2 8460set dummy tbl; ac_word=$2
8461echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8462echo $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 8463if test "${ac_cv_path_TBL+set}" = set; then
5906 echo $ac_n "(cached) $ac_c" 1>&6 8464 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else 8465else
5908 case "$TBL" in 8466 case $TBL in
5909 /*) 8467 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8468 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5911 ;; 8469 ;;
5912 ?:/*)
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5914 ;;
5915 *) 8470 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 ac_dummy="$PATH" 8472for as_dir in $PATH
5918 for ac_dir in $ac_dummy; do 8473do
8474 IFS=$as_save_IFS
5919 test -z "$ac_dir" && ac_dir=. 8475 test -z "$as_dir" && as_dir=.
5920 if test -f $ac_dir/$ac_word; then 8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_path_TBL="$ac_dir/$ac_word" 8478 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 8480 break 2
5923 fi 8481 fi
5924 done 8482done
5925 IFS="$ac_save_ifs" 8483done
8484
5926 ;; 8485 ;;
5927esac 8486esac
5928fi 8487fi
5929TBL="$ac_cv_path_TBL" 8488TBL=$ac_cv_path_TBL
8489
5930if test -n "$TBL"; then 8490if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6 8491 echo "$as_me:$LINENO: result: $TBL" >&5
8492echo "${ECHO_T}$TBL" >&6
5932else 8493else
5933 echo "$ac_t""no" 1>&6 8494 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6
5934fi 8496fi
5935 8497
5936 8498
5937 8499
5938 8500
5939# If we find X, set shell vars x_includes and x_libraries to the 8501echo "$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 8502echo $ECHO_N "checking for X... $ECHO_C" >&6
5944echo "configure:5945: checking for X" >&5 8503
5945 8504
5946# Check whether --with-x or --without-x was given. 8505# Check whether --with-x or --without-x was given.
5947if test "${with_x+set}" = set; then 8506if test "${with_x+set}" = set; then
5948 withval="$with_x" 8507 withval="$with_x"
5949 : 8508
5950fi 8509fi;
5951
5952# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8510# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5953if test "x$with_x" = xno; then 8511if test "x$with_x" = xno; then
5954 # The user explicitly disabled X. 8512 # The user explicitly disabled X.
5955 have_x=disabled 8513 have_x=disabled
5956else 8514else
5957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8515 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5958 # Both variables are already set. 8516 # Both variables are already set.
5959 have_x=yes 8517 have_x=yes
5960 else 8518 else
5961if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8519 if test "${ac_cv_have_x+set}" = set; then
5962 echo $ac_n "(cached) $ac_c" 1>&6 8520 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else 8521else
5964 # One or both of the vars are not set, and there is no cached value. 8522 # One or both of the vars are not set, and there is no cached value.
5965ac_x_includes=NO ac_x_libraries=NO 8523ac_x_includes=no ac_x_libraries=no
5966rm -fr conftestdir 8524rm -fr conftest.dir
5967if mkdir conftestdir; then 8525if mkdir conftest.dir; then
5968 cd conftestdir 8526 cd conftest.dir
5969 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8527 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5970 cat > Imakefile <<'EOF' 8528 cat >Imakefile <<'_ACEOF'
5971acfindx: 8529acfindx:
5972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8530 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5973EOF 8531_ACEOF
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8532 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8534 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8535 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do 8536 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8537 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then 8538 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break 8539 ac_im_usrlibdir=$ac_im_libdir; break
5982 fi 8540 fi
5983 done 8541 done
5984 # Screen out bogus values from the imake configuration. They are 8542 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because 8543 # bogus both because they are the default anyway, and because
5986 # using them would break gcc on systems where it needs fixed includes. 8544 # using them would break gcc on systems where it needs fixed includes.
5987 case "$ac_im_incroot" in 8545 case $ac_im_incroot in
5988 /usr/include) ;; 8546 /usr/include) ;;
5989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8547 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5990 esac 8548 esac
5991 case "$ac_im_usrlibdir" in 8549 case $ac_im_usrlibdir in
5992 /usr/lib | /lib) ;; 8550 /usr/lib | /lib) ;;
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8551 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5994 esac 8552 esac
5995 fi 8553 fi
5996 cd .. 8554 cd ..
5997 rm -fr conftestdir 8555 rm -fr conftest.dir
5998fi 8556fi
5999 8557
8558# Standard set of common directories for X headers.
8559# Check X11 before X11Rn because it is often a symlink to the current release.
8560ac_x_header_dirs='
8561/usr/X11/include
8562/usr/X11R6/include
8563/usr/X11R5/include
8564/usr/X11R4/include
8565
8566/usr/include/X11
8567/usr/include/X11R6
8568/usr/include/X11R5
8569/usr/include/X11R4
8570
8571/usr/local/X11/include
8572/usr/local/X11R6/include
8573/usr/local/X11R5/include
8574/usr/local/X11R4/include
8575
8576/usr/local/include/X11
8577/usr/local/include/X11R6
8578/usr/local/include/X11R5
8579/usr/local/include/X11R4
8580
8581/usr/X386/include
8582/usr/x386/include
8583/usr/XFree86/include/X11
8584
8585/usr/include
8586/usr/local/include
8587/usr/unsupported/include
8588/usr/athena/include
8589/usr/local/x11r5/include
8590/usr/lpp/Xamples/include
8591
8592/usr/openwin/include
8593/usr/openwin/share/include'
8594
6000if test "$ac_x_includes" = NO; then 8595if test "$ac_x_includes" = no; then
6001 # Guess where to find include files, by looking for this one X11 .h file. 8596 # 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. 8597 # First, try using that file with no special directory specified.
8598 cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
6005cat > conftest.$ac_ext <<EOF 8602cat >>conftest.$ac_ext <<_ACEOF
6006#line 6007 "configure" 8603/* end confdefs.h. */
6007#include "confdefs.h" 8604#include <X11/Intrinsic.h>
6008#include <$x_direct_test_include> 8605_ACEOF
6009EOF 8606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8608 ac_status=$?
6012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev/null; then
8614 if test -s conftest.err; then
8615 ac_cpp_err=$ac_c_preproc_warn_flag
8616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8617 else
8618 ac_cpp_err=
8619 fi
8620else
8621 ac_cpp_err=yes
8622fi
6013if test -z "$ac_err"; then 8623if test -z "$ac_cpp_err"; then
6014 rm -rf conftest*
6015 # We can compile using X headers with no special include directory. 8624 # We can compile using X headers with no special include directory.
6016ac_x_includes= 8625ac_x_includes=
6017else 8626else
6018 echo "$ac_err" >&5
6019 echo "configure: failed program was:" >&5 8627 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 8628sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -rf conftest* 8629
6022 # Look for the header file in a standard set of common directories. 8630 for ac_dir in $ac_x_header_dirs; do
6023# Check X11 before X11Rn because it is often a symlink to the current release. 8631 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 8632 ac_x_includes=$ac_dir
6062 break 8633 break
6063 fi 8634 fi
6064 done 8635done
6065fi 8636fi
6066rm -f conftest* 8637rm -f conftest.err conftest.$ac_ext
6067fi # $ac_x_includes = NO 8638fi # $ac_x_includes = no
6068 8639
6069if test "$ac_x_libraries" = NO; then 8640if test "$ac_x_libraries" = no; then
6070 # Check for the libraries. 8641 # 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. 8642 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently. 8643 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS" 8644 ac_save_LIBS=$LIBS
6078 LIBS="-l$x_direct_test_library $LIBS" 8645 LIBS="-lXt $LIBS"
8646 cat >conftest.$ac_ext <<_ACEOF
8647/* confdefs.h. */
8648_ACEOF
8649cat confdefs.h >>conftest.$ac_ext
6079cat > conftest.$ac_ext <<EOF 8650cat >>conftest.$ac_ext <<_ACEOF
6080#line 6081 "configure" 8651/* end confdefs.h. */
6081#include "confdefs.h" 8652#include <X11/Intrinsic.h>
6082 8653int
6083int main() { 8654main ()
6084${x_direct_test_function}() 8655{
8656XtMalloc (0)
8657 ;
6085; return 0; } 8658 return 0;
6086EOF 8659}
6087if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8660_ACEOF
8661rm -f conftest.$ac_objext conftest$ac_exeext
8662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -rf conftest* 8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
6089 LIBS="$ac_save_LIBS" 8682 LIBS=$ac_save_LIBS
6090# We can link X programs with no special library path. 8683# We can link X programs with no special library path.
6091ac_x_libraries= 8684ac_x_libraries=
6092else 8685else
6093 echo "configure: failed program was:" >&5 8686 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5 8687sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -rf conftest* 8688
6096 LIBS="$ac_save_LIBS" 8689LIBS=$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/` \ 8690for 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 8691do
8692 # Don't even attempt the hair of trying to link an X program!
6136 for ac_extension in a so sl; do 8693 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 8694 if test -r $ac_dir/libXt.$ac_extension; then
6138 ac_x_libraries=$ac_dir 8695 ac_x_libraries=$ac_dir
6139 break 2 8696 break 2
6140 fi 8697 fi
6141 done 8698 done
6142done 8699done
6143fi 8700fi
6144rm -f conftest* 8701rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
6145fi # $ac_x_libraries = NO 8703fi # $ac_x_libraries = no
6146 8704
6147if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 8705if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6148 # Didn't find X anywhere. Cache the known absence of X. 8706 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no" 8707 ac_cv_have_x="have_x=no"
6150else 8708else
6151 # Record where we found X for the cache. 8709 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \ 8710 ac_cv_have_x="have_x=yes \
6153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 8711 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6154fi 8712fi
6155fi 8713fi
8714
6156 fi 8715 fi
6157 eval "$ac_cv_have_x" 8716 eval "$ac_cv_have_x"
6158fi # $with_x != no 8717fi # $with_x != no
6159 8718
6160if test "$have_x" != yes; then 8719if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6 8720 echo "$as_me:$LINENO: result: $have_x" >&5
8721echo "${ECHO_T}$have_x" >&6
6162 no_x=yes 8722 no_x=yes
6163else 8723else
6164 # If each of the values was on the command line, it overrides each guess. 8724 # 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 8725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values. 8727 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \ 8728 ac_cv_have_x="have_x=yes \
6169 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 8729 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8730 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 8731echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6171fi 8732fi
6172 8733
6173if test "$no_x" = yes; then 8734if test "$no_x" = yes; then
6174 # Not all programs may use this symbol, but it does not hurt to define it. 8735 # Not all programs may use this symbol, but it does not hurt to define it.
8736
6175 cat >> confdefs.h <<\EOF 8737cat >>confdefs.h <<\_ACEOF
6176#define X_DISPLAY_MISSING 1 8738#define X_DISPLAY_MISSING 1
6177EOF 8739_ACEOF
6178 8740
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8741 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6180else 8742else
6181 if test -n "$x_includes"; then 8743 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes" 8744 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # It would also be nice to do this for all -L options, not just this one. 8747 # It would also be nice to do this for all -L options, not just this one.
6186 if test -n "$x_libraries"; then 8748 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries" 8749 X_LIBS="$X_LIBS -L$x_libraries"
6188 # For Solaris; some versions of Sun CC require a space after -R and 8750 # For Solaris; some versions of Sun CC require a space after -R and
6189 # others require no space. Words are not sufficient . . . . 8751 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in 8752 case `(uname -sr) 2>/dev/null` in
6191 "SunOS 5"*) 8753 "SunOS 5"*)
8754 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 8755echo $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" 8756 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF 8757 cat >conftest.$ac_ext <<_ACEOF
6196#line 6197 "configure" 8758/* confdefs.h. */
6197#include "confdefs.h" 8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
6198 8763
6199int main() { 8764int
8765main ()
8766{
6200 8767
8768 ;
6201; return 0; } 8769 return 0;
6202EOF 8770}
6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -rf conftest* 8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } &&
8787 { ac_try='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
6205 ac_R_nospace=yes 8793 ac_R_nospace=yes
6206else 8794else
6207 echo "configure: failed program was:" >&5 8795 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 8796sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -rf conftest* 8797
6210 ac_R_nospace=no 8798ac_R_nospace=no
6211fi 8799fi
6212rm -f conftest* 8800rm -f conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
6213 if test $ac_R_nospace = yes; then 8802 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6 8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
6215 X_LIBS="$X_LIBS -R$x_libraries" 8805 X_LIBS="$X_LIBS -R$x_libraries"
6216 else 8806 else
6217 LIBS="$ac_xsave_LIBS -R $x_libraries" 8807 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF 8808 cat >conftest.$ac_ext <<_ACEOF
6219#line 6220 "configure" 8809/* confdefs.h. */
6220#include "confdefs.h" 8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
6221 8814
6222int main() { 8815int
8816main ()
8817{
6223 8818
8819 ;
6224; return 0; } 8820 return 0;
6225EOF 8821}
6226if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
8824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -rf conftest* 8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
6228 ac_R_space=yes 8844 ac_R_space=yes
6229else 8845else
6230 echo "configure: failed program was:" >&5 8846 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 8847sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -rf conftest* 8848
6233 ac_R_space=no 8849ac_R_space=no
6234fi 8850fi
6235rm -f conftest* 8851rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
6236 if test $ac_R_space = yes; then 8853 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6 8854 echo "$as_me:$LINENO: result: yes" >&5
8855echo "${ECHO_T}yes" >&6
6238 X_LIBS="$X_LIBS -R $x_libraries" 8856 X_LIBS="$X_LIBS -R $x_libraries"
6239 else 8857 else
8858 echo "$as_me:$LINENO: result: neither works" >&5
6240 echo "$ac_t""neither works" 1>&6 8859echo "${ECHO_T}neither works" >&6
6241 fi 8860 fi
6242 fi 8861 fi
6243 LIBS="$ac_xsave_LIBS" 8862 LIBS=$ac_xsave_LIBS
6244 esac 8863 esac
6245 fi 8864 fi
6246 8865
6247 # Check for system-dependent libraries X programs must link with. 8866 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries 8867 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking. 8868 # (-lICE), since we may need -lsocket or whatever for X linking.
6250 8869
6251 if test "$ISC" = yes; then 8870 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6253 else 8872 else
6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 8873 # Martyn Johnson says this is needed for Ultrix, if the X
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says 8874 # libraries were built with DECnet support. And Karl Berry says
6256 # the Alpha needs dnet_stub (dnet does not exist). 8875 # the Alpha needs dnet_stub (dnet does not exist).
8876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8877 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
8883
8884/* Override any gcc2 internal prototype to avoid an error. */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888/* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890char XOpenDisplay ();
8891int
8892main ()
8893{
8894XOpenDisplay ();
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 :
8921else
8922 echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 8926echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5 8927if 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 8928 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else 8929else
6263 ac_save_LIBS="$LIBS" 8930 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ldnet $LIBS" 8931LIBS="-ldnet $LIBS"
6265cat > conftest.$ac_ext <<EOF 8932cat >conftest.$ac_ext <<_ACEOF
6266#line 6267 "configure" 8933/* confdefs.h. */
6267#include "confdefs.h" 8934_ACEOF
8935cat confdefs.h >>conftest.$ac_ext
8936cat >>conftest.$ac_ext <<_ACEOF
8937/* end confdefs.h. */
8938
6268/* Override any gcc2 internal prototype to avoid an error. */ 8939/* Override any gcc2 internal prototype to avoid an error. */
8940#ifdef __cplusplus
8941extern "C"
8942#endif
6269/* We use char because int might match the return type of a gcc2 8943/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */ 8944 builtin and then its argument prototype would still apply. */
6271char dnet_ntoa(); 8945char dnet_ntoa ();
6272 8946int
6273int main() { 8947main ()
8948{
6274dnet_ntoa() 8949dnet_ntoa ();
8950 ;
6275; return 0; } 8951 return 0;
6276EOF 8952}
6277if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8953_ACEOF
8954rm -f conftest.$ac_objext conftest$ac_exeext
8955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -rf conftest* 8959 rm -f conftest.er1
6279 eval "ac_cv_lib_$ac_lib_var=yes" 8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_lib_dnet_dnet_ntoa=yes
6280else 8976else
6281 echo "configure: failed program was:" >&5 8977 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 8978sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -rf conftest* 8979
6284 eval "ac_cv_lib_$ac_lib_var=no" 8980ac_cv_lib_dnet_dnet_ntoa=no
6285fi 8981fi
6286rm -f conftest* 8982rm -f conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
6287LIBS="$ac_save_LIBS" 8984LIBS=$ac_check_lib_save_LIBS
6288
6289fi 8985fi
6290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8986echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6291 echo "$ac_t""yes" 1>&6 8987echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8988if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6293else
6294 echo "$ac_t""no" 1>&6
6295fi 8990fi
6296 8991
6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8992 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8993 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 8994echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5 8995if 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 8996 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else 8997else
6304 ac_save_LIBS="$LIBS" 8998 ac_check_lib_save_LIBS=$LIBS
6305LIBS="-ldnet_stub $LIBS" 8999LIBS="-ldnet_stub $LIBS"
6306cat > conftest.$ac_ext <<EOF 9000cat >conftest.$ac_ext <<_ACEOF
6307#line 6308 "configure" 9001/* confdefs.h. */
6308#include "confdefs.h" 9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006
6309/* Override any gcc2 internal prototype to avoid an error. */ 9007/* Override any gcc2 internal prototype to avoid an error. */
9008#ifdef __cplusplus
9009extern "C"
9010#endif
6310/* We use char because int might match the return type of a gcc2 9011/* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */ 9012 builtin and then its argument prototype would still apply. */
6312char dnet_ntoa(); 9013char dnet_ntoa ();
6313 9014int
6314int main() { 9015main ()
9016{
6315dnet_ntoa() 9017dnet_ntoa ();
9018 ;
6316; return 0; } 9019 return 0;
6317EOF 9020}
6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9021_ACEOF
9022rm -f conftest.$ac_objext conftest$ac_exeext
9023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -rf conftest* 9027 rm -f conftest.er1
6320 eval "ac_cv_lib_$ac_lib_var=yes" 9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9037 { ac_try='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6321else 9044else
6322 echo "configure: failed program was:" >&5 9045 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5 9046sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -rf conftest* 9047
6325 eval "ac_cv_lib_$ac_lib_var=no" 9048ac_cv_lib_dnet_stub_dnet_ntoa=no
6326fi 9049fi
6327rm -f conftest* 9050rm -f conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
6328LIBS="$ac_save_LIBS" 9052LIBS=$ac_check_lib_save_LIBS
6329
6330fi 9053fi
6331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9054echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6332 echo "$ac_t""yes" 1>&6 9055echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9056if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9057 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6334else
6335 echo "$ac_t""no" 1>&6
6336fi 9058fi
6337 9059
6338 fi 9060 fi
9061fi
9062rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS="$ac_xsave_LIBS"
6339 9065
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9066 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions. 9067 # to get the SysV transport functions.
6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9068 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6343 # needs -lnsl. 9069 # needs -lnsl.
6344 # The nsl library prevents programs from opening the X display 9070 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to dickey@clark.net. 9071 # on Irix 5.2, according to T.E. Dickey.
9072 # The functions gethostbyname, getservbyname, and inet_addr are
9073 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9074 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9075echo $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 9076if test "${ac_cv_func_gethostbyname+set}" = set; then
6349 echo $ac_n "(cached) $ac_c" 1>&6 9077 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else 9078else
6351 cat > conftest.$ac_ext <<EOF 9079 cat >conftest.$ac_ext <<_ACEOF
6352#line 6353 "configure" 9080/* confdefs.h. */
6353#include "confdefs.h" 9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9087#define gethostbyname innocuous_gethostbyname
9088
6354/* System header to define __stub macros and hopefully few prototypes, 9089/* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char gethostbyname(); below. */ 9090 which can conflict with char gethostbyname (); below.
9091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9092 <limits.h> exists even on freestanding compilers. */
9093
9094#ifdef __STDC__
9095# include <limits.h>
9096#else
6356#include <assert.h> 9097# include <assert.h>
9098#endif
9099
9100#undef gethostbyname
9101
6357/* Override any gcc2 internal prototype to avoid an error. */ 9102/* Override any gcc2 internal prototype to avoid an error. */
9103#ifdef __cplusplus
9104extern "C"
9105{
9106#endif
6358/* We use char because int might match the return type of a gcc2 9107/* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */ 9108 builtin and then its argument prototype would still apply. */
6360char gethostbyname(); 9109char gethostbyname ();
6361
6362int main() {
6363
6364/* The GNU C library defines this for functions which it implements 9110/* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named 9111 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */ 9112 something starting with __ and the normal name is an alias. */
6367#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9113#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6368choke me 9114choke me
6369#else 9115#else
6370gethostbyname(); 9116char (*f) () = gethostbyname;
6371#endif 9117#endif
9118#ifdef __cplusplus
9119}
9120#endif
6372 9121
9122int
9123main ()
9124{
9125return f != gethostbyname;
9126 ;
6373; return 0; } 9127 return 0;
6374EOF 9128}
6375if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9129_ACEOF
9130rm -f conftest.$ac_objext conftest$ac_exeext
9131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -rf conftest* 9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest$ac_exeext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
6377 eval "ac_cv_func_gethostbyname=yes" 9151 ac_cv_func_gethostbyname=yes
6378else 9152else
6379 echo "configure: failed program was:" >&5 9153 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 9154sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -rf conftest* 9155
6382 eval "ac_cv_func_gethostbyname=no" 9156ac_cv_func_gethostbyname=no
6383fi 9157fi
6384rm -f conftest* 9158rm -f conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
6385fi 9160fi
6386 9161echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6387if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9162echo "${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 9163
6394 if test $ac_cv_func_gethostbyname = no; then 9164 if test $ac_cv_func_gethostbyname = no; then
9165 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9166echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5 9167if 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 9168 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else 9169else
6401 ac_save_LIBS="$LIBS" 9170 ac_check_lib_save_LIBS=$LIBS
6402LIBS="-lnsl $LIBS" 9171LIBS="-lnsl $LIBS"
6403cat > conftest.$ac_ext <<EOF 9172cat >conftest.$ac_ext <<_ACEOF
6404#line 6405 "configure" 9173/* confdefs.h. */
6405#include "confdefs.h" 9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h. */
9178
6406/* Override any gcc2 internal prototype to avoid an error. */ 9179/* Override any gcc2 internal prototype to avoid an error. */
9180#ifdef __cplusplus
9181extern "C"
9182#endif
6407/* We use char because int might match the return type of a gcc2 9183/* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */ 9184 builtin and then its argument prototype would still apply. */
6409char gethostbyname(); 9185char gethostbyname ();
6410 9186int
6411int main() { 9187main ()
9188{
6412gethostbyname() 9189gethostbyname ();
9190 ;
6413; return 0; } 9191 return 0;
6414EOF 9192}
6415if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -rf conftest* 9199 rm -f conftest.er1
6417 eval "ac_cv_lib_$ac_lib_var=yes" 9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_nsl_gethostbyname=yes
6418else 9216else
6419 echo "configure: failed program was:" >&5 9217 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5 9218sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -rf conftest* 9219
6422 eval "ac_cv_lib_$ac_lib_var=no" 9220ac_cv_lib_nsl_gethostbyname=no
6423fi 9221fi
6424rm -f conftest* 9222rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
6425LIBS="$ac_save_LIBS" 9224LIBS=$ac_check_lib_save_LIBS
6426
6427fi 9225fi
6428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9226echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6429 echo "$ac_t""yes" 1>&6 9227echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9228if test $ac_cv_lib_nsl_gethostbyname = yes; then
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6431else
6432 echo "$ac_t""no" 1>&6
6433fi 9230fi
6434 9231
9232 if test $ac_cv_lib_nsl_gethostbyname = no; then
9233 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9234echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9235if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 ac_check_lib_save_LIBS=$LIBS
9239LIBS="-lbsd $LIBS"
9240cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
9246
9247/* Override any gcc2 internal prototype to avoid an error. */
9248#ifdef __cplusplus
9249extern "C"
9250#endif
9251/* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253char gethostbyname ();
9254int
9255main ()
9256{
9257gethostbyname ();
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_lib_bsd_gethostbyname=yes
9284else
9285 echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288ac_cv_lib_bsd_gethostbyname=no
9289fi
9290rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292LIBS=$ac_check_lib_save_LIBS
9293fi
9294echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9295echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9296if test $ac_cv_lib_bsd_gethostbyname = yes; then
9297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9298fi
9299
9300 fi
6435 fi 9301 fi
6436 9302
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT 9304 # 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 9305 # 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 9306 # on later versions), says Simon Leinen: it contains gethostby*
6441 # gethostby* variants that don't use the nameserver (or something). 9307 # variants that don't use the name server (or something). -lsocket
6442 # -lsocket must be given before -lnsl if both are needed. 9308 # must be given before -lnsl if both are needed. We assume that
6443 # We assume that if connect needs -lnsl, so does gethostbyname. 9309 # if connect needs -lnsl, so does gethostbyname.
9310 echo "$as_me:$LINENO: checking for connect" >&5
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6 9311echo $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 9312if test "${ac_cv_func_connect+set}" = set; then
6447 echo $ac_n "(cached) $ac_c" 1>&6 9313 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else 9314else
6449 cat > conftest.$ac_ext <<EOF 9315 cat >conftest.$ac_ext <<_ACEOF
6450#line 6451 "configure" 9316/* confdefs.h. */
6451#include "confdefs.h" 9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9323#define connect innocuous_connect
9324
6452/* System header to define __stub macros and hopefully few prototypes, 9325/* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char connect(); below. */ 9326 which can conflict with char connect (); below.
9327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328 <limits.h> exists even on freestanding compilers. */
9329
9330#ifdef __STDC__
9331# include <limits.h>
9332#else
6454#include <assert.h> 9333# include <assert.h>
9334#endif
9335
9336#undef connect
9337
6455/* Override any gcc2 internal prototype to avoid an error. */ 9338/* Override any gcc2 internal prototype to avoid an error. */
9339#ifdef __cplusplus
9340extern "C"
9341{
9342#endif
6456/* We use char because int might match the return type of a gcc2 9343/* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */ 9344 builtin and then its argument prototype would still apply. */
6458char connect(); 9345char connect ();
6459
6460int main() {
6461
6462/* The GNU C library defines this for functions which it implements 9346/* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named 9347 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */ 9348 something starting with __ and the normal name is an alias. */
6465#if defined (__stub_connect) || defined (__stub___connect) 9349#if defined (__stub_connect) || defined (__stub___connect)
6466choke me 9350choke me
6467#else 9351#else
6468connect(); 9352char (*f) () = connect;
6469#endif 9353#endif
9354#ifdef __cplusplus
9355}
9356#endif
6470 9357
9358int
9359main ()
9360{
9361return f != connect;
9362 ;
6471; return 0; } 9363 return 0;
6472EOF 9364}
6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -rf conftest* 9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
6475 eval "ac_cv_func_connect=yes" 9387 ac_cv_func_connect=yes
6476else 9388else
6477 echo "configure: failed program was:" >&5 9389 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 9390sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -rf conftest* 9391
6480 eval "ac_cv_func_connect=no" 9392ac_cv_func_connect=no
6481fi 9393fi
6482rm -f conftest* 9394rm -f conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
6483fi 9396fi
6484 9397echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6485if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9398echo "${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 9399
6492 if test $ac_cv_func_connect = no; then 9400 if test $ac_cv_func_connect = no; then
9401 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9402echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6494echo "configure:6495: checking for connect in -lsocket" >&5 9403if 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 9404 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else 9405else
6499 ac_save_LIBS="$LIBS" 9406 ac_check_lib_save_LIBS=$LIBS
6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9407LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501cat > conftest.$ac_ext <<EOF 9408cat >conftest.$ac_ext <<_ACEOF
6502#line 6503 "configure" 9409/* confdefs.h. */
6503#include "confdefs.h" 9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414
6504/* Override any gcc2 internal prototype to avoid an error. */ 9415/* Override any gcc2 internal prototype to avoid an error. */
9416#ifdef __cplusplus
9417extern "C"
9418#endif
6505/* We use char because int might match the return type of a gcc2 9419/* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */ 9420 builtin and then its argument prototype would still apply. */
6507char connect(); 9421char connect ();
6508 9422int
6509int main() { 9423main ()
9424{
6510connect() 9425connect ();
9426 ;
6511; return 0; } 9427 return 0;
6512EOF 9428}
6513if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9429_ACEOF
9430rm -f conftest.$ac_objext conftest$ac_exeext
9431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -rf conftest* 9435 rm -f conftest.er1
6515 eval "ac_cv_lib_$ac_lib_var=yes" 9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_socket_connect=yes
6516else 9452else
6517 echo "configure: failed program was:" >&5 9453 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5 9454sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -rf conftest* 9455
6520 eval "ac_cv_lib_$ac_lib_var=no" 9456ac_cv_lib_socket_connect=no
6521fi 9457fi
6522rm -f conftest* 9458rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
6523LIBS="$ac_save_LIBS" 9460LIBS=$ac_check_lib_save_LIBS
6524
6525fi 9461fi
6526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9462echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6527 echo "$ac_t""yes" 1>&6 9463echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9464if test $ac_cv_lib_socket_connect = yes; then
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9465 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6529else
6530 echo "$ac_t""no" 1>&6
6531fi 9466fi
6532 9467
6533 fi 9468 fi
6534 9469
6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9470 # Guillermo Gomez says -lposix is necessary on A/UX.
9471 echo "$as_me:$LINENO: checking for remove" >&5
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6 9472echo $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 9473if test "${ac_cv_func_remove+set}" = set; then
6539 echo $ac_n "(cached) $ac_c" 1>&6 9474 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else 9475else
6541 cat > conftest.$ac_ext <<EOF 9476 cat >conftest.$ac_ext <<_ACEOF
6542#line 6543 "configure" 9477/* confdefs.h. */
6543#include "confdefs.h" 9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9482/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484#define remove innocuous_remove
9485
6544/* System header to define __stub macros and hopefully few prototypes, 9486/* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char remove(); below. */ 9487 which can conflict with char remove (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9490
9491#ifdef __STDC__
9492# include <limits.h>
9493#else
6546#include <assert.h> 9494# include <assert.h>
9495#endif
9496
9497#undef remove
9498
6547/* Override any gcc2 internal prototype to avoid an error. */ 9499/* Override any gcc2 internal prototype to avoid an error. */
9500#ifdef __cplusplus
9501extern "C"
9502{
9503#endif
6548/* We use char because int might match the return type of a gcc2 9504/* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */ 9505 builtin and then its argument prototype would still apply. */
6550char remove(); 9506char remove ();
6551
6552int main() {
6553
6554/* The GNU C library defines this for functions which it implements 9507/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 9508 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 9509 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_remove) || defined (__stub___remove) 9510#if defined (__stub_remove) || defined (__stub___remove)
6558choke me 9511choke me
6559#else 9512#else
6560remove(); 9513char (*f) () = remove;
6561#endif 9514#endif
9515#ifdef __cplusplus
9516}
9517#endif
6562 9518
9519int
9520main ()
9521{
9522return f != remove;
9523 ;
6563; return 0; } 9524 return 0;
6564EOF 9525}
6565if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -rf conftest* 9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
6567 eval "ac_cv_func_remove=yes" 9548 ac_cv_func_remove=yes
6568else 9549else
6569 echo "configure: failed program was:" >&5 9550 echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5 9551sed 's/^/| /' conftest.$ac_ext >&5
6571 rm -rf conftest* 9552
6572 eval "ac_cv_func_remove=no" 9553ac_cv_func_remove=no
6573fi 9554fi
6574rm -f conftest* 9555rm -f conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
6575fi 9557fi
6576 9558echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6577if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9559echo "${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 9560
6584 if test $ac_cv_func_remove = no; then 9561 if test $ac_cv_func_remove = no; then
9562 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9563echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6586echo "configure:6587: checking for remove in -lposix" >&5 9564if 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 9565 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else 9566else
6591 ac_save_LIBS="$LIBS" 9567 ac_check_lib_save_LIBS=$LIBS
6592LIBS="-lposix $LIBS" 9568LIBS="-lposix $LIBS"
6593cat > conftest.$ac_ext <<EOF 9569cat >conftest.$ac_ext <<_ACEOF
6594#line 6595 "configure" 9570/* confdefs.h. */
6595#include "confdefs.h" 9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575
6596/* Override any gcc2 internal prototype to avoid an error. */ 9576/* Override any gcc2 internal prototype to avoid an error. */
9577#ifdef __cplusplus
9578extern "C"
9579#endif
6597/* We use char because int might match the return type of a gcc2 9580/* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */ 9581 builtin and then its argument prototype would still apply. */
6599char remove(); 9582char remove ();
6600 9583int
6601int main() { 9584main ()
9585{
6602remove() 9586remove ();
9587 ;
6603; return 0; } 9588 return 0;
6604EOF 9589}
6605if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9590_ACEOF
9591rm -f conftest.$ac_objext conftest$ac_exeext
9592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -rf conftest* 9596 rm -f conftest.er1
6607 eval "ac_cv_lib_$ac_lib_var=yes" 9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_lib_posix_remove=yes
6608else 9613else
6609 echo "configure: failed program was:" >&5 9614 echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 9615sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -rf conftest* 9616
6612 eval "ac_cv_lib_$ac_lib_var=no" 9617ac_cv_lib_posix_remove=no
6613fi 9618fi
6614rm -f conftest* 9619rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
6615LIBS="$ac_save_LIBS" 9621LIBS=$ac_check_lib_save_LIBS
6616
6617fi 9622fi
6618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9623echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6619 echo "$ac_t""yes" 1>&6 9624echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9625if test $ac_cv_lib_posix_remove = yes; then
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6621else
6622 echo "$ac_t""no" 1>&6
6623fi 9627fi
6624 9628
6625 fi 9629 fi
6626 9630
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9631 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9632 echo "$as_me:$LINENO: checking for shmat" >&5
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6 9633echo $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 9634if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ac_n "(cached) $ac_c" 1>&6 9635 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else 9636else
6633 cat > conftest.$ac_ext <<EOF 9637 cat >conftest.$ac_ext <<_ACEOF
6634#line 6635 "configure" 9638/* confdefs.h. */
6635#include "confdefs.h" 9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9645#define shmat innocuous_shmat
9646
6636/* System header to define __stub macros and hopefully few prototypes, 9647/* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char shmat(); below. */ 9648 which can conflict with char shmat (); below.
9649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9650 <limits.h> exists even on freestanding compilers. */
9651
9652#ifdef __STDC__
9653# include <limits.h>
9654#else
6638#include <assert.h> 9655# include <assert.h>
9656#endif
9657
9658#undef shmat
9659
6639/* Override any gcc2 internal prototype to avoid an error. */ 9660/* Override any gcc2 internal prototype to avoid an error. */
9661#ifdef __cplusplus
9662extern "C"
9663{
9664#endif
6640/* We use char because int might match the return type of a gcc2 9665/* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */ 9666 builtin and then its argument prototype would still apply. */
6642char shmat(); 9667char shmat ();
6643
6644int main() {
6645
6646/* The GNU C library defines this for functions which it implements 9668/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 9669 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 9670 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shmat) || defined (__stub___shmat) 9671#if defined (__stub_shmat) || defined (__stub___shmat)
6650choke me 9672choke me
6651#else 9673#else
6652shmat(); 9674char (*f) () = shmat;
6653#endif 9675#endif
9676#ifdef __cplusplus
9677}
9678#endif
6654 9679
9680int
9681main ()
9682{
9683return f != shmat;
9684 ;
6655; return 0; } 9685 return 0;
6656EOF 9686}
6657if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -rf conftest* 9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
6659 eval "ac_cv_func_shmat=yes" 9709 ac_cv_func_shmat=yes
6660else 9710else
6661 echo "configure: failed program was:" >&5 9711 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 9712sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -rf conftest* 9713
6664 eval "ac_cv_func_shmat=no" 9714ac_cv_func_shmat=no
6665fi 9715fi
6666rm -f conftest* 9716rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
6667fi 9718fi
6668 9719echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 9720echo "${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 9721
6676 if test $ac_cv_func_shmat = no; then 9722 if test $ac_cv_func_shmat = no; then
9723 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 9724echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6678echo "configure:6679: checking for shmat in -lipc" >&5 9725if 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 9726 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else 9727else
6683 ac_save_LIBS="$LIBS" 9728 ac_check_lib_save_LIBS=$LIBS
6684LIBS="-lipc $LIBS" 9729LIBS="-lipc $LIBS"
6685cat > conftest.$ac_ext <<EOF 9730cat >conftest.$ac_ext <<_ACEOF
6686#line 6687 "configure" 9731/* confdefs.h. */
6687#include "confdefs.h" 9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h. */
9736
6688/* Override any gcc2 internal prototype to avoid an error. */ 9737/* Override any gcc2 internal prototype to avoid an error. */
9738#ifdef __cplusplus
9739extern "C"
9740#endif
6689/* We use char because int might match the return type of a gcc2 9741/* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */ 9742 builtin and then its argument prototype would still apply. */
6691char shmat(); 9743char shmat ();
6692 9744int
6693int main() { 9745main ()
9746{
6694shmat() 9747shmat ();
9748 ;
6695; return 0; } 9749 return 0;
6696EOF 9750}
6697if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -rf conftest* 9757 rm -f conftest.er1
6699 eval "ac_cv_lib_$ac_lib_var=yes" 9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_ipc_shmat=yes
6700else 9774else
6701 echo "configure: failed program was:" >&5 9775 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5 9776sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -rf conftest* 9777
6704 eval "ac_cv_lib_$ac_lib_var=no" 9778ac_cv_lib_ipc_shmat=no
6705fi 9779fi
6706rm -f conftest* 9780rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
6707LIBS="$ac_save_LIBS" 9782LIBS=$ac_check_lib_save_LIBS
6708
6709fi 9783fi
6710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9784echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6711 echo "$ac_t""yes" 1>&6 9785echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9786if test $ac_cv_lib_ipc_shmat = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 9787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6713else
6714 echo "$ac_t""no" 1>&6
6715fi 9788fi
6716 9789
6717 fi 9790 fi
6718 fi 9791 fi
6719 9792
6720 # Check for libraries that X11R6 Xt/Xaw programs need. 9793 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS" 9794 ac_save_LDFLAGS=$LDFLAGS
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 9795 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 9796 # 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 9797 # 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. 9798 # 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 9799 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable. 9800 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 9801 # John Interrante, Karl Berry
9802 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 9803echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5 9804if 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 9805 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else 9806else
6735 ac_save_LIBS="$LIBS" 9807 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9808LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737cat > conftest.$ac_ext <<EOF 9809cat >conftest.$ac_ext <<_ACEOF
6738#line 6739 "configure" 9810/* confdefs.h. */
6739#include "confdefs.h" 9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815
6740/* Override any gcc2 internal prototype to avoid an error. */ 9816/* Override any gcc2 internal prototype to avoid an error. */
9817#ifdef __cplusplus
9818extern "C"
9819#endif
6741/* We use char because int might match the return type of a gcc2 9820/* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */ 9821 builtin and then its argument prototype would still apply. */
6743char IceConnectionNumber(); 9822char IceConnectionNumber ();
6744 9823int
6745int main() { 9824main ()
9825{
6746IceConnectionNumber() 9826IceConnectionNumber ();
9827 ;
6747; return 0; } 9828 return 0;
6748EOF 9829}
6749if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9830_ACEOF
9831rm -f conftest.$ac_objext conftest$ac_exeext
9832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -rf conftest* 9836 rm -f conftest.er1
6751 eval "ac_cv_lib_$ac_lib_var=yes" 9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_ICE_IceConnectionNumber=yes
6752else 9853else
6753 echo "configure: failed program was:" >&5 9854 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5 9855sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -rf conftest* 9856
6756 eval "ac_cv_lib_$ac_lib_var=no" 9857ac_cv_lib_ICE_IceConnectionNumber=no
6757fi 9858fi
6758rm -f conftest* 9859rm -f conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
6759LIBS="$ac_save_LIBS" 9861LIBS=$ac_check_lib_save_LIBS
6760
6761fi 9862fi
6762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9863echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6763 echo "$ac_t""yes" 1>&6 9864echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9865if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 9866 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6765else
6766 echo "$ac_t""no" 1>&6
6767fi 9867fi
6768 9868
6769 LDFLAGS="$ac_save_LDFLAGS" 9869 LDFLAGS=$ac_save_LDFLAGS
6770 9870
6771fi 9871fi
6772 9872
6773 9873
6774 9874
6775if test x$support_xpm = xyes; then 9875if test x$support_xpm = xyes; then
6776 9876
6777 9877
6778 9878
6779# Initialize some more variables set by options. 9879# Initialize some more variables set by options.
6780# The variables have the same names as the options, with 9880# The variables have the same names as the options, with
6781# dashes changed to underlines. 9881# dashes changed to underlines.
6782 9882
6783# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 9883# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6784# paths, otherwise set no_xpm=yes. 9884# paths, otherwise set no_xpm=yes.
6785# Uses ac_ vars as temps to allow command line to override cache and checks. 9885# Uses ac_ vars as temps to allow command line to override cache and checks.
9886echo "$as_me:$LINENO: checking for libXpm" >&5
6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6 9887echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6787echo "configure:6788: checking for libXpm" >&5 9888
6788 9889
6789# Check whether --with-xpm_includes or --without-xpm_includes was given. 9890# Check whether --with-xpm_includes or --without-xpm_includes was given.
6790if test "${with_xpm_includes+set}" = set; then 9891if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes" 9892 withval="$with_xpm_includes"
6792 xpm_includes="$withval" 9893 xpm_includes="$withval"
6793else 9894else
6794 xpm_includes=NO 9895 xpm_includes=NO
6795fi 9896fi;
6796 9897
6797# Check whether --with-xpm_library or --without-xpm_library was given. 9898# Check whether --with-xpm_library or --without-xpm_library was given.
6798if test "${with_xpm_library+set}" = set; then 9899if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library" 9900 withval="$with_xpm_library"
6800 xpm_libraries="$withval" 9901 xpm_libraries="$withval"
6801else 9902else
6802 xpm_libraries=NO 9903 xpm_libraries=NO
6803fi 9904fi;
6804
6805 9905
6806# --without-xpm overrides everything else, but does not touch the cache. 9906# --without-xpm overrides everything else, but does not touch the cache.
9907
6807# Check whether --with-xpm or --without-xpm was given. 9908# Check whether --with-xpm or --without-xpm was given.
6808if test "${with_xpm+set}" = set; then 9909if test "${with_xpm+set}" = set; then
6809 withval="$with_xpm" 9910 withval="$with_xpm"
6810 : 9911
6811fi 9912fi;
6812
6813if test "$with_xpm" = no; then 9913if test "$with_xpm" = no; then
6814 have_xpm=disabled 9914 have_xpm=disabled
6815else 9915else
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 9916 if test "${ac_cv_have_xpm+set}" = set; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 9917 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else 9918else
6819 9919
6820 vt_xpm_include_X11=no 9920 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then 9921 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes 9922 vt_xpm_includes=$xpm_includes
6823 else 9923 else
6824 vt_xpm_includes=NO 9924 vt_xpm_includes=NO
6834 9934
6835ac_save_CPPFLAGS="$CPPFLAGS" 9935ac_save_CPPFLAGS="$CPPFLAGS"
6836CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9936CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6837 9937
6838 # First, try using that file with no special directory specified. 9938 # First, try using that file with no special directory specified.
6839cat > conftest.$ac_ext <<EOF 9939cat >conftest.$ac_ext <<_ACEOF
6840#line 6841 "configure" 9940/* confdefs.h. */
6841#include "confdefs.h" 9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
6842#include <X11/xpm.h> 9945#include <X11/xpm.h>
6843EOF 9946_ACEOF
6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9947if { (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; } 9948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev/null; then
9955 if test -s conftest.err; then
9956 ac_cpp_err=$ac_c_preproc_warn_flag
9957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9958 else
9959 ac_cpp_err=
9960 fi
9961else
9962 ac_cpp_err=yes
9963fi
6847if test -z "$ac_err"; then 9964if test -z "$ac_cpp_err"; then
6848 rm -rf conftest*
6849 # We can compile using X headers with no special include directory. 9965 # We can compile using X headers with no special include directory.
6850vt_xpm_includes= 9966vt_xpm_includes=
6851vt_xpm_include_X11=yes 9967vt_xpm_include_X11=yes
6852else 9968else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5 9969 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5 9970sed 's/^/| /' conftest.$ac_ext >&5
6856 rm -rf conftest* 9971
6857 CPPFLAGS="$ac_save_CPPFLAGS" 9972 CPPFLAGS="$ac_save_CPPFLAGS"
6858# Look for the header file in a standard set of common directories. 9973# Look for the header file in a standard set of common directories.
6859 for ac_dir in \ 9974 for ac_dir in \
6860 /usr/X11/include \ 9975 /usr/X11/include \
6861 /usr/X11R6/include \ 9976 /usr/X11R6/include \
6902 break 10017 break
6903 fi 10018 fi
6904 fi 10019 fi
6905 done 10020 done
6906fi 10021fi
6907rm -f conftest* 10022rm -f conftest.err conftest.$ac_ext
6908fi 10023fi
6909 10024
6910if test "$vt_xpm_libraries" = NO; then 10025if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries. 10026 # Check for the libraries.
6912 10027
6913 # See if we find them without any special options. 10028 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently. 10029 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS" 10030 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10031 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917cat > conftest.$ac_ext <<EOF 10032cat >conftest.$ac_ext <<_ACEOF
6918#line 6919 "configure" 10033/* confdefs.h. */
6919#include "confdefs.h" 10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
6920 10038
6921int main() { 10039int
10040main ()
10041{
6922XpmReadFileToPixmap() 10042XpmReadFileToPixmap()
10043 ;
6923; return 0; } 10044 return 0;
6924EOF 10045}
6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -rf conftest* 10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
6927 LIBS="$ac_save_LIBS" 10068 LIBS="$ac_save_LIBS"
6928# We can link libXpm with no special library path. 10069# We can link libXpm with no special library path.
6929vt_xpm_libraries= 10070vt_xpm_libraries=
6930else 10071else
6931 echo "configure: failed program was:" >&5 10072 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 10073sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -rf conftest* 10074
6934 LIBS="$ac_save_LIBS" 10075LIBS="$ac_save_LIBS"
6935# First see if replacing the include by lib works. 10076# First see if replacing the include by lib works.
6936for ac_dir in \ 10077for ac_dir in \
6937 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10078 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6938 /usr/X11/lib \ 10079 /usr/X11/lib \
6939 /usr/X11R6/lib \ 10080 /usr/X11R6/lib \
6976 break 2 10117 break 2
6977 fi 10118 fi
6978 done 10119 done
6979done 10120done
6980fi 10121fi
6981rm -f conftest* 10122rm -f conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
6982fi 10124fi
6983 10125
6984 10126
6985 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10127 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6986 ac_cv_have_xpm="have_xpm=no" 10128 ac_cv_have_xpm="have_xpm=no"
6992fi 10134fi
6993 eval "$ac_cv_have_xpm" 10135 eval "$ac_cv_have_xpm"
6994fi 10136fi
6995 10137
6996if test "$have_xpm" != yes; then 10138if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6 10139 echo "$as_me:$LINENO: result: $have_xpm" >&5
10140echo "${ECHO_T}$have_xpm" >&6
6998 no_xpm=yes 10141 no_xpm=yes
6999else 10142else
7000 if test "$xpm_includes" != NO; then 10143 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then 10144 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then 10145 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes 10146 vt_xpm_include_X11=yes
7004 fi 10147 fi
7005 else 10148 else
7006 vt_xpm_include_X11=no 10149 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then 10150 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF 10151 cat >conftest.$ac_ext <<_ACEOF
7009#line 7010 "configure" 10152/* confdefs.h. */
7010#include "confdefs.h" 10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h. */
7011#include <X11/xpm.h> 10157#include <X11/xpm.h>
7012EOF 10158_ACEOF
7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10159if { (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; } 10160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null; then
10167 if test -s conftest.err; then
10168 ac_cpp_err=$ac_c_preproc_warn_flag
10169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10170 else
10171 ac_cpp_err=
10172 fi
10173else
10174 ac_cpp_err=yes
10175fi
7016if test -z "$ac_err"; then 10176if test -z "$ac_cpp_err"; then
7017 rm -rf conftest*
7018 vt_xpm_include_X11=yes 10177 vt_xpm_include_X11=yes
7019else 10178else
7020 echo "$ac_err" >&5
7021 echo "configure: failed program was:" >&5 10179 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5 10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
7023fi 10183fi
7024rm -f conftest* 10184rm -f conftest.err conftest.$ac_ext
7025 else 10185 else
7026 if test -r "$xpm_includes/X11/xpm.h"; then 10186 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes 10187 vt_xpm_include_X11=yes
7028 fi 10188 fi
7029 fi 10189 fi
7036 # Update the cache value to reflect the command line values. 10196 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \ 10197 ac_cv_have_xpm="have_xpm=yes \
7038 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10198 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7039 vt_xpm_include_X11=$vt_xpm_include_X11" 10199 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 eval "$ac_cv_have_xpm" 10200 eval "$ac_cv_have_xpm"
10201 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 10202echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7042 if test -n "$vt_xpm_includes"; then 10203 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10204 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7044 fi 10205 fi
7045 if test -n "$vt_xpm_includes"; then 10206 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes" 10207 XPM_CFLAGS="-I$vt_xpm_includes"
7048 XPM_LIBS="-lXpm" 10209 XPM_LIBS="-lXpm"
7049 if test -n "$vt_xpm_libraries"; then 10210 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10211 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7051 fi 10212 fi
7052 if test "x$vt_xpm_include_X11" = xyes; then 10213 if test "x$vt_xpm_include_X11" = xyes; then
10214
7053 cat >> confdefs.h <<\EOF 10215cat >>confdefs.h <<\_ACEOF
7054#define XPM_INC_X11 1 10216#define XPM_INC_X11 1
7055EOF 10217_ACEOF
7056 10218
7057 fi 10219 fi
7058fi 10220fi
7059 10221
7060 10222
7064 if test x$no_xpm = xyes; then 10226 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification 10227 support_xpm=needsmanualspecification
7066 fi 10228 fi
7067fi 10229fi
7068 10230
10231echo "$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 10232echo $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 10233if test "${ac_cv_header_sys_wait_h+set}" = set; then
7072 echo $ac_n "(cached) $ac_c" 1>&6 10234 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else 10235else
7074 cat > conftest.$ac_ext <<EOF 10236 cat >conftest.$ac_ext <<_ACEOF
7075#line 7076 "configure" 10237/* confdefs.h. */
7076#include "confdefs.h" 10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
7077#include <sys/types.h> 10242#include <sys/types.h>
7078#include <sys/wait.h> 10243#include <sys/wait.h>
7079#ifndef WEXITSTATUS 10244#ifndef WEXITSTATUS
7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10245# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7081#endif 10246#endif
7082#ifndef WIFEXITED 10247#ifndef WIFEXITED
7083#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10248# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7084#endif 10249#endif
7085int main() { 10250
10251int
10252main ()
10253{
7086int s; 10254 int s;
7087wait (&s); 10255 wait (&s);
7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10257 ;
7089; return 0; } 10258 return 0;
7090EOF 10259}
7091if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10260_ACEOF
10261rm -f conftest.$ac_objext
10262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -rf conftest* 10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
7093 ac_cv_header_sys_wait_h=yes 10282 ac_cv_header_sys_wait_h=yes
7094else 10283else
7095 echo "configure: failed program was:" >&5 10284 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 10285sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -rf conftest* 10286
7098 ac_cv_header_sys_wait_h=no 10287ac_cv_header_sys_wait_h=no
7099fi 10288fi
7100rm -f conftest* 10289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi 10290fi
7102 10291echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7103echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10292echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7104if test $ac_cv_header_sys_wait_h = yes; then 10293if test $ac_cv_header_sys_wait_h = yes; then
10294
7105 cat >> confdefs.h <<\EOF 10295cat >>confdefs.h <<\_ACEOF
7106#define HAVE_SYS_WAIT_H 1 10296#define HAVE_SYS_WAIT_H 1
7107EOF 10297_ACEOF
7108 10298
7109fi 10299fi
7110 10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
7111for ac_hdr in \ 10320for ac_header in \
7112 assert.h \ 10321 assert.h \
7113 fcntl.h \ 10322 fcntl.h \
7114 grp.h \ 10323 grp.h \
7115 libc.h \ 10324 libc.h \
7116 lastlog.h \ 10325 lastlog.h \
7128 utmp.h \ 10337 utmp.h \
7129 utmpx.h \ 10338 utmpx.h \
7130 stdint.h \ 10339 stdint.h \
7131 10340
7132do 10341do
7133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344 echo "$as_me:$LINENO: checking for $ac_header" >&5
7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135echo "configure:7136: checking for $ac_hdr" >&5 10346if 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 10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10348fi
10349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138else 10351else
10352 # Is the header compilable?
10353echo "$as_me:$LINENO: checking $ac_header usability" >&5
10354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat > conftest.$ac_ext <<EOF 10355cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 10356/* confdefs.h. */
7141#include "confdefs.h" 10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361$ac_includes_default
7142#include <$ac_hdr> 10362#include <$ac_header>
7143EOF 10363_ACEOF
7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10364rm -f conftest.$ac_objext
7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10366 (eval $ac_compile) 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest.$ac_objext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_header_compiler=yes
10386else
10387 echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390ac_header_compiler=no
10391fi
10392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10394echo "${ECHO_T}$ac_header_compiler" >&6
10395
10396# Is the header present?
10397echo "$as_me:$LINENO: checking $ac_header presence" >&5
10398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10399cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405#include <$ac_header>
10406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_c_preproc_warn_flag
10417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10418 else
10419 ac_cpp_err=
10420 fi
10421else
10422 ac_cpp_err=yes
10423fi
7147if test -z "$ac_err"; then 10424if test -z "$ac_cpp_err"; then
7148 rm -rf conftest* 10425 ac_header_preproc=yes
7149 eval "ac_cv_header_$ac_safe=yes"
7150else 10426else
7151 echo "$ac_err" >&5
7152 echo "configure: failed program was:" >&5 10427 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 10428sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -rf conftest* 10429
7155 eval "ac_cv_header_$ac_safe=no" 10430 ac_header_preproc=no
7156fi 10431fi
7157rm -f conftest* 10432rm -f conftest.err conftest.$ac_ext
10433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10434echo "${ECHO_T}$ac_header_preproc" >&6
10435
10436# So? What about this header?
10437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 yes:no: )
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10443 ac_header_preproc=yes
10444 ;;
10445 no:yes:* )
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10458 (
10459 cat <<\_ASBOX
10460## ------------------------------------------ ##
10461## Report this to the AC_PACKAGE_NAME lists. ##
10462## ------------------------------------------ ##
10463_ASBOX
10464 ) |
10465 sed "s/^/$as_me: WARNING: /" >&2
10466 ;;
10467esac
10468echo "$as_me:$LINENO: checking for $ac_header" >&5
10469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10470if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 eval "$as_ac_Header=\$ac_header_preproc"
7158fi 10474fi
7159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "$ac_t""yes" 1>&6 10476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10477
10478fi
10479if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >> confdefs.h <<EOF 10480 cat >>confdefs.h <<_ACEOF
7163#define $ac_tr_hdr 1 10481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164EOF 10482_ACEOF
7165 10483
7166else
7167 echo "$ac_t""no" 1>&6
7168fi 10484fi
10485
7169done 10486done
7170 10487
7171 10488
10489echo "$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 10490echo $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 10491if test "${ac_cv_header_time+set}" = set; then
7175 echo $ac_n "(cached) $ac_c" 1>&6 10492 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else 10493else
7177 cat > conftest.$ac_ext <<EOF 10494 cat >conftest.$ac_ext <<_ACEOF
7178#line 7179 "configure" 10495/* confdefs.h. */
7179#include "confdefs.h" 10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h. */
7180#include <sys/types.h> 10500#include <sys/types.h>
7181#include <sys/time.h> 10501#include <sys/time.h>
7182#include <time.h> 10502#include <time.h>
7183int main() { 10503
7184struct tm *tp; 10504int
10505main ()
10506{
10507if ((struct tm *) 0)
10508return 0;
10509 ;
7185; return 0; } 10510 return 0;
7186EOF 10511}
7187if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10512_ACEOF
10513rm -f conftest.$ac_objext
10514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -rf conftest* 10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
7189 ac_cv_header_time=yes 10534 ac_cv_header_time=yes
7190else 10535else
7191 echo "configure: failed program was:" >&5 10536 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 10537sed 's/^/| /' conftest.$ac_ext >&5
7193 rm -rf conftest* 10538
7194 ac_cv_header_time=no 10539ac_cv_header_time=no
7195fi 10540fi
7196rm -f conftest* 10541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi 10542fi
7198 10543echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7199echo "$ac_t""$ac_cv_header_time" 1>&6 10544echo "${ECHO_T}$ac_cv_header_time" >&6
7200if test $ac_cv_header_time = yes; then 10545if test $ac_cv_header_time = yes; then
10546
7201 cat >> confdefs.h <<\EOF 10547cat >>confdefs.h <<\_ACEOF
7202#define TIME_WITH_SYS_TIME 1 10548#define TIME_WITH_SYS_TIME 1
7203EOF 10549_ACEOF
7204 10550
7205fi 10551fi
7206 10552
7207 10553
10554echo "$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 10555echo $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 10556if test "${rxvt_cv_header_sysioctl+set}" = set; then
7211 echo $ac_n "(cached) $ac_c" 1>&6 10557 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else 10558else
7213 cat > conftest.$ac_ext <<EOF 10559 cat >conftest.$ac_ext <<_ACEOF
7214#line 7215 "configure" 10560/* confdefs.h. */
7215#include "confdefs.h" 10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
7216#include <stdio.h> 10565#include <stdio.h>
7217#include <sys/ioctl.h> 10566#include <sys/ioctl.h>
7218#ifdef HAVE_TERMIOS_H 10567#ifdef HAVE_TERMIOS_H
7219#include <termios.h> 10568#include <termios.h>
7220#endif 10569#endif
7221int main() { 10570int
10571main ()
10572{
7222int a = ECHO; 10573int a = ECHO;
10574 ;
7223; return 0; } 10575 return 0;
7224EOF 10576}
7225if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -rf conftest* 10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
7227 rxvt_cv_header_sysioctl=yes 10599 rxvt_cv_header_sysioctl=yes
7228else 10600else
7229 echo "configure: failed program was:" >&5 10601 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 10602sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest* 10603
7232 rxvt_cv_header_sysioctl=no 10604rxvt_cv_header_sysioctl=no
7233fi 10605fi
7234rm -f conftest* 10606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi 10607fi
7236 10608echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7237echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10609echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7238 10610
7239if test -n "$GCC"; then 10611if test -n "$GCC"; then
7240 LDARG="-Wl," 10612 LDARG="-Wl,"
7241else 10613else
7242 LDARG="" 10614 LDARG=""
7245 10617
7246ac_save_CFLAGS=$CFLAGS 10618ac_save_CFLAGS=$CFLAGS
7247ac_save_LIBS=$LIBS 10619ac_save_LIBS=$LIBS
7248CFLAGS="$CFLAGS $X_CFLAGS" 10620CFLAGS="$CFLAGS $X_CFLAGS"
7249LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10621LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10622echo "$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 10623echo $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 10624if test "${rxvt_cv_rpath+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 10625 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 10626else
7255 if test "$cross_compiling" = yes; then 10627 if test "$cross_compiling" = yes; then
10628 { 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 10629echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7257else 10630else
7258 cat > conftest.$ac_ext <<EOF 10631 cat >conftest.$ac_ext <<_ACEOF
7259#line 7260 "configure" 10632/* confdefs.h. */
7260#include "confdefs.h" 10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
7261 10637
7262main() 10638main()
7263{ 10639{
7264 exit(0); 10640 exit(0);
7265 (void) XOpenDisplay("foobar"); 10641 (void) XOpenDisplay("foobar");
7266} 10642}
7267EOF 10643_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 10644rm -f conftest$ac_exeext
7269then 10645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
7270 rxvt_cv_rpath=yes 10655 rxvt_cv_rpath=yes
7271else 10656else
10657 echo "$as_me: program exited with status $ac_status" >&5
7272 echo "configure: failed program was:" >&5 10658echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 10659sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -fr conftest* 10660
10661( exit $ac_status )
7275 rxvt_cv_rpath=no 10662rxvt_cv_rpath=no
7276fi 10663fi
7277rm -fr conftest* 10664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278fi 10665fi
7279
7280fi 10666fi
7281 10667echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7282echo "$ac_t""$rxvt_cv_rpath" 1>&6 10668echo "${ECHO_T}$rxvt_cv_rpath" >&6
7283if test x$rxvt_cv_rpath != xyes; then 10669if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 10670 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"` 10671 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10672 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 10673echo $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 10674if test "${rxvt_cv_R+set}" = set; then
7289 echo $ac_n "(cached) $ac_c" 1>&6 10675 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else 10676else
7291 if test "$cross_compiling" = yes; then 10677 if test "$cross_compiling" = yes; then
7292 rxvt_cv_R=no 10678 rxvt_cv_R=no
7293else 10679else
7294 cat > conftest.$ac_ext <<EOF 10680 cat >conftest.$ac_ext <<_ACEOF
7295#line 7296 "configure" 10681/* confdefs.h. */
7296#include "confdefs.h" 10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
7297 10686
7298main() 10687main()
7299{ 10688{
7300 exit(0); 10689 exit(0);
7301 (void) XOpenDisplay("foobar"); 10690 (void) XOpenDisplay("foobar");
7302} 10691}
7303EOF 10692_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 10693rm -f conftest$ac_exeext
7305then 10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
7306 rxvt_cv_R=yes 10704 rxvt_cv_R=yes
7307else 10705else
10706 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "configure: failed program was:" >&5 10707echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5 10708sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -fr conftest* 10709
10710( exit $ac_status )
7311 rxvt_cv_R=no 10711rxvt_cv_R=no
7312fi 10712fi
7313rm -fr conftest* 10713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7314fi 10714fi
7315
7316fi 10715fi
7317 10716echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7318echo "$ac_t""$rxvt_cv_R" 1>&6 10717echo "${ECHO_T}$rxvt_cv_R" >&6
7319 if test x$rxvt_cv_R != xyes; then 10718 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10719 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7321 fi 10720 fi
7322fi 10721fi
7323 10722
10723echo "$as_me:$LINENO: checking for XPointer" >&5
7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6 10724echo $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 10725if test "${rxvt_cv_xpointer+set}" = set; then
7327 echo $ac_n "(cached) $ac_c" 1>&6 10726 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else 10727else
7329 cat > conftest.$ac_ext <<EOF 10728 cat >conftest.$ac_ext <<_ACEOF
7330#line 7331 "configure" 10729/* confdefs.h. */
7331#include "confdefs.h" 10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
7332#include <X11/Xlib.h> 10734#include <X11/Xlib.h>
7333int main() { 10735int
10736main ()
10737{
7334XPointer dummy; 10738XPointer dummy;
10739 ;
7335; return 0; } 10740 return 0;
7336EOF 10741}
7337if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10742_ACEOF
10743rm -f conftest.$ac_objext
10744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -rf conftest* 10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
7339 rxvt_cv_xpointer=yes 10764 rxvt_cv_xpointer=yes
7340else 10765else
7341 echo "configure: failed program was:" >&5 10766 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5 10767sed 's/^/| /' conftest.$ac_ext >&5
7343 rm -rf conftest* 10768
7344 rxvt_cv_xpointer=no 10769rxvt_cv_xpointer=no
7345fi 10770fi
7346rm -f conftest* 10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi 10772fi
7348 10773echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7349echo "$ac_t""$rxvt_cv_xpointer" 1>&6 10774echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7350if test x$rxvt_cv_xpointer = xyes; then 10775if test x$rxvt_cv_xpointer = xyes; then
10776
7351 cat >> confdefs.h <<\EOF 10777cat >>confdefs.h <<\_ACEOF
7352#define HAVE_XPOINTER 1 10778#define HAVE_XPOINTER 1
7353EOF 10779_ACEOF
7354 10780
7355fi 10781fi
7356LIBS=$ac_save_LIBS 10782LIBS=$ac_save_LIBS
7357CFLAGS=$ac_save_CFLAGS 10783CFLAGS=$ac_save_CFLAGS
7358 10784
7359 10785
7360echo $ac_n "checking for working const""... $ac_c" 1>&6 10786echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361echo "configure:7362: checking for working const" >&5 10787echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 10788if test "${ac_cv_c_const+set}" = set; then
7363 echo $ac_n "(cached) $ac_c" 1>&6 10789 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else 10790else
7365 cat > conftest.$ac_ext <<EOF 10791 cat >conftest.$ac_ext <<_ACEOF
7366#line 7367 "configure" 10792/* confdefs.h. */
7367#include "confdefs.h" 10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
7368 10797
7369int main() { 10798int
7370 10799main ()
10800{
10801/* FIXME: Include the comments suggested by Paul. */
10802#ifndef __cplusplus
7371/* Ultrix mips cc rejects this. */ 10803 /* Ultrix mips cc rejects this. */
7372typedef int charset[2]; const charset x; 10804 typedef int charset[2];
10805 const charset x;
7373/* SunOS 4.1.1 cc rejects this. */ 10806 /* SunOS 4.1.1 cc rejects this. */
7374char const *const *ccp; 10807 char const *const *ccp;
7375char **p; 10808 char **p;
7376/* NEC SVR4.0.2 mips cc rejects this. */ 10809 /* NEC SVR4.0.2 mips cc rejects this. */
7377struct point {int x, y;}; 10810 struct point {int x, y;};
7378static struct point const zero = {0,0}; 10811 static struct point const zero = {0,0};
7379/* AIX XL C 1.02.0.0 rejects this. 10812 /* 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 10813 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 */ 10814 an arm of an if-expression whose if-part is not a constant
10815 expression */
7382const char *g = "string"; 10816 const char *g = "string";
7383ccp = &g + (g ? g-g : 0); 10817 ccp = &g + (g ? g-g : 0);
7384/* HPUX 7.0 cc rejects these. */ 10818 /* HPUX 7.0 cc rejects these. */
7385++ccp; 10819 ++ccp;
7386p = (char**) ccp; 10820 p = (char**) ccp;
7387ccp = (char const *const *) p; 10821 ccp = (char const *const *) p;
7388{ /* SCO 3.2v4 cc rejects this. */ 10822 { /* SCO 3.2v4 cc rejects this. */
7389 char *t; 10823 char *t;
7390 char const *s = 0 ? (char *) 0 : (char const *) 0; 10824 char const *s = 0 ? (char *) 0 : (char const *) 0;
7391 10825
7392 *t++ = 0; 10826 *t++ = 0;
10827 }
10828 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10829 int x[] = {25, 17};
10830 const int *foo = &x[0];
10831 ++foo;
10832 }
10833 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10834 typedef const int *iptr;
10835 iptr p = 0;
10836 ++p;
10837 }
10838 { /* AIX XL C 1.02.0.0 rejects this saying
10839 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10840 struct s { int j; const int *ap[3]; };
10841 struct s *b; b->j = 5;
10842 }
10843 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10844 const int foo = 10;
10845 }
10846#endif
10847
10848 ;
10849 return 0;
7393} 10850}
7394{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10851_ACEOF
7395 int x[] = {25, 17}; 10852rm -f conftest.$ac_objext
7396 const int *foo = &x[0]; 10853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 ++foo; 10854 (eval $ac_compile) 2>conftest.er1
7398} 10855 ac_status=$?
7399{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10856 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* 10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
7417 ac_cv_c_const=yes 10873 ac_cv_c_const=yes
7418else 10874else
7419 echo "configure: failed program was:" >&5 10875 echo "$as_me: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 10876sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -rf conftest* 10877
7422 ac_cv_c_const=no 10878ac_cv_c_const=no
7423fi 10879fi
7424rm -f conftest* 10880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi 10881fi
7426 10882echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7427echo "$ac_t""$ac_cv_c_const" 1>&6 10883echo "${ECHO_T}$ac_cv_c_const" >&6
7428if test $ac_cv_c_const = no; then 10884if test $ac_cv_c_const = no; then
10885
7429 cat >> confdefs.h <<\EOF 10886cat >>confdefs.h <<\_ACEOF
7430#define const 10887#define const
7431EOF 10888_ACEOF
7432 10889
7433fi 10890fi
7434 10891
10892echo "$as_me:$LINENO: checking for inline" >&5
7435echo $ac_n "checking for inline""... $ac_c" 1>&6 10893echo $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 10894if test "${ac_cv_c_inline+set}" = set; then
7438 echo $ac_n "(cached) $ac_c" 1>&6 10895 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 10896else
7440 ac_cv_c_inline=no 10897 ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do 10898for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF 10899 cat >conftest.$ac_ext <<_ACEOF
7443#line 7444 "configure" 10900/* confdefs.h. */
7444#include "confdefs.h" 10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905#ifndef __cplusplus
10906typedef int foo_t;
10907static $ac_kw foo_t static_foo () {return 0; }
10908$ac_kw foo_t foo () {return 0; }
10909#endif
7445 10910
7446int main() { 10911_ACEOF
7447} $ac_kw foo() { 10912rm -f conftest.$ac_objext
7448; return 0; } 10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449EOF 10914 (eval $ac_compile) 2>conftest.er1
7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -rf conftest* 10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
7452 ac_cv_c_inline=$ac_kw; break 10933 ac_cv_c_inline=$ac_kw; break
7453else 10934else
7454 echo "configure: failed program was:" >&5 10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938fi
10939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10940done
10941
10942fi
10943echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10944echo "${ECHO_T}$ac_cv_c_inline" >&6
10945
10946
10947case $ac_cv_c_inline in
10948 inline | yes) ;;
10949 *)
10950 case $ac_cv_c_inline in
10951 no) ac_val=;;
10952 *) ac_val=$ac_cv_c_inline;;
10953 esac
10954 cat >>confdefs.h <<_ACEOF
10955#ifndef __cplusplus
10956#define inline $ac_val
10957#endif
10958_ACEOF
10959 ;;
10960esac
10961
10962
10963
10964echo "$as_me:$LINENO: checking for mode_t" >&5
10965echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10966if test "${ac_cv_type_mode_t+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h. */
10975$ac_includes_default
10976int
10977main ()
10978{
10979if ((mode_t *) 0)
10980 return 0;
10981if (sizeof (mode_t))
10982 return 0;
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext
10988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
7455 cat conftest.$ac_ext >&5 10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
10996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest.$ac_objext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_type_mode_t=yes
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013ac_cv_type_mode_t=no
11014fi
11015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11016fi
11017echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11018echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11019if test $ac_cv_type_mode_t = yes; then
11020 :
11021else
11022
11023cat >>confdefs.h <<_ACEOF
11024#define mode_t int
11025_ACEOF
11026
11027fi
11028
11029echo "$as_me:$LINENO: checking for pid_t" >&5
11030echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11031if test "${ac_cv_type_pid_t+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034 cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040$ac_includes_default
11041int
11042main ()
11043{
11044if ((pid_t *) 0)
11045 return 0;
11046if (sizeof (pid_t))
11047 return 0;
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052rm -f conftest.$ac_objext
11053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } &&
11067 { ac_try='test -s conftest.$ac_objext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_cv_type_pid_t=yes
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078ac_cv_type_pid_t=no
11079fi
11080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081fi
11082echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11083echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11084if test $ac_cv_type_pid_t = yes; then
11085 :
11086else
11087
11088cat >>confdefs.h <<_ACEOF
11089#define pid_t int
11090_ACEOF
11091
11092fi
11093
11094echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11095echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11096if test "${ac_cv_type_uid_t+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105#include <sys/types.h>
11106
11107_ACEOF
11108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 $EGREP "uid_t" >/dev/null 2>&1; then
11110 ac_cv_type_uid_t=yes
11111else
11112 ac_cv_type_uid_t=no
7456fi 11113fi
7457rm -f conftest* 11114rm -f conftest*
11115
11116fi
11117echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11118echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11119if test $ac_cv_type_uid_t = no; then
11120
11121cat >>confdefs.h <<\_ACEOF
11122#define uid_t int
11123_ACEOF
11124
11125
11126cat >>confdefs.h <<\_ACEOF
11127#define gid_t int
11128_ACEOF
11129
11130fi
11131
11132
11133
11134echo "$as_me:$LINENO: checking for char" >&5
11135echo $ECHO_N "checking for char... $ECHO_C" >&6
11136if test "${ac_cv_type_char+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146int
11147main ()
11148{
11149if ((char *) 0)
11150 return 0;
11151if (sizeof (char))
11152 return 0;
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_type_char=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183ac_cv_type_char=no
11184fi
11185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186fi
11187echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11188echo "${ECHO_T}$ac_cv_type_char" >&6
11189
11190echo "$as_me:$LINENO: checking size of char" >&5
11191echo $ECHO_N "checking size of char... $ECHO_C" >&6
11192if test "${ac_cv_sizeof_char+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 if test "$ac_cv_type_char" = yes; then
11196 # The cast to unsigned long works around a bug in the HP C Compiler
11197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11199 # This bug is HP SR number 8606223364.
11200 if test "$cross_compiling" = yes; then
11201 # Depending upon the size, compute the lo and hi bounds.
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_includes_default
11209int
11210main ()
11211{
11212static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11213test_array [0] = 0
11214
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext
11220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_lo=0 ac_mid=0
11241 while :; do
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249int
11250main ()
11251{
11252static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11253test_array [0] = 0
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_hi=$ac_mid; break
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285ac_lo=`expr $ac_mid + 1`
11286 if test $ac_lo -le $ac_mid; then
11287 ac_lo= ac_hi=
11288 break
11289 fi
11290 ac_mid=`expr 2 '*' $ac_mid + 1`
11291fi
11292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 done
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_includes_default
11305int
11306main ()
11307{
11308static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11309test_array [0] = 0
11310
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_hi=-1 ac_mid=-1
11337 while :; do
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344$ac_includes_default
11345int
11346main ()
11347{
11348static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11349test_array [0] = 0
11350
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_lo=$ac_mid; break
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381ac_hi=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11383 ac_lo= ac_hi=
11384 break
11385 fi
11386 ac_mid=`expr 2 '*' $ac_mid`
11387fi
11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 done
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394ac_lo= ac_hi=
11395fi
11396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397fi
11398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399# Binary search between lo and hi bounds.
11400while test "x$ac_lo" != "x$ac_hi"; do
11401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409int
11410main ()
11411{
11412static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11413test_array [0] = 0
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419rm -f conftest.$ac_objext
11420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_hi=$ac_mid
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445ac_lo=`expr '(' $ac_mid ')' + 1`
11446fi
11447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458done 11448done
7459 11449case $ac_lo in
7460fi 11450?*) ac_cv_sizeof_char=$ac_lo;;
7461 11451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7462echo "$ac_t""$ac_cv_c_inline" 1>&6 11452See \`config.log' for more details." >&5
7463case "$ac_cv_c_inline" in 11453echo "$as_me: error: cannot compute sizeof (char), 77
7464 inline | yes) ;; 11454See \`config.log' for more details." >&2;}
7465 no) cat >> confdefs.h <<\EOF 11455 { (exit 1); exit 1; }; } ;;
7466#define inline
7467EOF
7468 ;;
7469 *) cat >> confdefs.h <<EOF
7470#define inline $ac_cv_c_inline
7471EOF
7472 ;;
7473esac 11456esac
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 11457else
11458 if test "$cross_compiling" = yes; then
11459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11460See \`config.log' for more details." >&5
11461echo "$as_me: error: cannot run test program while cross compiling
11462See \`config.log' for more details." >&2;}
11463 { (exit 1); exit 1; }; }
11464else
7482 cat > conftest.$ac_ext <<EOF 11465 cat >conftest.$ac_ext <<_ACEOF
7483#line 7484 "configure" 11466/* confdefs.h. */
7484#include "confdefs.h" 11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471$ac_includes_default
11472long longval () { return (long) (sizeof (char)); }
11473unsigned long ulongval () { return (long) (sizeof (char)); }
11474#include <stdio.h>
7485#include <stdlib.h> 11475#include <stdlib.h>
7486#include <stdarg.h> 11476int
7487#include <string.h> 11477main ()
7488#include <float.h> 11478{
7489EOF 11479
7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11480 FILE *f = fopen ("conftest.val", "w");
7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11481 if (! f)
7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11482 exit (1);
7493if test -z "$ac_err"; then 11483 if (((long) (sizeof (char))) < 0)
7494 rm -rf conftest* 11484 {
7495 ac_cv_header_stdc=yes 11485 long i = longval ();
11486 if (i != ((long) (sizeof (char))))
11487 exit (1);
11488 fprintf (f, "%ld\n", i);
11489 }
7496else 11490 else
7497 echo "$ac_err" >&5 11491 {
11492 unsigned long i = ulongval ();
11493 if (i != ((long) (sizeof (char))))
11494 exit (1);
11495 fprintf (f, "%lu\n", i);
11496 }
11497 exit (ferror (f) || fclose (f) != 0);
11498
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest$ac_exeext
11504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_sizeof_char=`cat conftest.val`
11515else
11516 echo "$as_me: program exited with status $ac_status" >&5
7498 echo "configure: failed program was:" >&5 11517echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5 11518sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -rf conftest* 11519
7501 ac_cv_header_stdc=no 11520( exit $ac_status )
11521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11522See \`config.log' for more details." >&5
11523echo "$as_me: error: cannot compute sizeof (char), 77
11524See \`config.log' for more details." >&2;}
11525 { (exit 1); exit 1; }; }
7502fi 11526fi
11527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11528fi
11529fi
7503rm -f conftest* 11530rm -f conftest.val
11531else
11532 ac_cv_sizeof_char=0
11533fi
11534fi
11535echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11536echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11537cat >>confdefs.h <<_ACEOF
11538#define SIZEOF_CHAR $ac_cv_sizeof_char
11539_ACEOF
7504 11540
11541
11542echo "$as_me:$LINENO: checking for short" >&5
11543echo $ECHO_N "checking for short... $ECHO_C" >&6
11544if test "${ac_cv_type_short+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h. */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h. */
11553$ac_includes_default
11554int
11555main ()
11556{
11557if ((short *) 0)
11558 return 0;
11559if (sizeof (short))
11560 return 0;
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext
11566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_type_short=yes
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591ac_cv_type_short=no
11592fi
11593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594fi
11595echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11596echo "${ECHO_T}$ac_cv_type_short" >&6
11597
11598echo "$as_me:$LINENO: checking size of short" >&5
11599echo $ECHO_N "checking size of short... $ECHO_C" >&6
11600if test "${ac_cv_sizeof_short+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602else
7505if test $ac_cv_header_stdc = yes; then 11603 if test "$ac_cv_type_short" = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11604 # The cast to unsigned long works around a bug in the HP C Compiler
11605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11607 # This bug is HP SR number 8606223364.
11608 if test "$cross_compiling" = yes; then
11609 # Depending upon the size, compute the lo and hi bounds.
7507cat > conftest.$ac_ext <<EOF 11610cat >conftest.$ac_ext <<_ACEOF
7508#line 7509 "configure" 11611/* confdefs.h. */
7509#include "confdefs.h" 11612_ACEOF
7510#include <string.h> 11613cat confdefs.h >>conftest.$ac_ext
7511EOF 11614cat >>conftest.$ac_ext <<_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11615/* end confdefs.h. */
7513 egrep "memchr" >/dev/null 2>&1; then 11616$ac_includes_default
7514 : 11617int
7515else 11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -rf conftest* 11632 rm -f conftest.er1
7517 ac_cv_header_stdc=no 11633 cat conftest.err >&5
7518fi 11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_lo=0 ac_mid=0
11649 while :; do
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656$ac_includes_default
11657int
11658main ()
11659{
11660static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11661test_array [0] = 0
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
7519rm -f conftest* 11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_hi=$ac_mid; break
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
7520 11692
11693ac_lo=`expr $ac_mid + 1`
11694 if test $ac_lo -le $ac_mid; then
11695 ac_lo= ac_hi=
11696 break
11697 fi
11698 ac_mid=`expr 2 '*' $ac_mid + 1`
7521fi 11699fi
11700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701 done
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
7522 11705
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 11706cat >conftest.$ac_ext <<_ACEOF
7526#line 7527 "configure" 11707/* confdefs.h. */
7527#include "confdefs.h" 11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_hi=-1 ac_mid=-1
11745 while :; do
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752$ac_includes_default
11753int
11754main ()
11755{
11756static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11757test_array [0] = 0
11758
11759 ;
11760 return 0;
11761}
11762_ACEOF
11763rm -f conftest.$ac_objext
11764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_lo=$ac_mid; break
11785else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789ac_hi=`expr '(' $ac_mid ')' - 1`
11790 if test $ac_mid -le $ac_hi; then
11791 ac_lo= ac_hi=
11792 break
11793 fi
11794 ac_mid=`expr 2 '*' $ac_mid`
11795fi
11796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 done
11798else
11799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802ac_lo= ac_hi=
11803fi
11804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805fi
11806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807# Binary search between lo and hi bounds.
11808while test "x$ac_lo" != "x$ac_hi"; do
11809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816$ac_includes_default
11817int
11818main ()
11819{
11820static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11821test_array [0] = 0
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_hi=$ac_mid
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853ac_lo=`expr '(' $ac_mid ')' + 1`
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856done
11857case $ac_lo in
11858?*) ac_cv_sizeof_short=$ac_lo;;
11859'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11860See \`config.log' for more details." >&5
11861echo "$as_me: error: cannot compute sizeof (short), 77
11862See \`config.log' for more details." >&2;}
11863 { (exit 1); exit 1; }; } ;;
11864esac
11865else
11866 if test "$cross_compiling" = yes; then
11867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11868See \`config.log' for more details." >&5
11869echo "$as_me: error: cannot run test program while cross compiling
11870See \`config.log' for more details." >&2;}
11871 { (exit 1); exit 1; }; }
11872else
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879$ac_includes_default
11880long longval () { return (long) (sizeof (short)); }
11881unsigned long ulongval () { return (long) (sizeof (short)); }
11882#include <stdio.h>
7528#include <stdlib.h> 11883#include <stdlib.h>
7529EOF 11884int
7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11885main ()
7531 egrep "free" >/dev/null 2>&1; then 11886{
7532 : 11887
11888 FILE *f = fopen ("conftest.val", "w");
11889 if (! f)
11890 exit (1);
11891 if (((long) (sizeof (short))) < 0)
11892 {
11893 long i = longval ();
11894 if (i != ((long) (sizeof (short))))
11895 exit (1);
11896 fprintf (f, "%ld\n", i);
11897 }
7533else 11898 else
7534 rm -rf conftest* 11899 {
7535 ac_cv_header_stdc=no 11900 unsigned long i = ulongval ();
11901 if (i != ((long) (sizeof (short))))
11902 exit (1);
11903 fprintf (f, "%lu\n", i);
11904 }
11905 exit (ferror (f) || fclose (f) != 0);
11906
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_sizeof_short=`cat conftest.val`
11923else
11924 echo "$as_me: program exited with status $ac_status" >&5
11925echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928( exit $ac_status )
11929{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11930See \`config.log' for more details." >&5
11931echo "$as_me: error: cannot compute sizeof (short), 77
11932See \`config.log' for more details." >&2;}
11933 { (exit 1); exit 1; }; }
7536fi 11934fi
11935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11936fi
11937fi
7537rm -f conftest* 11938rm -f conftest.val
7538 11939else
11940 ac_cv_sizeof_short=0
7539fi 11941fi
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11944echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11945cat >>confdefs.h <<_ACEOF
11946#define SIZEOF_SHORT $ac_cv_sizeof_short
11947_ACEOF
7540 11948
11949
11950echo "$as_me:$LINENO: checking for int" >&5
11951echo $ECHO_N "checking for int... $ECHO_C" >&6
11952if test "${ac_cv_type_int+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961$ac_includes_default
11962int
11963main ()
11964{
11965if ((int *) 0)
11966 return 0;
11967if (sizeof (int))
11968 return 0;
11969 ;
11970 return 0;
11971}
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_type_int=yes
11995else
11996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999ac_cv_type_int=no
12000fi
12001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12004echo "${ECHO_T}$ac_cv_type_int" >&6
12005
12006echo "$as_me:$LINENO: checking size of int" >&5
12007echo $ECHO_N "checking size of int... $ECHO_C" >&6
12008if test "${ac_cv_sizeof_int+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
7541if test $ac_cv_header_stdc = yes; then 12011 if test "$ac_cv_type_int" = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12012 # The cast to unsigned long works around a bug in the HP C Compiler
12013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12015 # This bug is HP SR number 8606223364.
7543if test "$cross_compiling" = yes; then 12016 if test "$cross_compiling" = yes; then
7544 : 12017 # Depending upon the size, compute the lo and hi bounds.
12018cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024$ac_includes_default
12025int
12026main ()
12027{
12028static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12029test_array [0] = 0
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_lo=0 ac_mid=0
12057 while :; do
12058 cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064$ac_includes_default
12065int
12066main ()
12067{
12068static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12069test_array [0] = 0
12070
12071 ;
12072 return 0;
12073}
12074_ACEOF
12075rm -f conftest.$ac_objext
12076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12077 (eval $ac_compile) 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_hi=$ac_mid; break
7545else 12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
12101ac_lo=`expr $ac_mid + 1`
12102 if test $ac_lo -le $ac_mid; then
12103 ac_lo= ac_hi=
12104 break
12105 fi
12106 ac_mid=`expr 2 '*' $ac_mid + 1`
12107fi
12108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12109 done
12110else
12111 echo "$as_me: failed program was:" >&5
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
12114cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120$ac_includes_default
12121int
12122main ()
12123{
12124static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12125test_array [0] = 0
12126
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext
12132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_hi=-1 ac_mid=-1
12153 while :; do
12154 cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160$ac_includes_default
12161int
12162main ()
12163{
12164static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12165test_array [0] = 0
12166
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_lo=$ac_mid; break
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197ac_hi=`expr '(' $ac_mid ')' - 1`
12198 if test $ac_mid -le $ac_hi; then
12199 ac_lo= ac_hi=
12200 break
12201 fi
12202 ac_mid=`expr 2 '*' $ac_mid`
12203fi
12204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205 done
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210ac_lo= ac_hi=
12211fi
12212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213fi
12214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215# Binary search between lo and hi bounds.
12216while test "x$ac_lo" != "x$ac_hi"; do
12217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7546 cat > conftest.$ac_ext <<EOF 12218 cat >conftest.$ac_ext <<_ACEOF
7547#line 7548 "configure" 12219/* confdefs.h. */
7548#include "confdefs.h" 12220_ACEOF
7549#include <ctype.h> 12221cat confdefs.h >>conftest.$ac_ext
7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12222cat >>conftest.$ac_ext <<_ACEOF
7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12223/* end confdefs.h. */
7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12224$ac_includes_default
7553int main () { int i; for (i = 0; i < 256; i++) 12225int
7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12226main ()
7555exit (0); } 12227{
12228static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12229test_array [0] = 0
7556 12230
7557EOF 12231 ;
7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12232 return 0;
7559then 12233}
7560 : 12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest.$ac_objext'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12253 ac_status=$?
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256 ac_hi=$ac_mid
7561else 12257else
7562 echo "configure: failed program was:" >&5 12258 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 12259sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -fr conftest*
7565 ac_cv_header_stdc=no
7566fi
7567rm -fr conftest*
7568fi
7569 12260
12261ac_lo=`expr '(' $ac_mid ')' + 1`
7570fi 12262fi
7571fi 12263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 12264done
7573echo "$ac_t""$ac_cv_header_stdc" 1>&6 12265case $ac_lo in
7574if test $ac_cv_header_stdc = yes; then 12266?*) ac_cv_sizeof_int=$ac_lo;;
7575 cat >> confdefs.h <<\EOF 12267'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7576#define STDC_HEADERS 1 12268See \`config.log' for more details." >&5
7577EOF 12269echo "$as_me: error: cannot compute sizeof (int), 77
7578 12270See \`config.log' for more details." >&2;}
7579fi 12271 { (exit 1); exit 1; }; } ;;
7580 12272esac
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 12273else
12274 if test "$cross_compiling" = yes; then
12275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12276See \`config.log' for more details." >&5
12277echo "$as_me: error: cannot run test program while cross compiling
12278See \`config.log' for more details." >&2;}
12279 { (exit 1); exit 1; }; }
12280else
7586 cat > conftest.$ac_ext <<EOF 12281 cat >conftest.$ac_ext <<_ACEOF
7587#line 7588 "configure" 12282/* confdefs.h. */
7588#include "confdefs.h" 12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287$ac_includes_default
12288long longval () { return (long) (sizeof (int)); }
12289unsigned long ulongval () { return (long) (sizeof (int)); }
7589#include <sys/types.h> 12290#include <stdio.h>
7590#if STDC_HEADERS
7591#include <stdlib.h> 12291#include <stdlib.h>
7592#include <stddef.h> 12292int
7593#endif 12293main ()
7594EOF 12294{
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12295
7596 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12296 FILE *f = fopen ("conftest.val", "w");
7597 rm -rf conftest* 12297 if (! f)
7598 ac_cv_type_mode_t=yes 12298 exit (1);
12299 if (((long) (sizeof (int))) < 0)
12300 {
12301 long i = longval ();
12302 if (i != ((long) (sizeof (int))))
12303 exit (1);
12304 fprintf (f, "%ld\n", i);
12305 }
7599else 12306 else
7600 rm -rf conftest* 12307 {
7601 ac_cv_type_mode_t=no 12308 unsigned long i = ulongval ();
12309 if (i != ((long) (sizeof (int))))
12310 exit (1);
12311 fprintf (f, "%lu\n", i);
12312 }
12313 exit (ferror (f) || fclose (f) != 0);
12314
12315 ;
12316 return 0;
12317}
12318_ACEOF
12319rm -f conftest$ac_exeext
12320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_sizeof_int=`cat conftest.val`
12331else
12332 echo "$as_me: program exited with status $ac_status" >&5
12333echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336( exit $ac_status )
12337{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12338See \`config.log' for more details." >&5
12339echo "$as_me: error: cannot compute sizeof (int), 77
12340See \`config.log' for more details." >&2;}
12341 { (exit 1); exit 1; }; }
7602fi 12342fi
12343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12344fi
12345fi
7603rm -f conftest* 12346rm -f conftest.val
7604 12347else
12348 ac_cv_sizeof_int=0
7605fi 12349fi
7606echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12350fi
7607if test $ac_cv_type_mode_t = no; then 12351echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12352echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7608 cat >> confdefs.h <<\EOF 12353cat >>confdefs.h <<_ACEOF
7609#define mode_t int 12354#define SIZEOF_INT $ac_cv_sizeof_int
7610EOF 12355_ACEOF
7611 12356
7612fi
7613 12357
7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12358echo "$as_me:$LINENO: checking for long" >&5
7615echo "configure:7616: checking for pid_t" >&5 12359echo $ECHO_N "checking for long... $ECHO_C" >&6
7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12360if test "${ac_cv_type_long+set}" = set; then
7617 echo $ac_n "(cached) $ac_c" 1>&6 12361 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else 12362else
7619 cat > conftest.$ac_ext <<EOF 12363 cat >conftest.$ac_ext <<_ACEOF
7620#line 7621 "configure" 12364/* confdefs.h. */
7621#include "confdefs.h" 12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369$ac_includes_default
12370int
12371main ()
12372{
12373if ((long *) 0)
12374 return 0;
12375if (sizeof (long))
12376 return 0;
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_type_long=yes
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407ac_cv_type_long=no
12408fi
12409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12412echo "${ECHO_T}$ac_cv_type_long" >&6
12413
12414echo "$as_me:$LINENO: checking size of long" >&5
12415echo $ECHO_N "checking size of long... $ECHO_C" >&6
12416if test "${ac_cv_sizeof_long+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 if test "$ac_cv_type_long" = yes; then
12420 # The cast to unsigned long works around a bug in the HP C Compiler
12421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12423 # This bug is HP SR number 8606223364.
12424 if test "$cross_compiling" = yes; then
12425 # Depending upon the size, compute the lo and hi bounds.
12426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432$ac_includes_default
12433int
12434main ()
12435{
12436static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12437test_array [0] = 0
12438
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_lo=0 ac_mid=0
12465 while :; do
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472$ac_includes_default
12473int
12474main ()
12475{
12476static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12477test_array [0] = 0
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_hi=$ac_mid; break
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509ac_lo=`expr $ac_mid + 1`
12510 if test $ac_lo -le $ac_mid; then
12511 ac_lo= ac_hi=
12512 break
12513 fi
12514 ac_mid=`expr 2 '*' $ac_mid + 1`
12515fi
12516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 done
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529int
12530main ()
12531{
12532static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12533test_array [0] = 0
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_hi=-1 ac_mid=-1
12561 while :; do
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568$ac_includes_default
12569int
12570main ()
12571{
12572static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12573test_array [0] = 0
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext
12580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest.$ac_objext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_lo=$ac_mid; break
12601else
12602 echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
12604
12605ac_hi=`expr '(' $ac_mid ')' - 1`
12606 if test $ac_mid -le $ac_hi; then
12607 ac_lo= ac_hi=
12608 break
12609 fi
12610 ac_mid=`expr 2 '*' $ac_mid`
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 done
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618ac_lo= ac_hi=
12619fi
12620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621fi
12622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623# Binary search between lo and hi bounds.
12624while test "x$ac_lo" != "x$ac_hi"; do
12625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12626 cat >conftest.$ac_ext <<_ACEOF
12627/* confdefs.h. */
12628_ACEOF
12629cat confdefs.h >>conftest.$ac_ext
12630cat >>conftest.$ac_ext <<_ACEOF
12631/* end confdefs.h. */
12632$ac_includes_default
12633int
12634main ()
12635{
12636static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12637test_array [0] = 0
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
12644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_hi=$ac_mid
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_lo=`expr '(' $ac_mid ')' + 1`
12670fi
12671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672done
12673case $ac_lo in
12674?*) ac_cv_sizeof_long=$ac_lo;;
12675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12676See \`config.log' for more details." >&5
12677echo "$as_me: error: cannot compute sizeof (long), 77
12678See \`config.log' for more details." >&2;}
12679 { (exit 1); exit 1; }; } ;;
12680esac
12681else
12682 if test "$cross_compiling" = yes; then
12683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12684See \`config.log' for more details." >&5
12685echo "$as_me: error: cannot run test program while cross compiling
12686See \`config.log' for more details." >&2;}
12687 { (exit 1); exit 1; }; }
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695$ac_includes_default
12696long longval () { return (long) (sizeof (long)); }
12697unsigned long ulongval () { return (long) (sizeof (long)); }
7622#include <sys/types.h> 12698#include <stdio.h>
7623#if STDC_HEADERS
7624#include <stdlib.h> 12699#include <stdlib.h>
7625#include <stddef.h> 12700int
7626#endif 12701main ()
7627EOF 12702{
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12703
7629 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12704 FILE *f = fopen ("conftest.val", "w");
7630 rm -rf conftest* 12705 if (! f)
7631 ac_cv_type_pid_t=yes 12706 exit (1);
12707 if (((long) (sizeof (long))) < 0)
12708 {
12709 long i = longval ();
12710 if (i != ((long) (sizeof (long))))
12711 exit (1);
12712 fprintf (f, "%ld\n", i);
12713 }
7632else 12714 else
7633 rm -rf conftest* 12715 {
7634 ac_cv_type_pid_t=no 12716 unsigned long i = ulongval ();
12717 if (i != ((long) (sizeof (long))))
12718 exit (1);
12719 fprintf (f, "%lu\n", i);
12720 }
12721 exit (ferror (f) || fclose (f) != 0);
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest$ac_exeext
12728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_sizeof_long=`cat conftest.val`
12739else
12740 echo "$as_me: program exited with status $ac_status" >&5
12741echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744( exit $ac_status )
12745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12746See \`config.log' for more details." >&5
12747echo "$as_me: error: cannot compute sizeof (long), 77
12748See \`config.log' for more details." >&2;}
12749 { (exit 1); exit 1; }; }
7635fi 12750fi
12751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12752fi
12753fi
7636rm -f conftest* 12754rm -f conftest.val
7637 12755else
12756 ac_cv_sizeof_long=0
7638fi 12757fi
7639echo "$ac_t""$ac_cv_type_pid_t" 1>&6 12758fi
7640if test $ac_cv_type_pid_t = no; then 12759echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12760echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7641 cat >> confdefs.h <<\EOF 12761cat >>confdefs.h <<_ACEOF
7642#define pid_t int 12762#define SIZEOF_LONG $ac_cv_sizeof_long
7643EOF 12763_ACEOF
7644 12764
7645fi
7646 12765
7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 12766echo "$as_me:$LINENO: checking for long long" >&5
7648echo "configure:7649: checking for uid_t in sys/types.h" >&5 12767echo $ECHO_N "checking for long long... $ECHO_C" >&6
7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 12768if test "${ac_cv_type_long_long+set}" = set; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 12769 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else 12770else
7652 cat > conftest.$ac_ext <<EOF 12771 cat >conftest.$ac_ext <<_ACEOF
7653#line 7654 "configure" 12772/* confdefs.h. */
7654#include "confdefs.h" 12773_ACEOF
7655#include <sys/types.h> 12774cat confdefs.h >>conftest.$ac_ext
7656EOF 12775cat >>conftest.$ac_ext <<_ACEOF
7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12776/* end confdefs.h. */
7658 egrep "uid_t" >/dev/null 2>&1; then 12777$ac_includes_default
12778int
12779main ()
12780{
12781if ((long long *) 0)
12782 return 0;
12783if (sizeof (long long))
12784 return 0;
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -rf conftest* 12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
7660 ac_cv_type_uid_t=yes 12810 ac_cv_type_long_long=yes
7661else 12811else
7662 rm -rf conftest* 12812 echo "$as_me: failed program was:" >&5
7663 ac_cv_type_uid_t=no 12813sed 's/^/| /' conftest.$ac_ext >&5
7664fi
7665rm -f conftest*
7666 12814
12815ac_cv_type_long_long=no
7667fi 12816fi
7668 12817rm -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 12818fi
12819echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12820echo "${ECHO_T}$ac_cv_type_long_long" >&6
7680 12821
7681 12822echo "$as_me:$LINENO: checking size of long long" >&5
7682 12823echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7683echo $ac_n "checking size of char""... $ac_c" 1>&6 12824if 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 12825 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else 12826else
12827 if test "$ac_cv_type_long_long" = yes; then
12828 # The cast to unsigned long works around a bug in the HP C Compiler
12829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12831 # This bug is HP SR number 8606223364.
7688 if test "$cross_compiling" = yes; then 12832 if test "$cross_compiling" = yes; then
7689 ac_cv_sizeof_char=1 12833 # Depending upon the size, compute the lo and hi bounds.
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840$ac_includes_default
12841int
12842main ()
12843{
12844static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12845test_array [0] = 0
12846
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_lo=0 ac_mid=0
12873 while :; do
12874 cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880$ac_includes_default
12881int
12882main ()
12883{
12884static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12885test_array [0] = 0
12886
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext
12892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_hi=$ac_mid; break
7690else 12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
12917ac_lo=`expr $ac_mid + 1`
12918 if test $ac_lo -le $ac_mid; then
12919 ac_lo= ac_hi=
12920 break
12921 fi
12922 ac_mid=`expr 2 '*' $ac_mid + 1`
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 done
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936$ac_includes_default
12937int
12938main ()
12939{
12940static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12941test_array [0] = 0
12942
12943 ;
12944 return 0;
12945}
12946_ACEOF
12947rm -f conftest.$ac_objext
12948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest.$ac_objext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_hi=-1 ac_mid=-1
12969 while :; do
12970 cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976$ac_includes_default
12977int
12978main ()
12979{
12980static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12981test_array [0] = 0
12982
12983 ;
12984 return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_lo=$ac_mid; break
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013ac_hi=`expr '(' $ac_mid ')' - 1`
13014 if test $ac_mid -le $ac_hi; then
13015 ac_lo= ac_hi=
13016 break
13017 fi
13018 ac_mid=`expr 2 '*' $ac_mid`
13019fi
13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021 done
13022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026ac_lo= ac_hi=
13027fi
13028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13029fi
13030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13031# Binary search between lo and hi bounds.
13032while test "x$ac_lo" != "x$ac_hi"; do
13033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7691 cat > conftest.$ac_ext <<EOF 13034 cat >conftest.$ac_ext <<_ACEOF
7692#line 7693 "configure" 13035/* confdefs.h. */
7693#include "confdefs.h" 13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040$ac_includes_default
13041int
13042main ()
13043{
13044static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13045test_array [0] = 0
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_hi=$ac_mid
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_lo=`expr '(' $ac_mid ')' + 1`
13078fi
13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080done
13081case $ac_lo in
13082?*) ac_cv_sizeof_long_long=$ac_lo;;
13083'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13084See \`config.log' for more details." >&5
13085echo "$as_me: error: cannot compute sizeof (long long), 77
13086See \`config.log' for more details." >&2;}
13087 { (exit 1); exit 1; }; } ;;
13088esac
13089else
13090 if test "$cross_compiling" = yes; then
13091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13092See \`config.log' for more details." >&5
13093echo "$as_me: error: cannot run test program while cross compiling
13094See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; }
13096else
13097 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
13104long longval () { return (long) (sizeof (long long)); }
13105unsigned long ulongval () { return (long) (sizeof (long long)); }
7694#include <stdio.h> 13106#include <stdio.h>
7695#include <sys/types.h> 13107#include <stdlib.h>
13108int
7696main() 13109main ()
7697{ 13110{
13111
7698 FILE *f=fopen("conftestval", "w"); 13112 FILE *f = fopen ("conftest.val", "w");
7699 if (!f) exit(1); 13113 if (! f)
7700 fprintf(f, "%d\n", sizeof(char));
7701 exit(0); 13114 exit (1);
13115 if (((long) (sizeof (long long))) < 0)
13116 {
13117 long i = longval ();
13118 if (i != ((long) (sizeof (long long))))
13119 exit (1);
13120 fprintf (f, "%ld\n", i);
13121 }
13122 else
13123 {
13124 unsigned long i = ulongval ();
13125 if (i != ((long) (sizeof (long long))))
13126 exit (1);
13127 fprintf (f, "%lu\n", i);
13128 }
13129 exit (ferror (f) || fclose (f) != 0);
13130
13131 ;
13132 return 0;
7702} 13133}
7703EOF 13134_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 13135rm -f conftest$ac_exeext
7705then 13136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_char=`cat conftestval` 13146 ac_cv_sizeof_long_long=`cat conftest.val`
7707else 13147else
13148 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "configure: failed program was:" >&5 13149echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5 13150sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -fr conftest* 13151
7711 ac_cv_sizeof_char=0 13152( exit $ac_status )
13153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13154See \`config.log' for more details." >&5
13155echo "$as_me: error: cannot compute sizeof (long long), 77
13156See \`config.log' for more details." >&2;}
13157 { (exit 1); exit 1; }; }
7712fi 13158fi
13159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160fi
13161fi
7713rm -fr conftest* 13162rm -f conftest.val
13163else
13164 ac_cv_sizeof_long_long=0
7714fi 13165fi
7715
7716fi 13166fi
7717echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13167echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13168echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7718cat >> confdefs.h <<EOF 13169cat >>confdefs.h <<_ACEOF
7719#define SIZEOF_CHAR $ac_cv_sizeof_char 13170#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7720EOF 13171_ACEOF
7721 13172
7722 13173
7723echo $ac_n "checking size of short""... $ac_c" 1>&6 13174echo "$as_me:$LINENO: checking for int *" >&5
7724echo "configure:7725: checking size of short" >&5 13175echo $ECHO_N "checking for int *... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13176if test "${ac_cv_type_int_p+set}" = set; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 13177 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 13178else
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185$ac_includes_default
13186int
13187main ()
13188{
13189if ((int * *) 0)
13190 return 0;
13191if (sizeof (int *))
13192 return 0;
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_type_int_p=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223ac_cv_type_int_p=no
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226fi
13227echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13228echo "${ECHO_T}$ac_cv_type_int_p" >&6
13229
13230echo "$as_me:$LINENO: checking size of int *" >&5
13231echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13232if test "${ac_cv_sizeof_int_p+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234else
13235 if test "$ac_cv_type_int_p" = yes; then
13236 # The cast to unsigned long works around a bug in the HP C Compiler
13237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13239 # This bug is HP SR number 8606223364.
7728 if test "$cross_compiling" = yes; then 13240 if test "$cross_compiling" = yes; then
7729 ac_cv_sizeof_short=2 13241 # Depending upon the size, compute the lo and hi bounds.
13242cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248$ac_includes_default
13249int
13250main ()
13251{
13252static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13253test_array [0] = 0
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_lo=0 ac_mid=0
13281 while :; do
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288$ac_includes_default
13289int
13290main ()
13291{
13292static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13293test_array [0] = 0
13294
13295 ;
13296 return 0;
13297}
13298_ACEOF
13299rm -f conftest.$ac_objext
13300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 ac_hi=$ac_mid; break
7730else 13321else
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325ac_lo=`expr $ac_mid + 1`
13326 if test $ac_lo -le $ac_mid; then
13327 ac_lo= ac_hi=
13328 break
13329 fi
13330 ac_mid=`expr 2 '*' $ac_mid + 1`
13331fi
13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 done
13334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338cat >conftest.$ac_ext <<_ACEOF
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
13343/* end confdefs.h. */
13344$ac_includes_default
13345int
13346main ()
13347{
13348static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13349test_array [0] = 0
13350
13351 ;
13352 return 0;
13353}
13354_ACEOF
13355rm -f conftest.$ac_objext
13356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_hi=-1 ac_mid=-1
13377 while :; do
13378 cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384$ac_includes_default
13385int
13386main ()
13387{
13388static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13389test_array [0] = 0
13390
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest.$ac_objext
13396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest.$ac_objext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_lo=$ac_mid; break
13417else
13418 echo "$as_me: failed program was:" >&5
13419sed 's/^/| /' conftest.$ac_ext >&5
13420
13421ac_hi=`expr '(' $ac_mid ')' - 1`
13422 if test $ac_mid -le $ac_hi; then
13423 ac_lo= ac_hi=
13424 break
13425 fi
13426 ac_mid=`expr 2 '*' $ac_mid`
13427fi
13428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13429 done
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_lo= ac_hi=
13435fi
13436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13439# Binary search between lo and hi bounds.
13440while test "x$ac_lo" != "x$ac_hi"; do
13441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat > conftest.$ac_ext <<EOF 13442 cat >conftest.$ac_ext <<_ACEOF
7732#line 7733 "configure" 13443/* confdefs.h. */
7733#include "confdefs.h" 13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448$ac_includes_default
13449int
13450main ()
13451{
13452static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13453test_array [0] = 0
13454
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_hi=$ac_mid
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485ac_lo=`expr '(' $ac_mid ')' + 1`
13486fi
13487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13488done
13489case $ac_lo in
13490?*) ac_cv_sizeof_int_p=$ac_lo;;
13491'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13492See \`config.log' for more details." >&5
13493echo "$as_me: error: cannot compute sizeof (int *), 77
13494See \`config.log' for more details." >&2;}
13495 { (exit 1); exit 1; }; } ;;
13496esac
13497else
13498 if test "$cross_compiling" = yes; then
13499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13500See \`config.log' for more details." >&5
13501echo "$as_me: error: cannot run test program while cross compiling
13502See \`config.log' for more details." >&2;}
13503 { (exit 1); exit 1; }; }
13504else
13505 cat >conftest.$ac_ext <<_ACEOF
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511$ac_includes_default
13512long longval () { return (long) (sizeof (int *)); }
13513unsigned long ulongval () { return (long) (sizeof (int *)); }
7734#include <stdio.h> 13514#include <stdio.h>
7735#include <sys/types.h> 13515#include <stdlib.h>
13516int
7736main() 13517main ()
7737{ 13518{
13519
7738 FILE *f=fopen("conftestval", "w"); 13520 FILE *f = fopen ("conftest.val", "w");
7739 if (!f) exit(1); 13521 if (! f)
7740 fprintf(f, "%d\n", sizeof(short));
7741 exit(0); 13522 exit (1);
13523 if (((long) (sizeof (int *))) < 0)
13524 {
13525 long i = longval ();
13526 if (i != ((long) (sizeof (int *))))
13527 exit (1);
13528 fprintf (f, "%ld\n", i);
13529 }
13530 else
13531 {
13532 unsigned long i = ulongval ();
13533 if (i != ((long) (sizeof (int *))))
13534 exit (1);
13535 fprintf (f, "%lu\n", i);
13536 }
13537 exit (ferror (f) || fclose (f) != 0);
13538
13539 ;
13540 return 0;
7742} 13541}
7743EOF 13542_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 13543rm -f conftest$ac_exeext
7745then 13544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13545 (eval $ac_link) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
7746 ac_cv_sizeof_short=`cat conftestval` 13554 ac_cv_sizeof_int_p=`cat conftest.val`
7747else 13555else
13556 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "configure: failed program was:" >&5 13557echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5 13558sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -fr conftest* 13559
7751 ac_cv_sizeof_short=0 13560( exit $ac_status )
13561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13562See \`config.log' for more details." >&5
13563echo "$as_me: error: cannot compute sizeof (int *), 77
13564See \`config.log' for more details." >&2;}
13565 { (exit 1); exit 1; }; }
7752fi 13566fi
13567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13568fi
13569fi
7753rm -fr conftest* 13570rm -f conftest.val
13571else
13572 ac_cv_sizeof_int_p=0
7754fi 13573fi
7755
7756fi 13574fi
7757echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13575echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13576echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7758cat >> confdefs.h <<EOF 13577cat >>confdefs.h <<_ACEOF
7759#define SIZEOF_SHORT $ac_cv_sizeof_short 13578#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7760EOF 13579_ACEOF
7761 13580
7762 13581
7763echo $ac_n "checking size of int""... $ac_c" 1>&6 13582
7764echo "configure:7765: checking size of int" >&5 13583
7765if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13584echo "$as_me:$LINENO: checking for int16_t" >&5
13585echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13586if test "${rxvt_cv_int16_t+set}" = set; then
7766 echo $ac_n "(cached) $ac_c" 1>&6 13587 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else 13588else
7768 if test "$cross_compiling" = yes; then
7769 ac_cv_sizeof_int=4
7770else
7771 cat > conftest.$ac_ext <<EOF 13589 cat >conftest.$ac_ext <<_ACEOF
7772#line 7773 "configure" 13590/* confdefs.h. */
7773#include "confdefs.h" 13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
7774#include <stdio.h> 13595#include <stdint.h>
7775#include <sys/types.h> 13596int
7776main() 13597main ()
7777{ 13598{
7778 FILE *f=fopen("conftestval", "w"); 13599int16_t dummy;
7779 if (!f) exit(1); 13600 ;
7780 fprintf(f, "%d\n", sizeof(int)); 13601 return 0;
7781 exit(0);
7782} 13602}
7783EOF 13603_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 13604rm -f conftest.$ac_objext
7785then 13605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 ac_cv_sizeof_int=`cat conftestval` 13606 (eval $ac_compile) 2>conftest.er1
7787else 13607 ac_status=$?
7788 echo "configure: failed program was:" >&5 13608 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.$ac_ext >&5
7790 rm -fr conftest* 13609 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 13610 cat conftest.err >&5
7830 rm -fr conftest* 13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ac_cv_sizeof_long=0 13612 (exit $ac_status); } &&
7832fi 13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833rm -fr conftest* 13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834fi 13615 (eval $ac_try) 2>&5
7835 13616 ac_status=$?
7836fi 13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13618 (exit $ac_status); }; } &&
7838cat >> confdefs.h <<EOF 13619 { ac_try='test -s conftest.$ac_objext'
7839#define SIZEOF_LONG $ac_cv_sizeof_long 13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840EOF 13621 (eval $ac_try) 2>&5
7841 13622 ac_status=$?
7842 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843echo $ac_n "checking size of long long""... $ac_c" 1>&6 13624 (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 13625 rxvt_cv_int16_t=yes
7941else 13626else
7942 echo "configure: failed program was:" >&5 13627 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5 13628sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -rf conftest* 13629
7945 if test $ac_cv_sizeof_char -ge 2; then 13630if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char" 13631 rxvt_cv_int16_t=" char"
7947else 13632else
7948 if test $ac_cv_sizeof_short -ge 2; then 13633 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short" 13634 rxvt_cv_int16_t=" short"
7950 else 13635 else
7962 fi 13647 fi
7963 fi 13648 fi
7964 fi 13649 fi
7965fi 13650fi
7966fi 13651fi
7967rm -f conftest* 13652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi 13653fi
7969 13654echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7970echo "$ac_t""$rxvt_cv_int16_t" 1>&6 13655echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7971if test x"$rxvt_cv_int16_t" != xyes; then 13656if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 13657 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7973else 13658else
7974 if test x"" = x; then 13659 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */" 13660 rxvt_int16_typedef="/* typedef short int16_t; */"
7976 else 13661 else
7977 rxvt_int16_typedef="/* typedef short int16_t; */" 13662 rxvt_int16_typedef="/* typedef short int16_t; */"
7978 fi 13663 fi
7979fi 13664fi
7980 13665
13666echo "$as_me:$LINENO: checking for uint16_t" >&5
7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 13667echo $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 13668if test "${rxvt_cv_uint16_t+set}" = set; then
7984 echo $ac_n "(cached) $ac_c" 1>&6 13669 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else 13670else
7986 cat > conftest.$ac_ext <<EOF 13671 cat >conftest.$ac_ext <<_ACEOF
7987#line 7988 "configure" 13672/* confdefs.h. */
7988#include "confdefs.h" 13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
7989#include <stdint.h> 13677#include <stdint.h>
7990int main() { 13678int
13679main ()
13680{
7991uint16_t dummy; 13681uint16_t dummy;
13682 ;
7992; return 0; } 13683 return 0;
7993EOF 13684}
7994if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13685_ACEOF
13686rm -f conftest.$ac_objext
13687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -rf conftest* 13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
7996 rxvt_cv_uint16_t=yes 13707 rxvt_cv_uint16_t=yes
7997else 13708else
7998 echo "configure: failed program was:" >&5 13709 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 13710sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -rf conftest* 13711
8001 if test $ac_cv_sizeof_char -ge 2; then 13712if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char" 13713 rxvt_cv_uint16_t="unsigned char"
8003else 13714else
8004 if test $ac_cv_sizeof_short -ge 2; then 13715 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short" 13716 rxvt_cv_uint16_t="unsigned short"
8006 else 13717 else
8018 fi 13729 fi
8019 fi 13730 fi
8020 fi 13731 fi
8021fi 13732fi
8022fi 13733fi
8023rm -f conftest* 13734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi 13735fi
8025 13736echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8026echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 13737echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8027if test x"$rxvt_cv_uint16_t" != xyes; then 13738if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 13739 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8029else 13740else
8030 if test x"unsigned" = x; then 13741 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */" 13742 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8032 else 13743 else
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 13744 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8034 fi 13745 fi
8035fi 13746fi
8036 13747
13748echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6 13749echo $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 13750if test "${rxvt_cv_int32_t+set}" = set; then
8040 echo $ac_n "(cached) $ac_c" 1>&6 13751 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else 13752else
8042 cat > conftest.$ac_ext <<EOF 13753 cat >conftest.$ac_ext <<_ACEOF
8043#line 8044 "configure" 13754/* confdefs.h. */
8044#include "confdefs.h" 13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
8045#include <stdint.h> 13759#include <stdint.h>
8046int main() { 13760int
13761main ()
13762{
8047int32_t dummy; 13763int32_t dummy;
13764 ;
8048; return 0; } 13765 return 0;
8049EOF 13766}
8050if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13767_ACEOF
13768rm -f conftest.$ac_objext
13769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -rf conftest* 13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
8052 rxvt_cv_int32_t=yes 13789 rxvt_cv_int32_t=yes
8053else 13790else
8054 echo "configure: failed program was:" >&5 13791 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5 13792sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -rf conftest* 13793
8057 if test $ac_cv_sizeof_char -ge 4; then 13794if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char" 13795 rxvt_cv_int32_t=" char"
8059else 13796else
8060 if test $ac_cv_sizeof_short -ge 4; then 13797 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short" 13798 rxvt_cv_int32_t=" short"
8062 else 13799 else
8074 fi 13811 fi
8075 fi 13812 fi
8076 fi 13813 fi
8077fi 13814fi
8078fi 13815fi
8079rm -f conftest* 13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi 13817fi
8081 13818echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8082echo "$ac_t""$rxvt_cv_int32_t" 1>&6 13819echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8083if test x"$rxvt_cv_int32_t" != xyes; then 13820if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 13821 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8085else 13822else
8086 if test x"" = x; then 13823 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */" 13824 rxvt_int32_typedef="/* typedef int int32_t; */"
8088 else 13825 else
8089 rxvt_int32_typedef="/* typedef int int32_t; */" 13826 rxvt_int32_typedef="/* typedef int int32_t; */"
8090 fi 13827 fi
8091fi 13828fi
8092 13829
13830echo "$as_me:$LINENO: checking for uint32_t" >&5
8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 13831echo $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 13832if test "${rxvt_cv_uint32_t+set}" = set; then
8096 echo $ac_n "(cached) $ac_c" 1>&6 13833 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else 13834else
8098 cat > conftest.$ac_ext <<EOF 13835 cat >conftest.$ac_ext <<_ACEOF
8099#line 8100 "configure" 13836/* confdefs.h. */
8100#include "confdefs.h" 13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
8101#include <stdint.h> 13841#include <stdint.h>
8102int main() { 13842int
13843main ()
13844{
8103uint32_t dummy; 13845uint32_t dummy;
13846 ;
8104; return 0; } 13847 return 0;
8105EOF 13848}
8106if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13849_ACEOF
13850rm -f conftest.$ac_objext
13851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13853 ac_status=$?
13854 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -rf conftest* 13855 rm -f conftest.er1
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
8108 rxvt_cv_uint32_t=yes 13871 rxvt_cv_uint32_t=yes
8109else 13872else
8110 echo "configure: failed program was:" >&5 13873 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5 13874sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest* 13875
8113 if test $ac_cv_sizeof_char -ge 4; then 13876if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char" 13877 rxvt_cv_uint32_t="unsigned char"
8115else 13878else
8116 if test $ac_cv_sizeof_short -ge 4; then 13879 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short" 13880 rxvt_cv_uint32_t="unsigned short"
8118 else 13881 else
8130 fi 13893 fi
8131 fi 13894 fi
8132 fi 13895 fi
8133fi 13896fi
8134fi 13897fi
8135rm -f conftest* 13898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi 13899fi
8137 13900echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8138echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 13901echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8139if test x"$rxvt_cv_uint32_t" != xyes; then 13902if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 13903 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8141else 13904else
8142 if test x"unsigned" = x; then 13905 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */" 13906 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8144 else 13907 else
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 13908 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8146 fi 13909 fi
8147fi 13910fi
8148 13911
8149if test $ac_cv_sizeof_int_p -eq 8; then 13912if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t" 13913 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t" 13914 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8152else 13915else
8164 fi 13927 fi
8165fi 13928fi
8166 13929
8167 13930
8168 13931
13932echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 13933echo $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 13934if test "${ac_cv_type_signal+set}" = set; then
8172 echo $ac_n "(cached) $ac_c" 1>&6 13935 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else 13936else
8174 cat > conftest.$ac_ext <<EOF 13937 cat >conftest.$ac_ext <<_ACEOF
8175#line 8176 "configure" 13938/* confdefs.h. */
8176#include "confdefs.h" 13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h. */
8177#include <sys/types.h> 13943#include <sys/types.h>
8178#include <signal.h> 13944#include <signal.h>
8179#ifdef signal 13945#ifdef signal
8180#undef signal 13946# undef signal
8181#endif 13947#endif
8182#ifdef __cplusplus 13948#ifdef __cplusplus
8183extern "C" void (*signal (int, void (*)(int)))(int); 13949extern "C" void (*signal (int, void (*)(int)))(int);
8184#else 13950#else
8185void (*signal ()) (); 13951void (*signal ()) ();
8186#endif 13952#endif
8187 13953
8188int main() { 13954int
13955main ()
13956{
8189int i; 13957int i;
13958 ;
8190; return 0; } 13959 return 0;
8191EOF 13960}
8192if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13961_ACEOF
13962rm -f conftest.$ac_objext
13963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -rf conftest* 13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
8194 ac_cv_type_signal=void 13983 ac_cv_type_signal=void
8195else 13984else
8196 echo "configure: failed program was:" >&5 13985 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5 13986sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -rf conftest* 13987
8199 ac_cv_type_signal=int 13988ac_cv_type_signal=int
8200fi 13989fi
8201rm -f conftest* 13990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi 13991fi
8203 13992echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8204echo "$ac_t""$ac_cv_type_signal" 1>&6 13993echo "${ECHO_T}$ac_cv_type_signal" >&6
13994
8205cat >> confdefs.h <<EOF 13995cat >>confdefs.h <<_ACEOF
8206#define RETSIGTYPE $ac_cv_type_signal 13996#define RETSIGTYPE $ac_cv_type_signal
8207EOF 13997_ACEOF
8208 13998
8209 13999
8210 14000
8211case "$host_alias" in 14001case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;; 14002 *ultrix) ac_cv_func_setsid='no' ;;
8213 *) break;; 14003 *) break;;
8214esac 14004esac
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
8215 14023
8216for ac_func in \ 14024for ac_func in \
8217 atexit \ 14025 atexit \
8218 revoke \ 14026 revoke \
8219 unsetenv \ 14027 unsetenv \
8232 nanosleep \ 14040 nanosleep \
8233 updwtmp \ 14041 updwtmp \
8234 ttyslot \ 14042 ttyslot \
8235 14043
8236do 14044do
14045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046echo "$as_me:$LINENO: checking for $ac_func" >&5
8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8238echo "configure:8239: checking for $ac_func" >&5 14048if 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 14049 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else 14050else
8242 cat > conftest.$ac_ext <<EOF 14051 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 14052/* confdefs.h. */
8244#include "confdefs.h" 14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14059#define $ac_func innocuous_$ac_func
14060
8245/* System header to define __stub macros and hopefully few prototypes, 14061/* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */ 14062 which can conflict with char $ac_func (); below.
14063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14064 <limits.h> exists even on freestanding compilers. */
14065
14066#ifdef __STDC__
14067# include <limits.h>
14068#else
8247#include <assert.h> 14069# include <assert.h>
14070#endif
14071
14072#undef $ac_func
14073
8248/* Override any gcc2 internal prototype to avoid an error. */ 14074/* Override any gcc2 internal prototype to avoid an error. */
14075#ifdef __cplusplus
14076extern "C"
14077{
14078#endif
8249/* We use char because int might match the return type of a gcc2 14079/* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */ 14080 builtin and then its argument prototype would still apply. */
8251char $ac_func(); 14081char $ac_func ();
8252
8253int main() {
8254
8255/* The GNU C library defines this for functions which it implements 14082/* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named 14083 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */ 14084 something starting with __ and the normal name is an alias. */
8258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259choke me 14086choke me
8260#else 14087#else
8261$ac_func(); 14088char (*f) () = $ac_func;
8262#endif 14089#endif
14090#ifdef __cplusplus
14091}
14092#endif
8263 14093
14094int
14095main ()
14096{
14097return f != $ac_func;
14098 ;
8264; return 0; } 14099 return 0;
8265EOF 14100}
8266if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14101_ACEOF
14102rm -f conftest.$ac_objext conftest$ac_exeext
14103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -rf conftest* 14107 rm -f conftest.er1
8268 eval "ac_cv_func_$ac_func=yes" 14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_var=yes"
8269else 14124else
8270 echo "configure: failed program was:" >&5 14125 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5 14126sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8274fi
8275rm -f conftest*
8276fi
8277 14127
8278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14128eval "$as_ac_var=no"
8279 echo "$ac_t""yes" 1>&6 14129fi
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14130rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132fi
14133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14135if test `eval echo '${'$as_ac_var'}'` = yes; then
8281 cat >> confdefs.h <<EOF 14136 cat >>confdefs.h <<_ACEOF
8282#define $ac_tr_func 1 14137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8283EOF 14138_ACEOF
8284 14139
8285else
8286 echo "$ac_t""no" 1>&6
8287fi 14140fi
8288done 14141done
8289 14142
8290 14143
8291 14144
8292ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14145if test "${ac_cv_header_utmp_h+set}" = set; then
14146 echo "$as_me:$LINENO: checking for utmp.h" >&5
8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14147echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8294echo "configure:8295: checking for utmp.h" >&5 14148if 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 14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150fi
14151echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14152echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8297else 14153else
14154 # Is the header compilable?
14155echo "$as_me:$LINENO: checking utmp.h usability" >&5
14156echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8298 cat > conftest.$ac_ext <<EOF 14157cat >conftest.$ac_ext <<_ACEOF
8299#line 8300 "configure" 14158/* confdefs.h. */
8300#include "confdefs.h" 14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
14162/* end confdefs.h. */
14163$ac_includes_default
8301#include <utmp.h> 14164#include <utmp.h>
8302EOF 14165_ACEOF
8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14166rm -f conftest.$ac_objext
8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14168 (eval $ac_compile) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_header_compiler=yes
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192ac_header_compiler=no
14193fi
14194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14196echo "${ECHO_T}$ac_header_compiler" >&6
14197
14198# Is the header present?
14199echo "$as_me:$LINENO: checking utmp.h presence" >&5
14200echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14201cat >conftest.$ac_ext <<_ACEOF
14202/* confdefs.h. */
14203_ACEOF
14204cat confdefs.h >>conftest.$ac_ext
14205cat >>conftest.$ac_ext <<_ACEOF
14206/* end confdefs.h. */
14207#include <utmp.h>
14208_ACEOF
14209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } >/dev/null; then
14217 if test -s conftest.err; then
14218 ac_cpp_err=$ac_c_preproc_warn_flag
14219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14220 else
14221 ac_cpp_err=
14222 fi
14223else
14224 ac_cpp_err=yes
14225fi
8306if test -z "$ac_err"; then 14226if test -z "$ac_cpp_err"; then
8307 rm -rf conftest* 14227 ac_header_preproc=yes
8308 eval "ac_cv_header_$ac_safe=yes"
8309else 14228else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5 14229 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5 14230sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -rf conftest* 14231
8314 eval "ac_cv_header_$ac_safe=no" 14232 ac_header_preproc=no
8315fi 14233fi
8316rm -f conftest* 14234rm -f conftest.err conftest.$ac_ext
14235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14236echo "${ECHO_T}$ac_header_preproc" >&6
14237
14238# So? What about this header?
14239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14240 yes:no: )
14241 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14242echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14244echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14245 ac_header_preproc=yes
14246 ;;
14247 no:yes:* )
14248 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14249echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14251echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14253echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14255echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14257echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14259echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14260 (
14261 cat <<\_ASBOX
14262## ------------------------------------------ ##
14263## Report this to the AC_PACKAGE_NAME lists. ##
14264## ------------------------------------------ ##
14265_ASBOX
14266 ) |
14267 sed "s/^/$as_me: WARNING: /" >&2
14268 ;;
14269esac
14270echo "$as_me:$LINENO: checking for utmp.h" >&5
14271echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14272if test "${ac_cv_header_utmp_h+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 ac_cv_header_utmp_h=$ac_header_preproc
8317fi 14276fi
8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14277echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8319 echo "$ac_t""yes" 1>&6 14278echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14279
14280fi
14281if test $ac_cv_header_utmp_h = yes; then
14282 echo "$as_me:$LINENO: checking for struct utmp" >&5
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14283echo $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 14284if test "${rxvt_cv_struct_utmp+set}" = set; then
8323 echo $ac_n "(cached) $ac_c" 1>&6 14285 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else 14286else
8325 cat > conftest.$ac_ext <<EOF 14287 cat >conftest.$ac_ext <<_ACEOF
8326#line 8327 "configure" 14288/* confdefs.h. */
8327#include "confdefs.h" 14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
8328#include <sys/types.h> 14293#include <sys/types.h>
8329#include <stdint.h> 14294#include <stdint.h>
8330#include <utmp.h> 14295#include <utmp.h>
8331int main() { 14296int
14297main ()
14298{
8332struct utmp ut; 14299struct utmp ut;
14300 ;
8333; return 0; } 14301 return 0;
8334EOF 14302}
8335if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -rf conftest* 14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
8337 rxvt_cv_struct_utmp=yes 14325 rxvt_cv_struct_utmp=yes
8338else 14326else
8339 echo "configure: failed program was:" >&5 14327 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 14328sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -rf conftest* 14329
8342 rxvt_cv_struct_utmp=no 14330rxvt_cv_struct_utmp=no
8343fi 14331fi
8344rm -f conftest* 14332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi 14333fi
8346 14334echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8347echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14335echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8348if test x$rxvt_cv_struct_utmp = xyes; then 14336if test x$rxvt_cv_struct_utmp = xyes; then
14337
8349 cat >> confdefs.h <<\EOF 14338cat >>confdefs.h <<\_ACEOF
8350#define HAVE_STRUCT_UTMP 1 14339#define HAVE_STRUCT_UTMP 1
8351EOF 14340_ACEOF
8352 14341
8353fi 14342fi
8354 14343
8355 14344
14345echo "$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 14346echo $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 14347if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8359 echo $ac_n "(cached) $ac_c" 1>&6 14348 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else 14349else
8361 cat > conftest.$ac_ext <<EOF 14350 cat >conftest.$ac_ext <<_ACEOF
8362#line 8363 "configure" 14351/* confdefs.h. */
8363#include "confdefs.h" 14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
8364#include <sys/types.h> 14356#include <sys/types.h>
8365#include <utmp.h> 14357#include <utmp.h>
8366int main() { 14358int
14359main ()
14360{
8367struct utmp ut; ut.ut_host; 14361struct utmp ut; ut.ut_host;
14362 ;
8368; return 0; } 14363 return 0;
8369EOF 14364}
8370if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14365_ACEOF
14366rm -f conftest.$ac_objext
14367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>conftest.er1
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -rf conftest* 14371 rm -f conftest.er1
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
8372 rxvt_cv_struct_utmp_host=yes 14387 rxvt_cv_struct_utmp_host=yes
8373else 14388else
8374 echo "configure: failed program was:" >&5 14389 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5 14390sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -rf conftest* 14391
8377 rxvt_cv_struct_utmp_host=no 14392rxvt_cv_struct_utmp_host=no
8378fi 14393fi
8379rm -f conftest* 14394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi 14395fi
8381 14396echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8382echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14397echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8383if test x$rxvt_cv_struct_utmp_host = xyes; then 14398if test x$rxvt_cv_struct_utmp_host = xyes; then
14399
8384 cat >> confdefs.h <<\EOF 14400cat >>confdefs.h <<\_ACEOF
8385#define HAVE_UTMP_HOST 1 14401#define HAVE_UTMP_HOST 1
8386EOF 14402_ACEOF
8387 14403
8388fi 14404fi
8389 14405
14406echo "$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 14407echo $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 14408if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8393 echo $ac_n "(cached) $ac_c" 1>&6 14409 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else 14410else
8395 cat > conftest.$ac_ext <<EOF 14411 cat >conftest.$ac_ext <<_ACEOF
8396#line 8397 "configure" 14412/* confdefs.h. */
8397#include "confdefs.h" 14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h. */
8398#include <sys/types.h> 14417#include <sys/types.h>
8399#include <utmp.h> 14418#include <utmp.h>
8400int main() { 14419int
14420main ()
14421{
8401struct utmp ut; ut.ut_pid; 14422struct utmp ut; ut.ut_pid;
14423 ;
8402; return 0; } 14424 return 0;
8403EOF 14425}
8404if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429 (eval $ac_compile) 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -rf conftest* 14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
8406 rxvt_cv_struct_utmp_pid=yes 14448 rxvt_cv_struct_utmp_pid=yes
8407else 14449else
8408 echo "configure: failed program was:" >&5 14450 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5 14451sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -rf conftest* 14452
8411 rxvt_cv_struct_utmp_pid=no 14453rxvt_cv_struct_utmp_pid=no
8412fi 14454fi
8413rm -f conftest* 14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi 14456fi
8415 14457echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8416echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14458echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8417if test x$rxvt_cv_struct_utmp_pid = xyes; then 14459if test x$rxvt_cv_struct_utmp_pid = xyes; then
14460
8418 cat >> confdefs.h <<\EOF 14461cat >>confdefs.h <<\_ACEOF
8419#define HAVE_UTMP_PID 1 14462#define HAVE_UTMP_PID 1
8420EOF 14463_ACEOF
8421 14464
8422fi 14465fi
8423 14466
8424else
8425 echo "$ac_t""no" 1>&6
8426fi 14467fi
8427
8428 14468
8429ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14469
14470
14471if test "${ac_cv_header_utmpx_h+set}" = set; then
14472 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14473echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8431echo "configure:8432: checking for utmpx.h" >&5 14474if 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 14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476fi
14477echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14478echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8434else 14479else
14480 # Is the header compilable?
14481echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14482echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8435 cat > conftest.$ac_ext <<EOF 14483cat >conftest.$ac_ext <<_ACEOF
8436#line 8437 "configure" 14484/* confdefs.h. */
8437#include "confdefs.h" 14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */
14489$ac_includes_default
8438#include <utmpx.h> 14490#include <utmpx.h>
8439EOF 14491_ACEOF
8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14492rm -f conftest.$ac_objext
8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14494 (eval $ac_compile) 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_header_compiler=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518ac_header_compiler=no
14519fi
14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522echo "${ECHO_T}$ac_header_compiler" >&6
14523
14524# Is the header present?
14525echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14526echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533#include <utmpx.h>
14534_ACEOF
14535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag
14545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14546 else
14547 ac_cpp_err=
14548 fi
14549else
14550 ac_cpp_err=yes
14551fi
8443if test -z "$ac_err"; then 14552if test -z "$ac_cpp_err"; then
8444 rm -rf conftest* 14553 ac_header_preproc=yes
8445 eval "ac_cv_header_$ac_safe=yes"
8446else 14554else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5 14555 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 14556sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest* 14557
8451 eval "ac_cv_header_$ac_safe=no" 14558 ac_header_preproc=no
8452fi 14559fi
8453rm -f conftest* 14560rm -f conftest.err conftest.$ac_ext
14561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562echo "${ECHO_T}$ac_header_preproc" >&6
14563
14564# So? What about this header?
14565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 yes:no: )
14567 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14568echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14570echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14571 ac_header_preproc=yes
14572 ;;
14573 no:yes:* )
14574 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14575echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14577echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14579echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14581echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14583echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14585echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14586 (
14587 cat <<\_ASBOX
14588## ------------------------------------------ ##
14589## Report this to the AC_PACKAGE_NAME lists. ##
14590## ------------------------------------------ ##
14591_ASBOX
14592 ) |
14593 sed "s/^/$as_me: WARNING: /" >&2
14594 ;;
14595esac
14596echo "$as_me:$LINENO: checking for utmpx.h" >&5
14597echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14598if test "${ac_cv_header_utmpx_h+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 ac_cv_header_utmpx_h=$ac_header_preproc
8454fi 14602fi
8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14603echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8456 echo "$ac_t""yes" 1>&6 14604echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14605
14606fi
14607if test $ac_cv_header_utmpx_h = yes; then
14608 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14609echo $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 14610if test "${rxvt_cv_struct_utmpx+set}" = set; then
8460 echo $ac_n "(cached) $ac_c" 1>&6 14611 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else 14612else
8462 cat > conftest.$ac_ext <<EOF 14613 cat >conftest.$ac_ext <<_ACEOF
8463#line 8464 "configure" 14614/* confdefs.h. */
8464#include "confdefs.h" 14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
8465#include <sys/types.h> 14619#include <sys/types.h>
8466#include <utmpx.h> 14620#include <utmpx.h>
8467int main() { 14621int
14622main ()
14623{
8468struct utmpx ut; 14624struct utmpx ut;
14625 ;
8469; return 0; } 14626 return 0;
8470EOF 14627}
8471if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -rf conftest* 14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
8473 rxvt_cv_struct_utmpx=yes 14650 rxvt_cv_struct_utmpx=yes
8474else 14651else
8475 echo "configure: failed program was:" >&5 14652 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5 14653sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -rf conftest* 14654
8478 rxvt_cv_struct_utmpx=no 14655rxvt_cv_struct_utmpx=no
8479fi 14656fi
8480rm -f conftest* 14657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi 14658fi
8482 14659echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8483echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 14660echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8484if test x$rxvt_cv_struct_utmpx = xyes; then 14661if test x$rxvt_cv_struct_utmpx = xyes; then
14662
8485 cat >> confdefs.h <<\EOF 14663cat >>confdefs.h <<\_ACEOF
8486#define HAVE_STRUCT_UTMPX 1 14664#define HAVE_STRUCT_UTMPX 1
8487EOF 14665_ACEOF
8488 14666
8489fi 14667fi
8490 14668
8491 14669
14670echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 14671echo $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 14672if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8495 echo $ac_n "(cached) $ac_c" 1>&6 14673 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else 14674else
8497 cat > conftest.$ac_ext <<EOF 14675 cat >conftest.$ac_ext <<_ACEOF
8498#line 8499 "configure" 14676/* confdefs.h. */
8499#include "confdefs.h" 14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
8500#include <sys/types.h> 14681#include <sys/types.h>
8501#include <utmpx.h> 14682#include <utmpx.h>
8502int main() { 14683int
14684main ()
14685{
8503struct utmpx utx; utx.ut_host; 14686struct utmpx utx; utx.ut_host;
14687 ;
8504; return 0; } 14688 return 0;
8505EOF 14689}
8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14690_ACEOF
14691rm -f conftest.$ac_objext
14692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -rf conftest* 14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
8508 rxvt_cv_struct_utmpx_host=yes 14712 rxvt_cv_struct_utmpx_host=yes
8509else 14713else
8510 echo "configure: failed program was:" >&5 14714 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5 14715sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest* 14716
8513 rxvt_cv_struct_utmpx_host=no 14717rxvt_cv_struct_utmpx_host=no
8514fi 14718fi
8515rm -f conftest* 14719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi 14720fi
8517 14721echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8518echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 14722echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8519if test x$rxvt_cv_struct_utmpx_host = xyes; then 14723if test x$rxvt_cv_struct_utmpx_host = xyes; then
14724
8520 cat >> confdefs.h <<\EOF 14725cat >>confdefs.h <<\_ACEOF
8521#define HAVE_UTMPX_HOST 1 14726#define HAVE_UTMPX_HOST 1
8522EOF 14727_ACEOF
8523 14728
8524fi 14729fi
8525 14730
8526else
8527 echo "$ac_t""no" 1>&6
8528fi 14731fi
8529
8530 14732
14733
14734
14735echo "$as_me:$LINENO: checking for struct lastlog" >&5
8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 14736echo $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 14737if test "${rxvt_cv_struct_lastlog+set}" = set; then
8534 echo $ac_n "(cached) $ac_c" 1>&6 14738 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else 14739else
8536 cat > conftest.$ac_ext <<EOF 14740 cat >conftest.$ac_ext <<_ACEOF
8537#line 8538 "configure" 14741/* confdefs.h. */
8538#include "confdefs.h" 14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
8539#include <sys/types.h> 14746#include <sys/types.h>
8540#include <utmp.h> 14747#include <utmp.h>
8541#ifdef HAVE_LASTLOG_H 14748#ifdef HAVE_LASTLOG_H
8542#include <lastlog.h> 14749#include <lastlog.h>
8543#endif 14750#endif
8544 14751
8545int main() { 14752int
14753main ()
14754{
8546struct lastlog ll; 14755struct lastlog ll;
14756 ;
8547; return 0; } 14757 return 0;
8548EOF 14758}
8549if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -rf conftest* 14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
8551 rxvt_cv_struct_lastlog=yes 14781 rxvt_cv_struct_lastlog=yes
8552else 14782else
8553 echo "configure: failed program was:" >&5 14783 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 14784sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -rf conftest* 14785
8556 rxvt_cv_struct_lastlog=no 14786rxvt_cv_struct_lastlog=no
8557fi 14787fi
8558rm -f conftest* 14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi 14789fi
8560 14790echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8561echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 14791echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8562if test x$rxvt_cv_struct_lastlog = xyes; then 14792if test x$rxvt_cv_struct_lastlog = xyes; then
14793
8563 cat >> confdefs.h <<\EOF 14794cat >>confdefs.h <<\_ACEOF
8564#define HAVE_STRUCT_LASTLOG 1 14795#define HAVE_STRUCT_LASTLOG 1
8565EOF 14796_ACEOF
8566 14797
8567fi 14798fi
8568 14799
14800echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 14801echo $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 14802if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8572 echo $ac_n "(cached) $ac_c" 1>&6 14803 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else 14804else
8574 cat > conftest.$ac_ext <<EOF 14805 cat >conftest.$ac_ext <<_ACEOF
8575#line 8576 "configure" 14806/* confdefs.h. */
8576#include "confdefs.h" 14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
8577#include <sys/types.h> 14811#include <sys/types.h>
8578#include <utmpx.h> 14812#include <utmpx.h>
8579#ifdef HAVE_LASTLOG_H 14813#ifdef HAVE_LASTLOG_H
8580#include <lastlog.h> 14814#include <lastlog.h>
8581#endif 14815#endif
8582 14816
8583int main() { 14817int
14818main ()
14819{
8584struct lastlogx ll; 14820struct lastlogx ll;
14821 ;
8585; return 0; } 14822 return 0;
8586EOF 14823}
8587if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14824_ACEOF
14825rm -f conftest.$ac_objext
14826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -rf conftest* 14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
8589 rxvt_cv_struct_lastlogx=yes 14846 rxvt_cv_struct_lastlogx=yes
8590else 14847else
8591 echo "configure: failed program was:" >&5 14848 echo "$as_me: failed program was:" >&5
8592 cat conftest.$ac_ext >&5 14849sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -rf conftest* 14850
8594 rxvt_cv_struct_lastlogx=no 14851rxvt_cv_struct_lastlogx=no
8595fi 14852fi
8596rm -f conftest* 14853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi 14854fi
8598 14855echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8599echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 14856echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8600if test x$rxvt_cv_struct_lastlogx = xyes; then 14857if test x$rxvt_cv_struct_lastlogx = xyes; then
14858
8601 cat >> confdefs.h <<\EOF 14859cat >>confdefs.h <<\_ACEOF
8602#define HAVE_STRUCT_LASTLOGX 1 14860#define HAVE_STRUCT_LASTLOGX 1
8603EOF 14861_ACEOF
8604 14862
8605fi 14863fi
8606 14864
8607 14865
14866echo "$as_me:$LINENO: checking where utmp is located" >&5
8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 14867echo $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 14868if test "${rxvt_cv_path_utmp+set}" = set; then
8611 echo $ac_n "(cached) $ac_c" 1>&6 14869 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else 14870else
8613 if test "$cross_compiling" = yes; then 14871 if test "$cross_compiling" = yes; then
14872 { 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 14873echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8615else 14874else
8616 cat > conftest.$ac_ext <<EOF 14875 cat >conftest.$ac_ext <<_ACEOF
8617#line 8618 "configure" 14876/* confdefs.h. */
8618#include "confdefs.h" 14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
14880/* end confdefs.h. */
8619#include <stdio.h> 14881#include <stdio.h>
8620#include <sys/types.h> 14882#include <sys/types.h>
8621#include <utmp.h> 14883#include <utmp.h>
8622#include <errno.h> 14884#include <errno.h>
8623main() 14885main()
8640 exit(0); 14902 exit(0);
8641 } 14903 }
8642 } 14904 }
8643 exit(0); 14905 exit(0);
8644} 14906}
8645EOF 14907_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 14908rm -f conftest$ac_exeext
8647then 14909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
8648 rxvt_cv_path_utmp=`cat conftestval` 14919 rxvt_cv_path_utmp=`cat conftestval`
8649else 14920else
14921 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "configure: failed program was:" >&5 14922echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5 14923sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -fr conftest* 14924
14925( exit $ac_status )
8653 rxvt_cv_path_utmp= 14926rxvt_cv_path_utmp=
8654fi 14927fi
8655rm -fr conftest* 14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi 14929fi
8657
8658fi 14930fi
8659 14931echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8660echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 14932echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8661if test x$rxvt_cv_path_utmp != x; then 14933if test x$rxvt_cv_path_utmp != x; then
14934
8662 cat >> confdefs.h <<EOF 14935cat >>confdefs.h <<_ACEOF
8663#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 14936#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8664EOF 14937_ACEOF
8665 14938
8666fi 14939fi
8667 14940
8668 14941
14942echo "$as_me:$LINENO: checking where utmpx is located" >&5
8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 14943echo $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 14944if test "${rxvt_cv_path_utmpx+set}" = set; then
8672 echo $ac_n "(cached) $ac_c" 1>&6 14945 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else 14946else
8674 if test "$cross_compiling" = yes; then 14947 if test "$cross_compiling" = yes; then
14948 { 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 14949echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8676else 14950else
8677 cat > conftest.$ac_ext <<EOF 14951 cat >conftest.$ac_ext <<_ACEOF
8678#line 8679 "configure" 14952/* confdefs.h. */
8679#include "confdefs.h" 14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
8680#include <stdio.h> 14957#include <stdio.h>
8681#include <sys/types.h> 14958#include <sys/types.h>
8682#include <utmpx.h> 14959#include <utmpx.h>
8683#include <errno.h> 14960#include <errno.h>
8684#include <sys/stat.h> 14961#include <sys/stat.h>
8711 exit(0); 14988 exit(0);
8712 } 14989 }
8713 } 14990 }
8714 exit(0); 14991 exit(0);
8715} 14992}
8716EOF 14993_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 14994rm -f conftest$ac_exeext
8718then 14995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14996 (eval $ac_link) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
8719 rxvt_cv_path_utmpx=`cat conftestval` 15005 rxvt_cv_path_utmpx=`cat conftestval`
8720else 15006else
15007 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "configure: failed program was:" >&5 15008echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5 15009sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -fr conftest* 15010
15011( exit $ac_status )
8724 rxvt_cv_path_utmpx= 15012rxvt_cv_path_utmpx=
8725fi 15013fi
8726rm -fr conftest* 15014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727fi 15015fi
8728
8729fi 15016fi
8730 15017echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8731echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15018echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8732if test x$rxvt_cv_path_utmpx != x; then 15019if test x$rxvt_cv_path_utmpx != x; then
15020
8733 cat >> confdefs.h <<EOF 15021cat >>confdefs.h <<_ACEOF
8734#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15022#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8735EOF 15023_ACEOF
8736 15024
8737fi 15025fi
8738 15026
8739 15027
15028echo "$as_me:$LINENO: checking where wtmp is located" >&5
8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15029echo $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 15030if test "${rxvt_cv_path_wtmp+set}" = set; then
8743 echo $ac_n "(cached) $ac_c" 1>&6 15031 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else 15032else
8745 if test "$cross_compiling" = yes; then 15033 if test "$cross_compiling" = yes; then
15034 { 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 15035echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8747else 15036else
8748 cat > conftest.$ac_ext <<EOF 15037 cat >conftest.$ac_ext <<_ACEOF
8749#line 8750 "configure" 15038/* confdefs.h. */
8750#include "confdefs.h" 15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
8751#include <stdio.h> 15043#include <stdio.h>
8752#include <sys/types.h> 15044#include <sys/types.h>
8753#ifdef HAVE_UTMP_H 15045#ifdef HAVE_UTMP_H
8754#include <utmp.h> 15046#include <utmp.h>
8755#endif 15047#endif
8756#include <errno.h> 15048#include <errno.h>
8757main() 15049main()
8758{ 15050{
8759 char **w, *wtmplist[] = { 15051 char **w, *wtmplist[] = {
8760 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15052 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8761 FILE *a, *f=fopen("conftestval", "w"); 15053 FILE *a, *f=fopen("conftestval", "w");
8762 if (!f) exit(1); 15054 if (!f) exit(1);
8763#ifdef WTMP_FILE 15055#ifdef WTMP_FILE
8764 fprintf(f, "%s\n", WTMP_FILE); 15056 fprintf(f, "%s\n", WTMP_FILE);
8765 exit(0); 15057 exit(0);
8774 exit(0); 15066 exit(0);
8775 } 15067 }
8776 } 15068 }
8777 exit(0); 15069 exit(0);
8778} 15070}
8779EOF 15071_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 15072rm -f conftest$ac_exeext
8781then 15073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
8782 rxvt_cv_path_wtmp=`cat conftestval` 15083 rxvt_cv_path_wtmp=`cat conftestval`
8783else 15084else
15085 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "configure: failed program was:" >&5 15086echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5 15087sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -fr conftest* 15088
15089( exit $ac_status )
8787 rxvt_cv_path_wtmp= 15090rxvt_cv_path_wtmp=
8788fi 15091fi
8789rm -fr conftest* 15092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790fi 15093fi
8791
8792fi 15094fi
8793 15095echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8794echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15096echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8795if test x$rxvt_cv_path_wtmp != x; then 15097if test x$rxvt_cv_path_wtmp != x; then
15098
8796 cat >> confdefs.h <<EOF 15099cat >>confdefs.h <<_ACEOF
8797#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15100#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8798EOF 15101_ACEOF
8799 15102
8800fi 15103fi
8801 15104
15105echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15106echo $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 15107if test "${rxvt_cv_path_wtmpx+set}" = set; then
8805 echo $ac_n "(cached) $ac_c" 1>&6 15108 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else 15109else
8807 if test "$cross_compiling" = yes; then 15110 if test "$cross_compiling" = yes; then
15111 { 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 15112echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8809else 15113else
8810 cat > conftest.$ac_ext <<EOF 15114 cat >conftest.$ac_ext <<_ACEOF
8811#line 8812 "configure" 15115/* confdefs.h. */
8812#include "confdefs.h" 15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
8813#include <stdio.h> 15120#include <stdio.h>
8814#ifdef HAVE_UTMPX_H 15121#ifdef HAVE_UTMPX_H
8815#include <utmpx.h> 15122#include <utmpx.h>
8816#endif 15123#endif
8817#include <errno.h> 15124#include <errno.h>
8818main() 15125main()
8819{ 15126{
8820 char **w, *wtmplist[] = { 15127 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15128 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w"); 15129 FILE *a, *f=fopen("conftestval", "w");
8823 if (!f) exit(1); 15130 if (!f) exit(1);
8824#ifdef WTMPX_FILE 15131#ifdef WTMPX_FILE
8825 fprintf(f, "%s\n", WTMPX_FILE); 15132 fprintf(f, "%s\n", WTMPX_FILE);
8826 exit(0); 15133 exit(0);
8835 exit(0); 15142 exit(0);
8836 } 15143 }
8837 } 15144 }
8838 exit(0); 15145 exit(0);
8839} 15146}
8840EOF 15147_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 15148rm -f conftest$ac_exeext
8842then 15149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
8843 rxvt_cv_path_wtmpx=`cat conftestval` 15159 rxvt_cv_path_wtmpx=`cat conftestval`
8844else 15160else
15161 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "configure: failed program was:" >&5 15162echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5 15163sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -fr conftest* 15164
15165( exit $ac_status )
8848 rxvt_cv_path_wtmpx= 15166rxvt_cv_path_wtmpx=
8849fi 15167fi
8850rm -fr conftest* 15168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851fi 15169fi
8852
8853fi 15170fi
8854 15171echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8855echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15172echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8856if test x$rxvt_cv_path_wtmpx != x; then 15173if test x$rxvt_cv_path_wtmpx != x; then
15174
8857 cat >> confdefs.h <<EOF 15175cat >>confdefs.h <<_ACEOF
8858#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15176#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8859EOF 15177_ACEOF
8860 15178
8861fi 15179fi
8862 15180
15181echo "$as_me:$LINENO: checking where lastlog is located" >&5
8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15182echo $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 15183if test "${rxvt_cv_path_lastlog+set}" = set; then
8866 echo $ac_n "(cached) $ac_c" 1>&6 15184 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else 15185else
8868 if test "$cross_compiling" = yes; then 15186 if test "$cross_compiling" = yes; then
15187 { 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 15188echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8870else 15189else
8871 cat > conftest.$ac_ext <<EOF 15190 cat >conftest.$ac_ext <<_ACEOF
8872#line 8873 "configure" 15191/* confdefs.h. */
8873#include "confdefs.h" 15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
8874#include <stdio.h> 15196#include <stdio.h>
8875#include <sys/types.h> 15197#include <sys/types.h>
8876#ifdef HAVE_UTMPX_H 15198#ifdef HAVE_UTMPX_H
8877#include <utmpx.h> 15199#include <utmpx.h>
8878#elif defined(HAVE_UTMP_H) 15200#elif defined(HAVE_UTMP_H)
8901 exit(0); 15223 exit(0);
8902 } 15224 }
8903 } 15225 }
8904 exit(0); 15226 exit(0);
8905} 15227}
8906EOF 15228_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 15229rm -f conftest$ac_exeext
8908then 15230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231 (eval $ac_link) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
8909 rxvt_cv_path_lastlog=`cat conftestval` 15240 rxvt_cv_path_lastlog=`cat conftestval`
8910else 15241else
15242 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "configure: failed program was:" >&5 15243echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5 15244sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -fr conftest* 15245
15246( exit $ac_status )
8914 rxvt_cv_path_lastlog= 15247rxvt_cv_path_lastlog=
8915fi 15248fi
8916rm -fr conftest* 15249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917fi 15250fi
8918
8919fi 15251fi
8920 15252echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8921echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15253echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8922if test x$rxvt_cv_path_lastlog != x; then 15254if test x$rxvt_cv_path_lastlog != x; then
15255
8923 cat >> confdefs.h <<EOF 15256cat >>confdefs.h <<_ACEOF
8924#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15257#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8925EOF 15258_ACEOF
8926 15259
8927 if test -d "$rxvt_cv_path_lastlog"; then 15260 if test -d "$rxvt_cv_path_lastlog"; then
15261
8928 cat >> confdefs.h <<\EOF 15262cat >>confdefs.h <<\_ACEOF
8929#define LASTLOG_IS_DIR 1 15263#define LASTLOG_IS_DIR 1
8930EOF 15264_ACEOF
8931 15265
8932 fi 15266 fi
8933fi 15267fi
8934 15268
15269echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15270echo $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 15271if test "${rxvt_cv_path_lastlogx+set}" = set; then
8938 echo $ac_n "(cached) $ac_c" 1>&6 15272 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else 15273else
8940 if test "$cross_compiling" = yes; then 15274 if test "$cross_compiling" = yes; then
15275 { 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 15276echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8942else 15277else
8943 cat > conftest.$ac_ext <<EOF 15278 cat >conftest.$ac_ext <<_ACEOF
8944#line 8945 "configure" 15279/* confdefs.h. */
8945#include "confdefs.h" 15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
8946#include <stdio.h> 15284#include <stdio.h>
8947#ifdef HAVE_UTMPX_H 15285#ifdef HAVE_UTMPX_H
8948#include <utmpx.h> 15286#include <utmpx.h>
8949#endif 15287#endif
8950#include <errno.h> 15288#include <errno.h>
8967 exit(0); 15305 exit(0);
8968 } 15306 }
8969 } 15307 }
8970 exit(0); 15308 exit(0);
8971} 15309}
8972EOF 15310_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 15311rm -f conftest$ac_exeext
8974then 15312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15313 (eval $ac_link) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
8975 rxvt_cv_path_lastlogx=`cat conftestval` 15322 rxvt_cv_path_lastlogx=`cat conftestval`
8976else 15323else
15324 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "configure: failed program was:" >&5 15325echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5 15326sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -fr conftest* 15327
15328( exit $ac_status )
8980 rxvt_cv_path_lastlogx= 15329rxvt_cv_path_lastlogx=
8981fi 15330fi
8982rm -fr conftest* 15331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi 15332fi
8984
8985fi 15333fi
8986 15334echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8987echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15335echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8988if test x$rxvt_cv_path_lastlogx != x; then 15336if test x$rxvt_cv_path_lastlogx != x; then
15337
8989 cat >> confdefs.h <<EOF 15338cat >>confdefs.h <<_ACEOF
8990#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15339#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8991EOF 15340_ACEOF
8992 15341
8993fi 15342fi
8994 15343
8995 15344
15345echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15346echo $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 15347if test "${rxvt_cv_path_ttytab+set}" = set; then
8999 echo $ac_n "(cached) $ac_c" 1>&6 15348 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else 15349else
9001 for ttys_file in /etc/ttys /etc/ttytab; 15350 for ttys_file in /etc/ttys /etc/ttytab;
9002do 15351do
9003 if test -f "$ttys_file" ; then 15352 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file 15353 rxvt_cv_path_ttytab=$ttys_file
9005 break 15354 break
9006 fi 15355 fi
9007done 15356done
9008 15357
9009fi 15358fi
9010 15359echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
9011echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15360echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
9012if test x$rxvt_cv_path_ttytab != x; then 15361if test x$rxvt_cv_path_ttytab != x; then
15362
9013 cat >> confdefs.h <<EOF 15363cat >>confdefs.h <<_ACEOF
9014#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15364#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9015EOF 15365_ACEOF
9016 15366
9017fi 15367fi
9018 15368
9019 15369
9020ac_save_LIBS=$LIBS 15370ac_save_LIBS=$LIBS
9022CFLAGS="$CFLAGS $X_CFLAGS" 15372CFLAGS="$CFLAGS $X_CFLAGS"
9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15373LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15374if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15375 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9026fi 15376fi
15377echo "$as_me:$LINENO: checking for working Xlocale" >&5
9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15378echo $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 15379if test "${rxvt_cv_func_xlocale+set}" = set; then
9030 echo $ac_n "(cached) $ac_c" 1>&6 15380 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else 15381else
9032 if test "$cross_compiling" = yes; then 15382 if test "$cross_compiling" = yes; then
15383 { 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 15384echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9034else 15385else
9035 cat > conftest.$ac_ext <<EOF 15386 cat >conftest.$ac_ext <<_ACEOF
9036#line 9037 "configure" 15387/* confdefs.h. */
9037#include "confdefs.h" 15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
9038#include <X11/Xlib.h> 15392#include <X11/Xlib.h>
9039main() { 15393main() {
9040char *p; 15394char *p;
9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15395if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042exit (XSupportsLocale() ? 0 : 1); 15396exit (XSupportsLocale() ? 0 : 1);
9043else 15397else
9044exit (1);} 15398exit (1);}
9045EOF 15399_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 15400rm -f conftest$ac_exeext
9047then 15401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
9048 rxvt_cv_func_xlocale=yes 15411 rxvt_cv_func_xlocale=yes
9049else 15412else
15413 echo "$as_me: program exited with status $ac_status" >&5
9050 echo "configure: failed program was:" >&5 15414echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 15415sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -fr conftest* 15416
15417( exit $ac_status )
9053 rxvt_cv_func_xlocale=no 15418rxvt_cv_func_xlocale=no
9054fi 15419fi
9055rm -fr conftest* 15420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056fi 15421fi
9057
9058fi 15422fi
9059 15423echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9060echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15424echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9061if test x$rxvt_cv_func_xlocale = xyes; then 15425if test x$rxvt_cv_func_xlocale = xyes; then
15426
9062 cat >> confdefs.h <<\EOF 15427cat >>confdefs.h <<\_ACEOF
9063#define HAVE_XLOCALE 1 15428#define HAVE_XLOCALE 1
9064EOF 15429_ACEOF
9065 15430
9066fi 15431fi
9067 15432
15433echo "$as_me:$LINENO: checking for working X setlocale" >&5
9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15434echo $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 15435if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9071 echo $ac_n "(cached) $ac_c" 1>&6 15436 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else 15437else
9073 cat > conftest.$ac_ext <<EOF 15438 cat >conftest.$ac_ext <<_ACEOF
9074#line 9075 "configure" 15439/* confdefs.h. */
9075#include "confdefs.h" 15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
9076#define X_LOCALE 1 15444#define X_LOCALE 1
9077#include <X11/Xlocale.h> 15445#include <X11/Xlocale.h>
9078int main() { 15446int
15447main ()
15448{
9079setlocale(LC_CTYPE, ""); 15449setlocale(LC_CTYPE, "");
15450 ;
9080; return 0; } 15451 return 0;
9081EOF 15452}
9082if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15453_ACEOF
15454rm -f conftest.$ac_objext conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -rf conftest* 15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest$ac_exeext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
9084 rxvt_cv_func_xsetlocale=yes 15475 rxvt_cv_func_xsetlocale=yes
9085else 15476else
9086 echo "configure: failed program was:" >&5 15477 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5 15478sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest* 15479
9089 rxvt_cv_func_xsetlocale=no 15480rxvt_cv_func_xsetlocale=no
9090fi 15481fi
9091rm -f conftest* 15482rm -f conftest.err conftest.$ac_objext \
15483 conftest$ac_exeext conftest.$ac_ext
9092fi 15484fi
9093 15485echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9094echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15486echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9095if test x$rxvt_cv_func_xsetlocale = xyes; then 15487if test x$rxvt_cv_func_xsetlocale = xyes; then
15488
9096 cat >> confdefs.h <<\EOF 15489cat >>confdefs.h <<\_ACEOF
9097#define HAVE_XSETLOCALE 1 15490#define HAVE_XSETLOCALE 1
9098EOF 15491_ACEOF
9099 15492
9100fi 15493fi
9101LIBS=$ac_save_LIBS 15494LIBS=$ac_save_LIBS
9102CFLAGS=$ac_save_CFLAGS 15495CFLAGS=$ac_save_CFLAGS
9103 15496
15497echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15498echo $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 15499if test "${rxvt_cv_func_setlocale+set}" = set; then
9107 echo $ac_n "(cached) $ac_c" 1>&6 15500 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else 15501else
9109 cat > conftest.$ac_ext <<EOF 15502 cat >conftest.$ac_ext <<_ACEOF
9110#line 9111 "configure" 15503/* confdefs.h. */
9111#include "confdefs.h" 15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */
9112#include <locale.h> 15508#include <locale.h>
9113int main() { 15509int
15510main ()
15511{
9114setlocale(LC_CTYPE, ""); 15512setlocale(LC_CTYPE, "");
15513 ;
9115; return 0; } 15514 return 0;
9116EOF 15515}
9117if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15516_ACEOF
15517rm -f conftest.$ac_objext conftest$ac_exeext
15518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -rf conftest* 15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
9119 rxvt_cv_func_setlocale=yes 15538 rxvt_cv_func_setlocale=yes
9120else 15539else
9121 echo "configure: failed program was:" >&5 15540 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 15541sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -rf conftest* 15542
9124 rxvt_cv_func_setlocale=no 15543rxvt_cv_func_setlocale=no
9125fi 15544fi
9126rm -f conftest* 15545rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
9127fi 15547fi
9128 15548echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9129echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15549echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9130if test x$rxvt_cv_func_setlocale = xyes; then 15550if test x$rxvt_cv_func_setlocale = xyes; then
15551
9131 cat >> confdefs.h <<\EOF 15552cat >>confdefs.h <<\_ACEOF
9132#define HAVE_SETLOCALE 1 15553#define HAVE_SETLOCALE 1
9133EOF 15554_ACEOF
9134 15555
9135fi 15556fi
9136 15557
15558echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15559echo $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 15560if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9140 echo $ac_n "(cached) $ac_c" 1>&6 15561 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else 15562else
9142 cat > conftest.$ac_ext <<EOF 15563 cat >conftest.$ac_ext <<_ACEOF
9143#line 9144 "configure" 15564/* confdefs.h. */
9144#include "confdefs.h" 15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
9145#include <langinfo.h> 15569#include <langinfo.h>
9146int main() { 15570int
15571main ()
15572{
9147nl_langinfo(CODESET); 15573nl_langinfo(CODESET);
15574 ;
9148; return 0; } 15575 return 0;
9149EOF 15576}
9150if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -rf conftest* 15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
9152 rxvt_cv_func_nl_langinfo=yes 15599 rxvt_cv_func_nl_langinfo=yes
9153else 15600else
9154 echo "configure: failed program was:" >&5 15601 echo "$as_me: failed program was:" >&5
9155 cat conftest.$ac_ext >&5 15602sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -rf conftest* 15603
9157 rxvt_cv_func_nl_langinfo=no 15604rxvt_cv_func_nl_langinfo=no
9158fi 15605fi
9159rm -f conftest* 15606rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
9160fi 15608fi
9161 15609echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9162echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15610echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9163if test x$rxvt_cv_func_nl_langinfo = xyes; then 15611if test x$rxvt_cv_func_nl_langinfo = xyes; then
15612
9164 cat >> confdefs.h <<\EOF 15613cat >>confdefs.h <<\_ACEOF
9165#define HAVE_NL_LANGINFO 1 15614#define HAVE_NL_LANGINFO 1
9166EOF 15615_ACEOF
9167 15616
9168fi 15617fi
9169 15618
15619echo "$as_me:$LINENO: checking for getpt" >&5
9170echo $ac_n "checking for getpt""... $ac_c" 1>&6 15620echo $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 15621if test "${rxvt_cv_func_getpt+set}" = set; then
9173 echo $ac_n "(cached) $ac_c" 1>&6 15622 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else 15623else
9175 cat > conftest.$ac_ext <<EOF 15624 cat >conftest.$ac_ext <<_ACEOF
9176#line 9177 "configure" 15625/* confdefs.h. */
9177#include "confdefs.h" 15626_ACEOF
15627cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */
9178#define _GNU_SOURCE 15630#define _GNU_SOURCE
9179#ifdef HAVE_STDLIB_H 15631#ifdef HAVE_STDLIB_H
9180# include <stdlib.h> 15632# include <stdlib.h>
9181#endif 15633#endif
9182int main() { 15634int
15635main ()
15636{
9183(void)getpt(); 15637(void)getpt();
15638 ;
9184; return 0; } 15639 return 0;
9185EOF 15640}
9186if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15641_ACEOF
15642rm -f conftest.$ac_objext conftest$ac_exeext
15643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -rf conftest* 15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
9188 rxvt_cv_func_getpt=yes 15663 rxvt_cv_func_getpt=yes
9189else 15664else
9190 echo "configure: failed program was:" >&5 15665 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 15666sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -rf conftest* 15667
9193 rxvt_cv_func_getpt=no 15668rxvt_cv_func_getpt=no
9194fi 15669fi
9195rm -f conftest* 15670rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
9196fi 15672fi
9197 15673echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9198echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 15674echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9199if test x$rxvt_cv_func_getpt = xyes; then 15675if test x$rxvt_cv_func_getpt = xyes; then
15676
9200 cat >> confdefs.h <<\EOF 15677cat >>confdefs.h <<\_ACEOF
9201#define HAVE_GETPT 1 15678#define HAVE_GETPT 1
9202EOF 15679_ACEOF
9203 15680
9204fi 15681fi
9205 15682
15683echo "$as_me:$LINENO: checking for pty/tty type" >&5
9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 15684echo $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 15685if test "${rxvt_cv_ptys+set}" = set; then
9209 echo $ac_n "(cached) $ac_c" 1>&6 15686 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else 15687else
9211 if test x$ac_cv_func_openpty = xyes; then 15688 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY 15689 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then 15690 else if test x$ac_cv_func__getpty = xyes; then
9214 rxvt_cv_ptys=SGI4 15691 rxvt_cv_ptys=SGI4
9237fi 15714fi
9238fi 15715fi
9239fi 15716fi
9240 15717
9241fi 15718fi
9242 15719echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9243echo "$ac_t""$rxvt_cv_ptys" 1>&6 15720echo "${ECHO_T}$rxvt_cv_ptys" >&6
9244 15721
9245if test x$rxvt_cv_ptys = xOPENPTY; then 15722if test x$rxvt_cv_ptys = xOPENPTY; then
15723
9246 cat >> confdefs.h <<\EOF 15724cat >>confdefs.h <<\_ACEOF
9247#define PTYS_ARE_OPENPTY 1 15725#define PTYS_ARE_OPENPTY 1
9248EOF 15726_ACEOF
9249 15727
9250fi 15728fi
9251if test x$rxvt_cv_ptys = xSCO; then 15729if test x$rxvt_cv_ptys = xSCO; then
15730
9252 cat >> confdefs.h <<\EOF 15731cat >>confdefs.h <<\_ACEOF
9253#define PTYS_ARE_NUMERIC 1 15732#define PTYS_ARE_NUMERIC 1
9254EOF 15733_ACEOF
9255 15734
9256fi 15735fi
9257if test x$rxvt_cv_ptys = xSTREAMS; then 15736if test x$rxvt_cv_ptys = xSTREAMS; then
15737
9258 cat >> confdefs.h <<\EOF 15738cat >>confdefs.h <<\_ACEOF
9259#define PTYS_ARE_PTMX 1 15739#define PTYS_ARE_PTMX 1
9260EOF 15740_ACEOF
9261 15741
9262fi 15742fi
9263if test x$rxvt_cv_ptys = xPTC; then 15743if test x$rxvt_cv_ptys = xPTC; then
15744
9264 cat >> confdefs.h <<\EOF 15745cat >>confdefs.h <<\_ACEOF
9265#define PTYS_ARE_PTC 1 15746#define PTYS_ARE_PTC 1
9266EOF 15747_ACEOF
9267 15748
9268fi 15749fi
9269if test x$rxvt_cv_ptys = xSGI4; then 15750if test x$rxvt_cv_ptys = xSGI4; then
15751
9270 cat >> confdefs.h <<\EOF 15752cat >>confdefs.h <<\_ACEOF
9271#define PTYS_ARE__GETPTY 1 15753#define PTYS_ARE__GETPTY 1
9272EOF 15754_ACEOF
9273 15755
9274fi 15756fi
9275if test x$rxvt_cv_ptys = xCONVEX; then 15757if test x$rxvt_cv_ptys = xCONVEX; then
15758
9276 cat >> confdefs.h <<\EOF 15759cat >>confdefs.h <<\_ACEOF
9277#define PTYS_ARE_GETPTY 1 15760#define PTYS_ARE_GETPTY 1
9278EOF 15761_ACEOF
9279 15762
9280fi 15763fi
9281if test x$rxvt_cv_ptys = xGLIBC; then 15764if test x$rxvt_cv_ptys = xGLIBC; then
15765
9282 cat >> confdefs.h <<\EOF 15766cat >>confdefs.h <<\_ACEOF
9283#define PTYS_ARE_GETPT 1 15767#define PTYS_ARE_GETPT 1
9284EOF 15768_ACEOF
9285 15769
9286fi 15770fi
9287if test x$rxvt_cv_ptys = xHPUX; then 15771if test x$rxvt_cv_ptys = xHPUX; then
15772
9288 cat >> confdefs.h <<\EOF 15773cat >>confdefs.h <<\_ACEOF
9289#define PTYS_ARE_CLONE 1 15774#define PTYS_ARE_CLONE 1
9290EOF 15775_ACEOF
9291 15776
9292fi 15777fi
9293if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 15778if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
15779
9294 cat >> confdefs.h <<\EOF 15780cat >>confdefs.h <<\_ACEOF
9295#define PTYS_ARE_SEARCHED 1 15781#define PTYS_ARE_SEARCHED 1
9296EOF 15782_ACEOF
9297 15783
9298fi 15784fi
9299 15785
9300 15786
15787{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9301echo "checking for pty ranges" 1>&6 15788echo "$as_me: checking for pty ranges..." >&6;}
9302echo "configure:9303: checking for pty ranges" >&5
9303ptys=`echo /dev/pty??` 15789ptys=`echo /dev/pty??`
9304pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 15790pch1=`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'` 15791pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9306if test x$pch1 != x; then 15792if test x$pch1 != x; then
15793
9307 cat >> confdefs.h <<EOF 15794cat >>confdefs.h <<_ACEOF
9308#define PTYCHAR1 "$pch1" 15795#define PTYCHAR1 "$pch1"
9309EOF 15796_ACEOF
9310 15797
9311fi 15798fi
9312if test x$pch2 != x; then 15799if test x$pch2 != x; then
15800
9313 cat >> confdefs.h <<EOF 15801cat >>confdefs.h <<_ACEOF
9314#define PTYCHAR2 "$pch2" 15802#define PTYCHAR2 "$pch2"
9315EOF 15803_ACEOF
9316 15804
9317fi 15805fi
9318 15806
15807echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 15808echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9320echo "configure:9321: checking for setlocale in -lxpg4" >&5 15809if 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 15810 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else 15811else
9325 ac_save_LIBS="$LIBS" 15812 ac_check_lib_save_LIBS=$LIBS
9326LIBS="-lxpg4 $LIBS" 15813LIBS="-lxpg4 $LIBS"
9327cat > conftest.$ac_ext <<EOF 15814cat >conftest.$ac_ext <<_ACEOF
9328#line 9329 "configure" 15815/* confdefs.h. */
9329#include "confdefs.h" 15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820
9330/* Override any gcc2 internal prototype to avoid an error. */ 15821/* Override any gcc2 internal prototype to avoid an error. */
15822#ifdef __cplusplus
15823extern "C"
15824#endif
9331/* We use char because int might match the return type of a gcc2 15825/* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */ 15826 builtin and then its argument prototype would still apply. */
9333char setlocale(); 15827char setlocale ();
9334 15828int
9335int main() { 15829main ()
15830{
9336setlocale() 15831setlocale ();
15832 ;
9337; return 0; } 15833 return 0;
9338EOF 15834}
9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15835_ACEOF
15836rm -f conftest.$ac_objext conftest$ac_exeext
15837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -rf conftest* 15841 rm -f conftest.er1
9341 eval "ac_cv_lib_$ac_lib_var=yes" 15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest$ac_exeext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 ac_cv_lib_xpg4_setlocale=yes
9342else 15858else
9343 echo "configure: failed program was:" >&5 15859 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5 15860sed 's/^/| /' conftest.$ac_ext >&5
9345 rm -rf conftest* 15861
9346 eval "ac_cv_lib_$ac_lib_var=no" 15862ac_cv_lib_xpg4_setlocale=no
9347fi 15863fi
9348rm -f conftest* 15864rm -f conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
9349LIBS="$ac_save_LIBS" 15866LIBS=$ac_check_lib_save_LIBS
9350
9351fi 15867fi
9352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 15868echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9353 echo "$ac_t""yes" 1>&6 15869echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
15870if test $ac_cv_lib_xpg4_setlocale = yes; then
9354 LIBS="$LIBS -lxpg4" 15871 LIBS="$LIBS -lxpg4"
9355else
9356 echo "$ac_t""no" 1>&6
9357fi 15872fi
9358 15873
9359 15874
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 15875if test x$support_inheritpixmap = xyes; then
15876
9367 cat >> confdefs.h <<\EOF 15877cat >>confdefs.h <<\_ACEOF
9368#define TRANSPARENT 1 15878#define TRANSPARENT 1
9369EOF 15879_ACEOF
9370 15880
9371fi 15881fi
9372if test x$support_keepscrolling = xno; then 15882if test x$support_keepscrolling = xno; then
15883
9373 cat >> confdefs.h <<\EOF 15884cat >>confdefs.h <<\_ACEOF
9374#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 15885#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9375EOF 15886_ACEOF
9376 15887
9377fi 15888fi
9378if test x$support_selectionscrolling = xyes; then 15889if test x$support_selectionscrolling = xyes; then
15890
9379 cat >> confdefs.h <<\EOF 15891cat >>confdefs.h <<\_ACEOF
9380#define SELECTION_SCROLLING 1 15892#define SELECTION_SCROLLING 1
9381EOF 15893_ACEOF
9382 15894
9383fi 15895fi
9384if test x$support_menubar = xyes; then 15896if test x$support_menubar = xyes; then
15897
9385 cat >> confdefs.h <<\EOF 15898cat >>confdefs.h <<\_ACEOF
9386#define MENUBAR 1 15899#define MENUBAR 1
9387EOF 15900_ACEOF
9388 15901
9389fi 15902fi
9390if test x$support_frills = xno; then 15903if test x$support_frills = xno; then
15904
9391 cat >> confdefs.h <<\EOF 15905cat >>confdefs.h <<\_ACEOF
9392#define NO_FRILLS 1 15906#define NO_FRILLS 1
9393EOF 15907_ACEOF
9394 15908
9395fi 15909fi
9396if test x$support_linespace = xno; then 15910if test x$support_linespace = xno; then
15911
9397 cat >> confdefs.h <<\EOF 15912cat >>confdefs.h <<\_ACEOF
9398#define NO_LINESPACE 1 15913#define NO_LINESPACE 1
9399EOF 15914_ACEOF
9400 15915
9401fi 15916fi
9402if test x$support_24bit = xyes; then 15917if test x$support_24bit = xyes; then
15918
9403 cat >> confdefs.h <<\EOF 15919cat >>confdefs.h <<\_ACEOF
9404#define PREFER_24BIT 1 15920#define PREFER_24BIT 1
9405EOF 15921_ACEOF
9406 15922
9407fi 15923fi
9408if test x$support_mousewheel = xyes; then 15924if test x$support_mousewheel = xyes; then
15925
9409 cat >> confdefs.h <<\EOF 15926cat >>confdefs.h <<\_ACEOF
9410#define MOUSE_WHEEL 1 15927#define MOUSE_WHEEL 1
9411EOF 15928_ACEOF
9412 15929
9413fi 15930fi
9414if test x$support_mouseslipwheel = xyes; then 15931if test x$support_mouseslipwheel = xyes; then
15932
9415 cat >> confdefs.h <<\EOF 15933cat >>confdefs.h <<\_ACEOF
9416#define MOUSE_SLIP_WHEELING 1 15934#define MOUSE_SLIP_WHEELING 1
9417EOF 15935_ACEOF
9418 15936
9419fi 15937fi
9420if test x$support_oldselection = xno; then 15938if test x$support_oldselection = xno; then
15939
9421 cat >> confdefs.h <<\EOF 15940cat >>confdefs.h <<\_ACEOF
9422#define NO_OLD_SELECTION 1 15941#define NO_OLD_SELECTION 1
9423EOF 15942_ACEOF
9424 15943
9425fi 15944fi
9426if test x$support_utmp = xyes; then 15945if test x$support_utmp = xyes; then
15946
9427 cat >> confdefs.h <<\EOF 15947cat >>confdefs.h <<\_ACEOF
9428#define UTMP_SUPPORT 1 15948#define UTMP_SUPPORT 1
9429EOF 15949_ACEOF
9430 15950
9431fi 15951fi
9432if test x$support_wtmp = xyes; then 15952if test x$support_wtmp = xyes; then
15953
9433 cat >> confdefs.h <<\EOF 15954cat >>confdefs.h <<\_ACEOF
9434#define WTMP_SUPPORT 1 15955#define WTMP_SUPPORT 1
9435EOF 15956_ACEOF
9436 15957
9437fi 15958fi
9438if test x$support_lastlog = xyes; then 15959if test x$support_lastlog = xyes; then
15960
9439 cat >> confdefs.h <<\EOF 15961cat >>confdefs.h <<\_ACEOF
9440#define LASTLOG_SUPPORT 1 15962#define LASTLOG_SUPPORT 1
9441EOF 15963_ACEOF
9442 15964
9443fi 15965fi
9444if test x$support_xim = xyes -o x$multichar_set = xyes; then 15966if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then 15967 if test x$rxvt_cv_func_xlocale = xyes; then
15968
9446 cat >> confdefs.h <<\EOF 15969cat >>confdefs.h <<\_ACEOF
9447#define USE_XIM 1 15970#define USE_XIM 1
9448EOF 15971_ACEOF
9449 15972
9450 fi 15973 fi
9451fi 15974fi
9452if test x$support_xpm = xyes; then 15975if test x$support_xpm = xyes; then
15976
9453 cat >> confdefs.h <<\EOF 15977cat >>confdefs.h <<\_ACEOF
9454#define XPM_BACKGROUND 1 15978#define XPM_BACKGROUND 1
9455EOF 15979_ACEOF
9456 15980
9457fi 15981fi
9458if test x$support_scroll_rxvt = xyes; then 15982if test x$support_scroll_rxvt = xyes; then
15983
9459 cat >> confdefs.h <<\EOF 15984cat >>confdefs.h <<\_ACEOF
9460#define RXVT_SCROLLBAR 1 15985#define RXVT_SCROLLBAR 1
9461EOF 15986_ACEOF
9462 15987
9463 scrolltypes="rxvt" 15988 scrolltypes="rxvt"
9464fi 15989fi
9465if test x$support_scroll_next = xyes; then 15990if test x$support_scroll_next = xyes; then
15991
9466 cat >> confdefs.h <<\EOF 15992cat >>confdefs.h <<\_ACEOF
9467#define NEXT_SCROLLBAR 1 15993#define NEXT_SCROLLBAR 1
9468EOF 15994_ACEOF
9469 15995
9470 scrolltypes="$scrolltypes next" 15996 scrolltypes="$scrolltypes next"
9471fi 15997fi
9472if test x$support_scroll_xterm = xyes; then 15998if test x$support_scroll_xterm = xyes; then
15999
9473 cat >> confdefs.h <<\EOF 16000cat >>confdefs.h <<\_ACEOF
9474#define XTERM_SCROLLBAR 1 16001#define XTERM_SCROLLBAR 1
9475EOF 16002_ACEOF
9476 16003
9477 scrolltypes="$scrolltypes xterm" 16004 scrolltypes="$scrolltypes xterm"
9478fi 16005fi
16006if test x$support_scroll_plain = xyes; then
16007
16008cat >>confdefs.h <<\_ACEOF
16009#define PLAIN_SCROLLBAR 1
16010_ACEOF
16011
16012 scrolltypes="$scrolltypes plain"
16013fi
9479if test x$support_pointer_blank = xyes; then 16014if test x$support_pointer_blank = xyes; then
16015
9480 cat >> confdefs.h <<\EOF 16016cat >>confdefs.h <<\_ACEOF
9481#define POINTER_BLANK 1 16017#define POINTER_BLANK 1
9482EOF 16018_ACEOF
9483 16019
9484fi 16020fi
9485if test x$support_cursor_blink = xyes; then 16021if test x$support_cursor_blink = xyes; then
16022
9486 cat >> confdefs.h <<\EOF 16023cat >>confdefs.h <<\_ACEOF
9487#define CURSOR_BLINK 1 16024#define CURSOR_BLINK 1
9488EOF 16025_ACEOF
16026
16027fi
16028if test x$support_text_blink = xyes; then
16029
16030cat >>confdefs.h <<\_ACEOF
16031#define TEXT_BLINK 1
16032_ACEOF
9489 16033
9490fi 16034fi
9491if test x$support_unicode3 = xyes; then 16035if test x$support_unicode3 = xyes; then
16036
9492 cat >> confdefs.h <<\EOF 16037cat >>confdefs.h <<\_ACEOF
9493#define UNICODE_3 1 16038#define UNICODE_3 1
9494EOF 16039_ACEOF
9495 16040
9496fi 16041fi
9497if test x$codesets = xall; then 16042if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16043 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9499fi 16044fi
9500for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16045for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16046
9501 cat >> confdefs.h <<\EOF 16047cat >>confdefs.h <<\_ACEOF
9502#define ENCODING_EU 1 16048#define ENCODING_EU 1
9503EOF 16049_ACEOF
9504 16050
9505 case "$codeset" in 16051 case "$codeset" in
9506 VN ) cat >> confdefs.h <<\EOF 16052 VN )
16053cat >>confdefs.h <<\_ACEOF
9507#define ENCODING_VN 1 16054#define ENCODING_VN 1
9508EOF 16055_ACEOF
9509 ;; 16056 ;;
9510 JP ) cat >> confdefs.h <<\EOF 16057 JP )
16058cat >>confdefs.h <<\_ACEOF
9511#define ENCODING_JP 1 16059#define ENCODING_JP 1
9512EOF 16060_ACEOF
9513 ;; 16061 ;;
9514 JP_EXT ) cat >> confdefs.h <<\EOF 16062 JP_EXT )
16063cat >>confdefs.h <<\_ACEOF
9515#define ENCODING_JP_EXT 1 16064#define ENCODING_JP_EXT 1
9516EOF 16065_ACEOF
9517 ;; 16066 ;;
9518 KR ) cat >> confdefs.h <<\EOF 16067 KR )
16068cat >>confdefs.h <<\_ACEOF
9519#define ENCODING_KR 1 16069#define ENCODING_KR 1
9520EOF 16070_ACEOF
9521 ;; 16071 ;;
9522 CN ) cat >> confdefs.h <<\EOF 16072 CN )
16073cat >>confdefs.h <<\_ACEOF
9523#define ENCODING_CN 1 16074#define ENCODING_CN 1
9524EOF 16075_ACEOF
9525 ;; 16076 ;;
9526 CN_EXT ) cat >> confdefs.h <<\EOF 16077 CN_EXT )
16078cat >>confdefs.h <<\_ACEOF
9527#define ENCODING_CN_EXT 1 16079#define ENCODING_CN_EXT 1
9528EOF 16080_ACEOF
9529 ;; 16081 ;;
9530 esac 16082 esac
9531done 16083done
9532 16084
9533 16085
9553 16105
9554 16106
9555 16107
9556 16108
9557if test x$support_addstrings = xno; then 16109if test x$support_addstrings = xno; then
16110
9558 cat >> confdefs.h <<\EOF 16111cat >>confdefs.h <<\_ACEOF
9559#define NO_STRINGS 1 16112#define NO_STRINGS 1
9560EOF 16113_ACEOF
9561 16114
9562fi 16115fi
9563 16116
9564MCOMMON=./autoconf/Make.common 16117MCOMMON=./autoconf/Make.common
9565 16118
9566 16119
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 && 16120test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16121 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9579# Use a double $ so make ignores it. 16122# Use a double $ so make ignores it.
9580test "$program_suffix" != NONE && 16123test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16124 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9582 16125# Double any \ or $. echo might interpret backslashes.
9583# sed with no file args requires a program. 16126# By default was `s,x,x', remove it if useless.
9584test "$program_transform_name" = "" && program_transform_name="s,x,x," 16127cat <<\_ACEOF >conftest.sed
16128s/[\\$]/&&/g;s/;s,x,x,$//
16129_ACEOF
16130program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16131rm conftest.sed
9585 16132
9586 16133
9587RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16134RXVTNAME=`echo rxvt|sed "$program_transform_name"`
9588 16135
9589 16136
9592 16139
9593if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16140if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>" 16141 include_stdint_h="#include <stdint.h>"
9595else 16142else
9596 include_stdint_h="/* #include <stdint.h> */" 16143 include_stdint_h="/* #include <stdint.h> */"
9597fi 16144fi
9598if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16145if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>" 16146 include_stdarg_h="#include <stdarg.h>"
9600else 16147else
9601 include_stdarg_h="/* #include <stdarg.h> */" 16148 include_stdarg_h="/* #include <stdarg.h> */"
9602fi 16149fi
9603if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16150if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>" 16151 include_stdlib_h="#include <stdlib.h>"
9605else 16152else
9606 include_stdlib_h="/* #include <stdlib.h> */" 16153 include_stdlib_h="/* #include <stdlib.h> */"
9607fi 16154fi
9608if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16155if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>" 16156 include_unistd_h="#include <unistd.h>"
9610else 16157else
9611 include_unistd_h="/* #include <unistd.h> */" 16158 include_unistd_h="/* #include <unistd.h> */"
9612fi 16159fi
9613if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16160if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>" 16161 include_string_h="#include <string.h>"
9615else 16162else
9616 include_string_h="/* #include <string.h> */" 16163 include_string_h="/* #include <string.h> */"
9617fi 16164fi
9618if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16165if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>" 16166 include_fcntl_h="#include <fcntl.h>"
9620else 16167else
9621 include_fcntl_h="/* #include <fcntl.h> */" 16168 include_fcntl_h="/* #include <fcntl.h> */"
9622fi 16169fi
9623if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16170if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>" 16171 include_util_h="#include <util.h>"
9625else 16172else
9626 include_util_h="/* #include <util.h> */" 16173 include_util_h="/* #include <util.h> */"
9627fi 16174fi
9628if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16175if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>" 16176 include_assert_h="#include <assert.h>"
9630else 16177else
9631 include_assert_h="/* #include <assert.h> */" 16178 include_assert_h="/* #include <assert.h> */"
9632fi 16179fi
9633if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16180if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>" 16181 include_sys_ioctl_h="#include <sys/ioctl.h>"
9635else 16182else
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16183 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9637fi 16184fi
9638if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16185if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9639 include_sys_select_h="#include <sys/select.h>" 16186 include_sys_select_h="#include <sys/select.h>"
9640else 16187else
9641 include_sys_select_h="/* #include <sys/select.h> */" 16188 include_sys_select_h="/* #include <sys/select.h> */"
9642fi 16189fi
9643if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16190if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9644 include_sys_strredir_h="#include <sys/strredir.h>" 16191 include_sys_strredir_h="#include <sys/strredir.h>"
9645else 16192else
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16193 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9647fi 16194fi
9648if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16195if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9649 include_sys_time_h="#include <sys/time.h>" 16196 include_sys_time_h="#include <sys/time.h>"
9650else 16197else
9651 include_sys_time_h="/* #include <sys/time.h> */" 16198 include_sys_time_h="/* #include <sys/time.h> */"
9652fi 16199fi
9653if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16200if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9654 include_time_h="#include <time.h>" 16201 include_time_h="#include <time.h>"
9655else 16202else
9656 include_time_h="/* #include <time.h> */" 16203 include_time_h="/* #include <time.h> */"
9657fi 16204fi
9658 16205
9659if test x$support_xft = xyes; then 16206if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`" 16207 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16208 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16209 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9663 16210
16211
9664 for ac_hdr in X11/Xft/Xft.h 16212for ac_header in X11/Xft/Xft.h
9665do 16213do
9666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215if eval "test \"\${$as_ac_Header+set}\" = set"; then
16216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668echo "configure:9669: checking for $ac_hdr" >&5 16218if 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 16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16220fi
16221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671else 16223else
16224 # Is the header compilable?
16225echo "$as_me:$LINENO: checking $ac_header usability" >&5
16226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9672 cat > conftest.$ac_ext <<EOF 16227cat >conftest.$ac_ext <<_ACEOF
9673#line 9674 "configure" 16228/* confdefs.h. */
9674#include "confdefs.h" 16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233$ac_includes_default
9675#include <$ac_hdr> 16234#include <$ac_header>
9676EOF 16235_ACEOF
9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16236rm -f conftest.$ac_objext
9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16238 (eval $ac_compile) 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_header_compiler=yes
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262ac_header_compiler=no
16263fi
16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16266echo "${ECHO_T}$ac_header_compiler" >&6
16267
16268# Is the header present?
16269echo "$as_me:$LINENO: checking $ac_header presence" >&5
16270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16271cat >conftest.$ac_ext <<_ACEOF
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277#include <$ac_header>
16278_ACEOF
16279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag
16289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16290 else
16291 ac_cpp_err=
16292 fi
16293else
16294 ac_cpp_err=yes
16295fi
9680if test -z "$ac_err"; then 16296if test -z "$ac_cpp_err"; then
9681 rm -rf conftest* 16297 ac_header_preproc=yes
9682 eval "ac_cv_header_$ac_safe=yes"
9683else 16298else
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5 16299 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5 16300sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -rf conftest* 16301
9688 eval "ac_cv_header_$ac_safe=no" 16302 ac_header_preproc=no
9689fi 16303fi
9690rm -f conftest* 16304rm -f conftest.err conftest.$ac_ext
16305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306echo "${ECHO_T}$ac_header_preproc" >&6
16307
16308# So? What about this header?
16309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310 yes:no: )
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315 ac_header_preproc=yes
16316 ;;
16317 no:yes:* )
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330 (
16331 cat <<\_ASBOX
16332## ------------------------------------------ ##
16333## Report this to the AC_PACKAGE_NAME lists. ##
16334## ------------------------------------------ ##
16335_ASBOX
16336 ) |
16337 sed "s/^/$as_me: WARNING: /" >&2
16338 ;;
16339esac
16340echo "$as_me:$LINENO: checking for $ac_header" >&5
16341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16342if eval "test \"\${$as_ac_Header+set}\" = set"; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344else
16345 eval "$as_ac_Header=\$ac_header_preproc"
9691fi 16346fi
9692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "$ac_t""yes" 1>&6 16348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16349
16350fi
16351if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >> confdefs.h <<EOF 16352 cat >>confdefs.h <<_ACEOF
9696#define $ac_tr_hdr 1 16353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697EOF 16354_ACEOF
9698 16355
9699else 16356else
9700 echo "$ac_t""no" 1>&6
9701support_xft=no 16357 support_xft=no
9702fi 16358fi
16359
9703done 16360done
9704 16361
16362
16363echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16364echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5 16365if 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 16366 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else 16367else
9711 ac_save_LIBS="$LIBS" 16368 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-lXft $LIBS" 16369LIBS="-lXft $LIBS"
9713cat > conftest.$ac_ext <<EOF 16370cat >conftest.$ac_ext <<_ACEOF
9714#line 9715 "configure" 16371/* confdefs.h. */
9715#include "confdefs.h" 16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376
9716/* Override any gcc2 internal prototype to avoid an error. */ 16377/* Override any gcc2 internal prototype to avoid an error. */
16378#ifdef __cplusplus
16379extern "C"
16380#endif
9717/* We use char because int might match the return type of a gcc2 16381/* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */ 16382 builtin and then its argument prototype would still apply. */
9719char XftDrawString32(); 16383char XftDrawString32 ();
9720 16384int
9721int main() { 16385main ()
16386{
9722XftDrawString32() 16387XftDrawString32 ();
16388 ;
9723; return 0; } 16389 return 0;
9724EOF 16390}
9725if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16391_ACEOF
16392rm -f conftest.$ac_objext conftest$ac_exeext
16393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16394 (eval $ac_link) 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -rf conftest* 16397 rm -f conftest.er1
9727 eval "ac_cv_lib_$ac_lib_var=yes" 16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_lib_Xft_XftDrawString32=yes
9728else 16414else
9729 echo "configure: failed program was:" >&5 16415 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5 16416sed 's/^/| /' conftest.$ac_ext >&5
9731 rm -rf conftest* 16417
9732 eval "ac_cv_lib_$ac_lib_var=no" 16418ac_cv_lib_Xft_XftDrawString32=no
9733fi 16419fi
9734rm -f conftest* 16420rm -f conftest.err conftest.$ac_objext \
16421 conftest$ac_exeext conftest.$ac_ext
9735LIBS="$ac_save_LIBS" 16422LIBS=$ac_check_lib_save_LIBS
9736
9737fi 16423fi
9738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16424echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9739 echo "$ac_t""yes" 1>&6 16425echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16426if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF 16427 cat >>confdefs.h <<_ACEOF
9743#define $ac_tr_lib 1 16428#define HAVE_LIBXFT 1
9744EOF 16429_ACEOF
9745 16430
9746 LIBS="-lXft $LIBS" 16431 LIBS="-lXft $LIBS"
9747 16432
9748else 16433else
9749 echo "$ac_t""no" 1>&6
9750support_xft=no 16434 support_xft=no
9751fi 16435fi
9752 16436
9753 16437
9754 if test x$support_xft = xyes; then 16438 if test x$support_xft = xyes; then
16439
9755 cat >> confdefs.h <<\EOF 16440cat >>confdefs.h <<\_ACEOF
9756#define XFT 1 16441#define XFT 1
9757EOF 16442_ACEOF
9758 16443
9759 fi 16444 fi
9760fi 16445fi
9761 16446
9762trap '' 1 2 15 16447 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 16448cat >confcache <<\_ACEOF
9764# This file is a shell script that caches the results of configure 16449# 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 16450# tests run on this system so they can be shared between configure
9766# scripts and configure runs. It is not useful on other systems. 16451# 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. 16452# It is not useful on other systems. If it contains results you don't
16453# want to keep, you may remove or edit it.
9768# 16454#
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 16455# config.status only pays attention to the cache file if you give it
9776# --recheck option to rerun configure. 16456# the --recheck option to rerun configure.
9777# 16457#
9778EOF 16458# `ac_cv_env_foo' variables (set or unset) will be overridden when
16459# loading this file, other *unset* `ac_cv_foo' will be assigned the
16460# following values.
16461
16462_ACEOF
16463
9779# The following way of writing the cache mishandles newlines in values, 16464# The following way of writing the cache mishandles newlines in values,
9780# but we know of no workaround that is simple, portable, and efficient. 16465# but we know of no workaround that is simple, portable, and efficient.
9781# So, don't put newlines in cache variables' values. 16466# So, don't put newlines in cache variables' values.
9782# Ultrix sh set writes to stderr and can't be redirected directly, 16467# 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. 16468# and sets the high bit in the cache file unless we assign to the vars.
16469{
9784(set) 2>&1 | 16470 (set) 2>&1 |
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9786 *ac_space=\ *) 16472 *ac_space=\ *)
9787 # `set' does not quote correctly, so add quotes (double-quote substitution 16473 # `set' does not quote correctly, so add quotes (double-quote
9788 # turns \\\\ into \\, and sed turns \\ into \). 16474 # substitution turns \\\\ into \\, and sed turns \\ into \).
9789 sed -n \ 16475 sed -n \
9790 -e "s/'/'\\\\''/g" \ 16476 "s/'/'\\\\''/g;
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9792 ;; 16478 ;;
9793 *) 16479 *)
9794 # `set' quotes correctly as required by POSIX, so do not add quotes. 16480 # `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' 16481 sed -n \
16482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9796 ;; 16483 ;;
9797 esac >> confcache 16484 esac;
9798if cmp -s $cache_file confcache; then 16485} |
9799 : 16486 sed '
9800else 16487 t clear
16488 : clear
16489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16490 t end
16491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16492 : end' >>confcache
16493if diff $cache_file confcache >/dev/null 2>&1; then :; else
9801 if test -w $cache_file; then 16494 if test -w $cache_file; then
9802 echo "updating cache $cache_file" 16495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9803 cat confcache > $cache_file 16496 cat confcache >$cache_file
9804 else 16497 else
9805 echo "not updating unwritable cache $cache_file" 16498 echo "not updating unwritable cache $cache_file"
9806 fi 16499 fi
9807fi 16500fi
9808rm -f confcache 16501rm -f confcache
9809 16502
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 16503test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813# Let make expand exec_prefix. 16504# Let make expand exec_prefix.
9814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9815 16506
9816# Any assignment to VPATH causes Sun make to only execute 16507# 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. 16508# ${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. 16509# trailing colons and then remove the whole line if VPATH becomes empty
16510# (actually we leave an empty line to preserve line numbers).
9819if test "x$srcdir" = x.; then 16511if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16513s/:*\$(srcdir):*/:/;
16514s/:*\${srcdir}:*/:/;
16515s/:*@srcdir@:*/:/;
16516s/^\([^=]*=[ ]*\):*/\1/;
16517s/:*$//;
16518s/^[^=]*=[ ]*$//;
16519}'
9821fi 16520fi
9822
9823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9824 16521
9825DEFS=-DHAVE_CONFIG_H 16522DEFS=-DHAVE_CONFIG_H
9826 16523
9827# Without the "./", some shells look in PATH for config.status. 16524ac_libobjs=
16525ac_ltlibobjs=
16526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16527 # 1. Remove the extension, and $U if already installed.
16528 ac_i=`echo "$ac_i" |
16529 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16530 # 2. Add them.
16531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16533done
16534LIBOBJS=$ac_libobjs
16535
16536LTLIBOBJS=$ac_ltlibobjs
16537
16538
16539
9828: ${CONFIG_STATUS=./config.status} 16540: ${CONFIG_STATUS=./config.status}
9829 16541ac_clean_files_save=$ac_clean_files
16542ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16543{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9830echo creating $CONFIG_STATUS 16544echo "$as_me: creating $CONFIG_STATUS" >&6;}
9831rm -f $CONFIG_STATUS
9832cat > $CONFIG_STATUS <<EOF 16545cat >$CONFIG_STATUS <<_ACEOF
9833#! /bin/sh 16546#! $SHELL
9834# Generated automatically by configure. 16547# Generated by $as_me.
9835# Run this file to recreate the current configuration. 16548# 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 16549# Compiler output produced by configure, useful for debugging
9842# configure, is in ./config.log if it exists. 16550# configure, is in config.log if it exists.
9843 16551
9844ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16552debug=false
9845for ac_option 16553ac_cs_recheck=false
16554ac_cs_silent=false
16555SHELL=\${CONFIG_SHELL-$SHELL}
16556_ACEOF
16557
16558cat >>$CONFIG_STATUS <<\_ACEOF
16559## --------------------- ##
16560## M4sh Initialization. ##
16561## --------------------- ##
16562
16563# Be Bourne compatible
16564if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16565 emulate sh
16566 NULLCMD=:
16567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16568 # is contrary to our usage. Disable this feature.
16569 alias -g '${1+"$@"}'='"$@"'
16570elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16571 set -o posix
16572fi
16573DUALCASE=1; export DUALCASE # for MKS sh
16574
16575# Support unset when possible.
16576if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16577 as_unset=unset
16578else
16579 as_unset=false
16580fi
16581
16582
16583# Work around bugs in pre-3.0 UWIN ksh.
16584$as_unset ENV MAIL MAILPATH
16585PS1='$ '
16586PS2='> '
16587PS4='+ '
16588
16589# NLS nuisances.
16590for as_var in \
16591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16593 LC_TELEPHONE LC_TIME
9846do 16594do
16595 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16596 eval $as_var=C; export $as_var
16597 else
16598 $as_unset $as_var
16599 fi
16600done
16601
16602# Required to use basename.
16603if expr a : '\(a\)' >/dev/null 2>&1; then
16604 as_expr=expr
16605else
16606 as_expr=false
16607fi
16608
16609if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16610 as_basename=basename
16611else
16612 as_basename=false
16613fi
16614
16615
16616# Name of the executable.
16617as_me=`$as_basename "$0" ||
16618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16619 X"$0" : 'X\(//\)$' \| \
16620 X"$0" : 'X\(/\)$' \| \
16621 . : '\(.\)' 2>/dev/null ||
16622echo X/"$0" |
16623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16624 /^X\/\(\/\/\)$/{ s//\1/; q; }
16625 /^X\/\(\/\).*/{ s//\1/; q; }
16626 s/.*/./; q'`
16627
16628
16629# PATH needs CR, and LINENO needs CR and PATH.
16630# Avoid depending upon Character Ranges.
16631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16634as_cr_digits='0123456789'
16635as_cr_alnum=$as_cr_Letters$as_cr_digits
16636
16637# The user is always right.
16638if test "${PATH_SEPARATOR+set}" != set; then
16639 echo "#! /bin/sh" >conf$$.sh
16640 echo "exit 0" >>conf$$.sh
16641 chmod +x conf$$.sh
16642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16643 PATH_SEPARATOR=';'
16644 else
16645 PATH_SEPARATOR=:
16646 fi
16647 rm -f conf$$.sh
16648fi
16649
16650
16651 as_lineno_1=$LINENO
16652 as_lineno_2=$LINENO
16653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16654 test "x$as_lineno_1" != "x$as_lineno_2" &&
16655 test "x$as_lineno_3" = "x$as_lineno_2" || {
16656 # Find who we are. Look in the path if we contain no path at all
16657 # relative or not.
16658 case $0 in
16659 *[\\/]* ) as_myself=$0 ;;
16660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661for as_dir in $PATH
16662do
16663 IFS=$as_save_IFS
16664 test -z "$as_dir" && as_dir=.
16665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16666done
16667
16668 ;;
16669 esac
16670 # We did not find ourselves, most probably we were run as `sh COMMAND'
16671 # in which case we are not to be found in the path.
16672 if test "x$as_myself" = x; then
16673 as_myself=$0
16674 fi
16675 if test ! -f "$as_myself"; then
16676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16677echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16678 { (exit 1); exit 1; }; }
16679 fi
16680 case $CONFIG_SHELL in
16681 '')
16682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16683for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16684do
16685 IFS=$as_save_IFS
16686 test -z "$as_dir" && as_dir=.
16687 for as_base in sh bash ksh sh5; do
16688 case $as_dir in
16689 /*)
16690 if ("$as_dir/$as_base" -c '
16691 as_lineno_1=$LINENO
16692 as_lineno_2=$LINENO
16693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16694 test "x$as_lineno_1" != "x$as_lineno_2" &&
16695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16698 CONFIG_SHELL=$as_dir/$as_base
16699 export CONFIG_SHELL
16700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16701 fi;;
16702 esac
16703 done
16704done
16705;;
16706 esac
16707
16708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16709 # uniformly replaced by the line number. The first 'sed' inserts a
16710 # line-number line before each line; the second 'sed' does the real
16711 # work. The second script uses 'N' to pair each line-number line
16712 # with the numbered line, and appends trailing '-' during
16713 # substitution so that $LINENO is not a special case at line end.
16714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16716 sed '=' <$as_myself |
16717 sed '
16718 N
16719 s,$,-,
16720 : loop
16721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16722 t loop
16723 s,-$,,
16724 s,^['$as_cr_digits']*\n,,
16725 ' >$as_me.lineno &&
16726 chmod +x $as_me.lineno ||
16727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16728echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16729 { (exit 1); exit 1; }; }
16730
16731 # Don't try to exec as it changes $[0], causing all sort of problems
16732 # (the dirname of $[0] is not the place where we might find the
16733 # original and so on. Autoconf is especially sensible to this).
16734 . ./$as_me.lineno
16735 # Exit status is that of the last command.
16736 exit
16737}
16738
16739
16740case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16741 *c*,-n*) ECHO_N= ECHO_C='
16742' ECHO_T=' ' ;;
16743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16745esac
16746
16747if expr a : '\(a\)' >/dev/null 2>&1; then
16748 as_expr=expr
16749else
16750 as_expr=false
16751fi
16752
16753rm -f conf$$ conf$$.exe conf$$.file
16754echo >conf$$.file
16755if ln -s conf$$.file conf$$ 2>/dev/null; then
16756 # We could just check for DJGPP; but this test a) works b) is more generic
16757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16758 if test -f conf$$.exe; then
16759 # Don't use ln at all; we don't have any links
16760 as_ln_s='cp -p'
16761 else
16762 as_ln_s='ln -s'
16763 fi
16764elif ln conf$$.file conf$$ 2>/dev/null; then
16765 as_ln_s=ln
16766else
16767 as_ln_s='cp -p'
16768fi
16769rm -f conf$$ conf$$.exe conf$$.file
16770
16771if mkdir -p . 2>/dev/null; then
16772 as_mkdir_p=:
16773else
16774 test -d ./-p && rmdir ./-p
16775 as_mkdir_p=false
16776fi
16777
16778as_executable_p="test -f"
16779
16780# Sed expression to map a string onto a valid CPP name.
16781as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16782
16783# Sed expression to map a string onto a valid variable name.
16784as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16785
16786
16787# IFS
16788# We need space, tab and new line, in precisely that order.
16789as_nl='
16790'
16791IFS=" $as_nl"
16792
16793# CDPATH.
16794$as_unset CDPATH
16795
16796exec 6>&1
16797
16798# Open the log real soon, to keep \$[0] and so on meaningful, and to
16799# report actual input values of CONFIG_FILES etc. instead of their
16800# values after options handling. Logging --version etc. is OK.
16801exec 5>>config.log
16802{
16803 echo
16804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16805## Running $as_me. ##
16806_ASBOX
16807} >&5
16808cat >&5 <<_CSEOF
16809
16810This file was extended by $as_me, which was
16811generated by GNU Autoconf 2.59. Invocation command line was
16812
16813 CONFIG_FILES = $CONFIG_FILES
16814 CONFIG_HEADERS = $CONFIG_HEADERS
16815 CONFIG_LINKS = $CONFIG_LINKS
16816 CONFIG_COMMANDS = $CONFIG_COMMANDS
16817 $ $0 $@
16818
16819_CSEOF
16820echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16821echo >&5
16822_ACEOF
16823
16824# Files that config.status was made for.
16825if test -n "$ac_config_files"; then
16826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16827fi
16828
16829if test -n "$ac_config_headers"; then
16830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16831fi
16832
16833if test -n "$ac_config_links"; then
16834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16835fi
16836
16837if test -n "$ac_config_commands"; then
16838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16839fi
16840
16841cat >>$CONFIG_STATUS <<\_ACEOF
16842
16843ac_cs_usage="\
16844\`$as_me' instantiates files from templates according to the
16845current configuration.
16846
16847Usage: $0 [OPTIONS] [FILE]...
16848
16849 -h, --help print this help, then exit
16850 -V, --version print version number, then exit
16851 -q, --quiet do not print progress messages
16852 -d, --debug don't remove temporary files
16853 --recheck update $as_me by reconfiguring in the same conditions
16854 --file=FILE[:TEMPLATE]
16855 instantiate the configuration file FILE
16856 --header=FILE[:TEMPLATE]
16857 instantiate the configuration header FILE
16858
16859Configuration files:
16860$config_files
16861
16862Configuration headers:
16863$config_headers
16864
16865Report bugs to <bug-autoconf@gnu.org>."
16866_ACEOF
16867
16868cat >>$CONFIG_STATUS <<_ACEOF
16869ac_cs_version="\\
16870config.status
16871configured by $0, generated by GNU Autoconf 2.59,
16872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16873
16874Copyright (C) 2003 Free Software Foundation, Inc.
16875This config.status script is free software; the Free Software Foundation
16876gives unlimited permission to copy, distribute and modify it."
16877srcdir=$srcdir
16878INSTALL="$INSTALL"
16879_ACEOF
16880
16881cat >>$CONFIG_STATUS <<\_ACEOF
16882# If no file are specified by the user, then we need to provide default
16883# value. By we need to know if files were specified by the user.
16884ac_need_defaults=:
16885while test $# != 0
16886do
16887 case $1 in
16888 --*=*)
16889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16891 ac_shift=:
16892 ;;
16893 -*)
16894 ac_option=$1
16895 ac_optarg=$2
16896 ac_shift=shift
16897 ;;
16898 *) # This is not an option, so the user has probably given explicit
16899 # arguments.
16900 ac_option=$1
16901 ac_need_defaults=false;;
16902 esac
16903
9847 case "\$ac_option" in 16904 case $ac_option in
16905 # Handling of the options.
16906_ACEOF
16907cat >>$CONFIG_STATUS <<\_ACEOF
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 16909 ac_cs_recheck=: ;;
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 16910 --version | --vers* | -V )
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 16911 echo "$ac_cs_version"; exit 0 ;;
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13" 16912 --he | --h)
9853 exit 0 ;; 16913 # Conflict between --help and --header
9854 -help | --help | --hel | --he | --h) 16914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16915Try \`$0 --help' for more information." >&5
16916echo "$as_me: error: ambiguous option: $1
16917Try \`$0 --help' for more information." >&2;}
16918 { (exit 1); exit 1; }; };;
16919 --help | --hel | -h )
9855 echo "\$ac_cs_usage"; exit 0 ;; 16920 echo "$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;; 16921 --debug | --d* | -d )
16922 debug=: ;;
16923 --file | --fil | --fi | --f )
16924 $ac_shift
16925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16926 ac_need_defaults=false;;
16927 --header | --heade | --head | --hea )
16928 $ac_shift
16929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16930 ac_need_defaults=false;;
16931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16933 ac_cs_silent=: ;;
16934
16935 # This is an error.
16936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16937Try \`$0 --help' for more information." >&5
16938echo "$as_me: error: unrecognized option: $1
16939Try \`$0 --help' for more information." >&2;}
16940 { (exit 1); exit 1; }; } ;;
16941
16942 *) ac_config_targets="$ac_config_targets $1" ;;
16943
16944 esac
16945 shift
16946done
16947
16948ac_configure_extra_args=
16949
16950if $ac_cs_silent; then
16951 exec 6>/dev/null
16952 ac_configure_extra_args="$ac_configure_extra_args --silent"
16953fi
16954
16955_ACEOF
16956cat >>$CONFIG_STATUS <<_ACEOF
16957if \$ac_cs_recheck; then
16958 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16959 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16960fi
16961
16962_ACEOF
16963
16964
16965
16966
16967
16968cat >>$CONFIG_STATUS <<\_ACEOF
16969for ac_config_target in $ac_config_targets
16970do
16971 case "$ac_config_target" in
16972 # Handling of arguments.
16973 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
16974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16975 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16976 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16977 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
16978 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
16979 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
16980 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
16981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16982echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16983 { (exit 1); exit 1; }; };;
9857 esac 16984 esac
9858done 16985done
9859 16986
9860ac_given_srcdir=$srcdir 16987# If the user did not use the arguments to specify the items to instantiate,
9861ac_given_INSTALL="$INSTALL" 16988# then the envvar interface is used. Set only those that are not.
16989# We use the long form for the default assignment because of an extremely
16990# bizarre bug on SunOS 4.1.3.
16991if $ac_need_defaults; then
16992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16994fi
9862 16995
9863trap 'rm -fr `echo "autoconf/Make.common \ 16996# Have a temporary directory for convenience. Make it in the build tree
9864Makefile \ 16997# simply because there is no reason to put it here, and in addition,
9865doc/Makefile \ 16998# creating and moving files from /tmp can sometimes cause problems.
9866src/Makefile \ 16999# Create a temporary directory, and hook for its removal unless debugging.
9867src/graphics/Makefile \ 17000$debug ||
9868src/test/Makefile \ 17001{
9869src/rxvtlib.h \ 17002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9870W11/Makefile \ 17003 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 17004}
9872EOF 17005
17006# Create a (secure) tmp directory for tmp files.
17007
17008{
17009 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17010 test -n "$tmp" && test -d "$tmp"
17011} ||
17012{
17013 tmp=./confstat$$-$RANDOM
17014 (umask 077 && mkdir $tmp)
17015} ||
17016{
17017 echo "$me: cannot create a temporary directory in ." >&2
17018 { (exit 1); exit 1; }
17019}
17020
17021_ACEOF
17022
9873cat >> $CONFIG_STATUS <<EOF 17023cat >>$CONFIG_STATUS <<_ACEOF
9874 17024
17025#
17026# CONFIG_FILES section.
17027#
17028
17029# No need to generate the scripts if there are no CONFIG_FILES.
17030# This happens for instance when ./config.status config.h
17031if test -n "\$CONFIG_FILES"; then
9875# Protect against being on the right side of a sed subst in config.status. 17032 # Protect against being on the right side of a sed subst in config.status.
9876sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9878$ac_vpsub 17035s,@SHELL@,$SHELL,;t t
17036s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17037s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17038s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17039s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17040s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17041s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17042s,@exec_prefix@,$exec_prefix,;t t
17043s,@prefix@,$prefix,;t t
17044s,@program_transform_name@,$program_transform_name,;t t
17045s,@bindir@,$bindir,;t t
17046s,@sbindir@,$sbindir,;t t
17047s,@libexecdir@,$libexecdir,;t t
17048s,@datadir@,$datadir,;t t
17049s,@sysconfdir@,$sysconfdir,;t t
17050s,@sharedstatedir@,$sharedstatedir,;t t
17051s,@localstatedir@,$localstatedir,;t t
17052s,@libdir@,$libdir,;t t
17053s,@includedir@,$includedir,;t t
17054s,@oldincludedir@,$oldincludedir,;t t
17055s,@infodir@,$infodir,;t t
17056s,@mandir@,$mandir,;t t
17057s,@build_alias@,$build_alias,;t t
17058s,@host_alias@,$host_alias,;t t
17059s,@target_alias@,$target_alias,;t t
17060s,@DEFS@,$DEFS,;t t
17061s,@ECHO_C@,$ECHO_C,;t t
17062s,@ECHO_N@,$ECHO_N,;t t
17063s,@ECHO_T@,$ECHO_T,;t t
17064s,@LIBS@,$LIBS,;t t
17065s,@VERSION@,$VERSION,;t t
17066s,@DATE@,$DATE,;t t
17067s,@LSMDATE@,$LSMDATE,;t t
17068s,@LIBVERSION@,$LIBVERSION,;t t
17069s,@CC@,$CC,;t t
17070s,@CFLAGS@,$CFLAGS,;t t
17071s,@LDFLAGS@,$LDFLAGS,;t t
17072s,@CPPFLAGS@,$CPPFLAGS,;t t
17073s,@ac_ct_CC@,$ac_ct_CC,;t t
17074s,@EXEEXT@,$EXEEXT,;t t
17075s,@OBJEXT@,$OBJEXT,;t t
17076s,@CXX@,$CXX,;t t
17077s,@CXXFLAGS@,$CXXFLAGS,;t t
17078s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17079s,@CPP@,$CPP,;t t
17080s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17081s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17082s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17083s,@AWK@,$AWK,;t t
17084s,@EGREP@,$EGREP,;t t
17085s,@build@,$build,;t t
17086s,@build_cpu@,$build_cpu,;t t
17087s,@build_vendor@,$build_vendor,;t t
17088s,@build_os@,$build_os,;t t
17089s,@host@,$host,;t t
17090s,@host_cpu@,$host_cpu,;t t
17091s,@host_vendor@,$host_vendor,;t t
17092s,@host_os@,$host_os,;t t
17093s,@LN_S@,$LN_S,;t t
17094s,@ECHO@,$ECHO,;t t
17095s,@RANLIB@,$RANLIB,;t t
17096s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17097s,@STRIP@,$STRIP,;t t
17098s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17099s,@LIBTOOL@,$LIBTOOL,;t t
17100s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17101s,@MV@,$MV,;t t
17102s,@RM@,$RM,;t t
17103s,@CP@,$CP,;t t
17104s,@LN@,$LN,;t t
17105s,@SED@,$SED,;t t
17106s,@CMP@,$CMP,;t t
17107s,@TBL@,$TBL,;t t
17108s,@X_CFLAGS@,$X_CFLAGS,;t t
17109s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17110s,@X_LIBS@,$X_LIBS,;t t
17111s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17112s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17113s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17114s,@XPM_LIBS@,$XPM_LIBS,;t t
17115s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17116s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17117s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17118s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17119s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17120s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17121s,@DEBUG@,$DEBUG,;t t
17122s,@DINCLUDE@,$DINCLUDE,;t t
17123s,@DLIB@,$DLIB,;t t
17124s,@RXVTNAME@,$RXVTNAME,;t t
17125s,@include_stdint_h@,$include_stdint_h,;t t
17126s,@include_stdarg_h@,$include_stdarg_h,;t t
17127s,@include_stdlib_h@,$include_stdlib_h,;t t
17128s,@include_unistd_h@,$include_unistd_h,;t t
17129s,@include_string_h@,$include_string_h,;t t
17130s,@include_fcntl_h@,$include_fcntl_h,;t t
17131s,@include_util_h@,$include_util_h,;t t
17132s,@include_assert_h@,$include_assert_h,;t t
17133s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17134s,@include_sys_select_h@,$include_sys_select_h,;t t
17135s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17136s,@include_sys_time_h@,$include_sys_time_h,;t t
17137s,@include_time_h@,$include_time_h,;t t
17138s,@LIBOBJS@,$LIBOBJS,;t t
17139s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17140/@MCOMMON@/r $MCOMMON
17141s,@MCOMMON@,,;t t
17142CEOF
17143
17144_ACEOF
17145
17146 cat >>$CONFIG_STATUS <<\_ACEOF
17147 # Split the substitutions into bite-sized pieces for seds with
17148 # small command number limits, like on Digital OSF/1 and HP-UX.
17149 ac_max_sed_lines=48
17150 ac_sed_frag=1 # Number of current file.
17151 ac_beg=1 # First line for current file.
17152 ac_end=$ac_max_sed_lines # Line after last line for current file.
17153 ac_more_lines=:
17154 ac_sed_cmds=
17155 while $ac_more_lines; do
17156 if test $ac_beg -gt 1; then
17157 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17158 else
17159 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17160 fi
17161 if test ! -s $tmp/subs.frag; then
17162 ac_more_lines=false
17163 else
17164 # The purpose of the label and of the branching condition is to
17165 # speed up the sed processing (if there are no `@' at all, there
17166 # is no need to browse any of the substitutions).
17167 # These are the two extra sed commands mentioned above.
17168 (echo ':t
17169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17170 if test -z "$ac_sed_cmds"; then
17171 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17172 else
17173 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17174 fi
17175 ac_sed_frag=`expr $ac_sed_frag + 1`
17176 ac_beg=$ac_end
17177 ac_end=`expr $ac_end + $ac_max_sed_lines`
17178 fi
17179 done
17180 if test -z "$ac_sed_cmds"; then
17181 ac_sed_cmds=cat
17182 fi
17183fi # test -n "$CONFIG_FILES"
17184
17185_ACEOF
17186cat >>$CONFIG_STATUS <<\_ACEOF
17187for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17189 case $ac_file in
17190 - | *:- | *:-:* ) # input from stdin
17191 cat >$tmp/stdin
17192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17196 * ) ac_file_in=$ac_file.in ;;
17197 esac
17198
17199 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17200 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17202 X"$ac_file" : 'X\(//\)[^/]' \| \
17203 X"$ac_file" : 'X\(//\)$' \| \
17204 X"$ac_file" : 'X\(/\)' \| \
17205 . : '\(.\)' 2>/dev/null ||
17206echo X"$ac_file" |
17207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17209 /^X\(\/\/\)$/{ s//\1/; q; }
17210 /^X\(\/\).*/{ s//\1/; q; }
17211 s/.*/./; q'`
17212 { if $as_mkdir_p; then
17213 mkdir -p "$ac_dir"
17214 else
17215 as_dir="$ac_dir"
17216 as_dirs=
17217 while test ! -d "$as_dir"; do
17218 as_dirs="$as_dir $as_dirs"
17219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$as_dir" : 'X\(//\)[^/]' \| \
17222 X"$as_dir" : 'X\(//\)$' \| \
17223 X"$as_dir" : 'X\(/\)' \| \
17224 . : '\(.\)' 2>/dev/null ||
17225echo X"$as_dir" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17228 /^X\(\/\/\)$/{ s//\1/; q; }
17229 /^X\(\/\).*/{ s//\1/; q; }
17230 s/.*/./; q'`
17231 done
17232 test ! -n "$as_dirs" || mkdir $as_dirs
17233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17234echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17235 { (exit 1); exit 1; }; }; }
17236
17237 ac_builddir=.
17238
17239if test "$ac_dir" != .; then
17240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17241 # A "../" for each directory in $ac_dir_suffix.
17242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17243else
17244 ac_dir_suffix= ac_top_builddir=
17245fi
17246
17247case $srcdir in
17248 .) # No --srcdir option. We are building in place.
17249 ac_srcdir=.
17250 if test -z "$ac_top_builddir"; then
17251 ac_top_srcdir=.
17252 else
17253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17254 fi ;;
17255 [\\/]* | ?:[\\/]* ) # Absolute path.
17256 ac_srcdir=$srcdir$ac_dir_suffix;
17257 ac_top_srcdir=$srcdir ;;
17258 *) # Relative path.
17259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17261esac
17262
17263# Do not use `cd foo && pwd` to compute absolute paths, because
17264# the directories may not exist.
17265case `pwd` in
17266.) ac_abs_builddir="$ac_dir";;
17267*)
17268 case "$ac_dir" in
17269 .) ac_abs_builddir=`pwd`;;
17270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17272 esac;;
17273esac
17274case $ac_abs_builddir in
17275.) ac_abs_top_builddir=${ac_top_builddir}.;;
17276*)
17277 case ${ac_top_builddir}. in
17278 .) ac_abs_top_builddir=$ac_abs_builddir;;
17279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17281 esac;;
17282esac
17283case $ac_abs_builddir in
17284.) ac_abs_srcdir=$ac_srcdir;;
17285*)
17286 case $ac_srcdir in
17287 .) ac_abs_srcdir=$ac_abs_builddir;;
17288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17290 esac;;
17291esac
17292case $ac_abs_builddir in
17293.) ac_abs_top_srcdir=$ac_top_srcdir;;
17294*)
17295 case $ac_top_srcdir in
17296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17299 esac;;
17300esac
17301
17302
17303 case $INSTALL in
17304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17305 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17306 esac
17307
17308 # Let's still pretend it is `configure' which instantiates (i.e., don't
17309 # use $as_me), people would be surprised to read:
17310 # /* config.h. Generated by config.status. */
17311 if test x"$ac_file" = x-; then
17312 configure_input=
17313 else
17314 configure_input="$ac_file. "
17315 fi
17316 configure_input=$configure_input"Generated from `echo $ac_file_in |
17317 sed 's,.*/,,'` by configure."
17318
17319 # First look for the input files in the build tree, otherwise in the
17320 # src tree.
17321 ac_file_inputs=`IFS=:
17322 for f in $ac_file_in; do
17323 case $f in
17324 -) echo $tmp/stdin ;;
17325 [\\/$]*)
17326 # Absolute (can't be DOS-style, as IFS=:)
17327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17328echo "$as_me: error: cannot find input file: $f" >&2;}
17329 { (exit 1); exit 1; }; }
17330 echo "$f";;
17331 *) # Relative
17332 if test -f "$f"; then
17333 # Build tree
17334 echo "$f"
17335 elif test -f "$srcdir/$f"; then
17336 # Source tree
17337 echo "$srcdir/$f"
17338 else
17339 # /dev/null tree
17340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17341echo "$as_me: error: cannot find input file: $f" >&2;}
17342 { (exit 1); exit 1; }; }
17343 fi;;
17344 esac
17345 done` || { (exit 1); exit 1; }
17346
17347 if test x"$ac_file" != x-; then
17348 { echo "$as_me:$LINENO: creating $ac_file" >&5
17349echo "$as_me: creating $ac_file" >&6;}
17350 rm -f "$ac_file"
17351 fi
17352_ACEOF
17353cat >>$CONFIG_STATUS <<_ACEOF
17354 sed "$ac_vpsub
9879$extrasub 17355$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 17356_ACEOF
9973EOF
9974
9975cat >> $CONFIG_STATUS <<\EOF 17357cat >>$CONFIG_STATUS <<\_ACEOF
9976 17358:t
9977# Split the substitutions into bite-sized pieces for seds with 17359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9978# small command number limits, like on Digital OSF/1 and HP-UX. 17360s,@configure_input@,$configure_input,;t t
9979ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17361s,@srcdir@,$ac_srcdir,;t t
9980ac_file=1 # Number of current file. 17362s,@abs_srcdir@,$ac_abs_srcdir,;t t
9981ac_beg=1 # First line for current file. 17363s,@top_srcdir@,$ac_top_srcdir,;t t
9982ac_end=$ac_max_sed_cmds # Line after last line for current file. 17364s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9983ac_more_lines=: 17365s,@builddir@,$ac_builddir,;t t
9984ac_sed_cmds="" 17366s,@abs_builddir@,$ac_abs_builddir,;t t
9985while $ac_more_lines; do 17367s,@top_builddir@,$ac_top_builddir,;t t
9986 if test $ac_beg -gt 1; then 17368s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17369s,@INSTALL@,$ac_INSTALL,;t t
17370" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17371 rm -f $tmp/stdin
17372 if test x"$ac_file" != x-; then
17373 mv $tmp/out $ac_file
9988 else 17374 else
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17375 cat $tmp/out
17376 rm -f $tmp/out
9990 fi 17377 fi
9991 if test ! -s conftest.s$ac_file; then 17378
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 17379done
10005if test -z "$ac_sed_cmds"; then 17380_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 17381cat >>$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 17382
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17383#
10032 17384# CONFIG_HEADER section.
10033 # Remove last slash and all that follows it. Not all systems have dirname. 17385#
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 17386
10079# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17387# 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. 17388# NAME is the cpp macro being defined and VALUE is the value it is being given.
10081# 17389#
10082# ac_d sets the value in "#define NAME VALUE" lines. 17390# ac_d sets the value in "#define NAME VALUE" lines.
10083ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17391ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17392ac_dB='[ ].*$,\1#\2'
10085ac_dC='\3' 17393ac_dC=' '
10086ac_dD='%g' 17394ac_dD=',;t'
10087# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17395# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10088ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17396ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089ac_uB='\([ ]\)%\1#\2define\3' 17397ac_uB='$,\1#\2define\3'
10090ac_uC=' ' 17398ac_uC=' '
10091ac_uD='\4%g' 17399ac_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 17400
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 17401for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10107 case "$ac_file" in 17403 case $ac_file in
17404 - | *:- | *:-:* ) # input from stdin
17405 cat >$tmp/stdin
17406 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17408 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10110 *) ac_file_in="${ac_file}.in" ;; 17410 * ) ac_file_in=$ac_file.in ;;
10111 esac 17411 esac
10112 17412
10113 echo creating $ac_file 17413 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17414echo "$as_me: creating $ac_file" >&6;}
10114 17415
10115 rm -f conftest.frag conftest.in conftest.out 17416 # 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"` 17417 # src tree.
10117 cat $ac_file_inputs > conftest.in 17418 ac_file_inputs=`IFS=:
17419 for f in $ac_file_in; do
17420 case $f in
17421 -) echo $tmp/stdin ;;
17422 [\\/$]*)
17423 # Absolute (can't be DOS-style, as IFS=:)
17424 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17425echo "$as_me: error: cannot find input file: $f" >&2;}
17426 { (exit 1); exit 1; }; }
17427 # Do quote $f, to prevent DOS paths from being IFS'd.
17428 echo "$f";;
17429 *) # Relative
17430 if test -f "$f"; then
17431 # Build tree
17432 echo "$f"
17433 elif test -f "$srcdir/$f"; then
17434 # Source tree
17435 echo "$srcdir/$f"
17436 else
17437 # /dev/null tree
17438 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17439echo "$as_me: error: cannot find input file: $f" >&2;}
17440 { (exit 1); exit 1; }; }
17441 fi;;
17442 esac
17443 done` || { (exit 1); exit 1; }
17444 # Remove the trailing spaces.
17445 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10118 17446
10119EOF 17447_ACEOF
10120 17448
10121# Transform confdefs.h into a sed script conftest.vals that substitutes 17449# Transform confdefs.h into two sed scripts, `conftest.defines' and
10122# the proper values into config.h.in to produce config.h. And first: 17450# `conftest.undefs', that substitutes the proper values into
17451# config.h.in to produce config.h. The first handles `#define'
17452# templates, and the second `#undef' templates.
10123# Protect against being on the right side of a sed subst in config.status. 17453# 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. 17454# config.status. Protect against being in an unquoted here document
10125rm -f conftest.vals 17455# in config.status.
10126cat > conftest.hdr <<\EOF 17456rm -f conftest.defines conftest.undefs
17457# Using a here document instead of a string reduces the quoting nightmare.
17458# Putting comments in sed scripts is not portable.
17459#
17460# `end' is used to avoid that the second main sed command (meant for
17461# 0-ary CPP macros) applies to n-ary macro definitions.
17462# See the Autoconf documentation for `clear'.
17463cat >confdef2sed.sed <<\_ACEOF
10127s/[\\&%]/\\&/g 17464s/[\\&,]/\\&/g
10128s%[\\$`]%\\&%g 17465s,[\\$`],\\&,g
10129s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17466t clear
10130s%ac_d%ac_u%gp 17467: clear
10131s%ac_u%ac_e%gp 17468s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10132EOF 17469t end
10133sed -n -f conftest.hdr confdefs.h > conftest.vals 17470s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10134rm -f conftest.hdr 17471: end
17472_ACEOF
17473# If some macros were called several times there might be several times
17474# the same #defines, which is useless. Nevertheless, we may not want to
17475# sort them, since we want the *last* AC-DEFINE to be honored.
17476uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17477sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17478rm -f confdef2sed.sed
10135 17479
10136# This sed command replaces #undef with comments. This is necessary, for 17480# This sed command replaces #undef with comments. This is necessary, for
10137# example, in the case of _POSIX_SOURCE, which is predefined and required 17481# example, in the case of _POSIX_SOURCE, which is predefined and required
10138# on some systems where configure will not decide to define it. 17482# on some systems where configure will not decide to define it.
10139cat >> conftest.vals <<\EOF 17483cat >>conftest.undefs <<\_ACEOF
10140s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17484s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10141EOF 17485_ACEOF
10142 17486
10143# Break up conftest.vals because some shells have a limit on 17487# 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. 17488# of here documents, and old seds have small limits too (100 cmds).
10145 17489echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17490echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17491echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17492echo ' :' >>$CONFIG_STATUS
10146rm -f conftest.tail 17493rm -f conftest.tail
10147while : 17494while grep . conftest.defines >/dev/null
10148do 17495do
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. 17496 # Write a limited-size here document to $tmp/defines.sed.
10153 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17497 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17498 # Speed up: don't consider the non `#define' lines.
17499 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17500 # Work around the forget-to-reset-the-flag bug.
17501 echo 't clr' >>$CONFIG_STATUS
17502 echo ': clr' >>$CONFIG_STATUS
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17503 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10155 echo 'CEOF 17504 echo 'CEOF
10156 sed -f conftest.frag conftest.in > conftest.out 17505 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10157 rm -f conftest.in 17506 rm -f $tmp/in
10158 mv conftest.out conftest.in 17507 mv $tmp/out $tmp/in
10159' >> $CONFIG_STATUS 17508' >>$CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17509 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10161 rm -f conftest.vals 17510 rm -f conftest.defines
10162 mv conftest.tail conftest.vals 17511 mv conftest.tail conftest.defines
10163done 17512done
17513rm -f conftest.defines
17514echo ' fi # grep' >>$CONFIG_STATUS
17515echo >>$CONFIG_STATUS
17516
17517# Break up conftest.undefs because some shells have a limit on the size
17518# of here documents, and old seds have small limits too (100 cmds).
17519echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10164rm -f conftest.vals 17520rm -f conftest.tail
17521while grep . conftest.undefs >/dev/null
17522do
17523 # Write a limited-size here document to $tmp/undefs.sed.
17524 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17525 # Speed up: don't consider the non `#undef'
17526 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17527 # Work around the forget-to-reset-the-flag bug.
17528 echo 't clr' >>$CONFIG_STATUS
17529 echo ': clr' >>$CONFIG_STATUS
17530 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17531 echo 'CEOF
17532 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17533 rm -f $tmp/in
17534 mv $tmp/out $tmp/in
17535' >>$CONFIG_STATUS
17536 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17537 rm -f conftest.undefs
17538 mv conftest.tail conftest.undefs
17539done
17540rm -f conftest.undefs
10165 17541
10166cat >> $CONFIG_STATUS <<\EOF 17542cat >>$CONFIG_STATUS <<\_ACEOF
10167 rm -f conftest.frag conftest.h 17543 # Let's still pretend it is `configure' which instantiates (i.e., don't
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17544 # use $as_me), people would be surprised to read:
10169 cat conftest.in >> conftest.h 17545 # /* config.h. Generated by config.status. */
10170 rm -f conftest.in 17546 if test x"$ac_file" = x-; then
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then 17547 echo "/* Generated by configure. */" >$tmp/config.h
10172 echo "$ac_file is unchanged"
10173 rm -f conftest.h
10174 else 17548 else
10175 # Remove last slash and all that follows it. Not all systems have dirname. 17549 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17550 fi
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17551 cat $tmp/in >>$tmp/config.h
10178 # The file is in a subdirectory. 17552 rm -f $tmp/in
17553 if test x"$ac_file" != x-; then
17554 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17555 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17556echo "$as_me: $ac_file is unchanged" >&6;}
17557 else
17558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17559$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17560 X"$ac_file" : 'X\(//\)[^/]' \| \
17561 X"$ac_file" : 'X\(//\)$' \| \
17562 X"$ac_file" : 'X\(/\)' \| \
17563 . : '\(.\)' 2>/dev/null ||
17564echo X"$ac_file" |
17565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17567 /^X\(\/\/\)$/{ s//\1/; q; }
17568 /^X\(\/\).*/{ s//\1/; q; }
17569 s/.*/./; q'`
17570 { if $as_mkdir_p; then
17571 mkdir -p "$ac_dir"
17572 else
17573 as_dir="$ac_dir"
17574 as_dirs=
17575 while test ! -d "$as_dir"; do
17576 as_dirs="$as_dir $as_dirs"
17577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17578$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17579 X"$as_dir" : 'X\(//\)[^/]' \| \
17580 X"$as_dir" : 'X\(//\)$' \| \
17581 X"$as_dir" : 'X\(/\)' \| \
17582 . : '\(.\)' 2>/dev/null ||
17583echo X"$as_dir" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17586 /^X\(\/\/\)$/{ s//\1/; q; }
17587 /^X\(\/\).*/{ s//\1/; q; }
17588 s/.*/./; q'`
17589 done
10179 test ! -d "$ac_dir" && mkdir "$ac_dir" 17590 test ! -n "$as_dirs" || mkdir $as_dirs
17591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17592echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17593 { (exit 1); exit 1; }; }; }
17594
17595 rm -f $ac_file
17596 mv $tmp/config.h $ac_file
10180 fi 17597 fi
10181 rm -f $ac_file 17598 else
10182 mv conftest.h $ac_file 17599 cat $tmp/config.h
17600 rm -f $tmp/config.h
10183 fi 17601 fi
10184fi; done 17602done
17603_ACEOF
10185 17604
10186EOF
10187cat >> $CONFIG_STATUS <<EOF
10188
10189EOF
10190cat >> $CONFIG_STATUS <<\EOF 17605cat >>$CONFIG_STATUS <<\_ACEOF
10191 17606
10192exit 0 17607{ (exit 0); exit 0; }
10193EOF 17608_ACEOF
10194chmod +x $CONFIG_STATUS 17609chmod +x $CONFIG_STATUS
10195rm -fr confdefs* $ac_clean_files 17610ac_clean_files=$ac_clean_files_save
10196test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17611
17612
17613# configure is writing to config.log, and then calls config.status.
17614# config.status does its own redirection, appending to config.log.
17615# Unfortunately, on DOS this fails, as config.log is still kept open
17616# by configure, so config.status won't be able to write to it; its
17617# output is simply discarded. So we exec the FD to /dev/null,
17618# effectively closing config.log, so it can be properly (re)opened and
17619# appended to by config.status. When coming back to configure, we
17620# need to make the FD available again.
17621if test "$no_create" != yes; then
17622 ac_cs_success=:
17623 ac_config_status_args=
17624 test "$silent" = yes &&
17625 ac_config_status_args="$ac_config_status_args --quiet"
17626 exec 5>/dev/null
17627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17628 exec 5>>config.log
17629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17630 # would make configure fail if this is the last instruction.
17631 $ac_cs_success || { (exit 1); exit 1; }
17632fi
10197 17633
10198 17634
10199echo "Configuration: 17635echo "Configuration:
10200 17636
10201 Rxvt version: $VERSION : $DATE 17637 Rxvt version: $VERSION : $DATE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines