1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated automatically using autoconf version 2.13
|
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Defaults:
|
---|
11 | ac_help=
|
---|
12 | ac_default_prefix=/usr/local
|
---|
13 | # Any additions from configure.in:
|
---|
14 | ac_help="$ac_help
|
---|
15 | --disable-comp use old encoders, i.e. disable the YAZ ASN.1 Compiler"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --enable-tcpd enable TCP wrapper for server if available"
|
---|
18 | ac_help="$ac_help
|
---|
19 | --enable-threads enable threads if available"
|
---|
20 |
|
---|
21 | # Initialize some variables set by options.
|
---|
22 | # The variables have the same names as the options, with
|
---|
23 | # dashes changed to underlines.
|
---|
24 | build=NONE
|
---|
25 | cache_file=./config.cache
|
---|
26 | exec_prefix=NONE
|
---|
27 | host=NONE
|
---|
28 | no_create=
|
---|
29 | nonopt=NONE
|
---|
30 | no_recursion=
|
---|
31 | prefix=NONE
|
---|
32 | program_prefix=NONE
|
---|
33 | program_suffix=NONE
|
---|
34 | program_transform_name=s,x,x,
|
---|
35 | silent=
|
---|
36 | site=
|
---|
37 | srcdir=
|
---|
38 | target=NONE
|
---|
39 | verbose=
|
---|
40 | x_includes=NONE
|
---|
41 | x_libraries=NONE
|
---|
42 | bindir='${exec_prefix}/bin'
|
---|
43 | sbindir='${exec_prefix}/sbin'
|
---|
44 | libexecdir='${exec_prefix}/libexec'
|
---|
45 | datadir='${prefix}/share'
|
---|
46 | sysconfdir='${prefix}/etc'
|
---|
47 | sharedstatedir='${prefix}/com'
|
---|
48 | localstatedir='${prefix}/var'
|
---|
49 | libdir='${exec_prefix}/lib'
|
---|
50 | includedir='${prefix}/include'
|
---|
51 | oldincludedir='/usr/include'
|
---|
52 | infodir='${prefix}/info'
|
---|
53 | mandir='${prefix}/man'
|
---|
54 |
|
---|
55 | # Initialize some other variables.
|
---|
56 | subdirs=
|
---|
57 | MFLAGS= MAKEFLAGS=
|
---|
58 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
59 | # Maximum number of lines to put in a shell here document.
|
---|
60 | ac_max_here_lines=12
|
---|
61 |
|
---|
62 | ac_prev=
|
---|
63 | for ac_option
|
---|
64 | do
|
---|
65 |
|
---|
66 | # If the previous option needs an argument, assign it.
|
---|
67 | if test -n "$ac_prev"; then
|
---|
68 | eval "$ac_prev=\$ac_option"
|
---|
69 | ac_prev=
|
---|
70 | continue
|
---|
71 | fi
|
---|
72 |
|
---|
73 | case "$ac_option" in
|
---|
74 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
75 | *) ac_optarg= ;;
|
---|
76 | esac
|
---|
77 |
|
---|
78 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
79 |
|
---|
80 | case "$ac_option" in
|
---|
81 |
|
---|
82 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
83 | ac_prev=bindir ;;
|
---|
84 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
85 | bindir="$ac_optarg" ;;
|
---|
86 |
|
---|
87 | -build | --build | --buil | --bui | --bu)
|
---|
88 | ac_prev=build ;;
|
---|
89 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
90 | build="$ac_optarg" ;;
|
---|
91 |
|
---|
92 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
93 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
94 | ac_prev=cache_file ;;
|
---|
95 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
96 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
97 | cache_file="$ac_optarg" ;;
|
---|
98 |
|
---|
99 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
100 | ac_prev=datadir ;;
|
---|
101 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
102 | | --da=*)
|
---|
103 | datadir="$ac_optarg" ;;
|
---|
104 |
|
---|
105 | -disable-* | --disable-*)
|
---|
106 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
107 | # Reject names that are not valid shell variable names.
|
---|
108 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
109 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
110 | fi
|
---|
111 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
112 | eval "enable_${ac_feature}=no" ;;
|
---|
113 |
|
---|
114 | -enable-* | --enable-*)
|
---|
115 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
116 | # Reject names that are not valid shell variable names.
|
---|
117 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
119 | fi
|
---|
120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
121 | case "$ac_option" in
|
---|
122 | *=*) ;;
|
---|
123 | *) ac_optarg=yes ;;
|
---|
124 | esac
|
---|
125 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
126 |
|
---|
127 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
128 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
129 | | --exec | --exe | --ex)
|
---|
130 | ac_prev=exec_prefix ;;
|
---|
131 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
132 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
133 | | --exec=* | --exe=* | --ex=*)
|
---|
134 | exec_prefix="$ac_optarg" ;;
|
---|
135 |
|
---|
136 | -gas | --gas | --ga | --g)
|
---|
137 | # Obsolete; use --with-gas.
|
---|
138 | with_gas=yes ;;
|
---|
139 |
|
---|
140 | -help | --help | --hel | --he)
|
---|
141 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
142 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
143 | cat << EOF
|
---|
144 | Usage: configure [options] [host]
|
---|
145 | Options: [defaults in brackets after descriptions]
|
---|
146 | Configuration:
|
---|
147 | --cache-file=FILE cache test results in FILE
|
---|
148 | --help print this message
|
---|
149 | --no-create do not create output files
|
---|
150 | --quiet, --silent do not print \`checking...' messages
|
---|
151 | --version print the version of autoconf that created configure
|
---|
152 | Directory and file names:
|
---|
153 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
154 | [$ac_default_prefix]
|
---|
155 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
156 | [same as prefix]
|
---|
157 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
158 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
159 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
160 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
161 | [PREFIX/share]
|
---|
162 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
163 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
164 | [PREFIX/com]
|
---|
165 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
166 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
167 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
168 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
169 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
170 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
171 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
172 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
173 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
174 | --program-transform-name=PROGRAM
|
---|
175 | run sed PROGRAM on installed program names
|
---|
176 | EOF
|
---|
177 | cat << EOF
|
---|
178 | Host type:
|
---|
179 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
180 | --host=HOST configure for HOST [guessed]
|
---|
181 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
182 | Features and packages:
|
---|
183 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
184 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
185 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
186 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
187 | --x-includes=DIR X include files are in DIR
|
---|
188 | --x-libraries=DIR X library files are in DIR
|
---|
189 | EOF
|
---|
190 | if test -n "$ac_help"; then
|
---|
191 | echo "--enable and --with options recognized:$ac_help"
|
---|
192 | fi
|
---|
193 | exit 0 ;;
|
---|
194 |
|
---|
195 | -host | --host | --hos | --ho)
|
---|
196 | ac_prev=host ;;
|
---|
197 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
198 | host="$ac_optarg" ;;
|
---|
199 |
|
---|
200 | -includedir | --includedir | --includedi | --included | --include \
|
---|
201 | | --includ | --inclu | --incl | --inc)
|
---|
202 | ac_prev=includedir ;;
|
---|
203 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
204 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
205 | includedir="$ac_optarg" ;;
|
---|
206 |
|
---|
207 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
208 | ac_prev=infodir ;;
|
---|
209 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
210 | infodir="$ac_optarg" ;;
|
---|
211 |
|
---|
212 | -libdir | --libdir | --libdi | --libd)
|
---|
213 | ac_prev=libdir ;;
|
---|
214 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
215 | libdir="$ac_optarg" ;;
|
---|
216 |
|
---|
217 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
218 | | --libexe | --libex | --libe)
|
---|
219 | ac_prev=libexecdir ;;
|
---|
220 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
221 | | --libexe=* | --libex=* | --libe=*)
|
---|
222 | libexecdir="$ac_optarg" ;;
|
---|
223 |
|
---|
224 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
225 | | --localstate | --localstat | --localsta | --localst \
|
---|
226 | | --locals | --local | --loca | --loc | --lo)
|
---|
227 | ac_prev=localstatedir ;;
|
---|
228 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
229 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
230 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
231 | localstatedir="$ac_optarg" ;;
|
---|
232 |
|
---|
233 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
234 | ac_prev=mandir ;;
|
---|
235 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
236 | mandir="$ac_optarg" ;;
|
---|
237 |
|
---|
238 | -nfp | --nfp | --nf)
|
---|
239 | # Obsolete; use --without-fp.
|
---|
240 | with_fp=no ;;
|
---|
241 |
|
---|
242 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
243 | | --no-cr | --no-c)
|
---|
244 | no_create=yes ;;
|
---|
245 |
|
---|
246 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
247 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
248 | no_recursion=yes ;;
|
---|
249 |
|
---|
250 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
251 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
252 | | --oldin | --oldi | --old | --ol | --o)
|
---|
253 | ac_prev=oldincludedir ;;
|
---|
254 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
255 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
256 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
257 | oldincludedir="$ac_optarg" ;;
|
---|
258 |
|
---|
259 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
260 | ac_prev=prefix ;;
|
---|
261 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
262 | prefix="$ac_optarg" ;;
|
---|
263 |
|
---|
264 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
265 | | --program-pre | --program-pr | --program-p)
|
---|
266 | ac_prev=program_prefix ;;
|
---|
267 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
268 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
269 | program_prefix="$ac_optarg" ;;
|
---|
270 |
|
---|
271 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
272 | | --program-suf | --program-su | --program-s)
|
---|
273 | ac_prev=program_suffix ;;
|
---|
274 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
275 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
276 | program_suffix="$ac_optarg" ;;
|
---|
277 |
|
---|
278 | -program-transform-name | --program-transform-name \
|
---|
279 | | --program-transform-nam | --program-transform-na \
|
---|
280 | | --program-transform-n | --program-transform- \
|
---|
281 | | --program-transform | --program-transfor \
|
---|
282 | | --program-transfo | --program-transf \
|
---|
283 | | --program-trans | --program-tran \
|
---|
284 | | --progr-tra | --program-tr | --program-t)
|
---|
285 | ac_prev=program_transform_name ;;
|
---|
286 | -program-transform-name=* | --program-transform-name=* \
|
---|
287 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
288 | | --program-transform-n=* | --program-transform-=* \
|
---|
289 | | --program-transform=* | --program-transfor=* \
|
---|
290 | | --program-transfo=* | --program-transf=* \
|
---|
291 | | --program-trans=* | --program-tran=* \
|
---|
292 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
293 | program_transform_name="$ac_optarg" ;;
|
---|
294 |
|
---|
295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
296 | | -silent | --silent | --silen | --sile | --sil)
|
---|
297 | silent=yes ;;
|
---|
298 |
|
---|
299 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
300 | ac_prev=sbindir ;;
|
---|
301 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
302 | | --sbi=* | --sb=*)
|
---|
303 | sbindir="$ac_optarg" ;;
|
---|
304 |
|
---|
305 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
306 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
307 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
308 | | --sha | --sh)
|
---|
309 | ac_prev=sharedstatedir ;;
|
---|
310 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
311 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
312 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
313 | | --sha=* | --sh=*)
|
---|
314 | sharedstatedir="$ac_optarg" ;;
|
---|
315 |
|
---|
316 | -site | --site | --sit)
|
---|
317 | ac_prev=site ;;
|
---|
318 | -site=* | --site=* | --sit=*)
|
---|
319 | site="$ac_optarg" ;;
|
---|
320 |
|
---|
321 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
322 | ac_prev=srcdir ;;
|
---|
323 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
324 | srcdir="$ac_optarg" ;;
|
---|
325 |
|
---|
326 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
327 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
328 | ac_prev=sysconfdir ;;
|
---|
329 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
330 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
331 | sysconfdir="$ac_optarg" ;;
|
---|
332 |
|
---|
333 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
334 | ac_prev=target ;;
|
---|
335 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
336 | target="$ac_optarg" ;;
|
---|
337 |
|
---|
338 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
339 | verbose=yes ;;
|
---|
340 |
|
---|
341 | -version | --version | --versio | --versi | --vers)
|
---|
342 | echo "configure generated by autoconf version 2.13"
|
---|
343 | exit 0 ;;
|
---|
344 |
|
---|
345 | -with-* | --with-*)
|
---|
346 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
347 | # Reject names that are not valid shell variable names.
|
---|
348 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
349 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
350 | fi
|
---|
351 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
352 | case "$ac_option" in
|
---|
353 | *=*) ;;
|
---|
354 | *) ac_optarg=yes ;;
|
---|
355 | esac
|
---|
356 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
357 |
|
---|
358 | -without-* | --without-*)
|
---|
359 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
360 | # Reject names that are not valid shell variable names.
|
---|
361 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
363 | fi
|
---|
364 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
365 | eval "with_${ac_package}=no" ;;
|
---|
366 |
|
---|
367 | --x)
|
---|
368 | # Obsolete; use --with-x.
|
---|
369 | with_x=yes ;;
|
---|
370 |
|
---|
371 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
372 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
373 | ac_prev=x_includes ;;
|
---|
374 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
375 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
376 | x_includes="$ac_optarg" ;;
|
---|
377 |
|
---|
378 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
379 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
380 | ac_prev=x_libraries ;;
|
---|
381 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
382 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
383 | x_libraries="$ac_optarg" ;;
|
---|
384 |
|
---|
385 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
386 | ;;
|
---|
387 |
|
---|
388 | *)
|
---|
389 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
390 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
391 | fi
|
---|
392 | if test "x$nonopt" != xNONE; then
|
---|
393 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
394 | fi
|
---|
395 | nonopt="$ac_option"
|
---|
396 | ;;
|
---|
397 |
|
---|
398 | esac
|
---|
399 | done
|
---|
400 |
|
---|
401 | if test -n "$ac_prev"; then
|
---|
402 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
403 | fi
|
---|
404 |
|
---|
405 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
406 |
|
---|
407 | # File descriptor usage:
|
---|
408 | # 0 standard input
|
---|
409 | # 1 file creation
|
---|
410 | # 2 errors and warnings
|
---|
411 | # 3 some systems may open it to /dev/tty
|
---|
412 | # 4 used on the Kubota Titan
|
---|
413 | # 6 checking for... messages and results
|
---|
414 | # 5 compiler messages saved in config.log
|
---|
415 | if test "$silent" = yes; then
|
---|
416 | exec 6>/dev/null
|
---|
417 | else
|
---|
418 | exec 6>&1
|
---|
419 | fi
|
---|
420 | exec 5>./config.log
|
---|
421 |
|
---|
422 | echo "\
|
---|
423 | This file contains any messages produced by compilers while
|
---|
424 | running configure, to aid debugging if configure makes a mistake.
|
---|
425 | " 1>&5
|
---|
426 |
|
---|
427 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
428 | # Also quote any args containing shell metacharacters.
|
---|
429 | ac_configure_args=
|
---|
430 | for ac_arg
|
---|
431 | do
|
---|
432 | case "$ac_arg" in
|
---|
433 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
434 | | --no-cr | --no-c) ;;
|
---|
435 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
436 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
437 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
438 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
439 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
440 | esac
|
---|
441 | done
|
---|
442 |
|
---|
443 | # NLS nuisances.
|
---|
444 | # Only set these to C if already set. These must not be set unconditionally
|
---|
445 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
446 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
447 | # Non-C LC_CTYPE values break the ctype check.
|
---|
448 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
449 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
450 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
451 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
452 |
|
---|
453 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
454 | rm -rf conftest* confdefs.h
|
---|
455 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
456 | echo > confdefs.h
|
---|
457 |
|
---|
458 | # A filename unique to this package, relative to the directory that
|
---|
459 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
460 | ac_unique_file=include/yaz/yaz-version.h
|
---|
461 |
|
---|
462 | # Find the source files, if location was not specified.
|
---|
463 | if test -z "$srcdir"; then
|
---|
464 | ac_srcdir_defaulted=yes
|
---|
465 | # Try the directory containing this script, then its parent.
|
---|
466 | ac_prog=$0
|
---|
467 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
468 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
469 | srcdir=$ac_confdir
|
---|
470 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
471 | srcdir=..
|
---|
472 | fi
|
---|
473 | else
|
---|
474 | ac_srcdir_defaulted=no
|
---|
475 | fi
|
---|
476 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
477 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
478 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
479 | else
|
---|
480 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
481 | fi
|
---|
482 | fi
|
---|
483 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
484 |
|
---|
485 | # Prefer explicitly selected file to automatically selected ones.
|
---|
486 | if test -z "$CONFIG_SITE"; then
|
---|
487 | if test "x$prefix" != xNONE; then
|
---|
488 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
489 | else
|
---|
490 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
491 | fi
|
---|
492 | fi
|
---|
493 | for ac_site_file in $CONFIG_SITE; do
|
---|
494 | if test -r "$ac_site_file"; then
|
---|
495 | echo "loading site script $ac_site_file"
|
---|
496 | . "$ac_site_file"
|
---|
497 | fi
|
---|
498 | done
|
---|
499 |
|
---|
500 | if test -r "$cache_file"; then
|
---|
501 | echo "loading cache $cache_file"
|
---|
502 | . $cache_file
|
---|
503 | else
|
---|
504 | echo "creating cache $cache_file"
|
---|
505 | > $cache_file
|
---|
506 | fi
|
---|
507 |
|
---|
508 | ac_ext=c
|
---|
509 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
510 | ac_cpp='$CPP $CPPFLAGS'
|
---|
511 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
512 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
513 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
514 |
|
---|
515 | ac_exeext=
|
---|
516 | ac_objext=o
|
---|
517 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
518 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
---|
519 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
520 | ac_n= ac_c='
|
---|
521 | ' ac_t=' '
|
---|
522 | else
|
---|
523 | ac_n=-n ac_c= ac_t=
|
---|
524 | fi
|
---|
525 | else
|
---|
526 | ac_n= ac_c='\c' ac_t=
|
---|
527 | fi
|
---|
528 |
|
---|
529 |
|
---|
530 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
531 | set dummy gcc; ac_word=$2
|
---|
532 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
533 | echo "configure:534: checking for $ac_word" >&5
|
---|
534 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
535 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
536 | else
|
---|
537 | if test -n "$CC"; then
|
---|
538 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
539 | else
|
---|
540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
541 | ac_dummy="$PATH"
|
---|
542 | for ac_dir in $ac_dummy; do
|
---|
543 | test -z "$ac_dir" && ac_dir=.
|
---|
544 | if test -f $ac_dir/$ac_word; then
|
---|
545 | ac_cv_prog_CC="gcc"
|
---|
546 | break
|
---|
547 | fi
|
---|
548 | done
|
---|
549 | IFS="$ac_save_ifs"
|
---|
550 | fi
|
---|
551 | fi
|
---|
552 | CC="$ac_cv_prog_CC"
|
---|
553 | if test -n "$CC"; then
|
---|
554 | echo "$ac_t""$CC" 1>&6
|
---|
555 | else
|
---|
556 | echo "$ac_t""no" 1>&6
|
---|
557 | fi
|
---|
558 |
|
---|
559 | if test -z "$CC"; then
|
---|
560 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
561 | set dummy cc; ac_word=$2
|
---|
562 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
563 | echo "configure:564: checking for $ac_word" >&5
|
---|
564 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
565 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
566 | else
|
---|
567 | if test -n "$CC"; then
|
---|
568 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
569 | else
|
---|
570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
571 | ac_prog_rejected=no
|
---|
572 | ac_dummy="$PATH"
|
---|
573 | for ac_dir in $ac_dummy; do
|
---|
574 | test -z "$ac_dir" && ac_dir=.
|
---|
575 | if test -f $ac_dir/$ac_word; then
|
---|
576 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
577 | ac_prog_rejected=yes
|
---|
578 | continue
|
---|
579 | fi
|
---|
580 | ac_cv_prog_CC="cc"
|
---|
581 | break
|
---|
582 | fi
|
---|
583 | done
|
---|
584 | IFS="$ac_save_ifs"
|
---|
585 | if test $ac_prog_rejected = yes; then
|
---|
586 | # We found a bogon in the path, so make sure we never use it.
|
---|
587 | set dummy $ac_cv_prog_CC
|
---|
588 | shift
|
---|
589 | if test $# -gt 0; then
|
---|
590 | # We chose a different compiler from the bogus one.
|
---|
591 | # However, it has the same basename, so the bogon will be chosen
|
---|
592 | # first if we set CC to just the basename; use the full file name.
|
---|
593 | shift
|
---|
594 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
595 | shift
|
---|
596 | ac_cv_prog_CC="$@"
|
---|
597 | fi
|
---|
598 | fi
|
---|
599 | fi
|
---|
600 | fi
|
---|
601 | CC="$ac_cv_prog_CC"
|
---|
602 | if test -n "$CC"; then
|
---|
603 | echo "$ac_t""$CC" 1>&6
|
---|
604 | else
|
---|
605 | echo "$ac_t""no" 1>&6
|
---|
606 | fi
|
---|
607 |
|
---|
608 | if test -z "$CC"; then
|
---|
609 | case "`uname -s`" in
|
---|
610 | *win32* | *WIN32*)
|
---|
611 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
612 | set dummy cl; ac_word=$2
|
---|
613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
614 | echo "configure:615: checking for $ac_word" >&5
|
---|
615 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
616 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
617 | else
|
---|
618 | if test -n "$CC"; then
|
---|
619 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
620 | else
|
---|
621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
622 | ac_dummy="$PATH"
|
---|
623 | for ac_dir in $ac_dummy; do
|
---|
624 | test -z "$ac_dir" && ac_dir=.
|
---|
625 | if test -f $ac_dir/$ac_word; then
|
---|
626 | ac_cv_prog_CC="cl"
|
---|
627 | break
|
---|
628 | fi
|
---|
629 | done
|
---|
630 | IFS="$ac_save_ifs"
|
---|
631 | fi
|
---|
632 | fi
|
---|
633 | CC="$ac_cv_prog_CC"
|
---|
634 | if test -n "$CC"; then
|
---|
635 | echo "$ac_t""$CC" 1>&6
|
---|
636 | else
|
---|
637 | echo "$ac_t""no" 1>&6
|
---|
638 | fi
|
---|
639 | ;;
|
---|
640 | esac
|
---|
641 | fi
|
---|
642 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
643 | fi
|
---|
644 |
|
---|
645 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
646 | echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
647 |
|
---|
648 | ac_ext=c
|
---|
649 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
650 | ac_cpp='$CPP $CPPFLAGS'
|
---|
651 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
652 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
653 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
654 |
|
---|
655 | cat > conftest.$ac_ext << EOF
|
---|
656 |
|
---|
657 | #line 658 "configure"
|
---|
658 | #include "confdefs.h"
|
---|
659 |
|
---|
660 | main(){return(0);}
|
---|
661 | EOF
|
---|
662 | if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
663 | ac_cv_prog_cc_works=yes
|
---|
664 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
665 | if (./conftest; exit) 2>/dev/null; then
|
---|
666 | ac_cv_prog_cc_cross=no
|
---|
667 | else
|
---|
668 | ac_cv_prog_cc_cross=yes
|
---|
669 | fi
|
---|
670 | else
|
---|
671 | echo "configure: failed program was:" >&5
|
---|
672 | cat conftest.$ac_ext >&5
|
---|
673 | ac_cv_prog_cc_works=no
|
---|
674 | fi
|
---|
675 | rm -fr conftest*
|
---|
676 | ac_ext=c
|
---|
677 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
678 | ac_cpp='$CPP $CPPFLAGS'
|
---|
679 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
680 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
681 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
682 |
|
---|
683 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
684 | if test $ac_cv_prog_cc_works = no; then
|
---|
685 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
686 | fi
|
---|
687 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
688 | echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
689 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
690 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
691 |
|
---|
692 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
693 | echo "configure:694: checking whether we are using GNU C" >&5
|
---|
694 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
695 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
696 | else
|
---|
697 | cat > conftest.c <<EOF
|
---|
698 | #ifdef __GNUC__
|
---|
699 | yes;
|
---|
700 | #endif
|
---|
701 | EOF
|
---|
702 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
703 | ac_cv_prog_gcc=yes
|
---|
704 | else
|
---|
705 | ac_cv_prog_gcc=no
|
---|
706 | fi
|
---|
707 | fi
|
---|
708 |
|
---|
709 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
710 |
|
---|
711 | if test $ac_cv_prog_gcc = yes; then
|
---|
712 | GCC=yes
|
---|
713 | else
|
---|
714 | GCC=
|
---|
715 | fi
|
---|
716 |
|
---|
717 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
718 | ac_save_CFLAGS="$CFLAGS"
|
---|
719 | CFLAGS=
|
---|
720 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
721 | echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
|
---|
722 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
723 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
724 | else
|
---|
725 | echo 'void f(){}' > conftest.c
|
---|
726 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
727 | ac_cv_prog_cc_g=yes
|
---|
728 | else
|
---|
729 | ac_cv_prog_cc_g=no
|
---|
730 | fi
|
---|
731 | rm -f conftest*
|
---|
732 |
|
---|
733 | fi
|
---|
734 |
|
---|
735 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
736 | if test "$ac_test_CFLAGS" = set; then
|
---|
737 | CFLAGS="$ac_save_CFLAGS"
|
---|
738 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
739 | if test "$GCC" = yes; then
|
---|
740 | CFLAGS="-g -O2"
|
---|
741 | else
|
---|
742 | CFLAGS="-g"
|
---|
743 | fi
|
---|
744 | else
|
---|
745 | if test "$GCC" = yes; then
|
---|
746 | CFLAGS="-O2"
|
---|
747 | else
|
---|
748 | CFLAGS=
|
---|
749 | fi
|
---|
750 | fi
|
---|
751 |
|
---|
752 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
753 | echo "configure:754: checking how to run the C preprocessor" >&5
|
---|
754 | # On Suns, sometimes $CPP names a directory.
|
---|
755 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
756 | CPP=
|
---|
757 | fi
|
---|
758 | if test -z "$CPP"; then
|
---|
759 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
760 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
761 | else
|
---|
762 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
763 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
764 | CPP="${CC-cc} -E"
|
---|
765 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
766 | # not just through cpp.
|
---|
767 | cat > conftest.$ac_ext <<EOF
|
---|
768 | #line 769 "configure"
|
---|
769 | #include "confdefs.h"
|
---|
770 | #include <assert.h>
|
---|
771 | Syntax Error
|
---|
772 | EOF
|
---|
773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
774 | { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
776 | if test -z "$ac_err"; then
|
---|
777 | :
|
---|
778 | else
|
---|
779 | echo "$ac_err" >&5
|
---|
780 | echo "configure: failed program was:" >&5
|
---|
781 | cat conftest.$ac_ext >&5
|
---|
782 | rm -rf conftest*
|
---|
783 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
784 | cat > conftest.$ac_ext <<EOF
|
---|
785 | #line 786 "configure"
|
---|
786 | #include "confdefs.h"
|
---|
787 | #include <assert.h>
|
---|
788 | Syntax Error
|
---|
789 | EOF
|
---|
790 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
791 | { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
792 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
793 | if test -z "$ac_err"; then
|
---|
794 | :
|
---|
795 | else
|
---|
796 | echo "$ac_err" >&5
|
---|
797 | echo "configure: failed program was:" >&5
|
---|
798 | cat conftest.$ac_ext >&5
|
---|
799 | rm -rf conftest*
|
---|
800 | CPP="${CC-cc} -nologo -E"
|
---|
801 | cat > conftest.$ac_ext <<EOF
|
---|
802 | #line 803 "configure"
|
---|
803 | #include "confdefs.h"
|
---|
804 | #include <assert.h>
|
---|
805 | Syntax Error
|
---|
806 | EOF
|
---|
807 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
808 | { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
809 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
810 | if test -z "$ac_err"; then
|
---|
811 | :
|
---|
812 | else
|
---|
813 | echo "$ac_err" >&5
|
---|
814 | echo "configure: failed program was:" >&5
|
---|
815 | cat conftest.$ac_ext >&5
|
---|
816 | rm -rf conftest*
|
---|
817 | CPP=/lib/cpp
|
---|
818 | fi
|
---|
819 | rm -f conftest*
|
---|
820 | fi
|
---|
821 | rm -f conftest*
|
---|
822 | fi
|
---|
823 | rm -f conftest*
|
---|
824 | ac_cv_prog_CPP="$CPP"
|
---|
825 | fi
|
---|
826 | CPP="$ac_cv_prog_CPP"
|
---|
827 | else
|
---|
828 | ac_cv_prog_CPP="$CPP"
|
---|
829 | fi
|
---|
830 | echo "$ac_t""$CPP" 1>&6
|
---|
831 |
|
---|
832 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
833 | set dummy ranlib; ac_word=$2
|
---|
834 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
835 | echo "configure:836: checking for $ac_word" >&5
|
---|
836 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
837 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
838 | else
|
---|
839 | if test -n "$RANLIB"; then
|
---|
840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
841 | else
|
---|
842 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
843 | ac_dummy="$PATH"
|
---|
844 | for ac_dir in $ac_dummy; do
|
---|
845 | test -z "$ac_dir" && ac_dir=.
|
---|
846 | if test -f $ac_dir/$ac_word; then
|
---|
847 | ac_cv_prog_RANLIB="ranlib"
|
---|
848 | break
|
---|
849 | fi
|
---|
850 | done
|
---|
851 | IFS="$ac_save_ifs"
|
---|
852 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
853 | fi
|
---|
854 | fi
|
---|
855 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
856 | if test -n "$RANLIB"; then
|
---|
857 | echo "$ac_t""$RANLIB" 1>&6
|
---|
858 | else
|
---|
859 | echo "$ac_t""no" 1>&6
|
---|
860 | fi
|
---|
861 |
|
---|
862 | for ac_prog in sgml2txt
|
---|
863 | do
|
---|
864 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
865 | set dummy $ac_prog; ac_word=$2
|
---|
866 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
867 | echo "configure:868: checking for $ac_word" >&5
|
---|
868 | if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2txt'+set}'`\" = set"; then
|
---|
869 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
870 | else
|
---|
871 | if test -n "$have_sgml2txt"; then
|
---|
872 | ac_cv_prog_have_sgml2txt="$have_sgml2txt" # Let the user override the test.
|
---|
873 | else
|
---|
874 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
875 | ac_dummy="$PATH"
|
---|
876 | for ac_dir in $ac_dummy; do
|
---|
877 | test -z "$ac_dir" && ac_dir=.
|
---|
878 | if test -f $ac_dir/$ac_word; then
|
---|
879 | ac_cv_prog_have_sgml2txt="$ac_prog"
|
---|
880 | break
|
---|
881 | fi
|
---|
882 | done
|
---|
883 | IFS="$ac_save_ifs"
|
---|
884 | fi
|
---|
885 | fi
|
---|
886 | have_sgml2txt="$ac_cv_prog_have_sgml2txt"
|
---|
887 | if test -n "$have_sgml2txt"; then
|
---|
888 | echo "$ac_t""$have_sgml2txt" 1>&6
|
---|
889 | else
|
---|
890 | echo "$ac_t""no" 1>&6
|
---|
891 | fi
|
---|
892 |
|
---|
893 | test -n "$have_sgml2txt" && break
|
---|
894 | done
|
---|
895 | test -n "$have_sgml2txt" || have_sgml2txt="no"
|
---|
896 |
|
---|
897 | for ac_prog in sgml2latex
|
---|
898 | do
|
---|
899 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
900 | set dummy $ac_prog; ac_word=$2
|
---|
901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
902 | echo "configure:903: checking for $ac_word" >&5
|
---|
903 | if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2latex'+set}'`\" = set"; then
|
---|
904 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
905 | else
|
---|
906 | if test -n "$have_sgml2latex"; then
|
---|
907 | ac_cv_prog_have_sgml2latex="$have_sgml2latex" # Let the user override the test.
|
---|
908 | else
|
---|
909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
910 | ac_dummy="$PATH"
|
---|
911 | for ac_dir in $ac_dummy; do
|
---|
912 | test -z "$ac_dir" && ac_dir=.
|
---|
913 | if test -f $ac_dir/$ac_word; then
|
---|
914 | ac_cv_prog_have_sgml2latex="$ac_prog"
|
---|
915 | break
|
---|
916 | fi
|
---|
917 | done
|
---|
918 | IFS="$ac_save_ifs"
|
---|
919 | fi
|
---|
920 | fi
|
---|
921 | have_sgml2latex="$ac_cv_prog_have_sgml2latex"
|
---|
922 | if test -n "$have_sgml2latex"; then
|
---|
923 | echo "$ac_t""$have_sgml2latex" 1>&6
|
---|
924 | else
|
---|
925 | echo "$ac_t""no" 1>&6
|
---|
926 | fi
|
---|
927 |
|
---|
928 | test -n "$have_sgml2latex" && break
|
---|
929 | done
|
---|
930 | test -n "$have_sgml2latex" || have_sgml2latex="no"
|
---|
931 |
|
---|
932 | for ac_prog in sgml2html
|
---|
933 | do
|
---|
934 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
935 | set dummy $ac_prog; ac_word=$2
|
---|
936 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
937 | echo "configure:938: checking for $ac_word" >&5
|
---|
938 | if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2html'+set}'`\" = set"; then
|
---|
939 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
940 | else
|
---|
941 | if test -n "$have_sgml2html"; then
|
---|
942 | ac_cv_prog_have_sgml2html="$have_sgml2html" # Let the user override the test.
|
---|
943 | else
|
---|
944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
945 | ac_dummy="$PATH"
|
---|
946 | for ac_dir in $ac_dummy; do
|
---|
947 | test -z "$ac_dir" && ac_dir=.
|
---|
948 | if test -f $ac_dir/$ac_word; then
|
---|
949 | ac_cv_prog_have_sgml2html="$ac_prog"
|
---|
950 | break
|
---|
951 | fi
|
---|
952 | done
|
---|
953 | IFS="$ac_save_ifs"
|
---|
954 | fi
|
---|
955 | fi
|
---|
956 | have_sgml2html="$ac_cv_prog_have_sgml2html"
|
---|
957 | if test -n "$have_sgml2html"; then
|
---|
958 | echo "$ac_t""$have_sgml2html" 1>&6
|
---|
959 | else
|
---|
960 | echo "$ac_t""no" 1>&6
|
---|
961 | fi
|
---|
962 |
|
---|
963 | test -n "$have_sgml2html" && break
|
---|
964 | done
|
---|
965 | test -n "$have_sgml2html" || have_sgml2html="no"
|
---|
966 |
|
---|
967 | if test "$have_sgml2txt" = "no" -o "$have_sgml2latex" = "no" -o "$have_sgml2html" = "no"; then
|
---|
968 | DOCMODULE=""
|
---|
969 | else
|
---|
970 | DOCMODULE="doc"
|
---|
971 | fi
|
---|
972 |
|
---|
973 |
|
---|
974 |
|
---|
975 | # Check whether --enable-comp or --disable-comp was given.
|
---|
976 | if test "${enable_comp+set}" = set; then
|
---|
977 | enableval="$enable_comp"
|
---|
978 | :
|
---|
979 | else
|
---|
980 | enable_comp=yes
|
---|
981 | fi
|
---|
982 |
|
---|
983 | if test "$enable_comp" = "yes"; then
|
---|
984 | ASNMODULE="z39.50"
|
---|
985 | ILLMODULE="ill"
|
---|
986 | ILLLIB=../ill/libill.a
|
---|
987 | ASN_MAKEFILES="z39.50/Makefile ill/Makefile"
|
---|
988 | cp -f include/yaz/z-proto.h include/yaz/proto.h
|
---|
989 | else
|
---|
990 | ILLMODULE=""
|
---|
991 | ASNMODULE=asn
|
---|
992 | ILLLIB=""
|
---|
993 | ASN_MAKEFILES="asn/Makefile"
|
---|
994 | cp -f include/yaz/prt-proto.h include/yaz/proto.h
|
---|
995 | fi
|
---|
996 | checkBoth=0
|
---|
997 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
998 | echo "configure:999: checking for connect" >&5
|
---|
999 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
1000 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1001 | else
|
---|
1002 | cat > conftest.$ac_ext <<EOF
|
---|
1003 | #line 1004 "configure"
|
---|
1004 | #include "confdefs.h"
|
---|
1005 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1006 | which can conflict with char connect(); below. */
|
---|
1007 | #include <assert.h>
|
---|
1008 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1009 | /* We use char because int might match the return type of a gcc2
|
---|
1010 | builtin and then its argument prototype would still apply. */
|
---|
1011 | char connect();
|
---|
1012 |
|
---|
1013 | int main() {
|
---|
1014 |
|
---|
1015 | /* The GNU C library defines this for functions which it implements
|
---|
1016 | to always fail with ENOSYS. Some functions are actually named
|
---|
1017 | something starting with __ and the normal name is an alias. */
|
---|
1018 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
1019 | choke me
|
---|
1020 | #else
|
---|
1021 | connect();
|
---|
1022 | #endif
|
---|
1023 |
|
---|
1024 | ; return 0; }
|
---|
1025 | EOF
|
---|
1026 | if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1027 | rm -rf conftest*
|
---|
1028 | eval "ac_cv_func_connect=yes"
|
---|
1029 | else
|
---|
1030 | echo "configure: failed program was:" >&5
|
---|
1031 | cat conftest.$ac_ext >&5
|
---|
1032 | rm -rf conftest*
|
---|
1033 | eval "ac_cv_func_connect=no"
|
---|
1034 | fi
|
---|
1035 | rm -f conftest*
|
---|
1036 | fi
|
---|
1037 |
|
---|
1038 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
1039 | echo "$ac_t""yes" 1>&6
|
---|
1040 | :
|
---|
1041 | else
|
---|
1042 | echo "$ac_t""no" 1>&6
|
---|
1043 | fi
|
---|
1044 |
|
---|
1045 | if test "$ac_cv_func_connect" = "no"; then
|
---|
1046 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
|
---|
1047 | echo "configure:1048: checking for main in -lsocket" >&5
|
---|
1048 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
|
---|
1049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1050 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1051 | else
|
---|
1052 | ac_save_LIBS="$LIBS"
|
---|
1053 | LIBS="-lsocket $LIBS"
|
---|
1054 | cat > conftest.$ac_ext <<EOF
|
---|
1055 | #line 1056 "configure"
|
---|
1056 | #include "confdefs.h"
|
---|
1057 |
|
---|
1058 | int main() {
|
---|
1059 | main()
|
---|
1060 | ; return 0; }
|
---|
1061 | EOF
|
---|
1062 | if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1063 | rm -rf conftest*
|
---|
1064 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1065 | else
|
---|
1066 | echo "configure: failed program was:" >&5
|
---|
1067 | cat conftest.$ac_ext >&5
|
---|
1068 | rm -rf conftest*
|
---|
1069 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1070 | fi
|
---|
1071 | rm -f conftest*
|
---|
1072 | LIBS="$ac_save_LIBS"
|
---|
1073 |
|
---|
1074 | fi
|
---|
1075 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1076 | echo "$ac_t""yes" 1>&6
|
---|
1077 | LIBS="$LIBS -lsocket"
|
---|
1078 | else
|
---|
1079 | echo "$ac_t""no" 1>&6
|
---|
1080 | checkBoth=1
|
---|
1081 | fi
|
---|
1082 |
|
---|
1083 | fi
|
---|
1084 | if test "$checkBoth" = "1"; then
|
---|
1085 | oldLibs=$LIBS
|
---|
1086 | LIBS="$LIBS -lsocket -lnsl"
|
---|
1087 | echo $ac_n "checking for accept""... $ac_c" 1>&6
|
---|
1088 | echo "configure:1089: checking for accept" >&5
|
---|
1089 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
|
---|
1090 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1091 | else
|
---|
1092 | cat > conftest.$ac_ext <<EOF
|
---|
1093 | #line 1094 "configure"
|
---|
1094 | #include "confdefs.h"
|
---|
1095 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1096 | which can conflict with char accept(); below. */
|
---|
1097 | #include <assert.h>
|
---|
1098 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1099 | /* We use char because int might match the return type of a gcc2
|
---|
1100 | builtin and then its argument prototype would still apply. */
|
---|
1101 | char accept();
|
---|
1102 |
|
---|
1103 | int main() {
|
---|
1104 |
|
---|
1105 | /* The GNU C library defines this for functions which it implements
|
---|
1106 | to always fail with ENOSYS. Some functions are actually named
|
---|
1107 | something starting with __ and the normal name is an alias. */
|
---|
1108 | #if defined (__stub_accept) || defined (__stub___accept)
|
---|
1109 | choke me
|
---|
1110 | #else
|
---|
1111 | accept();
|
---|
1112 | #endif
|
---|
1113 |
|
---|
1114 | ; return 0; }
|
---|
1115 | EOF
|
---|
1116 | if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1117 | rm -rf conftest*
|
---|
1118 | eval "ac_cv_func_accept=yes"
|
---|
1119 | else
|
---|
1120 | echo "configure: failed program was:" >&5
|
---|
1121 | cat conftest.$ac_ext >&5
|
---|
1122 | rm -rf conftest*
|
---|
1123 | eval "ac_cv_func_accept=no"
|
---|
1124 | fi
|
---|
1125 | rm -f conftest*
|
---|
1126 | fi
|
---|
1127 |
|
---|
1128 | if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
|
---|
1129 | echo "$ac_t""yes" 1>&6
|
---|
1130 | :
|
---|
1131 | else
|
---|
1132 | echo "$ac_t""no" 1>&6
|
---|
1133 | LIBS=$oldLibs
|
---|
1134 | fi
|
---|
1135 |
|
---|
1136 | fi
|
---|
1137 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
---|
1138 | echo "configure:1139: checking for gethostbyname" >&5
|
---|
1139 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
---|
1140 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1141 | else
|
---|
1142 | cat > conftest.$ac_ext <<EOF
|
---|
1143 | #line 1144 "configure"
|
---|
1144 | #include "confdefs.h"
|
---|
1145 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1146 | which can conflict with char gethostbyname(); below. */
|
---|
1147 | #include <assert.h>
|
---|
1148 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1149 | /* We use char because int might match the return type of a gcc2
|
---|
1150 | builtin and then its argument prototype would still apply. */
|
---|
1151 | char gethostbyname();
|
---|
1152 |
|
---|
1153 | int main() {
|
---|
1154 |
|
---|
1155 | /* The GNU C library defines this for functions which it implements
|
---|
1156 | to always fail with ENOSYS. Some functions are actually named
|
---|
1157 | something starting with __ and the normal name is an alias. */
|
---|
1158 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
1159 | choke me
|
---|
1160 | #else
|
---|
1161 | gethostbyname();
|
---|
1162 | #endif
|
---|
1163 |
|
---|
1164 | ; return 0; }
|
---|
1165 | EOF
|
---|
1166 | if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1167 | rm -rf conftest*
|
---|
1168 | eval "ac_cv_func_gethostbyname=yes"
|
---|
1169 | else
|
---|
1170 | echo "configure: failed program was:" >&5
|
---|
1171 | cat conftest.$ac_ext >&5
|
---|
1172 | rm -rf conftest*
|
---|
1173 | eval "ac_cv_func_gethostbyname=no"
|
---|
1174 | fi
|
---|
1175 | rm -f conftest*
|
---|
1176 | fi
|
---|
1177 |
|
---|
1178 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
---|
1179 | echo "$ac_t""yes" 1>&6
|
---|
1180 | :
|
---|
1181 | else
|
---|
1182 | echo "$ac_t""no" 1>&6
|
---|
1183 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
---|
1184 | echo "configure:1185: checking for main in -lnsl" >&5
|
---|
1185 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
---|
1186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1187 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1188 | else
|
---|
1189 | ac_save_LIBS="$LIBS"
|
---|
1190 | LIBS="-lnsl $LIBS"
|
---|
1191 | cat > conftest.$ac_ext <<EOF
|
---|
1192 | #line 1193 "configure"
|
---|
1193 | #include "confdefs.h"
|
---|
1194 |
|
---|
1195 | int main() {
|
---|
1196 | main()
|
---|
1197 | ; return 0; }
|
---|
1198 | EOF
|
---|
1199 | if { (eval echo configure:1200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1200 | rm -rf conftest*
|
---|
1201 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1202 | else
|
---|
1203 | echo "configure: failed program was:" >&5
|
---|
1204 | cat conftest.$ac_ext >&5
|
---|
1205 | rm -rf conftest*
|
---|
1206 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1207 | fi
|
---|
1208 | rm -f conftest*
|
---|
1209 | LIBS="$ac_save_LIBS"
|
---|
1210 |
|
---|
1211 | fi
|
---|
1212 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1213 | echo "$ac_t""yes" 1>&6
|
---|
1214 | LIBS="$LIBS -lnsl"
|
---|
1215 | else
|
---|
1216 | echo "$ac_t""no" 1>&6
|
---|
1217 | fi
|
---|
1218 |
|
---|
1219 | fi
|
---|
1220 |
|
---|
1221 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
---|
1222 | echo "configure:1223: checking for readline in -lreadline" >&5
|
---|
1223 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
---|
1224 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1225 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1226 | else
|
---|
1227 | ac_save_LIBS="$LIBS"
|
---|
1228 | LIBS="-lreadline $LIBS"
|
---|
1229 | cat > conftest.$ac_ext <<EOF
|
---|
1230 | #line 1231 "configure"
|
---|
1231 | #include "confdefs.h"
|
---|
1232 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1233 | /* We use char because int might match the return type of a gcc2
|
---|
1234 | builtin and then its argument prototype would still apply. */
|
---|
1235 | char readline();
|
---|
1236 |
|
---|
1237 | int main() {
|
---|
1238 | readline()
|
---|
1239 | ; return 0; }
|
---|
1240 | EOF
|
---|
1241 | if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1242 | rm -rf conftest*
|
---|
1243 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1244 | else
|
---|
1245 | echo "configure: failed program was:" >&5
|
---|
1246 | cat conftest.$ac_ext >&5
|
---|
1247 | rm -rf conftest*
|
---|
1248 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1249 | fi
|
---|
1250 | rm -f conftest*
|
---|
1251 | LIBS="$ac_save_LIBS"
|
---|
1252 |
|
---|
1253 | fi
|
---|
1254 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1255 | echo "$ac_t""yes" 1>&6
|
---|
1256 | LIBS="$LIBS -lreadline"
|
---|
1257 | else
|
---|
1258 | echo "$ac_t""no" 1>&6
|
---|
1259 | fi
|
---|
1260 |
|
---|
1261 | if test "$ac_cv_lib_readline_readline" = "no"; then
|
---|
1262 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
---|
1263 | echo "configure:1264: checking for readline in -lreadline" >&5
|
---|
1264 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
---|
1265 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1266 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1267 | else
|
---|
1268 | ac_save_LIBS="$LIBS"
|
---|
1269 | LIBS="-lreadline $LIBS"
|
---|
1270 | cat > conftest.$ac_ext <<EOF
|
---|
1271 | #line 1272 "configure"
|
---|
1272 | #include "confdefs.h"
|
---|
1273 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1274 | /* We use char because int might match the return type of a gcc2
|
---|
1275 | builtin and then its argument prototype would still apply. */
|
---|
1276 | char readline();
|
---|
1277 |
|
---|
1278 | int main() {
|
---|
1279 | readline()
|
---|
1280 | ; return 0; }
|
---|
1281 | EOF
|
---|
1282 | if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1283 | rm -rf conftest*
|
---|
1284 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1285 | else
|
---|
1286 | echo "configure: failed program was:" >&5
|
---|
1287 | cat conftest.$ac_ext >&5
|
---|
1288 | rm -rf conftest*
|
---|
1289 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1290 | fi
|
---|
1291 | rm -f conftest*
|
---|
1292 | LIBS="$ac_save_LIBS"
|
---|
1293 |
|
---|
1294 | fi
|
---|
1295 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1296 | echo "$ac_t""yes" 1>&6
|
---|
1297 | LIBS="$LIBS -lreadline -ltermcap"
|
---|
1298 | else
|
---|
1299 | echo "$ac_t""no" 1>&6
|
---|
1300 | fi
|
---|
1301 |
|
---|
1302 | fi
|
---|
1303 | echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
|
---|
1304 | echo "configure:1305: checking for add_history in -lhistory" >&5
|
---|
1305 | ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
|
---|
1306 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1307 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1308 | else
|
---|
1309 | ac_save_LIBS="$LIBS"
|
---|
1310 | LIBS="-lhistory $LIBS"
|
---|
1311 | cat > conftest.$ac_ext <<EOF
|
---|
1312 | #line 1313 "configure"
|
---|
1313 | #include "confdefs.h"
|
---|
1314 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1315 | /* We use char because int might match the return type of a gcc2
|
---|
1316 | builtin and then its argument prototype would still apply. */
|
---|
1317 | char add_history();
|
---|
1318 |
|
---|
1319 | int main() {
|
---|
1320 | add_history()
|
---|
1321 | ; return 0; }
|
---|
1322 | EOF
|
---|
1323 | if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1324 | rm -rf conftest*
|
---|
1325 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1326 | else
|
---|
1327 | echo "configure: failed program was:" >&5
|
---|
1328 | cat conftest.$ac_ext >&5
|
---|
1329 | rm -rf conftest*
|
---|
1330 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1331 | fi
|
---|
1332 | rm -f conftest*
|
---|
1333 | LIBS="$ac_save_LIBS"
|
---|
1334 |
|
---|
1335 | fi
|
---|
1336 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1337 | echo "$ac_t""yes" 1>&6
|
---|
1338 | LIBS="$LIBS -lhistory"
|
---|
1339 | else
|
---|
1340 | echo "$ac_t""no" 1>&6
|
---|
1341 | fi
|
---|
1342 |
|
---|
1343 | if test "$ac_cv_lib_readline_readline" = "yes"; then
|
---|
1344 | for ac_hdr in readline/readline.h readline/history.h
|
---|
1345 | do
|
---|
1346 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1347 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1348 | echo "configure:1349: checking for $ac_hdr" >&5
|
---|
1349 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1350 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1351 | else
|
---|
1352 | cat > conftest.$ac_ext <<EOF
|
---|
1353 | #line 1354 "configure"
|
---|
1354 | #include "confdefs.h"
|
---|
1355 | #include <$ac_hdr>
|
---|
1356 | EOF
|
---|
1357 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1358 | { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1359 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1360 | if test -z "$ac_err"; then
|
---|
1361 | rm -rf conftest*
|
---|
1362 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1363 | else
|
---|
1364 | echo "$ac_err" >&5
|
---|
1365 | echo "configure: failed program was:" >&5
|
---|
1366 | cat conftest.$ac_ext >&5
|
---|
1367 | rm -rf conftest*
|
---|
1368 | eval "ac_cv_header_$ac_safe=no"
|
---|
1369 | fi
|
---|
1370 | rm -f conftest*
|
---|
1371 | fi
|
---|
1372 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1373 | echo "$ac_t""yes" 1>&6
|
---|
1374 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1375 | cat >> confdefs.h <<EOF
|
---|
1376 | #define $ac_tr_hdr 1
|
---|
1377 | EOF
|
---|
1378 |
|
---|
1379 | else
|
---|
1380 | echo "$ac_t""no" 1>&6
|
---|
1381 | fi
|
---|
1382 | done
|
---|
1383 |
|
---|
1384 | fi
|
---|
1385 | # Check whether --enable-tcpd or --disable-tcpd was given.
|
---|
1386 | if test "${enable_tcpd+set}" = set; then
|
---|
1387 | enableval="$enable_tcpd"
|
---|
1388 | :
|
---|
1389 | fi
|
---|
1390 |
|
---|
1391 | if test "$enable_tcpd" = "yes"; then
|
---|
1392 | echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
|
---|
1393 | echo "configure:1394: checking for working tcpd.h" >&5
|
---|
1394 | oldLibs=$LIBS
|
---|
1395 | LIBS="$LIBS -lwrap -lnsl"
|
---|
1396 | cat > conftest.$ac_ext <<EOF
|
---|
1397 | #line 1398 "configure"
|
---|
1398 | #include "confdefs.h"
|
---|
1399 | #include <syslog.h>
|
---|
1400 | #include <tcpd.h>
|
---|
1401 | int allow_severity = LOG_INFO;
|
---|
1402 | int deny_severity = LOG_WARNING;
|
---|
1403 | int main() {
|
---|
1404 | struct request_info request_info; int i;
|
---|
1405 | i = hosts_access(&request_info);
|
---|
1406 | ; return 0; }
|
---|
1407 | EOF
|
---|
1408 | if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1409 | rm -rf conftest*
|
---|
1410 | tcpd_ok=1
|
---|
1411 | else
|
---|
1412 | echo "configure: failed program was:" >&5
|
---|
1413 | cat conftest.$ac_ext >&5
|
---|
1414 | rm -rf conftest*
|
---|
1415 | tcpd_ok=0
|
---|
1416 | fi
|
---|
1417 | rm -f conftest*
|
---|
1418 | if test "$tcpd_ok" = "0"; then
|
---|
1419 | echo "$ac_t""no" 1>&6
|
---|
1420 | LIBS=$oldLibs
|
---|
1421 | else
|
---|
1422 | echo "$ac_t""yes" 1>&6
|
---|
1423 | cat >> confdefs.h <<\EOF
|
---|
1424 | #define HAVE_TCPD_H 1
|
---|
1425 | EOF
|
---|
1426 |
|
---|
1427 | fi
|
---|
1428 | fi
|
---|
1429 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1430 | echo "configure:1431: checking for ANSI C header files" >&5
|
---|
1431 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1432 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1433 | else
|
---|
1434 | cat > conftest.$ac_ext <<EOF
|
---|
1435 | #line 1436 "configure"
|
---|
1436 | #include "confdefs.h"
|
---|
1437 | #include <stdlib.h>
|
---|
1438 | #include <stdarg.h>
|
---|
1439 | #include <string.h>
|
---|
1440 | #include <float.h>
|
---|
1441 | EOF
|
---|
1442 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1443 | { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1444 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1445 | if test -z "$ac_err"; then
|
---|
1446 | rm -rf conftest*
|
---|
1447 | ac_cv_header_stdc=yes
|
---|
1448 | else
|
---|
1449 | echo "$ac_err" >&5
|
---|
1450 | echo "configure: failed program was:" >&5
|
---|
1451 | cat conftest.$ac_ext >&5
|
---|
1452 | rm -rf conftest*
|
---|
1453 | ac_cv_header_stdc=no
|
---|
1454 | fi
|
---|
1455 | rm -f conftest*
|
---|
1456 |
|
---|
1457 | if test $ac_cv_header_stdc = yes; then
|
---|
1458 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1459 | cat > conftest.$ac_ext <<EOF
|
---|
1460 | #line 1461 "configure"
|
---|
1461 | #include "confdefs.h"
|
---|
1462 | #include <string.h>
|
---|
1463 | EOF
|
---|
1464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1465 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1466 | :
|
---|
1467 | else
|
---|
1468 | rm -rf conftest*
|
---|
1469 | ac_cv_header_stdc=no
|
---|
1470 | fi
|
---|
1471 | rm -f conftest*
|
---|
1472 |
|
---|
1473 | fi
|
---|
1474 |
|
---|
1475 | if test $ac_cv_header_stdc = yes; then
|
---|
1476 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1477 | cat > conftest.$ac_ext <<EOF
|
---|
1478 | #line 1479 "configure"
|
---|
1479 | #include "confdefs.h"
|
---|
1480 | #include <stdlib.h>
|
---|
1481 | EOF
|
---|
1482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1483 | egrep "free" >/dev/null 2>&1; then
|
---|
1484 | :
|
---|
1485 | else
|
---|
1486 | rm -rf conftest*
|
---|
1487 | ac_cv_header_stdc=no
|
---|
1488 | fi
|
---|
1489 | rm -f conftest*
|
---|
1490 |
|
---|
1491 | fi
|
---|
1492 |
|
---|
1493 | if test $ac_cv_header_stdc = yes; then
|
---|
1494 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1495 | if test "$cross_compiling" = yes; then
|
---|
1496 | :
|
---|
1497 | else
|
---|
1498 | cat > conftest.$ac_ext <<EOF
|
---|
1499 | #line 1500 "configure"
|
---|
1500 | #include "confdefs.h"
|
---|
1501 | #include <ctype.h>
|
---|
1502 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1503 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1504 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1505 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1506 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1507 | exit (0); }
|
---|
1508 |
|
---|
1509 | EOF
|
---|
1510 | if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1511 | then
|
---|
1512 | :
|
---|
1513 | else
|
---|
1514 | echo "configure: failed program was:" >&5
|
---|
1515 | cat conftest.$ac_ext >&5
|
---|
1516 | rm -fr conftest*
|
---|
1517 | ac_cv_header_stdc=no
|
---|
1518 | fi
|
---|
1519 | rm -fr conftest*
|
---|
1520 | fi
|
---|
1521 |
|
---|
1522 | fi
|
---|
1523 | fi
|
---|
1524 |
|
---|
1525 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1526 | if test $ac_cv_header_stdc = yes; then
|
---|
1527 | cat >> confdefs.h <<\EOF
|
---|
1528 | #define STDC_HEADERS 1
|
---|
1529 | EOF
|
---|
1530 |
|
---|
1531 | fi
|
---|
1532 |
|
---|
1533 | if test "$ac_cv_header_stdc" = "no"; then
|
---|
1534 | echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
|
---|
1535 | fi
|
---|
1536 | # Check whether --enable-threads or --disable-threads was given.
|
---|
1537 | if test "${enable_threads+set}" = set; then
|
---|
1538 | enableval="$enable_threads"
|
---|
1539 | :
|
---|
1540 | fi
|
---|
1541 |
|
---|
1542 | if test "$enable_threads" = "yes"; then
|
---|
1543 | for ac_hdr in pthread.h threads.h
|
---|
1544 | do
|
---|
1545 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1546 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1547 | echo "configure:1548: checking for $ac_hdr" >&5
|
---|
1548 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1549 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1550 | else
|
---|
1551 | cat > conftest.$ac_ext <<EOF
|
---|
1552 | #line 1553 "configure"
|
---|
1553 | #include "confdefs.h"
|
---|
1554 | #include <$ac_hdr>
|
---|
1555 | EOF
|
---|
1556 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1557 | { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1558 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1559 | if test -z "$ac_err"; then
|
---|
1560 | rm -rf conftest*
|
---|
1561 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1562 | else
|
---|
1563 | echo "$ac_err" >&5
|
---|
1564 | echo "configure: failed program was:" >&5
|
---|
1565 | cat conftest.$ac_ext >&5
|
---|
1566 | rm -rf conftest*
|
---|
1567 | eval "ac_cv_header_$ac_safe=no"
|
---|
1568 | fi
|
---|
1569 | rm -f conftest*
|
---|
1570 | fi
|
---|
1571 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1572 | echo "$ac_t""yes" 1>&6
|
---|
1573 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1574 | cat >> confdefs.h <<EOF
|
---|
1575 | #define $ac_tr_hdr 1
|
---|
1576 | EOF
|
---|
1577 |
|
---|
1578 | else
|
---|
1579 | echo "$ac_t""no" 1>&6
|
---|
1580 | fi
|
---|
1581 | done
|
---|
1582 |
|
---|
1583 | echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
|
---|
1584 | echo "configure:1585: checking for pthread_mutex_lock" >&5
|
---|
1585 | if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
|
---|
1586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1587 | else
|
---|
1588 | cat > conftest.$ac_ext <<EOF
|
---|
1589 | #line 1590 "configure"
|
---|
1590 | #include "confdefs.h"
|
---|
1591 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1592 | which can conflict with char pthread_mutex_lock(); below. */
|
---|
1593 | #include <assert.h>
|
---|
1594 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1595 | /* We use char because int might match the return type of a gcc2
|
---|
1596 | builtin and then its argument prototype would still apply. */
|
---|
1597 | char pthread_mutex_lock();
|
---|
1598 |
|
---|
1599 | int main() {
|
---|
1600 |
|
---|
1601 | /* The GNU C library defines this for functions which it implements
|
---|
1602 | to always fail with ENOSYS. Some functions are actually named
|
---|
1603 | something starting with __ and the normal name is an alias. */
|
---|
1604 | #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
|
---|
1605 | choke me
|
---|
1606 | #else
|
---|
1607 | pthread_mutex_lock();
|
---|
1608 | #endif
|
---|
1609 |
|
---|
1610 | ; return 0; }
|
---|
1611 | EOF
|
---|
1612 | if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1613 | rm -rf conftest*
|
---|
1614 | eval "ac_cv_func_pthread_mutex_lock=yes"
|
---|
1615 | else
|
---|
1616 | echo "configure: failed program was:" >&5
|
---|
1617 | cat conftest.$ac_ext >&5
|
---|
1618 | rm -rf conftest*
|
---|
1619 | eval "ac_cv_func_pthread_mutex_lock=no"
|
---|
1620 | fi
|
---|
1621 | rm -f conftest*
|
---|
1622 | fi
|
---|
1623 |
|
---|
1624 | if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
|
---|
1625 | echo "$ac_t""yes" 1>&6
|
---|
1626 | :
|
---|
1627 | else
|
---|
1628 | echo "$ac_t""no" 1>&6
|
---|
1629 | fi
|
---|
1630 |
|
---|
1631 | if test "$ac_cv_func_pthread_mutex_lock" = "no"; then
|
---|
1632 | echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
|
---|
1633 | echo "configure:1634: checking for main in -lpthread" >&5
|
---|
1634 | ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
|
---|
1635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1636 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1637 | else
|
---|
1638 | ac_save_LIBS="$LIBS"
|
---|
1639 | LIBS="-lpthread $LIBS"
|
---|
1640 | cat > conftest.$ac_ext <<EOF
|
---|
1641 | #line 1642 "configure"
|
---|
1642 | #include "confdefs.h"
|
---|
1643 |
|
---|
1644 | int main() {
|
---|
1645 | main()
|
---|
1646 | ; return 0; }
|
---|
1647 | EOF
|
---|
1648 | if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1649 | rm -rf conftest*
|
---|
1650 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1651 | else
|
---|
1652 | echo "configure: failed program was:" >&5
|
---|
1653 | cat conftest.$ac_ext >&5
|
---|
1654 | rm -rf conftest*
|
---|
1655 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1656 | fi
|
---|
1657 | rm -f conftest*
|
---|
1658 | LIBS="$ac_save_LIBS"
|
---|
1659 |
|
---|
1660 | fi
|
---|
1661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1662 | echo "$ac_t""yes" 1>&6
|
---|
1663 | ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1664 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1665 | cat >> confdefs.h <<EOF
|
---|
1666 | #define $ac_tr_lib 1
|
---|
1667 | EOF
|
---|
1668 |
|
---|
1669 | LIBS="-lpthread $LIBS"
|
---|
1670 |
|
---|
1671 | else
|
---|
1672 | echo "$ac_t""no" 1>&6
|
---|
1673 | fi
|
---|
1674 |
|
---|
1675 | fi
|
---|
1676 | cat >> confdefs.h <<\EOF
|
---|
1677 | #define _REENTRANT 1
|
---|
1678 | EOF
|
---|
1679 |
|
---|
1680 | fi
|
---|
1681 | SUBDIRS_VAR="util odr $ASNMODULE zutil comstack ccl tab include lib client $DOCMODULE"
|
---|
1682 |
|
---|
1683 | trap '' 1 2 15
|
---|
1684 | cat > confcache <<\EOF
|
---|
1685 | # This file is a shell script that caches the results of configure
|
---|
1686 | # tests run on this system so they can be shared between configure
|
---|
1687 | # scripts and configure runs. It is not useful on other systems.
|
---|
1688 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
1689 | #
|
---|
1690 | # By default, configure uses ./config.cache as the cache file,
|
---|
1691 | # creating it if it does not exist already. You can give configure
|
---|
1692 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
1693 | # what configure does when it calls configure scripts in
|
---|
1694 | # subdirectories, so they share the cache.
|
---|
1695 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
1696 | # config.status only pays attention to the cache file if you give it the
|
---|
1697 | # --recheck option to rerun configure.
|
---|
1698 | #
|
---|
1699 | EOF
|
---|
1700 | # The following way of writing the cache mishandles newlines in values,
|
---|
1701 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
1702 | # So, don't put newlines in cache variables' values.
|
---|
1703 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
1704 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
1705 | (set) 2>&1 |
|
---|
1706 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
1707 | *ac_space=\ *)
|
---|
1708 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
1709 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
1710 | sed -n \
|
---|
1711 | -e "s/'/'\\\\''/g" \
|
---|
1712 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
1713 | ;;
|
---|
1714 | *)
|
---|
1715 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
1716 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
1717 | ;;
|
---|
1718 | esac >> confcache
|
---|
1719 | if cmp -s $cache_file confcache; then
|
---|
1720 | :
|
---|
1721 | else
|
---|
1722 | if test -w $cache_file; then
|
---|
1723 | echo "updating cache $cache_file"
|
---|
1724 | cat confcache > $cache_file
|
---|
1725 | else
|
---|
1726 | echo "not updating unwritable cache $cache_file"
|
---|
1727 | fi
|
---|
1728 | fi
|
---|
1729 | rm -f confcache
|
---|
1730 |
|
---|
1731 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
1732 |
|
---|
1733 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
1734 | # Let make expand exec_prefix.
|
---|
1735 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
1736 |
|
---|
1737 | # Any assignment to VPATH causes Sun make to only execute
|
---|
1738 | # the first set of double-colon rules, so remove it if not needed.
|
---|
1739 | # If there is a colon in the path, we need to keep it.
|
---|
1740 | if test "x$srcdir" = x.; then
|
---|
1741 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
1742 | fi
|
---|
1743 |
|
---|
1744 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
1745 |
|
---|
1746 | # Transform confdefs.h into DEFS.
|
---|
1747 | # Protect against shell expansion while executing Makefile rules.
|
---|
1748 | # Protect against Makefile macro expansion.
|
---|
1749 | cat > conftest.defs <<\EOF
|
---|
1750 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
---|
1751 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
---|
1752 | s%\[%\\&%g
|
---|
1753 | s%\]%\\&%g
|
---|
1754 | s%\$%$$%g
|
---|
1755 | EOF
|
---|
1756 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
---|
1757 | rm -f conftest.defs
|
---|
1758 |
|
---|
1759 |
|
---|
1760 | # Without the "./", some shells look in PATH for config.status.
|
---|
1761 | : ${CONFIG_STATUS=./config.status}
|
---|
1762 |
|
---|
1763 | echo creating $CONFIG_STATUS
|
---|
1764 | rm -f $CONFIG_STATUS
|
---|
1765 | cat > $CONFIG_STATUS <<EOF
|
---|
1766 | #! /bin/sh
|
---|
1767 | # Generated automatically by configure.
|
---|
1768 | # Run this file to recreate the current configuration.
|
---|
1769 | # This directory was configured as follows,
|
---|
1770 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
1771 | #
|
---|
1772 | # $0 $ac_configure_args
|
---|
1773 | #
|
---|
1774 | # Compiler output produced by configure, useful for debugging
|
---|
1775 | # configure, is in ./config.log if it exists.
|
---|
1776 |
|
---|
1777 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
1778 | for ac_option
|
---|
1779 | do
|
---|
1780 | case "\$ac_option" in
|
---|
1781 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
1782 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
1783 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
1784 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
1785 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
1786 | exit 0 ;;
|
---|
1787 | -help | --help | --hel | --he | --h)
|
---|
1788 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
1789 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
1790 | esac
|
---|
1791 | done
|
---|
1792 |
|
---|
1793 | ac_given_srcdir=$srcdir
|
---|
1794 |
|
---|
1795 | trap 'rm -fr `echo "Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
1796 | EOF
|
---|
1797 | cat >> $CONFIG_STATUS <<EOF
|
---|
1798 |
|
---|
1799 | # Protect against being on the right side of a sed subst in config.status.
|
---|
1800 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
1801 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
1802 | $ac_vpsub
|
---|
1803 | $extrasub
|
---|
1804 | s%@SHELL@%$SHELL%g
|
---|
1805 | s%@CFLAGS@%$CFLAGS%g
|
---|
1806 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
1807 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
1808 | s%@FFLAGS@%$FFLAGS%g
|
---|
1809 | s%@DEFS@%$DEFS%g
|
---|
1810 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
1811 | s%@LIBS@%$LIBS%g
|
---|
1812 | s%@exec_prefix@%$exec_prefix%g
|
---|
1813 | s%@prefix@%$prefix%g
|
---|
1814 | s%@program_transform_name@%$program_transform_name%g
|
---|
1815 | s%@bindir@%$bindir%g
|
---|
1816 | s%@sbindir@%$sbindir%g
|
---|
1817 | s%@libexecdir@%$libexecdir%g
|
---|
1818 | s%@datadir@%$datadir%g
|
---|
1819 | s%@sysconfdir@%$sysconfdir%g
|
---|
1820 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
1821 | s%@localstatedir@%$localstatedir%g
|
---|
1822 | s%@libdir@%$libdir%g
|
---|
1823 | s%@includedir@%$includedir%g
|
---|
1824 | s%@oldincludedir@%$oldincludedir%g
|
---|
1825 | s%@infodir@%$infodir%g
|
---|
1826 | s%@mandir@%$mandir%g
|
---|
1827 | s%@CC@%$CC%g
|
---|
1828 | s%@CPP@%$CPP%g
|
---|
1829 | s%@RANLIB@%$RANLIB%g
|
---|
1830 | s%@have_sgml2txt@%$have_sgml2txt%g
|
---|
1831 | s%@have_sgml2latex@%$have_sgml2latex%g
|
---|
1832 | s%@have_sgml2html@%$have_sgml2html%g
|
---|
1833 | s%@ASNMODULE@%$ASNMODULE%g
|
---|
1834 | s%@ILLMODULE@%$ILLMODULE%g
|
---|
1835 | s%@ILLLIB@%$ILLLIB%g
|
---|
1836 | s%@SUBDIRS_VAR@%$SUBDIRS_VAR%g
|
---|
1837 |
|
---|
1838 | CEOF
|
---|
1839 | EOF
|
---|
1840 |
|
---|
1841 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1842 |
|
---|
1843 | # Split the substitutions into bite-sized pieces for seds with
|
---|
1844 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
1845 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
1846 | ac_file=1 # Number of current file.
|
---|
1847 | ac_beg=1 # First line for current file.
|
---|
1848 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
1849 | ac_more_lines=:
|
---|
1850 | ac_sed_cmds=""
|
---|
1851 | while $ac_more_lines; do
|
---|
1852 | if test $ac_beg -gt 1; then
|
---|
1853 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
1854 | else
|
---|
1855 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
1856 | fi
|
---|
1857 | if test ! -s conftest.s$ac_file; then
|
---|
1858 | ac_more_lines=false
|
---|
1859 | rm -f conftest.s$ac_file
|
---|
1860 | else
|
---|
1861 | if test -z "$ac_sed_cmds"; then
|
---|
1862 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
1863 | else
|
---|
1864 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
1865 | fi
|
---|
1866 | ac_file=`expr $ac_file + 1`
|
---|
1867 | ac_beg=$ac_end
|
---|
1868 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
1869 | fi
|
---|
1870 | done
|
---|
1871 | if test -z "$ac_sed_cmds"; then
|
---|
1872 | ac_sed_cmds=cat
|
---|
1873 | fi
|
---|
1874 | EOF
|
---|
1875 |
|
---|
1876 | cat >> $CONFIG_STATUS <<EOF
|
---|
1877 |
|
---|
1878 | CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile"}
|
---|
1879 | EOF
|
---|
1880 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1881 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
1882 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
1883 | case "$ac_file" in
|
---|
1884 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
1885 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
1886 | *) ac_file_in="${ac_file}.in" ;;
|
---|
1887 | esac
|
---|
1888 |
|
---|
1889 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
1890 |
|
---|
1891 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
1892 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
1893 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
1894 | # The file is in a subdirectory.
|
---|
1895 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
1896 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
1897 | # A "../" for each directory in $ac_dir_suffix.
|
---|
1898 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
1899 | else
|
---|
1900 | ac_dir_suffix= ac_dots=
|
---|
1901 | fi
|
---|
1902 |
|
---|
1903 | case "$ac_given_srcdir" in
|
---|
1904 | .) srcdir=.
|
---|
1905 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
1906 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
1907 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
1908 | *) # Relative path.
|
---|
1909 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
1910 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
1911 | esac
|
---|
1912 |
|
---|
1913 |
|
---|
1914 | echo creating "$ac_file"
|
---|
1915 | rm -f "$ac_file"
|
---|
1916 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
1917 | case "$ac_file" in
|
---|
1918 | *Makefile*) ac_comsub="1i\\
|
---|
1919 | # $configure_input" ;;
|
---|
1920 | *) ac_comsub= ;;
|
---|
1921 | esac
|
---|
1922 |
|
---|
1923 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
1924 | sed -e "$ac_comsub
|
---|
1925 | s%@configure_input@%$configure_input%g
|
---|
1926 | s%@srcdir@%$srcdir%g
|
---|
1927 | s%@top_srcdir@%$top_srcdir%g
|
---|
1928 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
1929 | fi; done
|
---|
1930 | rm -f conftest.s*
|
---|
1931 |
|
---|
1932 | EOF
|
---|
1933 | cat >> $CONFIG_STATUS <<EOF
|
---|
1934 |
|
---|
1935 | EOF
|
---|
1936 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1937 |
|
---|
1938 | exit 0
|
---|
1939 | EOF
|
---|
1940 | chmod +x $CONFIG_STATUS
|
---|
1941 | rm -fr confdefs* $ac_clean_files
|
---|
1942 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
1943 |
|
---|
1944 |
|
---|
1945 |
|
---|