Codebase list bwbar / 34a25db
Import Upstream version 1.2.2 Tobias Frost 6 years ago
7 changed file(s) with 4326 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 ## $Id: Makefile,v 1.2 2001/05/05 22:51:48 hpa Exp $
0 ## $Id: Makefile,v 1.3 2004/01/07 20:36:41 hpa Exp $
11 ## -----------------------------------------------------------------------
22 ##
33 ## Copyright 2001 H. Peter Anvin - All Rights Reserved
1313 PROGS = bwbar
1414
1515 CC = gcc
16 CFLAGS = -Wall -O2
17 LDFLAGS = -s
18 LIBS = -lpng
16 CFLAGS = -g -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Winline -Wshadow -Wcast-align -pipe
17 LDFLAGS =
18 LIBS = -lpng -lz
1919
2020 all: $(PROGS)
2121
0 ## $Id: Makefile.in,v 1.1 2004/01/07 20:36:41 hpa Exp $
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2001 H. Peter Anvin - All Rights Reserved
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
8 ## USA; either version 2 of the License, or (at your option) any later
9 ## version; incorporated herein by reference.
10 ##
11 ## -----------------------------------------------------------------------
12
13 PROGS = bwbar
14
15 CC = @CC@
16 CFLAGS = @CFLAGS@
17 LDFLAGS = @LDFLAGS@
18 LIBS = @LIBS@
19
20 all: $(PROGS)
21
22 clean:
23 rm -f $(PROGS)
24
25 distclean: clean
26 rm -f *~ \#* core
27
28 bwbar: bwbar.c
29 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
30
31
32
0 bwbar 1.2 by H. Peter Anvin <hpa@zytor.com>
0 bwbar 1.2.1 by H. Peter Anvin <hpa@zytor.com>
11
22 http://www.kernel.org/pub/software/web/bwbar/
33 ftp://ftp.kernel.org/pub/software/web/bwbar/
66 of the current bandwidth use. It is currently for Linux only.
77
88 It is used, among others, at http://www.kernel.org/.
9
10 To compile:
11
12 ./configure
13 make
914
1015 To set it up, create a script that contains the following commands:
1116
0 dnl --------------------------------------------------------------------------
1 dnl PA_ADD_CFLAGS()
2 dnl
3 dnl Attempt to add the given option to CFLAGS, if it doesn't break compilation
4 dnl --------------------------------------------------------------------------
5 AC_DEFUN(PA_ADD_CFLAGS,
6 [AC_MSG_CHECKING([if $CC accepts $1])
7 pa_add_cflags__old_cflags="$CFLAGS"
8 CFLAGS="$CFLAGS $1"
9 AC_TRY_LINK([#include <stdio.h>],
10 [printf("Hello, World!\n");],
11 AC_MSG_RESULT([yes]),
12 AC_MSG_RESULT([no])
13 CFLAGS="$pa_add_cflags__old_cflags")])
0 #! /bin/sh
1 # From configure.in Id: configure.in,v 1.1 2004/01/07 20:36:41 hpa Exp .
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
44 if (set +x; test -n "`(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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="Makefile.in"
274 ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
321 ac_prev=
322 continue
323 fi
324
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327 # Accept the important Cygnus configure options, so we can diagnose typos.
328
329 case $ac_option in
330
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir=$ac_optarg ;;
335
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
340
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file=$ac_optarg ;;
347
348 --config-cache | -C)
349 cache_file=config.cache ;;
350
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
355 datadir=$ac_optarg ;;
356
357 -disable-* | --disable-*)
358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
365
366 -enable-* | --enable-*)
367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
378
379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381 | --exec | --exe | --ex)
382 ac_prev=exec_prefix ;;
383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385 | --exec=* | --exe=* | --ex=*)
386 exec_prefix=$ac_optarg ;;
387
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
390 with_gas=yes ;;
391
392 -help | --help | --hel | --he | -h)
393 ac_init_help=long ;;
394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395 ac_init_help=recursive ;;
396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397 ac_init_help=short ;;
398
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
403
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir=$ac_optarg ;;
410
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
415
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir=$ac_optarg ;;
420
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir=$ac_optarg ;;
427
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir=$ac_optarg ;;
436
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir=$ac_optarg ;;
441
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
445
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
448 no_create=yes ;;
449
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
453
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir=$ac_optarg ;;
462
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix=$ac_optarg ;;
467
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix=$ac_optarg ;;
474
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix=$ac_optarg ;;
481
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name=$ac_optarg ;;
498
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
502
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir=$ac_optarg ;;
508
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir=$ac_optarg ;;
519
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site=$ac_optarg ;;
524
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526 ac_prev=srcdir ;;
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528 srcdir=$ac_optarg ;;
529
530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531 | --syscon | --sysco | --sysc | --sys | --sy)
532 ac_prev=sysconfdir ;;
533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535 sysconfdir=$ac_optarg ;;
536
537 -target | --target | --targe | --targ | --tar | --ta | --t)
538 ac_prev=target_alias ;;
539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540 target_alias=$ac_optarg ;;
541
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
543 verbose=yes ;;
544
545 -version | --version | --versio | --versi | --vers | -V)
546 ac_init_version=: ;;
547
548 -with-* | --with-*)
549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid package name: $ac_package" >&2
553 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
560
561 -without-* | --without-*)
562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid package name: $ac_package" >&2
566 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
569
570 --x)
571 # Obsolete; use --with-x.
572 with_x=yes ;;
573
574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575 | --x-incl | --x-inc | --x-in | --x-i)
576 ac_prev=x_includes ;;
577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579 x_includes=$ac_optarg ;;
580
581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583 ac_prev=x_libraries ;;
584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586 x_libraries=$ac_optarg ;;
587
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
591 ;;
592
593 *=*)
594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595 # Reject names that are not valid shell variable names.
596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
601 export $ac_envvar ;;
602
603 *)
604 # FIXME: should be removed in autoconf 3.0.
605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 ;;
610
611 esac
612 done
613
614 if test -n "$ac_prev"; then
615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616 { echo "$as_me: error: missing argument to $ac_option" >&2
617 { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
634 do
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652 if test "x$build_alias" = x; then
653 cross_compiling=maybe
654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655 If a cross compiler is detected then cross compile mode will be used." >&2
656 elif test "x$build_alias" != "x$host_alias"; then
657 cross_compiling=yes
658 fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673 X"$0" : 'X\(//\)[^/]' \| \
674 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
686 fi
687 else
688 ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
697 fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731
732 #
733 # Report the --help message.
734 #
735 if test "$ac_init_help" = "long"; then
736 # Omit some internal or obsolete options to make the list less imposing.
737 # This message is too long to be a string in the A/UX 3.1 sh.
738 cat <<_ACEOF
739 \`configure' configures this package to adapt to many kinds of systems.
740
741 Usage: $0 [OPTION]... [VAR=VALUE]...
742
743 To assign environment variables (e.g., CC, CFLAGS...), specify them as
744 VAR=VALUE. See below for descriptions of some of the useful variables.
745
746 Defaults for the options are specified in brackets.
747
748 Configuration:
749 -h, --help display this help and exit
750 --help=short display options specific to this package
751 --help=recursive display the short help of all the included packages
752 -V, --version display version information and exit
753 -q, --quiet, --silent do not print \`checking...' messages
754 --cache-file=FILE cache test results in FILE [disabled]
755 -C, --config-cache alias for \`--cache-file=config.cache'
756 -n, --no-create do not create output files
757 --srcdir=DIR find the sources in DIR [configure dir or \`..']
758
759 _ACEOF
760
761 cat <<_ACEOF
762 Installation directories:
763 --prefix=PREFIX install architecture-independent files in PREFIX
764 [$ac_default_prefix]
765 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
766 [PREFIX]
767
768 By default, \`make install' will install all the files in
769 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
770 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
771 for instance \`--prefix=\$HOME'.
772
773 For better control, use the options below.
774
775 Fine tuning of the installation directories:
776 --bindir=DIR user executables [EPREFIX/bin]
777 --sbindir=DIR system admin executables [EPREFIX/sbin]
778 --libexecdir=DIR program executables [EPREFIX/libexec]
779 --datadir=DIR read-only architecture-independent data [PREFIX/share]
780 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
781 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
782 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
783 --libdir=DIR object code libraries [EPREFIX/lib]
784 --includedir=DIR C header files [PREFIX/include]
785 --oldincludedir=DIR C header files for non-gcc [/usr/include]
786 --infodir=DIR info documentation [PREFIX/info]
787 --mandir=DIR man documentation [PREFIX/man]
788 _ACEOF
789
790 cat <<\_ACEOF
791 _ACEOF
792 fi
793
794 if test -n "$ac_init_help"; then
795
796 cat <<\_ACEOF
797
798 Some influential environment variables:
799 CC C compiler command
800 CFLAGS C compiler flags
801 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
802 nonstandard directory <lib dir>
803 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
804 headers in a nonstandard directory <include dir>
805
806 Use these variables to override the choices made by `configure' or to help
807 it to find libraries and programs with nonstandard names/locations.
808
809 _ACEOF
810 fi
811
812 if test "$ac_init_help" = "recursive"; then
813 # If there are subdirs, report their specific --help.
814 ac_popdir=`pwd`
815 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
816 test -d $ac_dir || continue
817 ac_builddir=.
818
819 if test "$ac_dir" != .; then
820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
821 # A "../" for each directory in $ac_dir_suffix.
822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
823 else
824 ac_dir_suffix= ac_top_builddir=
825 fi
826
827 case $srcdir in
828 .) # No --srcdir option. We are building in place.
829 ac_srcdir=.
830 if test -z "$ac_top_builddir"; then
831 ac_top_srcdir=.
832 else
833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
834 fi ;;
835 [\\/]* | ?:[\\/]* ) # Absolute path.
836 ac_srcdir=$srcdir$ac_dir_suffix;
837 ac_top_srcdir=$srcdir ;;
838 *) # Relative path.
839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
841 esac
842 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
843 # absolute.
844 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
845 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
846 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
847 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
848
849 cd $ac_dir
850 # Check for guested configure; otherwise get Cygnus style configure.
851 if test -f $ac_srcdir/configure.gnu; then
852 echo
853 $SHELL $ac_srcdir/configure.gnu --help=recursive
854 elif test -f $ac_srcdir/configure; then
855 echo
856 $SHELL $ac_srcdir/configure --help=recursive
857 elif test -f $ac_srcdir/configure.ac ||
858 test -f $ac_srcdir/configure.in; then
859 echo
860 $ac_configure --help
861 else
862 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
863 fi
864 cd $ac_popdir
865 done
866 fi
867
868 test -n "$ac_init_help" && exit 0
869 if $ac_init_version; then
870 cat <<\_ACEOF
871
872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
873 Free Software Foundation, Inc.
874 This configure script is free software; the Free Software Foundation
875 gives unlimited permission to copy, distribute and modify it.
876 _ACEOF
877 exit 0
878 fi
879 exec 5>config.log
880 cat >&5 <<_ACEOF
881 This file contains any messages produced by compilers while
882 running configure, to aid debugging if configure makes a mistake.
883
884 It was created by $as_me, which was
885 generated by GNU Autoconf 2.57. Invocation command line was
886
887 $ $0 $@
888
889 _ACEOF
890 {
891 cat <<_ASUNAME
892 ## --------- ##
893 ## Platform. ##
894 ## --------- ##
895
896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
901
902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
904
905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
908 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
912
913 _ASUNAME
914
915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
916 for as_dir in $PATH
917 do
918 IFS=$as_save_IFS
919 test -z "$as_dir" && as_dir=.
920 echo "PATH: $as_dir"
921 done
922
923 } >&5
924
925 cat >&5 <<_ACEOF
926
927
928 ## ----------- ##
929 ## Core tests. ##
930 ## ----------- ##
931
932 _ACEOF
933
934
935 # Keep a trace of the command line.
936 # Strip out --no-create and --no-recursion so they do not pile up.
937 # Strip out --silent because we don't want to record it for future runs.
938 # Also quote any args containing shell meta-characters.
939 # Make two passes to allow for proper duplicate-argument suppression.
940 ac_configure_args=
941 ac_configure_args0=
942 ac_configure_args1=
943 ac_sep=
944 ac_must_keep_next=false
945 for ac_pass in 1 2
946 do
947 for ac_arg
948 do
949 case $ac_arg in
950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
952 | -silent | --silent | --silen | --sile | --sil)
953 continue ;;
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
956 esac
957 case $ac_pass in
958 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
959 2)
960 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
961 if test $ac_must_keep_next = true; then
962 ac_must_keep_next=false # Got value, back to normal.
963 else
964 case $ac_arg in
965 *=* | --config-cache | -C | -disable-* | --disable-* \
966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
968 | -with-* | --with-* | -without-* | --without-* | --x)
969 case "$ac_configure_args0 " in
970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
971 esac
972 ;;
973 -* ) ac_must_keep_next=true ;;
974 esac
975 fi
976 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
977 # Get rid of the leading space.
978 ac_sep=" "
979 ;;
980 esac
981 done
982 done
983 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
984 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
985
986 # When interrupted or exit'd, cleanup temporary files, and complete
987 # config.log. We remove comments because anyway the quotes in there
988 # would cause problems or look ugly.
989 # WARNING: Be sure not to use single quotes in there, as some shells,
990 # such as our DU 5.0 friend, will then `close' the trap.
991 trap 'exit_status=$?
992 # Save into config.log some information that might help in debugging.
993 {
994 echo
995
996 cat <<\_ASBOX
997 ## ---------------- ##
998 ## Cache variables. ##
999 ## ---------------- ##
1000 _ASBOX
1001 echo
1002 # The following way of writing the cache mishandles newlines in values,
1003 {
1004 (set) 2>&1 |
1005 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1006 *ac_space=\ *)
1007 sed -n \
1008 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1010 ;;
1011 *)
1012 sed -n \
1013 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1014 ;;
1015 esac;
1016 }
1017 echo
1018
1019 cat <<\_ASBOX
1020 ## ----------------- ##
1021 ## Output variables. ##
1022 ## ----------------- ##
1023 _ASBOX
1024 echo
1025 for ac_var in $ac_subst_vars
1026 do
1027 eval ac_val=$`echo $ac_var`
1028 echo "$ac_var='"'"'$ac_val'"'"'"
1029 done | sort
1030 echo
1031
1032 if test -n "$ac_subst_files"; then
1033 cat <<\_ASBOX
1034 ## ------------- ##
1035 ## Output files. ##
1036 ## ------------- ##
1037 _ASBOX
1038 echo
1039 for ac_var in $ac_subst_files
1040 do
1041 eval ac_val=$`echo $ac_var`
1042 echo "$ac_var='"'"'$ac_val'"'"'"
1043 done | sort
1044 echo
1045 fi
1046
1047 if test -s confdefs.h; then
1048 cat <<\_ASBOX
1049 ## ----------- ##
1050 ## confdefs.h. ##
1051 ## ----------- ##
1052 _ASBOX
1053 echo
1054 sed "/^$/d" confdefs.h | sort
1055 echo
1056 fi
1057 test "$ac_signal" != 0 &&
1058 echo "$as_me: caught signal $ac_signal"
1059 echo "$as_me: exit $exit_status"
1060 } >&5
1061 rm -f core core.* *.core &&
1062 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1063 exit $exit_status
1064 ' 0
1065 for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1067 done
1068 ac_signal=0
1069
1070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1071 rm -rf conftest* confdefs.h
1072 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 echo >confdefs.h
1074
1075 # Predefined preprocessor variables.
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_NAME "$PACKAGE_NAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_STRING "$PACKAGE_STRING"
1094 _ACEOF
1095
1096
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1099 _ACEOF
1100
1101
1102 # Let the site file select an alternate cache file if it wants to.
1103 # Prefer explicitly selected file to automatically selected ones.
1104 if test -z "$CONFIG_SITE"; then
1105 if test "x$prefix" != xNONE; then
1106 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1107 else
1108 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1109 fi
1110 fi
1111 for ac_site_file in $CONFIG_SITE; do
1112 if test -r "$ac_site_file"; then
1113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1114 echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's/^/| /' "$ac_site_file" >&5
1116 . "$ac_site_file"
1117 fi
1118 done
1119
1120 if test -r "$cache_file"; then
1121 # Some versions of bash will fail to source /dev/null (special
1122 # files actually), so we avoid doing that.
1123 if test -f "$cache_file"; then
1124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1125 echo "$as_me: loading cache $cache_file" >&6;}
1126 case $cache_file in
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1129 esac
1130 fi
1131 else
1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133 echo "$as_me: creating cache $cache_file" >&6;}
1134 >$cache_file
1135 fi
1136
1137 # Check that the precious variables saved in the cache have kept the same
1138 # value.
1139 ac_cache_corrupted=false
1140 for ac_var in `(set) 2>&1 |
1141 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1143 eval ac_new_set=\$ac_env_${ac_var}_set
1144 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1145 eval ac_new_val="\$ac_env_${ac_var}_value"
1146 case $ac_old_set,$ac_new_set in
1147 set,)
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,set)
1152 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1153 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1154 ac_cache_corrupted=: ;;
1155 ,);;
1156 *)
1157 if test "x$ac_old_val" != "x$ac_new_val"; then
1158 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1159 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161 echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163 echo "$as_me: current value: $ac_new_val" >&2;}
1164 ac_cache_corrupted=:
1165 fi;;
1166 esac
1167 # Pass precious variables to config.status.
1168 if test "$ac_new_set" = set; then
1169 case $ac_new_val in
1170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1171 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1172 *) ac_arg=$ac_var=$ac_new_val ;;
1173 esac
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1177 esac
1178 fi
1179 done
1180 if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1183 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1184 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
1186 fi
1187
1188 ac_ext=c
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213 ac_ext=c
1214 ac_cpp='$CPP $CPPFLAGS'
1215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218 if test -n "$ac_tool_prefix"; then
1219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1221 echo "$as_me:$LINENO: checking for $ac_word" >&5
1222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1223 if test "${ac_cv_prog_CC+set}" = set; then
1224 echo $ECHO_N "(cached) $ECHO_C" >&6
1225 else
1226 if test -n "$CC"; then
1227 ac_cv_prog_CC="$CC" # Let the user override the test.
1228 else
1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 for as_dir in $PATH
1231 do
1232 IFS=$as_save_IFS
1233 test -z "$as_dir" && as_dir=.
1234 for ac_exec_ext in '' $ac_executable_extensions; do
1235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1238 break 2
1239 fi
1240 done
1241 done
1242
1243 fi
1244 fi
1245 CC=$ac_cv_prog_CC
1246 if test -n "$CC"; then
1247 echo "$as_me:$LINENO: result: $CC" >&5
1248 echo "${ECHO_T}$CC" >&6
1249 else
1250 echo "$as_me:$LINENO: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1252 fi
1253
1254 fi
1255 if test -z "$ac_cv_prog_CC"; then
1256 ac_ct_CC=$CC
1257 # Extract the first word of "gcc", so it can be a program name with args.
1258 set dummy gcc; ac_word=$2
1259 echo "$as_me:$LINENO: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 else
1264 if test -n "$ac_ct_CC"; then
1265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1266 else
1267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268 for as_dir in $PATH
1269 do
1270 IFS=$as_save_IFS
1271 test -z "$as_dir" && as_dir=.
1272 for ac_exec_ext in '' $ac_executable_extensions; do
1273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1274 ac_cv_prog_ac_ct_CC="gcc"
1275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1276 break 2
1277 fi
1278 done
1279 done
1280
1281 fi
1282 fi
1283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1284 if test -n "$ac_ct_CC"; then
1285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1286 echo "${ECHO_T}$ac_ct_CC" >&6
1287 else
1288 echo "$as_me:$LINENO: result: no" >&5
1289 echo "${ECHO_T}no" >&6
1290 fi
1291
1292 CC=$ac_ct_CC
1293 else
1294 CC="$ac_cv_prog_CC"
1295 fi
1296
1297 if test -z "$CC"; then
1298 if test -n "$ac_tool_prefix"; then
1299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1300 set dummy ${ac_tool_prefix}cc; ac_word=$2
1301 echo "$as_me:$LINENO: checking for $ac_word" >&5
1302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303 if test "${ac_cv_prog_CC+set}" = set; then
1304 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 else
1306 if test -n "$CC"; then
1307 ac_cv_prog_CC="$CC" # Let the user override the test.
1308 else
1309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310 for as_dir in $PATH
1311 do
1312 IFS=$as_save_IFS
1313 test -z "$as_dir" && as_dir=.
1314 for ac_exec_ext in '' $ac_executable_extensions; do
1315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1316 ac_cv_prog_CC="${ac_tool_prefix}cc"
1317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1318 break 2
1319 fi
1320 done
1321 done
1322
1323 fi
1324 fi
1325 CC=$ac_cv_prog_CC
1326 if test -n "$CC"; then
1327 echo "$as_me:$LINENO: result: $CC" >&5
1328 echo "${ECHO_T}$CC" >&6
1329 else
1330 echo "$as_me:$LINENO: result: no" >&5
1331 echo "${ECHO_T}no" >&6
1332 fi
1333
1334 fi
1335 if test -z "$ac_cv_prog_CC"; then
1336 ac_ct_CC=$CC
1337 # Extract the first word of "cc", so it can be a program name with args.
1338 set dummy cc; ac_word=$2
1339 echo "$as_me:$LINENO: checking for $ac_word" >&5
1340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 if test -n "$ac_ct_CC"; then
1345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1346 else
1347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348 for as_dir in $PATH
1349 do
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 for ac_exec_ext in '' $ac_executable_extensions; do
1353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354 ac_cv_prog_ac_ct_CC="cc"
1355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 break 2
1357 fi
1358 done
1359 done
1360
1361 fi
1362 fi
1363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1364 if test -n "$ac_ct_CC"; then
1365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1366 echo "${ECHO_T}$ac_ct_CC" >&6
1367 else
1368 echo "$as_me:$LINENO: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1370 fi
1371
1372 CC=$ac_ct_CC
1373 else
1374 CC="$ac_cv_prog_CC"
1375 fi
1376
1377 fi
1378 if test -z "$CC"; then
1379 # Extract the first word of "cc", so it can be a program name with args.
1380 set dummy cc; ac_word=$2
1381 echo "$as_me:$LINENO: checking for $ac_word" >&5
1382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383 if test "${ac_cv_prog_CC+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 if test -n "$CC"; then
1387 ac_cv_prog_CC="$CC" # Let the user override the test.
1388 else
1389 ac_prog_rejected=no
1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 for as_dir in $PATH
1392 do
1393 IFS=$as_save_IFS
1394 test -z "$as_dir" && as_dir=.
1395 for ac_exec_ext in '' $ac_executable_extensions; do
1396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1398 ac_prog_rejected=yes
1399 continue
1400 fi
1401 ac_cv_prog_CC="cc"
1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 break 2
1404 fi
1405 done
1406 done
1407
1408 if test $ac_prog_rejected = yes; then
1409 # We found a bogon in the path, so make sure we never use it.
1410 set dummy $ac_cv_prog_CC
1411 shift
1412 if test $# != 0; then
1413 # We chose a different compiler from the bogus one.
1414 # However, it has the same basename, so the bogon will be chosen
1415 # first if we set CC to just the basename; use the full file name.
1416 shift
1417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1418 fi
1419 fi
1420 fi
1421 fi
1422 CC=$ac_cv_prog_CC
1423 if test -n "$CC"; then
1424 echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1426 else
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 fi
1430
1431 fi
1432 if test -z "$CC"; then
1433 if test -n "$ac_tool_prefix"; then
1434 for ac_prog in cl
1435 do
1436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 test -n "$CC" && break
1472 done
1473 fi
1474 if test -z "$CC"; then
1475 ac_ct_CC=$CC
1476 for ac_prog in cl
1477 do
1478 # Extract the first word of "$ac_prog", so it can be a program name with args.
1479 set dummy $ac_prog; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="$ac_prog"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 test -n "$ac_ct_CC" && break
1514 done
1515
1516 CC=$ac_ct_CC
1517 fi
1518
1519 fi
1520
1521
1522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1523 See \`config.log' for more details." >&5
1524 echo "$as_me: error: no acceptable C compiler found in \$PATH
1525 See \`config.log' for more details." >&2;}
1526 { (exit 1); exit 1; }; }
1527
1528 # Provide some information about the compiler.
1529 echo "$as_me:$LINENO:" \
1530 "checking for C compiler version" >&5
1531 ac_compiler=`set X $ac_compile; echo $2`
1532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1533 (eval $ac_compiler --version </dev/null >&5) 2>&5
1534 ac_status=$?
1535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1536 (exit $ac_status); }
1537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1538 (eval $ac_compiler -v </dev/null >&5) 2>&5
1539 ac_status=$?
1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1541 (exit $ac_status); }
1542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1543 (eval $ac_compiler -V </dev/null >&5) 2>&5
1544 ac_status=$?
1545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1547
1548 cat >conftest.$ac_ext <<_ACEOF
1549 #line $LINENO "configure"
1550 /* confdefs.h. */
1551 _ACEOF
1552 cat confdefs.h >>conftest.$ac_ext
1553 cat >>conftest.$ac_ext <<_ACEOF
1554 /* end confdefs.h. */
1555
1556 int
1557 main ()
1558 {
1559
1560 ;
1561 return 0;
1562 }
1563 _ACEOF
1564 ac_clean_files_save=$ac_clean_files
1565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1566 # Try to create an executable without -o first, disregard a.out.
1567 # It will help us diagnose broken compilers, and finding out an intuition
1568 # of exeext.
1569 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1570 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1573 (eval $ac_link_default) 2>&5
1574 ac_status=$?
1575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1576 (exit $ac_status); }; then
1577 # Find the output, starting from the most likely. This scheme is
1578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1579 # resort.
1580
1581 # Be careful to initialize this variable, since it used to be cached.
1582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1583 ac_cv_exeext=
1584 # b.out is created by i960 compilers.
1585 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1586 do
1587 test -f "$ac_file" || continue
1588 case $ac_file in
1589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1590 ;;
1591 conftest.$ac_ext )
1592 # This is the source file.
1593 ;;
1594 [ab].out )
1595 # We found the default executable, but exeext='' is most
1596 # certainly right.
1597 break;;
1598 *.* )
1599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1600 # FIXME: I believe we export ac_cv_exeext for Libtool,
1601 # but it would be cool to find out if it's true. Does anybody
1602 # maintain Libtool? --akim.
1603 export ac_cv_exeext
1604 break;;
1605 * )
1606 break;;
1607 esac
1608 done
1609 else
1610 echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1614 See \`config.log' for more details." >&5
1615 echo "$as_me: error: C compiler cannot create executables
1616 See \`config.log' for more details." >&2;}
1617 { (exit 77); exit 77; }; }
1618 fi
1619
1620 ac_exeext=$ac_cv_exeext
1621 echo "$as_me:$LINENO: result: $ac_file" >&5
1622 echo "${ECHO_T}$ac_file" >&6
1623
1624 # Check the compiler produces executables we can run. If not, either
1625 # the compiler is broken, or we cross compile.
1626 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1627 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1628 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1629 # If not cross compiling, check that we can run a simple program.
1630 if test "$cross_compiling" != yes; then
1631 if { ac_try='./$ac_file'
1632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1633 (eval $ac_try) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }; }; then
1637 cross_compiling=no
1638 else
1639 if test "$cross_compiling" = maybe; then
1640 cross_compiling=yes
1641 else
1642 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1643 If you meant to cross compile, use \`--host'.
1644 See \`config.log' for more details." >&5
1645 echo "$as_me: error: cannot run C compiled programs.
1646 If you meant to cross compile, use \`--host'.
1647 See \`config.log' for more details." >&2;}
1648 { (exit 1); exit 1; }; }
1649 fi
1650 fi
1651 fi
1652 echo "$as_me:$LINENO: result: yes" >&5
1653 echo "${ECHO_T}yes" >&6
1654
1655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1656 ac_clean_files=$ac_clean_files_save
1657 # Check the compiler produces executables we can run. If not, either
1658 # the compiler is broken, or we cross compile.
1659 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1661 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1662 echo "${ECHO_T}$cross_compiling" >&6
1663
1664 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1667 (eval $ac_link) 2>&5
1668 ac_status=$?
1669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670 (exit $ac_status); }; then
1671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1672 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1673 # work properly (i.e., refer to `conftest.exe'), while it won't with
1674 # `rm'.
1675 for ac_file in conftest.exe conftest conftest.*; do
1676 test -f "$ac_file" || continue
1677 case $ac_file in
1678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1680 export ac_cv_exeext
1681 break;;
1682 * ) break;;
1683 esac
1684 done
1685 else
1686 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1687 See \`config.log' for more details." >&5
1688 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1689 See \`config.log' for more details." >&2;}
1690 { (exit 1); exit 1; }; }
1691 fi
1692
1693 rm -f conftest$ac_cv_exeext
1694 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1695 echo "${ECHO_T}$ac_cv_exeext" >&6
1696
1697 rm -f conftest.$ac_ext
1698 EXEEXT=$ac_cv_exeext
1699 ac_exeext=$EXEEXT
1700 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1701 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1702 if test "${ac_cv_objext+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line $LINENO "configure"
1707 /* confdefs.h. */
1708 _ACEOF
1709 cat confdefs.h >>conftest.$ac_ext
1710 cat >>conftest.$ac_ext <<_ACEOF
1711 /* end confdefs.h. */
1712
1713 int
1714 main ()
1715 {
1716
1717 ;
1718 return 0;
1719 }
1720 _ACEOF
1721 rm -f conftest.o conftest.obj
1722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1723 (eval $ac_compile) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1728 case $ac_file in
1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1731 break;;
1732 esac
1733 done
1734 else
1735 echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743 fi
1744
1745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1746 fi
1747 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1748 echo "${ECHO_T}$ac_cv_objext" >&6
1749 OBJEXT=$ac_cv_objext
1750 ac_objext=$OBJEXT
1751 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1752 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1753 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #line $LINENO "configure"
1758 /* confdefs.h. */
1759 _ACEOF
1760 cat confdefs.h >>conftest.$ac_ext
1761 cat >>conftest.$ac_ext <<_ACEOF
1762 /* end confdefs.h. */
1763
1764 int
1765 main ()
1766 {
1767 #ifndef __GNUC__
1768 choke me
1769 #endif
1770
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 rm -f conftest.$ac_objext
1776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1777 (eval $ac_compile) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); } &&
1781 { ac_try='test -s conftest.$ac_objext'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1787 ac_compiler_gnu=yes
1788 else
1789 echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_compiler_gnu=no
1793 fi
1794 rm -f conftest.$ac_objext conftest.$ac_ext
1795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1796
1797 fi
1798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1800 GCC=`test $ac_compiler_gnu = yes && echo yes`
1801 ac_test_CFLAGS=${CFLAGS+set}
1802 ac_save_CFLAGS=$CFLAGS
1803 CFLAGS="-g"
1804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1806 if test "${ac_cv_prog_cc_g+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 cat >conftest.$ac_ext <<_ACEOF
1810 #line $LINENO "configure"
1811 /* confdefs.h. */
1812 _ACEOF
1813 cat confdefs.h >>conftest.$ac_ext
1814 cat >>conftest.$ac_ext <<_ACEOF
1815 /* end confdefs.h. */
1816
1817 int
1818 main ()
1819 {
1820
1821 ;
1822 return 0;
1823 }
1824 _ACEOF
1825 rm -f conftest.$ac_objext
1826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1828 ac_status=$?
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 (eval $ac_try) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 ac_cv_prog_cc_g=yes
1838 else
1839 echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_cv_prog_cc_g=no
1843 fi
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1848 if test "$ac_test_CFLAGS" = set; then
1849 CFLAGS=$ac_save_CFLAGS
1850 elif test $ac_cv_prog_cc_g = yes; then
1851 if test "$GCC" = yes; then
1852 CFLAGS="-g -O2"
1853 else
1854 CFLAGS="-g"
1855 fi
1856 else
1857 if test "$GCC" = yes; then
1858 CFLAGS="-O2"
1859 else
1860 CFLAGS=
1861 fi
1862 fi
1863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 ac_cv_prog_cc_stdc=no
1869 ac_save_CC=$CC
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line $LINENO "configure"
1872 /* confdefs.h. */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1877 #include <stdarg.h>
1878 #include <stdio.h>
1879 #include <sys/types.h>
1880 #include <sys/stat.h>
1881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1882 struct buf { int x; };
1883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1884 static char *e (p, i)
1885 char **p;
1886 int i;
1887 {
1888 return p[i];
1889 }
1890 static char *f (char * (*g) (char **, int), char **p, ...)
1891 {
1892 char *s;
1893 va_list v;
1894 va_start (v,p);
1895 s = g (p, va_arg (v,int));
1896 va_end (v);
1897 return s;
1898 }
1899 int test (int i, double x);
1900 struct s1 {int (*f) (int a);};
1901 struct s2 {int (*f) (double a);};
1902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1903 int argc;
1904 char **argv;
1905 int
1906 main ()
1907 {
1908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 # Don't try gcc -ansi; that turns off useful extensions and
1914 # breaks some systems' header files.
1915 # AIX -qlanglvl=ansi
1916 # Ultrix and OSF/1 -std1
1917 # HP-UX 10.20 and later -Ae
1918 # HP-UX older versions -Aa -D_HPUX_SOURCE
1919 # SVR4 -Xc -D__EXTENSIONS__
1920 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1921 do
1922 CC="$ac_save_CC $ac_arg"
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 ac_cv_prog_cc_stdc=$ac_arg
1936 break
1937 else
1938 echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 fi
1942 rm -f conftest.$ac_objext
1943 done
1944 rm -f conftest.$ac_ext conftest.$ac_objext
1945 CC=$ac_save_CC
1946
1947 fi
1948
1949 case "x$ac_cv_prog_cc_stdc" in
1950 x|xno)
1951 echo "$as_me:$LINENO: result: none needed" >&5
1952 echo "${ECHO_T}none needed" >&6 ;;
1953 *)
1954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1956 CC="$CC $ac_cv_prog_cc_stdc" ;;
1957 esac
1958
1959 # Some people use a C++ compiler to compile C. Since we use `exit',
1960 # in C++ we need to declare it. In case someone uses the same compiler
1961 # for both compiling C and C++ we need to have the C++ compiler decide
1962 # the declaration of exit, since it's the most demanding environment.
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #ifndef __cplusplus
1965 choke me
1966 #endif
1967 _ACEOF
1968 rm -f conftest.$ac_objext
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970 (eval $ac_compile) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); } &&
1974 { ac_try='test -s conftest.$ac_objext'
1975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976 (eval $ac_try) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; }; then
1980 for ac_declaration in \
1981 ''\
1982 '#include <stdlib.h>' \
1983 'extern "C" void std::exit (int) throw (); using std::exit;' \
1984 'extern "C" void std::exit (int); using std::exit;' \
1985 'extern "C" void exit (int) throw ();' \
1986 'extern "C" void exit (int);' \
1987 'void exit (int);'
1988 do
1989 cat >conftest.$ac_ext <<_ACEOF
1990 #line $LINENO "configure"
1991 /* confdefs.h. */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1996 #include <stdlib.h>
1997 $ac_declaration
1998 int
1999 main ()
2000 {
2001 exit (42);
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 :
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 continue
2024 fi
2025 rm -f conftest.$ac_objext conftest.$ac_ext
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 /* confdefs.h. */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2033 $ac_declaration
2034 int
2035 main ()
2036 {
2037 exit (42);
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2054 break
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 fi
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 done
2062 rm -f conftest*
2063 if test -n "$ac_declaration"; then
2064 echo '#ifdef __cplusplus' >>confdefs.h
2065 echo $ac_declaration >>confdefs.h
2066 echo '#endif' >>confdefs.h
2067 fi
2068
2069 else
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 fi
2074 rm -f conftest.$ac_objext conftest.$ac_ext
2075 ac_ext=c
2076 ac_cpp='$CPP $CPPFLAGS'
2077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080
2081
2082 cat >>confdefs.h <<\_ACEOF
2083 #define _GNU_SOURCE 1
2084 _ACEOF
2085
2086
2087
2088 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2090 if test "${ac_cv_c_const+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line $LINENO "configure"
2095 /* confdefs.h. */
2096 _ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2100
2101 int
2102 main ()
2103 {
2104 /* FIXME: Include the comments suggested by Paul. */
2105 #ifndef __cplusplus
2106 /* Ultrix mips cc rejects this. */
2107 typedef int charset[2];
2108 const charset x;
2109 /* SunOS 4.1.1 cc rejects this. */
2110 char const *const *ccp;
2111 char **p;
2112 /* NEC SVR4.0.2 mips cc rejects this. */
2113 struct point {int x, y;};
2114 static struct point const zero = {0,0};
2115 /* AIX XL C 1.02.0.0 rejects this.
2116 It does not let you subtract one const X* pointer from another in
2117 an arm of an if-expression whose if-part is not a constant
2118 expression */
2119 const char *g = "string";
2120 ccp = &g + (g ? g-g : 0);
2121 /* HPUX 7.0 cc rejects these. */
2122 ++ccp;
2123 p = (char**) ccp;
2124 ccp = (char const *const *) p;
2125 { /* SCO 3.2v4 cc rejects this. */
2126 char *t;
2127 char const *s = 0 ? (char *) 0 : (char const *) 0;
2128
2129 *t++ = 0;
2130 }
2131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2132 int x[] = {25, 17};
2133 const int *foo = &x[0];
2134 ++foo;
2135 }
2136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2137 typedef const int *iptr;
2138 iptr p = 0;
2139 ++p;
2140 }
2141 { /* AIX XL C 1.02.0.0 rejects this saying
2142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2143 struct s { int j; const int *ap[3]; };
2144 struct s *b; b->j = 5;
2145 }
2146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2147 const int foo = 10;
2148 }
2149 #endif
2150
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 ac_cv_c_const=yes
2168 else
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_cv_c_const=no
2173 fi
2174 rm -f conftest.$ac_objext conftest.$ac_ext
2175 fi
2176 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2177 echo "${ECHO_T}$ac_cv_c_const" >&6
2178 if test $ac_cv_c_const = no; then
2179
2180 cat >>confdefs.h <<\_ACEOF
2181 #define const
2182 _ACEOF
2183
2184 fi
2185
2186 echo "$as_me:$LINENO: checking for inline" >&5
2187 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2188 if test "${ac_cv_c_inline+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 ac_cv_c_inline=no
2192 for ac_kw in inline __inline__ __inline; do
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200 #ifndef __cplusplus
2201 typedef int foo_t;
2202 static $ac_kw foo_t static_foo () {return 0; }
2203 $ac_kw foo_t foo () {return 0; }
2204 #endif
2205
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_cv_c_inline=$ac_kw; break
2220 else
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 fi
2225 rm -f conftest.$ac_objext conftest.$ac_ext
2226 done
2227
2228 fi
2229 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2230 echo "${ECHO_T}$ac_cv_c_inline" >&6
2231 case $ac_cv_c_inline in
2232 inline | yes) ;;
2233 no)
2234 cat >>confdefs.h <<\_ACEOF
2235 #define inline
2236 _ACEOF
2237 ;;
2238 *) cat >>confdefs.h <<_ACEOF
2239 #define inline $ac_cv_c_inline
2240 _ACEOF
2241 ;;
2242 esac
2243
2244
2245 echo "$as_me:$LINENO: checking if $CC accepts -Wall" >&5
2246 echo $ECHO_N "checking if $CC accepts -Wall... $ECHO_C" >&6
2247 pa_add_cflags__old_cflags="$CFLAGS"
2248 CFLAGS="$CFLAGS -Wall"
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #line $LINENO "configure"
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 #include <stdio.h>
2257 int
2258 main ()
2259 {
2260 printf("Hello, World!\n");
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext conftest$ac_exeext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -s conftest$ac_exeext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 CFLAGS="$pa_add_cflags__old_cflags"
2286 fi
2287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2288 echo "$as_me:$LINENO: checking if $CC accepts -W" >&5
2289 echo $ECHO_N "checking if $CC accepts -W... $ECHO_C" >&6
2290 pa_add_cflags__old_cflags="$CFLAGS"
2291 CFLAGS="$CFLAGS -W"
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #line $LINENO "configure"
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 #include <stdio.h>
2300 int
2301 main ()
2302 {
2303 printf("Hello, World!\n");
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext conftest$ac_exeext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest$ac_exeext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 echo "$as_me:$LINENO: result: yes" >&5
2321 echo "${ECHO_T}yes" >&6
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2328 CFLAGS="$pa_add_cflags__old_cflags"
2329 fi
2330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2331 echo "$as_me:$LINENO: checking if $CC accepts -Wpointer-arith" >&5
2332 echo $ECHO_N "checking if $CC accepts -Wpointer-arith... $ECHO_C" >&6
2333 pa_add_cflags__old_cflags="$CFLAGS"
2334 CFLAGS="$CFLAGS -Wpointer-arith"
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdio.h>
2343 int
2344 main ()
2345 {
2346 printf("Hello, World!\n");
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext conftest$ac_exeext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest$ac_exeext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 echo "$as_me:$LINENO: result: yes" >&5
2364 echo "${ECHO_T}yes" >&6
2365 else
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 CFLAGS="$pa_add_cflags__old_cflags"
2372 fi
2373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2374 echo "$as_me:$LINENO: checking if $CC accepts -Wbad-function-cast" >&5
2375 echo $ECHO_N "checking if $CC accepts -Wbad-function-cast... $ECHO_C" >&6
2376 pa_add_cflags__old_cflags="$CFLAGS"
2377 CFLAGS="$CFLAGS -Wbad-function-cast"
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #include <stdio.h>
2386 int
2387 main ()
2388 {
2389 printf("Hello, World!\n");
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest$ac_exeext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2414 CFLAGS="$pa_add_cflags__old_cflags"
2415 fi
2416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2417 echo "$as_me:$LINENO: checking if $CC accepts -Wcast-equal" >&5
2418 echo $ECHO_N "checking if $CC accepts -Wcast-equal... $ECHO_C" >&6
2419 pa_add_cflags__old_cflags="$CFLAGS"
2420 CFLAGS="$CFLAGS -Wcast-equal"
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #include <stdio.h>
2429 int
2430 main ()
2431 {
2432 printf("Hello, World!\n");
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext conftest$ac_exeext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439 (eval $ac_link) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -s conftest$ac_exeext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2457 CFLAGS="$pa_add_cflags__old_cflags"
2458 fi
2459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2460 echo "$as_me:$LINENO: checking if $CC accepts -Wstrict-prototypes" >&5
2461 echo $ECHO_N "checking if $CC accepts -Wstrict-prototypes... $ECHO_C" >&6
2462 pa_add_cflags__old_cflags="$CFLAGS"
2463 CFLAGS="$CFLAGS -Wstrict-prototypes"
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 #include <stdio.h>
2472 int
2473 main ()
2474 {
2475 printf("Hello, World!\n");
2476 ;
2477 return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext conftest$ac_exeext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2482 (eval $ac_link) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -s conftest$ac_exeext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 echo "$as_me:$LINENO: result: yes" >&5
2493 echo "${ECHO_T}yes" >&6
2494 else
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497
2498 echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2500 CFLAGS="$pa_add_cflags__old_cflags"
2501 fi
2502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2503 echo "$as_me:$LINENO: checking if $CC accepts -Wnested-externs" >&5
2504 echo $ECHO_N "checking if $CC accepts -Wnested-externs... $ECHO_C" >&6
2505 pa_add_cflags__old_cflags="$CFLAGS"
2506 CFLAGS="$CFLAGS -Wnested-externs"
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h. */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2514 #include <stdio.h>
2515 int
2516 main ()
2517 {
2518 printf("Hello, World!\n");
2519 ;
2520 return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2525 (eval $ac_link) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest$ac_exeext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 CFLAGS="$pa_add_cflags__old_cflags"
2544 fi
2545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2546 echo "$as_me:$LINENO: checking if $CC accepts -Winline" >&5
2547 echo $ECHO_N "checking if $CC accepts -Winline... $ECHO_C" >&6
2548 pa_add_cflags__old_cflags="$CFLAGS"
2549 CFLAGS="$CFLAGS -Winline"
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 /* confdefs.h. */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557 #include <stdio.h>
2558 int
2559 main ()
2560 {
2561 printf("Hello, World!\n");
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2568 (eval $ac_link) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -s conftest$ac_exeext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 echo "$as_me:$LINENO: result: yes" >&5
2579 echo "${ECHO_T}yes" >&6
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2586 CFLAGS="$pa_add_cflags__old_cflags"
2587 fi
2588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2589 echo "$as_me:$LINENO: checking if $CC accepts -Wshadow" >&5
2590 echo $ECHO_N "checking if $CC accepts -Wshadow... $ECHO_C" >&6
2591 pa_add_cflags__old_cflags="$CFLAGS"
2592 CFLAGS="$CFLAGS -Wshadow"
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 #include <stdio.h>
2601 int
2602 main ()
2603 {
2604 printf("Hello, World!\n");
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 rm -f conftest.$ac_objext conftest$ac_exeext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest$ac_exeext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 echo "$as_me:$LINENO: result: yes" >&5
2622 echo "${ECHO_T}yes" >&6
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2629 CFLAGS="$pa_add_cflags__old_cflags"
2630 fi
2631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2632 echo "$as_me:$LINENO: checking if $CC accepts -Wcast-align" >&5
2633 echo $ECHO_N "checking if $CC accepts -Wcast-align... $ECHO_C" >&6
2634 pa_add_cflags__old_cflags="$CFLAGS"
2635 CFLAGS="$CFLAGS -Wcast-align"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643 #include <stdio.h>
2644 int
2645 main ()
2646 {
2647 printf("Hello, World!\n");
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext conftest$ac_exeext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654 (eval $ac_link) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest$ac_exeext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2672 CFLAGS="$pa_add_cflags__old_cflags"
2673 fi
2674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2675 echo "$as_me:$LINENO: checking if $CC accepts -pipe" >&5
2676 echo $ECHO_N "checking if $CC accepts -pipe... $ECHO_C" >&6
2677 pa_add_cflags__old_cflags="$CFLAGS"
2678 CFLAGS="$CFLAGS -pipe"
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #include <stdio.h>
2687 int
2688 main ()
2689 {
2690 printf("Hello, World!\n");
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext conftest$ac_exeext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2697 (eval $ac_link) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest$ac_exeext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 echo "$as_me:$LINENO: result: yes" >&5
2708 echo "${ECHO_T}yes" >&6
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6
2715 CFLAGS="$pa_add_cflags__old_cflags"
2716 fi
2717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2718
2719 echo "$as_me:$LINENO: checking for library containing compress2" >&5
2720 echo $ECHO_N "checking for library containing compress2... $ECHO_C" >&6
2721 if test "${ac_cv_search_compress2+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 ac_func_search_save_LIBS=$LIBS
2725 ac_cv_search_compress2=no
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 #ifdef __cplusplus
2736 extern "C"
2737 #endif
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char compress2 ();
2741 int
2742 main ()
2743 {
2744 compress2 ();
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext conftest$ac_exeext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751 (eval $ac_link) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_search_compress2="none required"
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 fi
2767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2768 if test "$ac_cv_search_compress2" = no; then
2769 for ac_lib in z; do
2770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line $LINENO "configure"
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778
2779 /* Override any gcc2 internal prototype to avoid an error. */
2780 #ifdef __cplusplus
2781 extern "C"
2782 #endif
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2785 char compress2 ();
2786 int
2787 main ()
2788 {
2789 compress2 ();
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 rm -f conftest.$ac_objext conftest$ac_exeext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2796 (eval $ac_link) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -s conftest$ac_exeext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv_search_compress2="-l$ac_lib"
2807 break
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 fi
2813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2814 done
2815 fi
2816 LIBS=$ac_func_search_save_LIBS
2817 fi
2818 echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
2819 echo "${ECHO_T}$ac_cv_search_compress2" >&6
2820 if test "$ac_cv_search_compress2" != no; then
2821 test "$ac_cv_search_compress2" = "none required" || LIBS="$ac_cv_search_compress2 $LIBS"
2822
2823 fi
2824
2825 echo "$as_me:$LINENO: checking for library containing png_init_io" >&5
2826 echo $ECHO_N "checking for library containing png_init_io... $ECHO_C" >&6
2827 if test "${ac_cv_search_png_init_io+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 ac_func_search_save_LIBS=$LIBS
2831 ac_cv_search_png_init_io=no
2832 cat >conftest.$ac_ext <<_ACEOF
2833 #line $LINENO "configure"
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839
2840 /* Override any gcc2 internal prototype to avoid an error. */
2841 #ifdef __cplusplus
2842 extern "C"
2843 #endif
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2846 char png_init_io ();
2847 int
2848 main ()
2849 {
2850 png_init_io ();
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext conftest$ac_exeext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857 (eval $ac_link) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -s conftest$ac_exeext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 ac_cv_search_png_init_io="none required"
2868 else
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 fi
2873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2874 if test "$ac_cv_search_png_init_io" = no; then
2875 for ac_lib in png; do
2876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2877 cat >conftest.$ac_ext <<_ACEOF
2878 #line $LINENO "configure"
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884
2885 /* Override any gcc2 internal prototype to avoid an error. */
2886 #ifdef __cplusplus
2887 extern "C"
2888 #endif
2889 /* We use char because int might match the return type of a gcc2
2890 builtin and then its argument prototype would still apply. */
2891 char png_init_io ();
2892 int
2893 main ()
2894 {
2895 png_init_io ();
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 rm -f conftest.$ac_objext conftest$ac_exeext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902 (eval $ac_link) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -s conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_search_png_init_io="-l$ac_lib"
2913 break
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 fi
2919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2920 done
2921 fi
2922 LIBS=$ac_func_search_save_LIBS
2923 fi
2924 echo "$as_me:$LINENO: result: $ac_cv_search_png_init_io" >&5
2925 echo "${ECHO_T}$ac_cv_search_png_init_io" >&6
2926 if test "$ac_cv_search_png_init_io" != no; then
2927 test "$ac_cv_search_png_init_io" = "none required" || LIBS="$ac_cv_search_png_init_io $LIBS"
2928
2929 fi
2930
2931
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_RANLIB+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 if test -n "$RANLIB"; then
2941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956
2957 fi
2958 fi
2959 RANLIB=$ac_cv_prog_RANLIB
2960 if test -n "$RANLIB"; then
2961 echo "$as_me:$LINENO: result: $RANLIB" >&5
2962 echo "${ECHO_T}$RANLIB" >&6
2963 else
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 fi
2967
2968 fi
2969 if test -z "$ac_cv_prog_RANLIB"; then
2970 ac_ct_RANLIB=$RANLIB
2971 # Extract the first word of "ranlib", so it can be a program name with args.
2972 set dummy ranlib; ac_word=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -n "$ac_ct_RANLIB"; then
2979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_ac_ct_RANLIB="ranlib"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994
2995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2996 fi
2997 fi
2998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2999 if test -n "$ac_ct_RANLIB"; then
3000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007 RANLIB=$ac_ct_RANLIB
3008 else
3009 RANLIB="$ac_cv_prog_RANLIB"
3010 fi
3011
3012 ac_aux_dir=
3013 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3014 if test -f $ac_dir/install-sh; then
3015 ac_aux_dir=$ac_dir
3016 ac_install_sh="$ac_aux_dir/install-sh -c"
3017 break
3018 elif test -f $ac_dir/install.sh; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/install.sh -c"
3021 break
3022 elif test -f $ac_dir/shtool; then
3023 ac_aux_dir=$ac_dir
3024 ac_install_sh="$ac_aux_dir/shtool install -c"
3025 break
3026 fi
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3030 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3035 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3036
3037 # Find a good install program. We prefer a C program (faster),
3038 # so one script is as good as another. But avoid the broken or
3039 # incompatible versions:
3040 # SysV /etc/install, /usr/sbin/install
3041 # SunOS /usr/etc/install
3042 # IRIX /sbin/install
3043 # AIX /bin/install
3044 # AmigaOS /C/install, which installs bootblocks on floppy discs
3045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3048 # ./install, which can be erroneously created by make from ./install.sh.
3049 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3050 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3051 if test -z "$INSTALL"; then
3052 if test "${ac_cv_path_install+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 # Account for people who put trailing slashes in PATH elements.
3061 case $as_dir/ in
3062 ./ | .// | /cC/* | \
3063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3064 /usr/ucb/* ) ;;
3065 *)
3066 # OSF1 and SCO ODT 3.0 have their own names for install.
3067 # Don't use installbsd from OSF since it installs stuff as root
3068 # by default.
3069 for ac_prog in ginstall scoinst install; do
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3072 if test $ac_prog = install &&
3073 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3074 # AIX install. It has an incompatible calling convention.
3075 :
3076 elif test $ac_prog = install &&
3077 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3078 # program-specific install script used by HP pwplus--don't use.
3079 :
3080 else
3081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3082 break 3
3083 fi
3084 fi
3085 done
3086 done
3087 ;;
3088 esac
3089 done
3090
3091
3092 fi
3093 if test "${ac_cv_path_install+set}" = set; then
3094 INSTALL=$ac_cv_path_install
3095 else
3096 # As a last resort, use the slow shell script. We don't cache a
3097 # path for INSTALL within a source directory, because that will
3098 # break other packages using the cache if that directory is
3099 # removed, or if the path is relative.
3100 INSTALL=$ac_install_sh
3101 fi
3102 fi
3103 echo "$as_me:$LINENO: result: $INSTALL" >&5
3104 echo "${ECHO_T}$INSTALL" >&6
3105
3106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3107 # It thinks the first close brace ends the variable substitution.
3108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3109
3110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3111
3112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3113
3114
3115 ac_config_files="$ac_config_files Makefile"
3116 cat >confcache <<\_ACEOF
3117 # This file is a shell script that caches the results of configure
3118 # tests run on this system so they can be shared between configure
3119 # scripts and configure runs, see configure's option --config-cache.
3120 # It is not useful on other systems. If it contains results you don't
3121 # want to keep, you may remove or edit it.
3122 #
3123 # config.status only pays attention to the cache file if you give it
3124 # the --recheck option to rerun configure.
3125 #
3126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3128 # following values.
3129
3130 _ACEOF
3131
3132 # The following way of writing the cache mishandles newlines in values,
3133 # but we know of no workaround that is simple, portable, and efficient.
3134 # So, don't put newlines in cache variables' values.
3135 # Ultrix sh set writes to stderr and can't be redirected directly,
3136 # and sets the high bit in the cache file unless we assign to the vars.
3137 {
3138 (set) 2>&1 |
3139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3140 *ac_space=\ *)
3141 # `set' does not quote correctly, so add quotes (double-quote
3142 # substitution turns \\\\ into \\, and sed turns \\ into \).
3143 sed -n \
3144 "s/'/'\\\\''/g;
3145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3146 ;;
3147 *)
3148 # `set' quotes correctly as required by POSIX, so do not add quotes.
3149 sed -n \
3150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3151 ;;
3152 esac;
3153 } |
3154 sed '
3155 t clear
3156 : clear
3157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3158 t end
3159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3160 : end' >>confcache
3161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3162 if test -w $cache_file; then
3163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3164 cat confcache >$cache_file
3165 else
3166 echo "not updating unwritable cache $cache_file"
3167 fi
3168 fi
3169 rm -f confcache
3170
3171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3172 # Let make expand exec_prefix.
3173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3174
3175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3177 # trailing colons and then remove the whole line if VPATH becomes empty
3178 # (actually we leave an empty line to preserve line numbers).
3179 if test "x$srcdir" = x.; then
3180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3181 s/:*\$(srcdir):*/:/;
3182 s/:*\${srcdir}:*/:/;
3183 s/:*@srcdir@:*/:/;
3184 s/^\([^=]*=[ ]*\):*/\1/;
3185 s/:*$//;
3186 s/^[^=]*=[ ]*$//;
3187 }'
3188 fi
3189
3190 # Transform confdefs.h into DEFS.
3191 # Protect against shell expansion while executing Makefile rules.
3192 # Protect against Makefile macro expansion.
3193 #
3194 # If the first sed substitution is executed (which looks for macros that
3195 # take arguments), then we branch to the quote section. Otherwise,
3196 # look for a macro that doesn't take arguments.
3197 cat >confdef2opt.sed <<\_ACEOF
3198 t clear
3199 : clear
3200 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3201 t quote
3202 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3203 t quote
3204 d
3205 : quote
3206 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3207 s,\[,\\&,g
3208 s,\],\\&,g
3209 s,\$,$$,g
3210 p
3211 _ACEOF
3212 # We use echo to avoid assuming a particular line-breaking character.
3213 # The extra dot is to prevent the shell from consuming trailing
3214 # line-breaks from the sub-command output. A line-break within
3215 # single-quotes doesn't work because, if this script is created in a
3216 # platform that uses two characters for line-breaks (e.g., DOS), tr
3217 # would break.
3218 ac_LF_and_DOT=`echo; echo .`
3219 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3220 rm -f confdef2opt.sed
3221
3222
3223 ac_libobjs=
3224 ac_ltlibobjs=
3225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3226 # 1. Remove the extension, and $U if already installed.
3227 ac_i=`echo "$ac_i" |
3228 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3229 # 2. Add them.
3230 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3231 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3232 done
3233 LIBOBJS=$ac_libobjs
3234
3235 LTLIBOBJS=$ac_ltlibobjs
3236
3237
3238
3239 : ${CONFIG_STATUS=./config.status}
3240 ac_clean_files_save=$ac_clean_files
3241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3242 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3243 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3244 cat >$CONFIG_STATUS <<_ACEOF
3245 #! $SHELL
3246 # Generated by $as_me.
3247 # Run this file to recreate the current configuration.
3248 # Compiler output produced by configure, useful for debugging
3249 # configure, is in config.log if it exists.
3250
3251 debug=false
3252 ac_cs_recheck=false
3253 ac_cs_silent=false
3254 SHELL=\${CONFIG_SHELL-$SHELL}
3255 _ACEOF
3256
3257 cat >>$CONFIG_STATUS <<\_ACEOF
3258 ## --------------------- ##
3259 ## M4sh Initialization. ##
3260 ## --------------------- ##
3261
3262 # Be Bourne compatible
3263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3264 emulate sh
3265 NULLCMD=:
3266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3267 # is contrary to our usage. Disable this feature.
3268 alias -g '${1+"$@"}'='"$@"'
3269 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3270 set -o posix
3271 fi
3272
3273 # Support unset when possible.
3274 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3275 as_unset=unset
3276 else
3277 as_unset=false
3278 fi
3279
3280
3281 # Work around bugs in pre-3.0 UWIN ksh.
3282 $as_unset ENV MAIL MAILPATH
3283 PS1='$ '
3284 PS2='> '
3285 PS4='+ '
3286
3287 # NLS nuisances.
3288 for as_var in \
3289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3291 LC_TELEPHONE LC_TIME
3292 do
3293 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3294 eval $as_var=C; export $as_var
3295 else
3296 $as_unset $as_var
3297 fi
3298 done
3299
3300 # Required to use basename.
3301 if expr a : '\(a\)' >/dev/null 2>&1; then
3302 as_expr=expr
3303 else
3304 as_expr=false
3305 fi
3306
3307 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3308 as_basename=basename
3309 else
3310 as_basename=false
3311 fi
3312
3313
3314 # Name of the executable.
3315 as_me=`$as_basename "$0" ||
3316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3317 X"$0" : 'X\(//\)$' \| \
3318 X"$0" : 'X\(/\)$' \| \
3319 . : '\(.\)' 2>/dev/null ||
3320 echo X/"$0" |
3321 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3322 /^X\/\(\/\/\)$/{ s//\1/; q; }
3323 /^X\/\(\/\).*/{ s//\1/; q; }
3324 s/.*/./; q'`
3325
3326
3327 # PATH needs CR, and LINENO needs CR and PATH.
3328 # Avoid depending upon Character Ranges.
3329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3332 as_cr_digits='0123456789'
3333 as_cr_alnum=$as_cr_Letters$as_cr_digits
3334
3335 # The user is always right.
3336 if test "${PATH_SEPARATOR+set}" != set; then
3337 echo "#! /bin/sh" >conf$$.sh
3338 echo "exit 0" >>conf$$.sh
3339 chmod +x conf$$.sh
3340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3341 PATH_SEPARATOR=';'
3342 else
3343 PATH_SEPARATOR=:
3344 fi
3345 rm -f conf$$.sh
3346 fi
3347
3348
3349 as_lineno_1=$LINENO
3350 as_lineno_2=$LINENO
3351 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3352 test "x$as_lineno_1" != "x$as_lineno_2" &&
3353 test "x$as_lineno_3" = "x$as_lineno_2" || {
3354 # Find who we are. Look in the path if we contain no path at all
3355 # relative or not.
3356 case $0 in
3357 *[\\/]* ) as_myself=$0 ;;
3358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3364 done
3365
3366 ;;
3367 esac
3368 # We did not find ourselves, most probably we were run as `sh COMMAND'
3369 # in which case we are not to be found in the path.
3370 if test "x$as_myself" = x; then
3371 as_myself=$0
3372 fi
3373 if test ! -f "$as_myself"; then
3374 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3375 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3376 { (exit 1); exit 1; }; }
3377 fi
3378 case $CONFIG_SHELL in
3379 '')
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for as_base in sh bash ksh sh5; do
3386 case $as_dir in
3387 /*)
3388 if ("$as_dir/$as_base" -c '
3389 as_lineno_1=$LINENO
3390 as_lineno_2=$LINENO
3391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3392 test "x$as_lineno_1" != "x$as_lineno_2" &&
3393 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3394 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3395 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3396 CONFIG_SHELL=$as_dir/$as_base
3397 export CONFIG_SHELL
3398 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3399 fi;;
3400 esac
3401 done
3402 done
3403 ;;
3404 esac
3405
3406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3407 # uniformly replaced by the line number. The first 'sed' inserts a
3408 # line-number line before each line; the second 'sed' does the real
3409 # work. The second script uses 'N' to pair each line-number line
3410 # with the numbered line, and appends trailing '-' during
3411 # substitution so that $LINENO is not a special case at line end.
3412 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3413 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3414 sed '=' <$as_myself |
3415 sed '
3416 N
3417 s,$,-,
3418 : loop
3419 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3420 t loop
3421 s,-$,,
3422 s,^['$as_cr_digits']*\n,,
3423 ' >$as_me.lineno &&
3424 chmod +x $as_me.lineno ||
3425 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3426 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3427 { (exit 1); exit 1; }; }
3428
3429 # Don't try to exec as it changes $[0], causing all sort of problems
3430 # (the dirname of $[0] is not the place where we might find the
3431 # original and so on. Autoconf is especially sensible to this).
3432 . ./$as_me.lineno
3433 # Exit status is that of the last command.
3434 exit
3435 }
3436
3437
3438 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3439 *c*,-n*) ECHO_N= ECHO_C='
3440 ' ECHO_T=' ' ;;
3441 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3442 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3443 esac
3444
3445 if expr a : '\(a\)' >/dev/null 2>&1; then
3446 as_expr=expr
3447 else
3448 as_expr=false
3449 fi
3450
3451 rm -f conf$$ conf$$.exe conf$$.file
3452 echo >conf$$.file
3453 if ln -s conf$$.file conf$$ 2>/dev/null; then
3454 # We could just check for DJGPP; but this test a) works b) is more generic
3455 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3456 if test -f conf$$.exe; then
3457 # Don't use ln at all; we don't have any links
3458 as_ln_s='cp -p'
3459 else
3460 as_ln_s='ln -s'
3461 fi
3462 elif ln conf$$.file conf$$ 2>/dev/null; then
3463 as_ln_s=ln
3464 else
3465 as_ln_s='cp -p'
3466 fi
3467 rm -f conf$$ conf$$.exe conf$$.file
3468
3469 if mkdir -p . 2>/dev/null; then
3470 as_mkdir_p=:
3471 else
3472 as_mkdir_p=false
3473 fi
3474
3475 as_executable_p="test -f"
3476
3477 # Sed expression to map a string onto a valid CPP name.
3478 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3479
3480 # Sed expression to map a string onto a valid variable name.
3481 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3482
3483
3484 # IFS
3485 # We need space, tab and new line, in precisely that order.
3486 as_nl='
3487 '
3488 IFS=" $as_nl"
3489
3490 # CDPATH.
3491 $as_unset CDPATH
3492
3493 exec 6>&1
3494
3495 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3496 # report actual input values of CONFIG_FILES etc. instead of their
3497 # values after options handling. Logging --version etc. is OK.
3498 exec 5>>config.log
3499 {
3500 echo
3501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3502 ## Running $as_me. ##
3503 _ASBOX
3504 } >&5
3505 cat >&5 <<_CSEOF
3506
3507 This file was extended by $as_me, which was
3508 generated by GNU Autoconf 2.57. Invocation command line was
3509
3510 CONFIG_FILES = $CONFIG_FILES
3511 CONFIG_HEADERS = $CONFIG_HEADERS
3512 CONFIG_LINKS = $CONFIG_LINKS
3513 CONFIG_COMMANDS = $CONFIG_COMMANDS
3514 $ $0 $@
3515
3516 _CSEOF
3517 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3518 echo >&5
3519 _ACEOF
3520
3521 # Files that config.status was made for.
3522 if test -n "$ac_config_files"; then
3523 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3524 fi
3525
3526 if test -n "$ac_config_headers"; then
3527 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3528 fi
3529
3530 if test -n "$ac_config_links"; then
3531 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3532 fi
3533
3534 if test -n "$ac_config_commands"; then
3535 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3536 fi
3537
3538 cat >>$CONFIG_STATUS <<\_ACEOF
3539
3540 ac_cs_usage="\
3541 \`$as_me' instantiates files from templates according to the
3542 current configuration.
3543
3544 Usage: $0 [OPTIONS] [FILE]...
3545
3546 -h, --help print this help, then exit
3547 -V, --version print version number, then exit
3548 -q, --quiet do not print progress messages
3549 -d, --debug don't remove temporary files
3550 --recheck update $as_me by reconfiguring in the same conditions
3551 --file=FILE[:TEMPLATE]
3552 instantiate the configuration file FILE
3553
3554 Configuration files:
3555 $config_files
3556
3557 Report bugs to <bug-autoconf@gnu.org>."
3558 _ACEOF
3559
3560 cat >>$CONFIG_STATUS <<_ACEOF
3561 ac_cs_version="\\
3562 config.status
3563 configured by $0, generated by GNU Autoconf 2.57,
3564 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3565
3566 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3567 Free Software Foundation, Inc.
3568 This config.status script is free software; the Free Software Foundation
3569 gives unlimited permission to copy, distribute and modify it."
3570 srcdir=$srcdir
3571 INSTALL="$INSTALL"
3572 _ACEOF
3573
3574 cat >>$CONFIG_STATUS <<\_ACEOF
3575 # If no file are specified by the user, then we need to provide default
3576 # value. By we need to know if files were specified by the user.
3577 ac_need_defaults=:
3578 while test $# != 0
3579 do
3580 case $1 in
3581 --*=*)
3582 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3583 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3584 ac_shift=:
3585 ;;
3586 -*)
3587 ac_option=$1
3588 ac_optarg=$2
3589 ac_shift=shift
3590 ;;
3591 *) # This is not an option, so the user has probably given explicit
3592 # arguments.
3593 ac_option=$1
3594 ac_need_defaults=false;;
3595 esac
3596
3597 case $ac_option in
3598 # Handling of the options.
3599 _ACEOF
3600 cat >>$CONFIG_STATUS <<\_ACEOF
3601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3602 ac_cs_recheck=: ;;
3603 --version | --vers* | -V )
3604 echo "$ac_cs_version"; exit 0 ;;
3605 --he | --h)
3606 # Conflict between --help and --header
3607 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3608 Try \`$0 --help' for more information." >&5
3609 echo "$as_me: error: ambiguous option: $1
3610 Try \`$0 --help' for more information." >&2;}
3611 { (exit 1); exit 1; }; };;
3612 --help | --hel | -h )
3613 echo "$ac_cs_usage"; exit 0 ;;
3614 --debug | --d* | -d )
3615 debug=: ;;
3616 --file | --fil | --fi | --f )
3617 $ac_shift
3618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3619 ac_need_defaults=false;;
3620 --header | --heade | --head | --hea )
3621 $ac_shift
3622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3623 ac_need_defaults=false;;
3624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3626 ac_cs_silent=: ;;
3627
3628 # This is an error.
3629 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3630 Try \`$0 --help' for more information." >&5
3631 echo "$as_me: error: unrecognized option: $1
3632 Try \`$0 --help' for more information." >&2;}
3633 { (exit 1); exit 1; }; } ;;
3634
3635 *) ac_config_targets="$ac_config_targets $1" ;;
3636
3637 esac
3638 shift
3639 done
3640
3641 ac_configure_extra_args=
3642
3643 if $ac_cs_silent; then
3644 exec 6>/dev/null
3645 ac_configure_extra_args="$ac_configure_extra_args --silent"
3646 fi
3647
3648 _ACEOF
3649 cat >>$CONFIG_STATUS <<_ACEOF
3650 if \$ac_cs_recheck; then
3651 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3652 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3653 fi
3654
3655 _ACEOF
3656
3657
3658
3659
3660
3661 cat >>$CONFIG_STATUS <<\_ACEOF
3662 for ac_config_target in $ac_config_targets
3663 do
3664 case "$ac_config_target" in
3665 # Handling of arguments.
3666 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3669 { (exit 1); exit 1; }; };;
3670 esac
3671 done
3672
3673 # If the user did not use the arguments to specify the items to instantiate,
3674 # then the envvar interface is used. Set only those that are not.
3675 # We use the long form for the default assignment because of an extremely
3676 # bizarre bug on SunOS 4.1.3.
3677 if $ac_need_defaults; then
3678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3679 fi
3680
3681 # Have a temporary directory for convenience. Make it in the build tree
3682 # simply because there is no reason to put it here, and in addition,
3683 # creating and moving files from /tmp can sometimes cause problems.
3684 # Create a temporary directory, and hook for its removal unless debugging.
3685 $debug ||
3686 {
3687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3688 trap '{ (exit 1); exit 1; }' 1 2 13 15
3689 }
3690
3691 # Create a (secure) tmp directory for tmp files.
3692
3693 {
3694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3695 test -n "$tmp" && test -d "$tmp"
3696 } ||
3697 {
3698 tmp=./confstat$$-$RANDOM
3699 (umask 077 && mkdir $tmp)
3700 } ||
3701 {
3702 echo "$me: cannot create a temporary directory in ." >&2
3703 { (exit 1); exit 1; }
3704 }
3705
3706 _ACEOF
3707
3708 cat >>$CONFIG_STATUS <<_ACEOF
3709
3710 #
3711 # CONFIG_FILES section.
3712 #
3713
3714 # No need to generate the scripts if there are no CONFIG_FILES.
3715 # This happens for instance when ./config.status config.h
3716 if test -n "\$CONFIG_FILES"; then
3717 # Protect against being on the right side of a sed subst in config.status.
3718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3720 s,@SHELL@,$SHELL,;t t
3721 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3722 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3723 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3724 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3725 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3726 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3727 s,@exec_prefix@,$exec_prefix,;t t
3728 s,@prefix@,$prefix,;t t
3729 s,@program_transform_name@,$program_transform_name,;t t
3730 s,@bindir@,$bindir,;t t
3731 s,@sbindir@,$sbindir,;t t
3732 s,@libexecdir@,$libexecdir,;t t
3733 s,@datadir@,$datadir,;t t
3734 s,@sysconfdir@,$sysconfdir,;t t
3735 s,@sharedstatedir@,$sharedstatedir,;t t
3736 s,@localstatedir@,$localstatedir,;t t
3737 s,@libdir@,$libdir,;t t
3738 s,@includedir@,$includedir,;t t
3739 s,@oldincludedir@,$oldincludedir,;t t
3740 s,@infodir@,$infodir,;t t
3741 s,@mandir@,$mandir,;t t
3742 s,@build_alias@,$build_alias,;t t
3743 s,@host_alias@,$host_alias,;t t
3744 s,@target_alias@,$target_alias,;t t
3745 s,@DEFS@,$DEFS,;t t
3746 s,@ECHO_C@,$ECHO_C,;t t
3747 s,@ECHO_N@,$ECHO_N,;t t
3748 s,@ECHO_T@,$ECHO_T,;t t
3749 s,@LIBS@,$LIBS,;t t
3750 s,@CC@,$CC,;t t
3751 s,@CFLAGS@,$CFLAGS,;t t
3752 s,@LDFLAGS@,$LDFLAGS,;t t
3753 s,@CPPFLAGS@,$CPPFLAGS,;t t
3754 s,@ac_ct_CC@,$ac_ct_CC,;t t
3755 s,@EXEEXT@,$EXEEXT,;t t
3756 s,@OBJEXT@,$OBJEXT,;t t
3757 s,@RANLIB@,$RANLIB,;t t
3758 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3759 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3760 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3761 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3762 s,@LIBOBJS@,$LIBOBJS,;t t
3763 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3764 CEOF
3765
3766 _ACEOF
3767
3768 cat >>$CONFIG_STATUS <<\_ACEOF
3769 # Split the substitutions into bite-sized pieces for seds with
3770 # small command number limits, like on Digital OSF/1 and HP-UX.
3771 ac_max_sed_lines=48
3772 ac_sed_frag=1 # Number of current file.
3773 ac_beg=1 # First line for current file.
3774 ac_end=$ac_max_sed_lines # Line after last line for current file.
3775 ac_more_lines=:
3776 ac_sed_cmds=
3777 while $ac_more_lines; do
3778 if test $ac_beg -gt 1; then
3779 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3780 else
3781 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3782 fi
3783 if test ! -s $tmp/subs.frag; then
3784 ac_more_lines=false
3785 else
3786 # The purpose of the label and of the branching condition is to
3787 # speed up the sed processing (if there are no `@' at all, there
3788 # is no need to browse any of the substitutions).
3789 # These are the two extra sed commands mentioned above.
3790 (echo ':t
3791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3792 if test -z "$ac_sed_cmds"; then
3793 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3794 else
3795 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3796 fi
3797 ac_sed_frag=`expr $ac_sed_frag + 1`
3798 ac_beg=$ac_end
3799 ac_end=`expr $ac_end + $ac_max_sed_lines`
3800 fi
3801 done
3802 if test -z "$ac_sed_cmds"; then
3803 ac_sed_cmds=cat
3804 fi
3805 fi # test -n "$CONFIG_FILES"
3806
3807 _ACEOF
3808 cat >>$CONFIG_STATUS <<\_ACEOF
3809 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3811 case $ac_file in
3812 - | *:- | *:-:* ) # input from stdin
3813 cat >$tmp/stdin
3814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3818 * ) ac_file_in=$ac_file.in ;;
3819 esac
3820
3821 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3822 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3824 X"$ac_file" : 'X\(//\)[^/]' \| \
3825 X"$ac_file" : 'X\(//\)$' \| \
3826 X"$ac_file" : 'X\(/\)' \| \
3827 . : '\(.\)' 2>/dev/null ||
3828 echo X"$ac_file" |
3829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3831 /^X\(\/\/\)$/{ s//\1/; q; }
3832 /^X\(\/\).*/{ s//\1/; q; }
3833 s/.*/./; q'`
3834 { if $as_mkdir_p; then
3835 mkdir -p "$ac_dir"
3836 else
3837 as_dir="$ac_dir"
3838 as_dirs=
3839 while test ! -d "$as_dir"; do
3840 as_dirs="$as_dir $as_dirs"
3841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3843 X"$as_dir" : 'X\(//\)[^/]' \| \
3844 X"$as_dir" : 'X\(//\)$' \| \
3845 X"$as_dir" : 'X\(/\)' \| \
3846 . : '\(.\)' 2>/dev/null ||
3847 echo X"$as_dir" |
3848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3850 /^X\(\/\/\)$/{ s//\1/; q; }
3851 /^X\(\/\).*/{ s//\1/; q; }
3852 s/.*/./; q'`
3853 done
3854 test ! -n "$as_dirs" || mkdir $as_dirs
3855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3857 { (exit 1); exit 1; }; }; }
3858
3859 ac_builddir=.
3860
3861 if test "$ac_dir" != .; then
3862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3863 # A "../" for each directory in $ac_dir_suffix.
3864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3865 else
3866 ac_dir_suffix= ac_top_builddir=
3867 fi
3868
3869 case $srcdir in
3870 .) # No --srcdir option. We are building in place.
3871 ac_srcdir=.
3872 if test -z "$ac_top_builddir"; then
3873 ac_top_srcdir=.
3874 else
3875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3876 fi ;;
3877 [\\/]* | ?:[\\/]* ) # Absolute path.
3878 ac_srcdir=$srcdir$ac_dir_suffix;
3879 ac_top_srcdir=$srcdir ;;
3880 *) # Relative path.
3881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3883 esac
3884 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3885 # absolute.
3886 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3887 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3888 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3889 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3890
3891
3892 case $INSTALL in
3893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3894 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3895 esac
3896
3897 if test x"$ac_file" != x-; then
3898 { echo "$as_me:$LINENO: creating $ac_file" >&5
3899 echo "$as_me: creating $ac_file" >&6;}
3900 rm -f "$ac_file"
3901 fi
3902 # Let's still pretend it is `configure' which instantiates (i.e., don't
3903 # use $as_me), people would be surprised to read:
3904 # /* config.h. Generated by config.status. */
3905 if test x"$ac_file" = x-; then
3906 configure_input=
3907 else
3908 configure_input="$ac_file. "
3909 fi
3910 configure_input=$configure_input"Generated from `echo $ac_file_in |
3911 sed 's,.*/,,'` by configure."
3912
3913 # First look for the input files in the build tree, otherwise in the
3914 # src tree.
3915 ac_file_inputs=`IFS=:
3916 for f in $ac_file_in; do
3917 case $f in
3918 -) echo $tmp/stdin ;;
3919 [\\/$]*)
3920 # Absolute (can't be DOS-style, as IFS=:)
3921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3922 echo "$as_me: error: cannot find input file: $f" >&2;}
3923 { (exit 1); exit 1; }; }
3924 echo $f;;
3925 *) # Relative
3926 if test -f "$f"; then
3927 # Build tree
3928 echo $f
3929 elif test -f "$srcdir/$f"; then
3930 # Source tree
3931 echo $srcdir/$f
3932 else
3933 # /dev/null tree
3934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3935 echo "$as_me: error: cannot find input file: $f" >&2;}
3936 { (exit 1); exit 1; }; }
3937 fi;;
3938 esac
3939 done` || { (exit 1); exit 1; }
3940 _ACEOF
3941 cat >>$CONFIG_STATUS <<_ACEOF
3942 sed "$ac_vpsub
3943 $extrasub
3944 _ACEOF
3945 cat >>$CONFIG_STATUS <<\_ACEOF
3946 :t
3947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3948 s,@configure_input@,$configure_input,;t t
3949 s,@srcdir@,$ac_srcdir,;t t
3950 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3951 s,@top_srcdir@,$ac_top_srcdir,;t t
3952 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3953 s,@builddir@,$ac_builddir,;t t
3954 s,@abs_builddir@,$ac_abs_builddir,;t t
3955 s,@top_builddir@,$ac_top_builddir,;t t
3956 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3957 s,@INSTALL@,$ac_INSTALL,;t t
3958 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3959 rm -f $tmp/stdin
3960 if test x"$ac_file" != x-; then
3961 mv $tmp/out $ac_file
3962 else
3963 cat $tmp/out
3964 rm -f $tmp/out
3965 fi
3966
3967 done
3968 _ACEOF
3969
3970 cat >>$CONFIG_STATUS <<\_ACEOF
3971
3972 { (exit 0); exit 0; }
3973 _ACEOF
3974 chmod +x $CONFIG_STATUS
3975 ac_clean_files=$ac_clean_files_save
3976
3977
3978 # configure is writing to config.log, and then calls config.status.
3979 # config.status does its own redirection, appending to config.log.
3980 # Unfortunately, on DOS this fails, as config.log is still kept open
3981 # by configure, so config.status won't be able to write to it; its
3982 # output is simply discarded. So we exec the FD to /dev/null,
3983 # effectively closing config.log, so it can be properly (re)opened and
3984 # appended to by config.status. When coming back to configure, we
3985 # need to make the FD available again.
3986 if test "$no_create" != yes; then
3987 ac_cs_success=:
3988 ac_config_status_args=
3989 test "$silent" = yes &&
3990 ac_config_status_args="$ac_config_status_args --quiet"
3991 exec 5>/dev/null
3992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3993 exec 5>>config.log
3994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3995 # would make configure fail if this is the last instruction.
3996 $ac_cs_success || { (exit 1); exit 1; }
3997 fi
3998
0 dnl
1 dnl autoconf input file to generate MCONFIG
2 dnl
3
4 AC_PREREQ(2.57)
5 AC_REVISION([$Id: configure.in,v 1.1 2004/01/07 20:36:41 hpa Exp $])
6 AC_INIT(Makefile.in)
7
8 AC_PROG_CC
9 AC_GNU_SOURCE
10 AC_C_CONST
11 AC_C_INLINE
12
13 PA_ADD_CFLAGS(-Wall)
14 PA_ADD_CFLAGS(-W)
15 PA_ADD_CFLAGS(-Wpointer-arith)
16 PA_ADD_CFLAGS(-Wbad-function-cast)
17 PA_ADD_CFLAGS(-Wcast-equal)
18 PA_ADD_CFLAGS(-Wstrict-prototypes)
19 PA_ADD_CFLAGS(-Wnested-externs)
20 PA_ADD_CFLAGS(-Winline)
21 PA_ADD_CFLAGS(-Wshadow)
22 PA_ADD_CFLAGS(-Wcast-align)
23 PA_ADD_CFLAGS(-pipe)
24
25 AC_SEARCH_LIBS(compress2, z)
26 AC_SEARCH_LIBS(png_init_io, png)
27
28 AC_PROG_RANLIB
29 AC_PROG_INSTALL
30
31 AC_OUTPUT(Makefile)
0 #! /bin/sh
1 #
2 # install - install a program, script, or datafile
3 # This comes from X11R5.
4 #
5 # Calling this script install-sh is preferred over install.sh, to prevent
6 # `make' implicit rules from creating a file called install from it
7 # when there is no Makefile.
8 #
9 # This script is compatible with the BSD install script, but was written
10 # from scratch.
11 #
12
13
14 # set DOITPROG to echo to test this script
15
16 # Don't use :- since 4.3BSD and earlier shells don't like it.
17 doit="${DOITPROG-}"
18
19
20 # put in absolute paths if you don't have them in your path; or use env. vars.
21
22 mvprog="${MVPROG-mv}"
23 cpprog="${CPPROG-cp}"
24 chmodprog="${CHMODPROG-chmod}"
25 chownprog="${CHOWNPROG-chown}"
26 chgrpprog="${CHGRPPROG-chgrp}"
27 stripprog="${STRIPPROG-strip}"
28 rmprog="${RMPROG-rm}"
29 mkdirprog="${MKDIRPROG-mkdir}"
30
31 tranformbasename=""
32 transform_arg=""
33 instcmd="$mvprog"
34 chmodcmd="$chmodprog 0755"
35 chowncmd=""
36 chgrpcmd=""
37 stripcmd=""
38 rmcmd="$rmprog -f"
39 mvcmd="$mvprog"
40 src=""
41 dst=""
42 dir_arg=""
43
44 while [ x"$1" != x ]; do
45 case $1 in
46 -c) instcmd="$cpprog"
47 shift
48 continue;;
49
50 -d) dir_arg=true
51 shift
52 continue;;
53
54 -m) chmodcmd="$chmodprog $2"
55 shift
56 shift
57 continue;;
58
59 -o) chowncmd="$chownprog $2"
60 shift
61 shift
62 continue;;
63
64 -g) chgrpcmd="$chgrpprog $2"
65 shift
66 shift
67 continue;;
68
69 -s) stripcmd="$stripprog"
70 shift
71 continue;;
72
73 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
74 shift
75 continue;;
76
77 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
78 shift
79 continue;;
80
81 *) if [ x"$src" = x ]
82 then
83 src=$1
84 else
85 # this colon is to work around a 386BSD /bin/sh bug
86 :
87 dst=$1
88 fi
89 shift
90 continue;;
91 esac
92 done
93
94 if [ x"$src" = x ]
95 then
96 echo "install: no input file specified"
97 exit 1
98 else
99 true
100 fi
101
102 if [ x"$dir_arg" != x ]; then
103 dst=$src
104 src=""
105
106 if [ -d $dst ]; then
107 instcmd=:
108 else
109 instcmd=mkdir
110 fi
111 else
112
113 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
114 # might cause directories to be created, which would be especially bad
115 # if $src (and thus $dsttmp) contains '*'.
116
117 if [ -f $src -o -d $src ]
118 then
119 true
120 else
121 echo "install: $src does not exist"
122 exit 1
123 fi
124
125 if [ x"$dst" = x ]
126 then
127 echo "install: no destination specified"
128 exit 1
129 else
130 true
131 fi
132
133 # If destination is a directory, append the input filename; if your system
134 # does not like double slashes in filenames, you may need to add some logic
135
136 if [ -d $dst ]
137 then
138 dst="$dst"/`basename $src`
139 else
140 true
141 fi
142 fi
143
144 ## this sed command emulates the dirname command
145 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
146
147 # Make sure that the destination directory exists.
148 # this part is taken from Noah Friedman's mkinstalldirs script
149
150 # Skip lots of stat calls in the usual case.
151 if [ ! -d "$dstdir" ]; then
152 defaultIFS='
153 '
154 IFS="${IFS-${defaultIFS}}"
155
156 oIFS="${IFS}"
157 # Some sh's can't handle IFS=/ for some reason.
158 IFS='%'
159 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
160 IFS="${oIFS}"
161
162 pathcomp=''
163
164 while [ $# -ne 0 ] ; do
165 pathcomp="${pathcomp}${1}"
166 shift
167
168 if [ ! -d "${pathcomp}" ] ;
169 then
170 $mkdirprog "${pathcomp}"
171 else
172 true
173 fi
174
175 pathcomp="${pathcomp}/"
176 done
177 fi
178
179 if [ x"$dir_arg" != x ]
180 then
181 $doit $instcmd $dst &&
182
183 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
184 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
185 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
186 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
187 else
188
189 # If we're going to rename the final executable, determine the name now.
190
191 if [ x"$transformarg" = x ]
192 then
193 dstfile=`basename $dst`
194 else
195 dstfile=`basename $dst $transformbasename |
196 sed $transformarg`$transformbasename
197 fi
198
199 # don't allow the sed command to completely eliminate the filename
200
201 if [ x"$dstfile" = x ]
202 then
203 dstfile=`basename $dst`
204 else
205 true
206 fi
207
208 # Make a temp file name in the proper directory.
209
210 dsttmp=$dstdir/#inst.$$#
211
212 # Move or copy the file name to the temp name
213
214 $doit $instcmd $src $dsttmp &&
215
216 trap "rm -f ${dsttmp}" 0 &&
217
218 # and set any options; do chmod last to preserve setuid bits
219
220 # If any of these fail, we abort the whole thing. If we want to
221 # ignore errors from any of these, just make sure not to ignore
222 # errors from the above "$doit $instcmd $src $dsttmp" command.
223
224 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
225 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
226 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
227 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
228
229 # Now rename the file to the real destination.
230
231 $doit $rmcmd -f $dstdir/$dstfile &&
232 $doit $mvcmd $dsttmp $dstdir/$dstfile
233
234 fi &&
235
236
237 exit 0