summaryrefslogtreecommitdiff
path: root/xdelta1/configure
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta1/configure')
-rwxr-xr-xxdelta1/configure2774
1 files changed, 0 insertions, 2774 deletions
diff --git a/xdelta1/configure b/xdelta1/configure
deleted file mode 100755
index a66789f..0000000
--- a/xdelta1/configure
+++ /dev/null
@@ -1,2774 +0,0 @@
1#! /bin/sh
2
3# From configure.in configure.in,v 1.2 1998/10/03 00:17:50 jmacd Exp
4
5
6# Like AC_CONFIG_HEADER, but automatically create stamp file.
7
8
9
10# Do all the work for Automake. This macro actually does too much --
11# some checks are only needed if your package does certain things.
12# But this isn't really a big deal.
13
14# serial 1
15
16
17
18
19#
20# Check to make sure that the build environment is sane.
21#
22
23
24
25
26
27# Add --enable-maintainer-mode option to configure.
28# From Jim Meyering
29
30# serial 1
31
32
33
34# Define a conditional.
35
36
37
38
39# serial 40 AC_PROG_LIBTOOL
40
41
42
43
44# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
45
46
47# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
48
49
50# AC_ENABLE_SHARED - implement the --enable-shared flag
51# Usage: AC_ENABLE_SHARED[(DEFAULT)]
52# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
53# `yes'.
54
55
56# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
57
58
59# AC_ENABLE_STATIC - implement the --enable-static flag
60# Usage: AC_ENABLE_STATIC[(DEFAULT)]
61# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
62# `yes'.
63
64
65# AC_DISABLE_STATIC - set the default static flag to --disable-static
66
67
68
69# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
70# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
71# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
72# `yes'.
73
74
75# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
76
77
78# AC_PROG_LD - find the path to the GNU or non-GNU linker
79
80
81
82
83# AC_PROG_NM - find the path to a BSD-compatible name lister
84
85
86# AC_CHECK_LIBM - check for math library
87
88
89# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
90# the libltdl convenience library, adds --enable-ltdl-convenience to
91# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
92# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
93# to be `${top_builddir}/libltdl'. Make sure you start DIR with
94# '${top_builddir}/' (note the single quotes!) if your package is not
95# flat, and, if you're not using automake, define top_builddir as
96# appropriate in the Makefiles.
97
98
99# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
100# the libltdl installable library, and adds --enable-ltdl-install to
101# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
102# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
103# to be `${top_builddir}/libltdl'. Make sure you start DIR with
104# '${top_builddir}/' (note the single quotes!) if your package is not
105# flat, and, if you're not using automake, define top_builddir as
106# appropriate in the Makefiles.
107# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
108
109
110
111
112# Configure paths for GLIB
113# Owen Taylor 97-11-3
114
115
116
117# Guess values for system-dependent variables and create Makefiles.
118# Generated automatically using autoconf version 2.13
119# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
120#
121# This configure script is free software; the Free Software Foundation
122# gives unlimited permission to copy, distribute and modify it.
123
124# Defaults:
125ac_help=
126ac_default_prefix=/usr/local
127# Any additions from configure.in:
128ac_help="$ac_help
129 --enable-maintainer-mode enable make rules and dependencies not useful
130 (and sometimes confusing) to the casual installer"
131ac_help="$ac_help
132 --enable-debug turn on debugging [default=no]"
133ac_help="$ac_help
134 --enable-profile turn on profiling [default=no]"
135ac_help="$ac_help
136 --enable-shared[=PKGS] build shared libraries [default=yes]"
137ac_help="$ac_help
138 --enable-static[=PKGS] build static libraries [default=yes]"
139ac_help="$ac_help
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
141ac_help="$ac_help
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
143ac_help="$ac_help
144 --disable-libtool-lock avoid locking (might break parallel builds)"
145ac_help="$ac_help
146 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
147ac_help="$ac_help
148 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
149ac_help="$ac_help
150 --disable-glibtest Do not try to compile and run a test GLIB program"
151
152# Initialize some variables set by options.
153# The variables have the same names as the options, with
154# dashes changed to underlines.
155build=NONE
156cache_file=./config.cache
157exec_prefix=NONE
158host=NONE
159no_create=
160nonopt=NONE
161no_recursion=
162prefix=NONE
163program_prefix=NONE
164program_suffix=NONE
165program_transform_name=s,x,x,
166silent=
167site=
168srcdir=
169target=NONE
170verbose=
171x_includes=NONE
172x_libraries=NONE
173bindir='${exec_prefix}/bin'
174sbindir='${exec_prefix}/sbin'
175libexecdir='${exec_prefix}/libexec'
176datadir='${prefix}/share'
177sysconfdir='${prefix}/etc'
178sharedstatedir='${prefix}/com'
179localstatedir='${prefix}/var'
180libdir='${exec_prefix}/lib'
181includedir='${prefix}/include'
182oldincludedir='/usr/include'
183infodir='${prefix}/info'
184mandir='${prefix}/man'
185
186# Initialize some other variables.
187subdirs=
188MFLAGS= MAKEFLAGS=
189SHELL=${CONFIG_SHELL-/bin/sh}
190# Maximum number of lines to put in a shell here document.
191ac_max_here_lines=12
192
193ac_prev=
194for ac_option
195do
196
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
200 ac_prev=
201 continue
202 fi
203
204 case "$ac_option" in
205 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
206 *) ac_optarg= ;;
207 esac
208
209 # Accept the important Cygnus configure options, so we can diagnose typos.
210
211 case "$ac_option" in
212
213 -bindir | --bindir | --bindi | --bind | --bin | --bi)
214 ac_prev=bindir ;;
215 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 bindir="$ac_optarg" ;;
217
218 -build | --build | --buil | --bui | --bu)
219 ac_prev=build ;;
220 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 build="$ac_optarg" ;;
222
223 -cache-file | --cache-file | --cache-fil | --cache-fi \
224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
225 ac_prev=cache_file ;;
226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 cache_file="$ac_optarg" ;;
229
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 ac_prev=datadir ;;
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
234 datadir="$ac_optarg" ;;
235
236 -disable-* | --disable-*)
237 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 fi
242 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243 eval "enable_${ac_feature}=no" ;;
244
245 -enable-* | --enable-*)
246 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
250 fi
251 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
252 case "$ac_option" in
253 *=*) ;;
254 *) ac_optarg=yes ;;
255 esac
256 eval "enable_${ac_feature}='$ac_optarg'" ;;
257
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
265 exec_prefix="$ac_optarg" ;;
266
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
269 with_gas=yes ;;
270
271 -help | --help | --hel | --he)
272 # Omit some internal or obsolete options to make the list less imposing.
273 # This message is too long to be a string in the A/UX 3.1 sh.
274 cat << EOF
275Usage: configure [options] [host]
276Options: [defaults in brackets after descriptions]
277Configuration:
278 --cache-file=FILE cache test results in FILE
279 --help print this message
280 --no-create do not create output files
281 --quiet, --silent do not print \`checking...' messages
282 --version print the version of autoconf that created configure
283Directory and file names:
284 --prefix=PREFIX install architecture-independent files in PREFIX
285 [$ac_default_prefix]
286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
287 [same as prefix]
288 --bindir=DIR user executables in DIR [EPREFIX/bin]
289 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
290 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
291 --datadir=DIR read-only architecture-independent data in DIR
292 [PREFIX/share]
293 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
294 --sharedstatedir=DIR modifiable architecture-independent data in DIR
295 [PREFIX/com]
296 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
297 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
298 --includedir=DIR C header files in DIR [PREFIX/include]
299 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
300 --infodir=DIR info documentation in DIR [PREFIX/info]
301 --mandir=DIR man documentation in DIR [PREFIX/man]
302 --srcdir=DIR find the sources in DIR [configure dir or ..]
303 --program-prefix=PREFIX prepend PREFIX to installed program names
304 --program-suffix=SUFFIX append SUFFIX to installed program names
305 --program-transform-name=PROGRAM
306 run sed PROGRAM on installed program names
307EOF
308 cat << EOF
309Host type:
310 --build=BUILD configure for building on BUILD [BUILD=HOST]
311 --host=HOST configure for HOST [guessed]
312 --target=TARGET configure for TARGET [TARGET=HOST]
313Features and packages:
314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
316 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
317 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
318 --x-includes=DIR X include files are in DIR
319 --x-libraries=DIR X library files are in DIR
320EOF
321 if test -n "$ac_help"; then
322 echo "--enable and --with options recognized:$ac_help"
323 fi
324 exit 0 ;;
325
326 -host | --host | --hos | --ho)
327 ac_prev=host ;;
328 -host=* | --host=* | --hos=* | --ho=*)
329 host="$ac_optarg" ;;
330
331 -includedir | --includedir | --includedi | --included | --include \
332 | --includ | --inclu | --incl | --inc)
333 ac_prev=includedir ;;
334 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
335 | --includ=* | --inclu=* | --incl=* | --inc=*)
336 includedir="$ac_optarg" ;;
337
338 -infodir | --infodir | --infodi | --infod | --info | --inf)
339 ac_prev=infodir ;;
340 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
341 infodir="$ac_optarg" ;;
342
343 -libdir | --libdir | --libdi | --libd)
344 ac_prev=libdir ;;
345 -libdir=* | --libdir=* | --libdi=* | --libd=*)
346 libdir="$ac_optarg" ;;
347
348 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
349 | --libexe | --libex | --libe)
350 ac_prev=libexecdir ;;
351 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
352 | --libexe=* | --libex=* | --libe=*)
353 libexecdir="$ac_optarg" ;;
354
355 -localstatedir | --localstatedir | --localstatedi | --localstated \
356 | --localstate | --localstat | --localsta | --localst \
357 | --locals | --local | --loca | --loc | --lo)
358 ac_prev=localstatedir ;;
359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
360 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
361 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
362 localstatedir="$ac_optarg" ;;
363
364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
365 ac_prev=mandir ;;
366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
367 mandir="$ac_optarg" ;;
368
369 -nfp | --nfp | --nf)
370 # Obsolete; use --without-fp.
371 with_fp=no ;;
372
373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
374 | --no-cr | --no-c)
375 no_create=yes ;;
376
377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
379 no_recursion=yes ;;
380
381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
383 | --oldin | --oldi | --old | --ol | --o)
384 ac_prev=oldincludedir ;;
385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
388 oldincludedir="$ac_optarg" ;;
389
390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
391 ac_prev=prefix ;;
392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
393 prefix="$ac_optarg" ;;
394
395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
396 | --program-pre | --program-pr | --program-p)
397 ac_prev=program_prefix ;;
398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
400 program_prefix="$ac_optarg" ;;
401
402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
403 | --program-suf | --program-su | --program-s)
404 ac_prev=program_suffix ;;
405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
407 program_suffix="$ac_optarg" ;;
408
409 -program-transform-name | --program-transform-name \
410 | --program-transform-nam | --program-transform-na \
411 | --program-transform-n | --program-transform- \
412 | --program-transform | --program-transfor \
413 | --program-transfo | --program-transf \
414 | --program-trans | --program-tran \
415 | --progr-tra | --program-tr | --program-t)
416 ac_prev=program_transform_name ;;
417 -program-transform-name=* | --program-transform-name=* \
418 | --program-transform-nam=* | --program-transform-na=* \
419 | --program-transform-n=* | --program-transform-=* \
420 | --program-transform=* | --program-transfor=* \
421 | --program-transfo=* | --program-transf=* \
422 | --program-trans=* | --program-tran=* \
423 | --progr-tra=* | --program-tr=* | --program-t=*)
424 program_transform_name="$ac_optarg" ;;
425
426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
427 | -silent | --silent | --silen | --sile | --sil)
428 silent=yes ;;
429
430 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
431 ac_prev=sbindir ;;
432 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
433 | --sbi=* | --sb=*)
434 sbindir="$ac_optarg" ;;
435
436 -sharedstatedir | --sharedstatedir | --sharedstatedi \
437 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
438 | --sharedst | --shareds | --shared | --share | --shar \
439 | --sha | --sh)
440 ac_prev=sharedstatedir ;;
441 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
442 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
443 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
444 | --sha=* | --sh=*)
445 sharedstatedir="$ac_optarg" ;;
446
447 -site | --site | --sit)
448 ac_prev=site ;;
449 -site=* | --site=* | --sit=*)
450 site="$ac_optarg" ;;
451
452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
453 ac_prev=srcdir ;;
454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
455 srcdir="$ac_optarg" ;;
456
457 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
458 | --syscon | --sysco | --sysc | --sys | --sy)
459 ac_prev=sysconfdir ;;
460 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
461 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
462 sysconfdir="$ac_optarg" ;;
463
464 -target | --target | --targe | --targ | --tar | --ta | --t)
465 ac_prev=target ;;
466 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
467 target="$ac_optarg" ;;
468
469 -v | -verbose | --verbose | --verbos | --verbo | --verb)
470 verbose=yes ;;
471
472 -version | --version | --versio | --versi | --vers)
473 echo "configure generated by autoconf version 2.13"
474 exit 0 ;;
475
476 -with-* | --with-*)
477 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 fi
482 ac_package=`echo $ac_package| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "with_${ac_package}='$ac_optarg'" ;;
488
489 -without-* | --without-*)
490 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
494 fi
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}=no" ;;
497
498 --x)
499 # Obsolete; use --with-x.
500 with_x=yes ;;
501
502 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
503 | --x-incl | --x-inc | --x-in | --x-i)
504 ac_prev=x_includes ;;
505 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
506 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
507 x_includes="$ac_optarg" ;;
508
509 -x-libraries | --x-libraries | --x-librarie | --x-librari \
510 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
511 ac_prev=x_libraries ;;
512 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
513 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
514 x_libraries="$ac_optarg" ;;
515
516 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 ;;
518
519 *)
520 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
521 echo "configure: warning: $ac_option: invalid host type" 1>&2
522 fi
523 if test "x$nonopt" != xNONE; then
524 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
525 fi
526 nonopt="$ac_option"
527 ;;
528
529 esac
530done
531
532if test -n "$ac_prev"; then
533 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
534fi
535
536trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
537
538# File descriptor usage:
539# 0 standard input
540# 1 file creation
541# 2 errors and warnings
542# 3 some systems may open it to /dev/tty
543# 4 used on the Kubota Titan
544# 6 checking for... messages and results
545# 5 compiler messages saved in config.log
546if test "$silent" = yes; then
547 exec 6>/dev/null
548else
549 exec 6>&1
550fi
551exec 5>./config.log
552
553echo "\
554This file contains any messages produced by compilers while
555running configure, to aid debugging if configure makes a mistake.
556" 1>&5
557
558# Strip out --no-create and --no-recursion so they do not pile up.
559# Also quote any args containing shell metacharacters.
560ac_configure_args=
561for ac_arg
562do
563 case "$ac_arg" in
564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
565 | --no-cr | --no-c) ;;
566 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
567 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
568 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
569 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
570 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
571 esac
572done
573
574# NLS nuisances.
575# Only set these to C if already set. These must not be set unconditionally
576# because not all systems understand e.g. LANG=C (notably SCO).
577# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
578# Non-C LC_CTYPE values break the ctype check.
579if test "${LANG+set}" = set; then LANG=C; export LANG; fi
580if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
581if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
582if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
583
584# confdefs.h avoids OS command line length limits that DEFS can exceed.
585rm -rf conftest* confdefs.h
586# AIX cpp loses on an empty file, so make sure it contains at least a newline.
587echo > confdefs.h
588
589# A filename unique to this package, relative to the directory that
590# configure is in, which we can look for to find out if srcdir is correct.
591ac_unique_file=xdelta.c
592
593# Find the source files, if location was not specified.
594if test -z "$srcdir"; then
595 ac_srcdir_defaulted=yes
596 # Try the directory containing this script, then its parent.
597 ac_prog=$0
598 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
600 srcdir=$ac_confdir
601 if test ! -r $srcdir/$ac_unique_file; then
602 srcdir=..
603 fi
604else
605 ac_srcdir_defaulted=no
606fi
607if test ! -r $srcdir/$ac_unique_file; then
608 if test "$ac_srcdir_defaulted" = yes; then
609 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
610 else
611 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 fi
613fi
614srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
615
616# Prefer explicitly selected file to automatically selected ones.
617if test -z "$CONFIG_SITE"; then
618 if test "x$prefix" != xNONE; then
619 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
620 else
621 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
622 fi
623fi
624for ac_site_file in $CONFIG_SITE; do
625 if test -r "$ac_site_file"; then
626 echo "loading site script $ac_site_file"
627 . "$ac_site_file"
628 fi
629done
630
631if test -r "$cache_file"; then
632 echo "loading cache $cache_file"
633 . $cache_file
634else
635 echo "creating cache $cache_file"
636 > $cache_file
637fi
638
639ac_ext=c
640# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
641ac_cpp='$CPP $CPPFLAGS'
642ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
643ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
644cross_compiling=$ac_cv_prog_cc_cross
645
646ac_exeext=
647ac_objext=o
648if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
649 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
650 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
651 ac_n= ac_c='
652' ac_t=' '
653 else
654 ac_n=-n ac_c= ac_t=
655 fi
656else
657 ac_n= ac_c='\c' ac_t=
658fi
659
660
661
662
663
664
665ac_aux_dir=
666for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
667 if test -f $ac_dir/install-sh; then
668 ac_aux_dir=$ac_dir
669 ac_install_sh="$ac_aux_dir/install-sh -c"
670 break
671 elif test -f $ac_dir/install.sh; then
672 ac_aux_dir=$ac_dir
673 ac_install_sh="$ac_aux_dir/install.sh -c"
674 break
675 fi
676done
677if test -z "$ac_aux_dir"; then
678 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679fi
680ac_config_guess=$ac_aux_dir/config.guess
681ac_config_sub=$ac_aux_dir/config.sub
682ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
683
684# Find a good install program. We prefer a C program (faster),
685# so one script is as good as another. But avoid the broken or
686# incompatible versions:
687# SysV /etc/install, /usr/sbin/install
688# SunOS /usr/etc/install
689# IRIX /sbin/install
690# AIX /bin/install
691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
694# ./install, which can be erroneously created by make from ./install.sh.
695echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
696echo "configure:697: checking for a BSD compatible install" >&5
697if test -z "$INSTALL"; then
698if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700else
701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
702 for ac_dir in $PATH; do
703 # Account for people who put trailing slashes in PATH elements.
704 case "$ac_dir/" in
705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
706 *)
707 # OSF1 and SCO ODT 3.0 have their own names for install.
708 # Don't use installbsd from OSF since it installs stuff as root
709 # by default.
710 for ac_prog in ginstall scoinst install; do
711 if test -f $ac_dir/$ac_prog; then
712 if test $ac_prog = install &&
713 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
714 # AIX install. It has an incompatible calling convention.
715 :
716 else
717 ac_cv_path_install="$ac_dir/$ac_prog -c"
718 break 2
719 fi
720 fi
721 done
722 ;;
723 esac
724 done
725 IFS="$ac_save_IFS"
726
727fi
728 if test "${ac_cv_path_install+set}" = set; then
729 INSTALL="$ac_cv_path_install"
730 else
731 # As a last resort, use the slow shell script. We don't cache a
732 # path for INSTALL within a source directory, because that will
733 # break other packages using the cache if that directory is
734 # removed, or if the path is relative.
735 INSTALL="$ac_install_sh"
736 fi
737fi
738echo "$ac_t""$INSTALL" 1>&6
739
740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
741# It thinks the first close brace ends the variable substitution.
742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
743
744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
745
746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
747
748echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
749echo "configure:750: checking whether build environment is sane" >&5
750# Just in case
751sleep 1
752echo timestamp > conftestfile
753# Do `set' in a subshell so we don't clobber the current shell's
754# arguments. Must try -L first in case configure is actually a
755# symlink; some systems play weird games with the mod time of symlinks
756# (eg FreeBSD returns the mod time of the symlink's containing
757# directory).
758if (
759 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
760 if test "$*" = "X"; then
761 # -L didn't work.
762 set X `ls -t $srcdir/configure conftestfile`
763 fi
764 if test "$*" != "X $srcdir/configure conftestfile" \
765 && test "$*" != "X conftestfile $srcdir/configure"; then
766
767 # If neither matched, then we have a broken ls. This can happen
768 # if, for instance, CONFIG_SHELL is bash and it inherits a
769 # broken ls alias from the environment. This has actually
770 # happened. Such a system could not be considered "sane".
771 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
772alias in your environment" 1>&2; exit 1; }
773 fi
774
775 test "$2" = conftestfile
776 )
777then
778 # Ok.
779 :
780else
781 { echo "configure: error: newly created file is older than distributed files!
782Check your system clock" 1>&2; exit 1; }
783fi
784rm -f conftest*
785echo "$ac_t""yes" 1>&6
786if test "$program_transform_name" = s,x,x,; then
787 program_transform_name=
788else
789 # Double any \ or $. echo might interpret backslashes.
790 cat <<\EOF_SED > conftestsed
791s,\\,\\\\,g; s,\$,$$,g
792EOF_SED
793 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
794 rm -f conftestsed
795fi
796test "$program_prefix" != NONE &&
797 program_transform_name="s,^,${program_prefix},; $program_transform_name"
798# Use a double $ so make ignores it.
799test "$program_suffix" != NONE &&
800 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
801
802# sed with no file args requires a program.
803test "$program_transform_name" = "" && program_transform_name="s,x,x,"
804
805echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
806echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
807set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
808if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 cat > conftestmake <<\EOF
812all:
813 @echo 'ac_maketemp="${MAKE}"'
814EOF
815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
816eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
817if test -n "$ac_maketemp"; then
818 eval ac_cv_prog_make_${ac_make}_set=yes
819else
820 eval ac_cv_prog_make_${ac_make}_set=no
821fi
822rm -f conftestmake
823fi
824if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
825 echo "$ac_t""yes" 1>&6
826 SET_MAKE=
827else
828 echo "$ac_t""no" 1>&6
829 SET_MAKE="MAKE=${MAKE-make}"
830fi
831
832
833PACKAGE=xdelta
834
835VERSION=1.1.3
836
837if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
838 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
839fi
840
841
842
843missing_dir=`cd $ac_aux_dir && pwd`
844echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
845echo "configure:846: checking for working aclocal" >&5
846# Run test in a subshell; some versions of sh will print an error if
847# an executable is not found, even if stderr is redirected.
848# Redirect stdin to placate older versions of autoconf. Sigh.
849if (aclocal --version) < /dev/null > /dev/null 2>&1; then
850 ACLOCAL=aclocal
851 echo "$ac_t""found" 1>&6
852else
853 ACLOCAL="$missing_dir/missing aclocal"
854 echo "$ac_t""missing" 1>&6
855fi
856
857echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
858echo "configure:859: checking for working autoconf" >&5
859# Run test in a subshell; some versions of sh will print an error if
860# an executable is not found, even if stderr is redirected.
861# Redirect stdin to placate older versions of autoconf. Sigh.
862if (autoconf --version) < /dev/null > /dev/null 2>&1; then
863 AUTOCONF=autoconf
864 echo "$ac_t""found" 1>&6
865else
866 AUTOCONF="$missing_dir/missing autoconf"
867 echo "$ac_t""missing" 1>&6
868fi
869
870echo $ac_n "checking for working automake""... $ac_c" 1>&6
871echo "configure:872: checking for working automake" >&5
872# Run test in a subshell; some versions of sh will print an error if
873# an executable is not found, even if stderr is redirected.
874# Redirect stdin to placate older versions of autoconf. Sigh.
875if (automake --version) < /dev/null > /dev/null 2>&1; then
876 AUTOMAKE=automake
877 echo "$ac_t""found" 1>&6
878else
879 AUTOMAKE="$missing_dir/missing automake"
880 echo "$ac_t""missing" 1>&6
881fi
882
883echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
884echo "configure:885: checking for working autoheader" >&5
885# Run test in a subshell; some versions of sh will print an error if
886# an executable is not found, even if stderr is redirected.
887# Redirect stdin to placate older versions of autoconf. Sigh.
888if (autoheader --version) < /dev/null > /dev/null 2>&1; then
889 AUTOHEADER=autoheader
890 echo "$ac_t""found" 1>&6
891else
892 AUTOHEADER="$missing_dir/missing autoheader"
893 echo "$ac_t""missing" 1>&6
894fi
895
896echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
897echo "configure:898: checking for working makeinfo" >&5
898# Run test in a subshell; some versions of sh will print an error if
899# an executable is not found, even if stderr is redirected.
900# Redirect stdin to placate older versions of autoconf. Sigh.
901if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
902 MAKEINFO=makeinfo
903 echo "$ac_t""found" 1>&6
904else
905 MAKEINFO="$missing_dir/missing makeinfo"
906 echo "$ac_t""missing" 1>&6
907fi
908
909
910
911echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
912echo "configure:913: checking whether to enable maintainer-specific portions of Makefiles" >&5
913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
914if test "${enable_maintainer_mode+set}" = set; then
915 enableval="$enable_maintainer_mode"
916 USE_MAINTAINER_MODE=$enableval
917else
918 USE_MAINTAINER_MODE=no
919fi
920
921 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
922
923
924if test $USE_MAINTAINER_MODE = yes; then
925 MAINTAINER_MODE_TRUE=
926 MAINTAINER_MODE_FALSE='#'
927else
928 MAINTAINER_MODE_TRUE='#'
929 MAINTAINER_MODE_FALSE=
930fi
931 MAINT=$MAINTAINER_MODE_TRUE
932
933
934
935DEBUGFLAG=
936PROFILEFLAG=
937
938# Check whether --enable-debug or --disable-debug was given.
939if test "${enable_debug+set}" = set; then
940 enableval="$enable_debug"
941 :
942fi
943
944# Check whether --enable-profile or --disable-profile was given.
945if test "${enable_profile+set}" = set; then
946 enableval="$enable_profile"
947 :
948fi
949
950
951TMPCFLAGS="$CFLAGS"
952CFLAGS=
953
954# Extract the first word of "gcc", so it can be a program name with args.
955set dummy gcc; ac_word=$2
956echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957echo "configure:958: checking for $ac_word" >&5
958if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960else
961 if test -n "$CC"; then
962 ac_cv_prog_CC="$CC" # Let the user override the test.
963else
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 ac_dummy="$PATH"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_CC="gcc"
970 break
971 fi
972 done
973 IFS="$ac_save_ifs"
974fi
975fi
976CC="$ac_cv_prog_CC"
977if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
979else
980 echo "$ac_t""no" 1>&6
981fi
982
983if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985set dummy cc; ac_word=$2
986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987echo "configure:988: checking for $ac_word" >&5
988if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_prog_rejected=no
996 ac_dummy="$PATH"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 ac_prog_rejected=yes
1002 continue
1003 fi
1004 ac_cv_prog_CC="cc"
1005 break
1006 fi
1007 done
1008 IFS="$ac_save_ifs"
1009if test $ac_prog_rejected = yes; then
1010 # We found a bogon in the path, so make sure we never use it.
1011 set dummy $ac_cv_prog_CC
1012 shift
1013 if test $# -gt 0; then
1014 # We chose a different compiler from the bogus one.
1015 # However, it has the same basename, so the bogon will be chosen
1016 # first if we set CC to just the basename; use the full file name.
1017 shift
1018 set dummy "$ac_dir/$ac_word" "$@"
1019 shift
1020 ac_cv_prog_CC="$@"
1021 fi
1022fi
1023fi
1024fi
1025CC="$ac_cv_prog_CC"
1026if test -n "$CC"; then
1027 echo "$ac_t""$CC" 1>&6
1028else
1029 echo "$ac_t""no" 1>&6
1030fi
1031
1032 if test -z "$CC"; then
1033 case "`uname -s`" in
1034 *win32* | *WIN32*)
1035 # Extract the first word of "cl", so it can be a program name with args.
1036set dummy cl; ac_word=$2
1037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038echo "configure:1039: checking for $ac_word" >&5
1039if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1041else
1042 if test -n "$CC"; then
1043 ac_cv_prog_CC="$CC" # Let the user override the test.
1044else
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1046 ac_dummy="$PATH"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 ac_cv_prog_CC="cl"
1051 break
1052 fi
1053 done
1054 IFS="$ac_save_ifs"
1055fi
1056fi
1057CC="$ac_cv_prog_CC"
1058if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1060else
1061 echo "$ac_t""no" 1>&6
1062fi
1063 ;;
1064 esac
1065 fi
1066 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1067fi
1068
1069echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1070echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1071
1072ac_ext=c
1073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074ac_cpp='$CPP $CPPFLAGS'
1075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077cross_compiling=$ac_cv_prog_cc_cross
1078
1079cat > conftest.$ac_ext << EOF
1080
1081#line 1082 "configure"
1082#include "confdefs.h"
1083
1084main(){return(0);}
1085EOF
1086if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1087 ac_cv_prog_cc_works=yes
1088 # If we can't run a trivial program, we are probably using a cross compiler.
1089 if (./conftest; exit) 2>/dev/null; then
1090 ac_cv_prog_cc_cross=no
1091 else
1092 ac_cv_prog_cc_cross=yes
1093 fi
1094else
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1097 ac_cv_prog_cc_works=no
1098fi
1099rm -fr conftest*
1100ac_ext=c
1101# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102ac_cpp='$CPP $CPPFLAGS'
1103ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105cross_compiling=$ac_cv_prog_cc_cross
1106
1107echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1108if test $ac_cv_prog_cc_works = no; then
1109 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1110fi
1111echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1112echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1113echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1114cross_compiling=$ac_cv_prog_cc_cross
1115
1116echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1117echo "configure:1118: checking whether we are using GNU C" >&5
1118if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120else
1121 cat > conftest.c <<EOF
1122#ifdef __GNUC__
1123 yes;
1124#endif
1125EOF
1126if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127 ac_cv_prog_gcc=yes
1128else
1129 ac_cv_prog_gcc=no
1130fi
1131fi
1132
1133echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1134
1135if test $ac_cv_prog_gcc = yes; then
1136 GCC=yes
1137else
1138 GCC=
1139fi
1140
1141ac_test_CFLAGS="${CFLAGS+set}"
1142ac_save_CFLAGS="$CFLAGS"
1143CFLAGS=
1144echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1145echo "configure:1146: checking whether ${CC-cc} accepts -g" >&5
1146if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148else
1149 echo 'void f(){}' > conftest.c
1150if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151 ac_cv_prog_cc_g=yes
1152else
1153 ac_cv_prog_cc_g=no
1154fi
1155rm -f conftest*
1156
1157fi
1158
1159echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1160if test "$ac_test_CFLAGS" = set; then
1161 CFLAGS="$ac_save_CFLAGS"
1162elif test $ac_cv_prog_cc_g = yes; then
1163 if test "$GCC" = yes; then
1164 CFLAGS="-g -O2"
1165 else
1166 CFLAGS="-g"
1167 fi
1168else
1169 if test "$GCC" = yes; then
1170 CFLAGS="-O2"
1171 else
1172 CFLAGS=
1173 fi
1174fi
1175
1176echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1177echo "configure:1178: checking how to run the C preprocessor" >&5
1178# On Suns, sometimes $CPP names a directory.
1179if test -n "$CPP" && test -d "$CPP"; then
1180 CPP=
1181fi
1182if test -z "$CPP"; then
1183if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186 # This must be in double quotes, not single quotes, because CPP may get
1187 # substituted into the Makefile and "${CC-cc}" will confuse make.
1188 CPP="${CC-cc} -E"
1189 # On the NeXT, cc -E runs the code through the compiler's parser,
1190 # not just through cpp.
1191 cat > conftest.$ac_ext <<EOF
1192#line 1193 "configure"
1193#include "confdefs.h"
1194#include <assert.h>
1195Syntax Error
1196EOF
1197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1198{ (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1200if test -z "$ac_err"; then
1201 :
1202else
1203 echo "$ac_err" >&5
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 CPP="${CC-cc} -E -traditional-cpp"
1208 cat > conftest.$ac_ext <<EOF
1209#line 1210 "configure"
1210#include "confdefs.h"
1211#include <assert.h>
1212Syntax Error
1213EOF
1214ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215{ (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217if test -z "$ac_err"; then
1218 :
1219else
1220 echo "$ac_err" >&5
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1223 rm -rf conftest*
1224 CPP="${CC-cc} -nologo -E"
1225 cat > conftest.$ac_ext <<EOF
1226#line 1227 "configure"
1227#include "confdefs.h"
1228#include <assert.h>
1229Syntax Error
1230EOF
1231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232{ (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234if test -z "$ac_err"; then
1235 :
1236else
1237 echo "$ac_err" >&5
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1240 rm -rf conftest*
1241 CPP=/lib/cpp
1242fi
1243rm -f conftest*
1244fi
1245rm -f conftest*
1246fi
1247rm -f conftest*
1248 ac_cv_prog_CPP="$CPP"
1249fi
1250 CPP="$ac_cv_prog_CPP"
1251else
1252 ac_cv_prog_CPP="$CPP"
1253fi
1254echo "$ac_t""$CPP" 1>&6
1255
1256
1257CFLAGS=$TMPCFLAGS
1258
1259if test "x$GCC" = "xyes"; then
1260 case " $CFLAGS " in
1261 *[\ \ ]-Wall[\ \ ]*) ;;
1262 *) CFLAGS="$CFLAGS -Wall" ;;
1263 esac
1264
1265 if test "x$enable_debug" = "xyes"; then
1266 DEBUGFLAG="-g"
1267 fi
1268
1269 if test "x$enable_profile" = "xyes"; then
1270 PROFILEFLAG="-pg"
1271 fi
1272
1273 if test -n "$DEBUGFLAG"; then
1274 case " $CFLAGS " in
1275 *[\ \ ]$DEBUGFLAG[\ \ ]*) ;;
1276 *) CFLAGS="$DEBUGFLAG $CFLAGS" ;;
1277 esac
1278 else
1279 case " $CFLAGS " in
1280 *[\ \ ]-O[0-9\ \ ]*) ;;
1281 *) CFLAGS="$CFLAGS -O3" ;;
1282 esac
1283 fi
1284
1285 if test -n "$PROFILEFLAG"; then
1286 case " $CFLAGS " in
1287 *[\ \ ]$PROFILEFLAG[\ \ ]*) ;;
1288 *) CFLAGS="$PROFILEFLAG $CFLAGS" ;;
1289 esac
1290 fi
1291fi
1292
1293# Check whether --enable-shared or --disable-shared was given.
1294if test "${enable_shared+set}" = set; then
1295 enableval="$enable_shared"
1296 p=${PACKAGE-default}
1297case "$enableval" in
1298yes) enable_shared=yes ;;
1299no) enable_shared=no ;;
1300*)
1301 enable_shared=no
1302 # Look at the argument we got. We use all the common list separators.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1304 for pkg in $enableval; do
1305 if test "X$pkg" = "X$p"; then
1306 enable_shared=yes
1307 fi
1308 done
1309 IFS="$ac_save_ifs"
1310 ;;
1311esac
1312else
1313 enable_shared=yes
1314fi
1315
1316# Check whether --enable-static or --disable-static was given.
1317if test "${enable_static+set}" = set; then
1318 enableval="$enable_static"
1319 p=${PACKAGE-default}
1320case "$enableval" in
1321yes) enable_static=yes ;;
1322no) enable_static=no ;;
1323*)
1324 enable_static=no
1325 # Look at the argument we got. We use all the common list separators.
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1327 for pkg in $enableval; do
1328 if test "X$pkg" = "X$p"; then
1329 enable_static=yes
1330 fi
1331 done
1332 IFS="$ac_save_ifs"
1333 ;;
1334esac
1335else
1336 enable_static=yes
1337fi
1338
1339# Check whether --enable-fast-install or --disable-fast-install was given.
1340if test "${enable_fast_install+set}" = set; then
1341 enableval="$enable_fast_install"
1342 p=${PACKAGE-default}
1343case "$enableval" in
1344yes) enable_fast_install=yes ;;
1345no) enable_fast_install=no ;;
1346*)
1347 enable_fast_install=no
1348 # Look at the argument we got. We use all the common list separators.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1350 for pkg in $enableval; do
1351 if test "X$pkg" = "X$p"; then
1352 enable_fast_install=yes
1353 fi
1354 done
1355 IFS="$ac_save_ifs"
1356 ;;
1357esac
1358else
1359 enable_fast_install=yes
1360fi
1361
1362
1363# Make sure we can run config.sub.
1364if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1365else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1366fi
1367
1368echo $ac_n "checking host system type""... $ac_c" 1>&6
1369echo "configure:1370: checking host system type" >&5
1370
1371host_alias=$host
1372case "$host_alias" in
1373NONE)
1374 case $nonopt in
1375 NONE)
1376 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1377 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1378 fi ;;
1379 *) host_alias=$nonopt ;;
1380 esac ;;
1381esac
1382
1383host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1384host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387echo "$ac_t""$host" 1>&6
1388
1389echo $ac_n "checking build system type""... $ac_c" 1>&6
1390echo "configure:1391: checking build system type" >&5
1391
1392build_alias=$build
1393case "$build_alias" in
1394NONE)
1395 case $nonopt in
1396 NONE) build_alias=$host_alias ;;
1397 *) build_alias=$nonopt ;;
1398 esac ;;
1399esac
1400
1401build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1402build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405echo "$ac_t""$build" 1>&6
1406
1407# Extract the first word of "ranlib", so it can be a program name with args.
1408set dummy ranlib; ac_word=$2
1409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410echo "configure:1411: checking for $ac_word" >&5
1411if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413else
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1416else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 ac_dummy="$PATH"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="ranlib"
1423 break
1424 fi
1425 done
1426 IFS="$ac_save_ifs"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1428fi
1429fi
1430RANLIB="$ac_cv_prog_RANLIB"
1431if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1433else
1434 echo "$ac_t""no" 1>&6
1435fi
1436
1437# Check whether --with-gnu-ld or --without-gnu-ld was given.
1438if test "${with_gnu_ld+set}" = set; then
1439 withval="$with_gnu_ld"
1440 test "$withval" = no || with_gnu_ld=yes
1441else
1442 with_gnu_ld=no
1443fi
1444
1445ac_prog=ld
1446if test "$ac_cv_prog_gcc" = yes; then
1447 # Check if gcc -print-prog-name=ld gives a path.
1448 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1449echo "configure:1450: checking for ld used by GCC" >&5
1450 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1451 case "$ac_prog" in
1452 # Accept absolute paths.
1453 [\\/]* | [A-Za-z]:[\\/]*)
1454 re_direlt='/[^/][^/]*/\.\./'
1455 # Canonicalize the path of ld
1456 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1457 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1458 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1459 done
1460 test -z "$LD" && LD="$ac_prog"
1461 ;;
1462 "")
1463 # If it fails, then pretend we aren't using GCC.
1464 ac_prog=ld
1465 ;;
1466 *)
1467 # If it is relative, then search for the first ld in PATH.
1468 with_gnu_ld=unknown
1469 ;;
1470 esac
1471elif test "$with_gnu_ld" = yes; then
1472 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1473echo "configure:1474: checking for GNU ld" >&5
1474else
1475 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1476echo "configure:1477: checking for non-GNU ld" >&5
1477fi
1478if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480else
1481 if test -z "$LD"; then
1482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1483 for ac_dir in $PATH; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1486 ac_cv_path_LD="$ac_dir/$ac_prog"
1487 # Check to see if the program is GNU ld. I'd rather use --version,
1488 # but apparently some GNU ld's only accept -v.
1489 # Break only if it was the GNU/non-GNU ld that we prefer.
1490 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1491 test "$with_gnu_ld" != no && break
1492 else
1493 test "$with_gnu_ld" != yes && break
1494 fi
1495 fi
1496 done
1497 IFS="$ac_save_ifs"
1498else
1499 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1500fi
1501fi
1502
1503LD="$ac_cv_path_LD"
1504if test -n "$LD"; then
1505 echo "$ac_t""$LD" 1>&6
1506else
1507 echo "$ac_t""no" 1>&6
1508fi
1509test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1510
1511echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1512echo "configure:1513: checking if the linker ($LD) is GNU ld" >&5
1513if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515else
1516 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1517if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1518 ac_cv_prog_gnu_ld=yes
1519else
1520 ac_cv_prog_gnu_ld=no
1521fi
1522fi
1523
1524echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1525
1526
1527echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1528echo "configure:1529: checking for BSD-compatible nm" >&5
1529if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 if test -n "$NM"; then
1533 # Let the user override the test.
1534 ac_cv_path_NM="$NM"
1535else
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1537 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1540 # Check to see if the nm accepts a BSD-compat flag.
1541 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1542 # nm: unknown option "B" ignored
1543 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1544 ac_cv_path_NM="$ac_dir/nm -B"
1545 break
1546 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1547 ac_cv_path_NM="$ac_dir/nm -p"
1548 break
1549 else
1550 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1551 continue # so that we can try to find one that supports BSD flags
1552 fi
1553 fi
1554 done
1555 IFS="$ac_save_ifs"
1556 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1557fi
1558fi
1559
1560NM="$ac_cv_path_NM"
1561echo "$ac_t""$NM" 1>&6
1562
1563
1564echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1565echo "configure:1566: checking whether ln -s works" >&5
1566if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568else
1569 rm -f conftestdata
1570if ln -s X conftestdata 2>/dev/null
1571then
1572 rm -f conftestdata
1573 ac_cv_prog_LN_S="ln -s"
1574else
1575 ac_cv_prog_LN_S=ln
1576fi
1577fi
1578LN_S="$ac_cv_prog_LN_S"
1579if test "$ac_cv_prog_LN_S" = "ln -s"; then
1580 echo "$ac_t""yes" 1>&6
1581else
1582 echo "$ac_t""no" 1>&6
1583fi
1584
1585
1586# Check for any special flags to pass to ltconfig.
1587libtool_flags="--cache-file=$cache_file"
1588test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1589test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1590test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1591test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1592test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1593
1594
1595# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1596if test "${enable_libtool_lock+set}" = set; then
1597 enableval="$enable_libtool_lock"
1598 :
1599fi
1600
1601test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1602test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1603
1604# Some flags need to be propagated to the compiler or linker for good
1605# libtool support.
1606case "$host" in
1607*-*-irix6*)
1608 # Find out which ABI we are using.
1609 echo '#line 1610 "configure"' > conftest.$ac_ext
1610 if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611 case "`/usr/bin/file conftest.o`" in
1612 *32-bit*)
1613 LD="${LD-ld} -32"
1614 ;;
1615 *N32*)
1616 LD="${LD-ld} -n32"
1617 ;;
1618 *64-bit*)
1619 LD="${LD-ld} -64"
1620 ;;
1621 esac
1622 fi
1623 rm -rf conftest*
1624 ;;
1625
1626*-*-sco3.2v5*)
1627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1628 SAVE_CFLAGS="$CFLAGS"
1629 CFLAGS="$CFLAGS -belf"
1630 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1631echo "configure:1632: checking whether the C compiler needs -belf" >&5
1632if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635
1636 ac_ext=c
1637# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1638ac_cpp='$CPP $CPPFLAGS'
1639ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1640ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1641cross_compiling=$ac_cv_prog_cc_cross
1642
1643 cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646
1647int main() {
1648
1649; return 0; }
1650EOF
1651if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1652 rm -rf conftest*
1653 lt_cv_cc_needs_belf=yes
1654else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 lt_cv_cc_needs_belf=no
1659fi
1660rm -f conftest*
1661 ac_ext=c
1662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1663ac_cpp='$CPP $CPPFLAGS'
1664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1666cross_compiling=$ac_cv_prog_cc_cross
1667
1668fi
1669
1670echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1673 CFLAGS="$SAVE_CFLAGS"
1674 fi
1675 ;;
1676
1677
1678esac
1679
1680
1681# Save cache, so that ltconfig can load it
1682cat > confcache <<\EOF
1683# This file is a shell script that caches the results of configure
1684# tests run on this system so they can be shared between configure
1685# scripts and configure runs. It is not useful on other systems.
1686# If it contains results you don't want to keep, you may remove or edit it.
1687#
1688# By default, configure uses ./config.cache as the cache file,
1689# creating it if it does not exist already. You can give configure
1690# the --cache-file=FILE option to use a different cache file; that is
1691# what configure does when it calls configure scripts in
1692# subdirectories, so they share the cache.
1693# Giving --cache-file=/dev/null disables caching, for debugging configure.
1694# config.status only pays attention to the cache file if you give it the
1695# --recheck option to rerun configure.
1696#
1697EOF
1698# The following way of writing the cache mishandles newlines in values,
1699# but we know of no workaround that is simple, portable, and efficient.
1700# So, don't put newlines in cache variables' values.
1701# Ultrix sh set writes to stderr and can't be redirected directly,
1702# and sets the high bit in the cache file unless we assign to the vars.
1703(set) 2>&1 |
1704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1705 *ac_space=\ *)
1706 # `set' does not quote correctly, so add quotes (double-quote substitution
1707 # turns \\\\ into \\, and sed turns \\ into \).
1708 sed -n \
1709 -e "s/'/'\\\\''/g" \
1710 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1711 ;;
1712 *)
1713 # `set' quotes correctly as required by POSIX, so do not add quotes.
1714 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1715 ;;
1716 esac >> confcache
1717if cmp -s $cache_file confcache; then
1718 :
1719else
1720 if test -w $cache_file; then
1721 echo "updating cache $cache_file"
1722 cat confcache > $cache_file
1723 else
1724 echo "not updating unwritable cache $cache_file"
1725 fi
1726fi
1727rm -f confcache
1728
1729
1730# Actually configure libtool. ac_aux_dir is where install-sh is found.
1731CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1732LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1733LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1734DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1735${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1736$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1737|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1738
1739# Reload cache, that may have been modified by ltconfig
1740if test -r "$cache_file"; then
1741 echo "loading cache $cache_file"
1742 . $cache_file
1743else
1744 echo "creating cache $cache_file"
1745 > $cache_file
1746fi
1747
1748
1749# This can be used to rebuild libtool when needed
1750LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1751
1752# Always use our own libtool.
1753LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1754
1755# Redirect the config.log output again, so that the ltconfig log is not
1756# clobbered by the next message.
1757exec 5>>./config.log
1758
1759echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1760echo "configure:1761: checking for ANSI C header files" >&5
1761if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763else
1764 cat > conftest.$ac_ext <<EOF
1765#line 1766 "configure"
1766#include "confdefs.h"
1767#include <stdlib.h>
1768#include <stdarg.h>
1769#include <string.h>
1770#include <float.h>
1771EOF
1772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773{ (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1775if test -z "$ac_err"; then
1776 rm -rf conftest*
1777 ac_cv_header_stdc=yes
1778else
1779 echo "$ac_err" >&5
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1782 rm -rf conftest*
1783 ac_cv_header_stdc=no
1784fi
1785rm -f conftest*
1786
1787if test $ac_cv_header_stdc = yes; then
1788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1789cat > conftest.$ac_ext <<EOF
1790#line 1791 "configure"
1791#include "confdefs.h"
1792#include <string.h>
1793EOF
1794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "memchr" >/dev/null 2>&1; then
1796 :
1797else
1798 rm -rf conftest*
1799 ac_cv_header_stdc=no
1800fi
1801rm -f conftest*
1802
1803fi
1804
1805if test $ac_cv_header_stdc = yes; then
1806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1807cat > conftest.$ac_ext <<EOF
1808#line 1809 "configure"
1809#include "confdefs.h"
1810#include <stdlib.h>
1811EOF
1812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1813 egrep "free" >/dev/null 2>&1; then
1814 :
1815else
1816 rm -rf conftest*
1817 ac_cv_header_stdc=no
1818fi
1819rm -f conftest*
1820
1821fi
1822
1823if test $ac_cv_header_stdc = yes; then
1824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1825if test "$cross_compiling" = yes; then
1826 :
1827else
1828 cat > conftest.$ac_ext <<EOF
1829#line 1830 "configure"
1830#include "confdefs.h"
1831#include <ctype.h>
1832#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1833#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1835int main () { int i; for (i = 0; i < 256; i++)
1836if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1837exit (0); }
1838
1839EOF
1840if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1841then
1842 :
1843else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -fr conftest*
1847 ac_cv_header_stdc=no
1848fi
1849rm -fr conftest*
1850fi
1851
1852fi
1853fi
1854
1855echo "$ac_t""$ac_cv_header_stdc" 1>&6
1856if test $ac_cv_header_stdc = yes; then
1857 cat >> confdefs.h <<\EOF
1858#define STDC_HEADERS 1
1859EOF
1860
1861fi
1862
1863echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1864echo "configure:1865: checking whether ${MAKE-make} sets \${MAKE}" >&5
1865set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1866if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868else
1869 cat > conftestmake <<\EOF
1870all:
1871 @echo 'ac_maketemp="${MAKE}"'
1872EOF
1873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1875if test -n "$ac_maketemp"; then
1876 eval ac_cv_prog_make_${ac_make}_set=yes
1877else
1878 eval ac_cv_prog_make_${ac_make}_set=no
1879fi
1880rm -f conftestmake
1881fi
1882if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 SET_MAKE=
1885else
1886 echo "$ac_t""no" 1>&6
1887 SET_MAKE="MAKE=${MAKE-make}"
1888fi
1889
1890
1891for ac_func in gettimeofday
1892do
1893echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1894echo "configure:1895: checking for $ac_func" >&5
1895if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897else
1898 cat > conftest.$ac_ext <<EOF
1899#line 1900 "configure"
1900#include "confdefs.h"
1901/* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $ac_func(); below. */
1903#include <assert.h>
1904/* Override any gcc2 internal prototype to avoid an error. */
1905/* We use char because int might match the return type of a gcc2
1906 builtin and then its argument prototype would still apply. */
1907char $ac_func();
1908
1909int main() {
1910
1911/* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1915choke me
1916#else
1917$ac_func();
1918#endif
1919
1920; return 0; }
1921EOF
1922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 rm -rf conftest*
1924 eval "ac_cv_func_$ac_func=yes"
1925else
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 rm -rf conftest*
1929 eval "ac_cv_func_$ac_func=no"
1930fi
1931rm -f conftest*
1932fi
1933
1934if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1937 cat >> confdefs.h <<EOF
1938#define $ac_tr_func 1
1939EOF
1940
1941else
1942 echo "$ac_t""no" 1>&6
1943fi
1944done
1945
1946echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1947echo "configure:1948: checking whether time.h and sys/time.h may both be included" >&5
1948if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950else
1951 cat > conftest.$ac_ext <<EOF
1952#line 1953 "configure"
1953#include "confdefs.h"
1954#include <sys/types.h>
1955#include <sys/time.h>
1956#include <time.h>
1957int main() {
1958struct tm *tp;
1959; return 0; }
1960EOF
1961if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1962 rm -rf conftest*
1963 ac_cv_header_time=yes
1964else
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -rf conftest*
1968 ac_cv_header_time=no
1969fi
1970rm -f conftest*
1971fi
1972
1973echo "$ac_t""$ac_cv_header_time" 1>&6
1974if test $ac_cv_header_time = yes; then
1975 cat >> confdefs.h <<\EOF
1976#define TIME_WITH_SYS_TIME 1
1977EOF
1978
1979fi
1980
1981
1982for ac_prog in emacs xemacs
1983do
1984# Extract the first word of "$ac_prog", so it can be a program name with args.
1985set dummy $ac_prog; ac_word=$2
1986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987echo "configure:1988: checking for $ac_word" >&5
1988if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990else
1991 case "$EMACS" in
1992 /*)
1993 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
1994 ;;
1995 ?:/*)
1996 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
1997 ;;
1998 *)
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 ac_dummy="$PATH"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2004 ac_cv_path_EMACS="$ac_dir/$ac_word"
2005 break
2006 fi
2007 done
2008 IFS="$ac_save_ifs"
2009 ;;
2010esac
2011fi
2012EMACS="$ac_cv_path_EMACS"
2013if test -n "$EMACS"; then
2014 echo "$ac_t""$EMACS" 1>&6
2015else
2016 echo "$ac_t""no" 1>&6
2017fi
2018
2019test -n "$EMACS" && break
2020done
2021test -n "$EMACS" || EMACS="emacs"
2022
2023
2024top_srcdir_absolute=`cd $srcdir; pwd`
2025
2026
2027# Check whether --with-glib-prefix or --without-glib-prefix was given.
2028if test "${with_glib_prefix+set}" = set; then
2029 withval="$with_glib_prefix"
2030 glib_config_prefix="$withval"
2031else
2032 glib_config_prefix=""
2033fi
2034
2035# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
2036if test "${with_glib_exec_prefix+set}" = set; then
2037 withval="$with_glib_exec_prefix"
2038 glib_config_exec_prefix="$withval"
2039else
2040 glib_config_exec_prefix=""
2041fi
2042
2043# Check whether --enable-glibtest or --disable-glibtest was given.
2044if test "${enable_glibtest+set}" = set; then
2045 enableval="$enable_glibtest"
2046 :
2047else
2048 enable_glibtest=yes
2049fi
2050
2051
2052 if test x$glib_config_exec_prefix != x ; then
2053 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
2054 if test x${GLIB_CONFIG+set} != xset ; then
2055 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
2056 fi
2057 fi
2058 if test x$glib_config_prefix != x ; then
2059 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
2060 if test x${GLIB_CONFIG+set} != xset ; then
2061 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
2062 fi
2063 fi
2064
2065 for module in .
2066 do
2067 case "$module" in
2068 gmodule)
2069 glib_config_args="$glib_config_args gmodule"
2070 ;;
2071 gthread)
2072 glib_config_args="$glib_config_args gthread"
2073 ;;
2074 esac
2075 done
2076
2077 # Extract the first word of "glib-config", so it can be a program name with args.
2078set dummy glib-config; ac_word=$2
2079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080echo "configure:2081: checking for $ac_word" >&5
2081if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083else
2084 case "$GLIB_CONFIG" in
2085 /*)
2086 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
2087 ;;
2088 ?:/*)
2089 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
2090 ;;
2091 *)
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2093 ac_dummy="$PATH"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/$ac_word; then
2097 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
2098 break
2099 fi
2100 done
2101 IFS="$ac_save_ifs"
2102 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
2103 ;;
2104esac
2105fi
2106GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
2107if test -n "$GLIB_CONFIG"; then
2108 echo "$ac_t""$GLIB_CONFIG" 1>&6
2109else
2110 echo "$ac_t""no" 1>&6
2111fi
2112
2113 min_glib_version=1.2.8
2114 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
2115echo "configure:2116: checking for GLIB - version >= $min_glib_version" >&5
2116 no_glib=""
2117 if test "$GLIB_CONFIG" = "no" ; then
2118 no_glib=yes
2119 else
2120 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
2121 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
2122 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
2123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2124 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
2125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2126 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
2127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2128 if test "x$enable_glibtest" = "xyes" ; then
2129 ac_save_CFLAGS="$CFLAGS"
2130 ac_save_LIBS="$LIBS"
2131 CFLAGS="$CFLAGS $GLIB_CFLAGS"
2132 LIBS="$GLIB_LIBS $LIBS"
2133 rm -f conf.glibtest
2134 if test "$cross_compiling" = yes; then
2135 echo $ac_n "cross compiling; assumed OK... $ac_c"
2136else
2137 cat > conftest.$ac_ext <<EOF
2138#line 2139 "configure"
2139#include "confdefs.h"
2140
2141#include <glib.h>
2142#include <stdio.h>
2143#include <stdlib.h>
2144
2145int
2146main ()
2147{
2148 int major, minor, micro;
2149 char *tmp_version;
2150
2151 system ("touch conf.glibtest");
2152
2153 /* HP/UX 9 (%@#!) writes to sscanf strings */
2154 tmp_version = g_strdup("$min_glib_version");
2155 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2156 printf("%s, bad version string\n", "$min_glib_version");
2157 exit(1);
2158 }
2159
2160 if ((glib_major_version != $glib_config_major_version) ||
2161 (glib_minor_version != $glib_config_minor_version) ||
2162 (glib_micro_version != $glib_config_micro_version))
2163 {
2164 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
2165 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
2166 glib_major_version, glib_minor_version, glib_micro_version);
2167 printf ("*** was found! If glib-config was correct, then it is best\n");
2168 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
2169 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2170 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2171 printf("*** required on your system.\n");
2172 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
2173 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
2174 printf("*** before re-running configure\n");
2175 }
2176 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
2177 (glib_minor_version != GLIB_MINOR_VERSION) ||
2178 (glib_micro_version != GLIB_MICRO_VERSION))
2179 {
2180 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
2181 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
2182 printf("*** library (version %d.%d.%d)\n",
2183 glib_major_version, glib_minor_version, glib_micro_version);
2184 }
2185 else
2186 {
2187 if ((glib_major_version > major) ||
2188 ((glib_major_version == major) && (glib_minor_version > minor)) ||
2189 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
2190 {
2191 return 0;
2192 }
2193 else
2194 {
2195 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
2196 glib_major_version, glib_minor_version, glib_micro_version);
2197 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
2198 major, minor, micro);
2199 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
2200 printf("***\n");
2201 printf("*** If you have already installed a sufficiently new version, this error\n");
2202 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
2203 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2204 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
2205 printf("*** correct copy of glib-config. (In this case, you will have to\n");
2206 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2207 printf("*** so that the correct libraries are found at run-time))\n");
2208 }
2209 }
2210 return 1;
2211}
2212
2213EOF
2214if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2215then
2216 :
2217else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -fr conftest*
2221 no_glib=yes
2222fi
2223rm -fr conftest*
2224fi
2225
2226 CFLAGS="$ac_save_CFLAGS"
2227 LIBS="$ac_save_LIBS"
2228 fi
2229 fi
2230 if test "x$no_glib" = x ; then
2231 echo "$ac_t""yes" 1>&6
2232 :
2233 else
2234 echo "$ac_t""no" 1>&6
2235 if test "$GLIB_CONFIG" = "no" ; then
2236 echo "*** The glib-config script installed by GLIB could not be found"
2237 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
2238 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
2239 echo "*** full path to glib-config."
2240 else
2241 if test -f conf.glibtest ; then
2242 :
2243 else
2244 echo "*** Could not run GLIB test program, checking why..."
2245 CFLAGS="$CFLAGS $GLIB_CFLAGS"
2246 LIBS="$LIBS $GLIB_LIBS"
2247 cat > conftest.$ac_ext <<EOF
2248#line 2249 "configure"
2249#include "confdefs.h"
2250
2251#include <glib.h>
2252#include <stdio.h>
2253
2254int main() {
2255 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
2256; return 0; }
2257EOF
2258if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259 rm -rf conftest*
2260 echo "*** The test program compiled, but did not run. This usually means"
2261 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
2262 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
2263 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2264 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2265 echo "*** is required on your system"
2266 echo "***"
2267 echo "*** If you have an old version installed, it is best to remove it, although"
2268 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2269 echo "***"
2270 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2271 echo "*** came with the system with the command"
2272 echo "***"
2273 echo "*** rpm --erase --nodeps gtk gtk-devel"
2274else
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 rm -rf conftest*
2278 echo "*** The test program failed to compile or link. See the file config.log for the"
2279 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
2280 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
2281 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
2282fi
2283rm -f conftest*
2284 CFLAGS="$ac_save_CFLAGS"
2285 LIBS="$ac_save_LIBS"
2286 fi
2287 fi
2288 GLIB_CFLAGS=""
2289 GLIB_LIBS=""
2290 { echo "configure: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/" 1>&2; exit 1; }
2291 fi
2292
2293
2294 rm -f conf.glibtest
2295
2296
2297echo $ac_n "checking for gzsetparams in -lz""... $ac_c" 1>&6
2298echo "configure:2299: checking for gzsetparams in -lz" >&5
2299ac_lib_var=`echo z'_'gzsetparams | sed 'y%./+-%__p_%'`
2300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302else
2303 ac_save_LIBS="$LIBS"
2304LIBS="-lz $LIBS"
2305cat > conftest.$ac_ext <<EOF
2306#line 2307 "configure"
2307#include "confdefs.h"
2308/* Override any gcc2 internal prototype to avoid an error. */
2309/* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2311char gzsetparams();
2312
2313int main() {
2314gzsetparams()
2315; return 0; }
2316EOF
2317if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2320else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_lib_$ac_lib_var=no"
2325fi
2326rm -f conftest*
2327LIBS="$ac_save_LIBS"
2328
2329fi
2330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
2333echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
2334echo "configure:2335: checking for zlib.h" >&5
2335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 cat > conftest.$ac_ext <<EOF
2339#line 2340 "configure"
2340#include "confdefs.h"
2341#include <zlib.h>
2342EOF
2343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2344{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2346if test -z "$ac_err"; then
2347 rm -rf conftest*
2348 eval "ac_cv_header_$ac_safe=yes"
2349else
2350 echo "$ac_err" >&5
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_header_$ac_safe=no"
2355fi
2356rm -f conftest*
2357fi
2358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 :
2361else
2362 echo "$ac_t""no" 1>&6
2363{ echo "configure: error: ZLIB headers not found" 1>&2; exit 1; }
2364fi
2365
2366else
2367 echo "$ac_t""no" 1>&6
2368{ echo "configure: error: ZLIB library not found" 1>&2; exit 1; }
2369fi
2370
2371
2372trap '' 1 2 15
2373cat > confcache <<\EOF
2374# This file is a shell script that caches the results of configure
2375# tests run on this system so they can be shared between configure
2376# scripts and configure runs. It is not useful on other systems.
2377# If it contains results you don't want to keep, you may remove or edit it.
2378#
2379# By default, configure uses ./config.cache as the cache file,
2380# creating it if it does not exist already. You can give configure
2381# the --cache-file=FILE option to use a different cache file; that is
2382# what configure does when it calls configure scripts in
2383# subdirectories, so they share the cache.
2384# Giving --cache-file=/dev/null disables caching, for debugging configure.
2385# config.status only pays attention to the cache file if you give it the
2386# --recheck option to rerun configure.
2387#
2388EOF
2389# The following way of writing the cache mishandles newlines in values,
2390# but we know of no workaround that is simple, portable, and efficient.
2391# So, don't put newlines in cache variables' values.
2392# Ultrix sh set writes to stderr and can't be redirected directly,
2393# and sets the high bit in the cache file unless we assign to the vars.
2394(set) 2>&1 |
2395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2396 *ac_space=\ *)
2397 # `set' does not quote correctly, so add quotes (double-quote substitution
2398 # turns \\\\ into \\, and sed turns \\ into \).
2399 sed -n \
2400 -e "s/'/'\\\\''/g" \
2401 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2402 ;;
2403 *)
2404 # `set' quotes correctly as required by POSIX, so do not add quotes.
2405 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2406 ;;
2407 esac >> confcache
2408if cmp -s $cache_file confcache; then
2409 :
2410else
2411 if test -w $cache_file; then
2412 echo "updating cache $cache_file"
2413 cat confcache > $cache_file
2414 else
2415 echo "not updating unwritable cache $cache_file"
2416 fi
2417fi
2418rm -f confcache
2419
2420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2421
2422test "x$prefix" = xNONE && prefix=$ac_default_prefix
2423# Let make expand exec_prefix.
2424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2425
2426# Any assignment to VPATH causes Sun make to only execute
2427# the first set of double-colon rules, so remove it if not needed.
2428# If there is a colon in the path, we need to keep it.
2429if test "x$srcdir" = x.; then
2430 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2431fi
2432
2433trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2434
2435DEFS=-DHAVE_CONFIG_H
2436
2437# Without the "./", some shells look in PATH for config.status.
2438: ${CONFIG_STATUS=./config.status}
2439
2440echo creating $CONFIG_STATUS
2441rm -f $CONFIG_STATUS
2442cat > $CONFIG_STATUS <<EOF
2443#! /bin/sh
2444# Generated automatically by configure.
2445# Run this file to recreate the current configuration.
2446# This directory was configured as follows,
2447# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2448#
2449# $0 $ac_configure_args
2450#
2451# Compiler output produced by configure, useful for debugging
2452# configure, is in ./config.log if it exists.
2453
2454ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2455for ac_option
2456do
2457 case "\$ac_option" in
2458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2459 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2460 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2461 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2462 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2463 exit 0 ;;
2464 -help | --help | --hel | --he | --h)
2465 echo "\$ac_cs_usage"; exit 0 ;;
2466 *) echo "\$ac_cs_usage"; exit 1 ;;
2467 esac
2468done
2469
2470ac_given_srcdir=$srcdir
2471ac_given_INSTALL="$INSTALL"
2472
2473trap 'rm -fr `echo "Makefile
2474 doc/Makefile
2475 test/Makefile
2476 djgpp/Makefile
2477 xdelta-config
2478 libedsio/Makefile
2479 libedsio/edsio-comp config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2480EOF
2481cat >> $CONFIG_STATUS <<EOF
2482
2483# Protect against being on the right side of a sed subst in config.status.
2484sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2485 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2486$ac_vpsub
2487$extrasub
2488s%@SHELL@%$SHELL%g
2489s%@CFLAGS@%$CFLAGS%g
2490s%@CPPFLAGS@%$CPPFLAGS%g
2491s%@CXXFLAGS@%$CXXFLAGS%g
2492s%@FFLAGS@%$FFLAGS%g
2493s%@DEFS@%$DEFS%g
2494s%@LDFLAGS@%$LDFLAGS%g
2495s%@LIBS@%$LIBS%g
2496s%@exec_prefix@%$exec_prefix%g
2497s%@prefix@%$prefix%g
2498s%@program_transform_name@%$program_transform_name%g
2499s%@bindir@%$bindir%g
2500s%@sbindir@%$sbindir%g
2501s%@libexecdir@%$libexecdir%g
2502s%@datadir@%$datadir%g
2503s%@sysconfdir@%$sysconfdir%g
2504s%@sharedstatedir@%$sharedstatedir%g
2505s%@localstatedir@%$localstatedir%g
2506s%@libdir@%$libdir%g
2507s%@includedir@%$includedir%g
2508s%@oldincludedir@%$oldincludedir%g
2509s%@infodir@%$infodir%g
2510s%@mandir@%$mandir%g
2511s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2512s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2513s%@INSTALL_DATA@%$INSTALL_DATA%g
2514s%@PACKAGE@%$PACKAGE%g
2515s%@VERSION@%$VERSION%g
2516s%@ACLOCAL@%$ACLOCAL%g
2517s%@AUTOCONF@%$AUTOCONF%g
2518s%@AUTOMAKE@%$AUTOMAKE%g
2519s%@AUTOHEADER@%$AUTOHEADER%g
2520s%@MAKEINFO@%$MAKEINFO%g
2521s%@SET_MAKE@%$SET_MAKE%g
2522s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2523s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2524s%@MAINT@%$MAINT%g
2525s%@CC@%$CC%g
2526s%@CPP@%$CPP%g
2527s%@host@%$host%g
2528s%@host_alias@%$host_alias%g
2529s%@host_cpu@%$host_cpu%g
2530s%@host_vendor@%$host_vendor%g
2531s%@host_os@%$host_os%g
2532s%@build@%$build%g
2533s%@build_alias@%$build_alias%g
2534s%@build_cpu@%$build_cpu%g
2535s%@build_vendor@%$build_vendor%g
2536s%@build_os@%$build_os%g
2537s%@RANLIB@%$RANLIB%g
2538s%@LD@%$LD%g
2539s%@NM@%$NM%g
2540s%@LN_S@%$LN_S%g
2541s%@LIBTOOL@%$LIBTOOL%g
2542s%@EMACS@%$EMACS%g
2543s%@top_srcdir_absolute@%$top_srcdir_absolute%g
2544s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2545s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2546s%@GLIB_LIBS@%$GLIB_LIBS%g
2547
2548CEOF
2549EOF
2550
2551cat >> $CONFIG_STATUS <<\EOF
2552
2553# Split the substitutions into bite-sized pieces for seds with
2554# small command number limits, like on Digital OSF/1 and HP-UX.
2555ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2556ac_file=1 # Number of current file.
2557ac_beg=1 # First line for current file.
2558ac_end=$ac_max_sed_cmds # Line after last line for current file.
2559ac_more_lines=:
2560ac_sed_cmds=""
2561while $ac_more_lines; do
2562 if test $ac_beg -gt 1; then
2563 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2564 else
2565 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2566 fi
2567 if test ! -s conftest.s$ac_file; then
2568 ac_more_lines=false
2569 rm -f conftest.s$ac_file
2570 else
2571 if test -z "$ac_sed_cmds"; then
2572 ac_sed_cmds="sed -f conftest.s$ac_file"
2573 else
2574 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2575 fi
2576 ac_file=`expr $ac_file + 1`
2577 ac_beg=$ac_end
2578 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2579 fi
2580done
2581if test -z "$ac_sed_cmds"; then
2582 ac_sed_cmds=cat
2583fi
2584EOF
2585
2586cat >> $CONFIG_STATUS <<EOF
2587
2588CONFIG_FILES=\${CONFIG_FILES-"Makefile
2589 doc/Makefile
2590 test/Makefile
2591 djgpp/Makefile
2592 xdelta-config
2593 libedsio/Makefile
2594 libedsio/edsio-comp"}
2595EOF
2596cat >> $CONFIG_STATUS <<\EOF
2597for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2599 case "$ac_file" in
2600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2602 *) ac_file_in="${ac_file}.in" ;;
2603 esac
2604
2605 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2606
2607 # Remove last slash and all that follows it. Not all systems have dirname.
2608 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2610 # The file is in a subdirectory.
2611 test ! -d "$ac_dir" && mkdir "$ac_dir"
2612 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2613 # A "../" for each directory in $ac_dir_suffix.
2614 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2615 else
2616 ac_dir_suffix= ac_dots=
2617 fi
2618
2619 case "$ac_given_srcdir" in
2620 .) srcdir=.
2621 if test -z "$ac_dots"; then top_srcdir=.
2622 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2623 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2624 *) # Relative path.
2625 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2626 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2627 esac
2628
2629 case "$ac_given_INSTALL" in
2630 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2631 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2632 esac
2633
2634 echo creating "$ac_file"
2635 rm -f "$ac_file"
2636 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2637 case "$ac_file" in
2638 *Makefile*) ac_comsub="1i\\
2639# $configure_input" ;;
2640 *) ac_comsub= ;;
2641 esac
2642
2643 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2644 sed -e "$ac_comsub
2645s%@configure_input@%$configure_input%g
2646s%@srcdir@%$srcdir%g
2647s%@top_srcdir@%$top_srcdir%g
2648s%@INSTALL@%$INSTALL%g
2649" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2650fi; done
2651rm -f conftest.s*
2652
2653# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2654# NAME is the cpp macro being defined and VALUE is the value it is being given.
2655#
2656# ac_d sets the value in "#define NAME VALUE" lines.
2657ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2658ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2659ac_dC='\3'
2660ac_dD='%g'
2661# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2662ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2663ac_uB='\([ ]\)%\1#\2define\3'
2664ac_uC=' '
2665ac_uD='\4%g'
2666# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2667ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2668ac_eB='$%\1#\2define\3'
2669ac_eC=' '
2670ac_eD='%g'
2671
2672if test "${CONFIG_HEADERS+set}" != set; then
2673EOF
2674cat >> $CONFIG_STATUS <<EOF
2675 CONFIG_HEADERS="config.h"
2676EOF
2677cat >> $CONFIG_STATUS <<\EOF
2678fi
2679for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2681 case "$ac_file" in
2682 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2683 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2684 *) ac_file_in="${ac_file}.in" ;;
2685 esac
2686
2687 echo creating $ac_file
2688
2689 rm -f conftest.frag conftest.in conftest.out
2690 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2691 cat $ac_file_inputs > conftest.in
2692
2693EOF
2694
2695# Transform confdefs.h into a sed script conftest.vals that substitutes
2696# the proper values into config.h.in to produce config.h. And first:
2697# Protect against being on the right side of a sed subst in config.status.
2698# Protect against being in an unquoted here document in config.status.
2699rm -f conftest.vals
2700cat > conftest.hdr <<\EOF
2701s/[\\&%]/\\&/g
2702s%[\\$`]%\\&%g
2703s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2704s%ac_d%ac_u%gp
2705s%ac_u%ac_e%gp
2706EOF
2707sed -n -f conftest.hdr confdefs.h > conftest.vals
2708rm -f conftest.hdr
2709
2710# This sed command replaces #undef with comments. This is necessary, for
2711# example, in the case of _POSIX_SOURCE, which is predefined and required
2712# on some systems where configure will not decide to define it.
2713cat >> conftest.vals <<\EOF
2714s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2715EOF
2716
2717# Break up conftest.vals because some shells have a limit on
2718# the size of here documents, and old seds have small limits too.
2719
2720rm -f conftest.tail
2721while :
2722do
2723 ac_lines=`grep -c . conftest.vals`
2724 # grep -c gives empty output for an empty file on some AIX systems.
2725 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2726 # Write a limited-size here document to conftest.frag.
2727 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2728 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2729 echo 'CEOF
2730 sed -f conftest.frag conftest.in > conftest.out
2731 rm -f conftest.in
2732 mv conftest.out conftest.in
2733' >> $CONFIG_STATUS
2734 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2735 rm -f conftest.vals
2736 mv conftest.tail conftest.vals
2737done
2738rm -f conftest.vals
2739
2740cat >> $CONFIG_STATUS <<\EOF
2741 rm -f conftest.frag conftest.h
2742 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2743 cat conftest.in >> conftest.h
2744 rm -f conftest.in
2745 if cmp -s $ac_file conftest.h 2>/dev/null; then
2746 echo "$ac_file is unchanged"
2747 rm -f conftest.h
2748 else
2749 # Remove last slash and all that follows it. Not all systems have dirname.
2750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2752 # The file is in a subdirectory.
2753 test ! -d "$ac_dir" && mkdir "$ac_dir"
2754 fi
2755 rm -f $ac_file
2756 mv conftest.h $ac_file
2757 fi
2758fi; done
2759
2760EOF
2761cat >> $CONFIG_STATUS <<EOF
2762
2763
2764EOF
2765cat >> $CONFIG_STATUS <<\EOF
2766test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2767chmod +x libedsio/edsio-comp xdelta-config
2768
2769exit 0
2770EOF
2771chmod +x $CONFIG_STATUS
2772rm -fr confdefs* $ac_clean_files
2773test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2774