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 | --with-auxdir=DIR path to autoconf auxiliary files"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
18 | (and sometimes confusing) to the casual installer"
|
---|
19 | ac_help="$ac_help
|
---|
20 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
---|
21 | ac_help="$ac_help
|
---|
22 | --enable-static[=PKGS] build static libraries [default=yes]"
|
---|
23 | ac_help="$ac_help
|
---|
24 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
---|
25 | ac_help="$ac_help
|
---|
26 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
---|
27 | ac_help="$ac_help
|
---|
28 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
---|
29 | ac_help="$ac_help
|
---|
30 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
---|
31 | ac_help="$ac_help
|
---|
32 | --enable-java-gc=TYPE choose garbage collector [boehm]"
|
---|
33 | ac_help="$ac_help
|
---|
34 | --enable-ltdl-install install libltdl"
|
---|
35 |
|
---|
36 | # Initialize some variables set by options.
|
---|
37 | # The variables have the same names as the options, with
|
---|
38 | # dashes changed to underlines.
|
---|
39 | build=NONE
|
---|
40 | cache_file=./config.cache
|
---|
41 | exec_prefix=NONE
|
---|
42 | host=NONE
|
---|
43 | no_create=
|
---|
44 | nonopt=NONE
|
---|
45 | no_recursion=
|
---|
46 | prefix=NONE
|
---|
47 | program_prefix=NONE
|
---|
48 | program_suffix=NONE
|
---|
49 | program_transform_name=s,x,x,
|
---|
50 | silent=
|
---|
51 | site=
|
---|
52 | srcdir=
|
---|
53 | target=NONE
|
---|
54 | verbose=
|
---|
55 | x_includes=NONE
|
---|
56 | x_libraries=NONE
|
---|
57 | bindir='${exec_prefix}/bin'
|
---|
58 | sbindir='${exec_prefix}/sbin'
|
---|
59 | libexecdir='${exec_prefix}/libexec'
|
---|
60 | datadir='${prefix}/share'
|
---|
61 | sysconfdir='${prefix}/etc'
|
---|
62 | sharedstatedir='${prefix}/com'
|
---|
63 | localstatedir='${prefix}/var'
|
---|
64 | libdir='${exec_prefix}/lib'
|
---|
65 | includedir='${prefix}/include'
|
---|
66 | oldincludedir='/usr/include'
|
---|
67 | infodir='${prefix}/info'
|
---|
68 | mandir='${prefix}/man'
|
---|
69 |
|
---|
70 | # Initialize some other variables.
|
---|
71 | subdirs=
|
---|
72 | MFLAGS= MAKEFLAGS=
|
---|
73 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
74 | # Maximum number of lines to put in a shell here document.
|
---|
75 | ac_max_here_lines=12
|
---|
76 |
|
---|
77 | ac_prev=
|
---|
78 | for ac_option
|
---|
79 | do
|
---|
80 |
|
---|
81 | # If the previous option needs an argument, assign it.
|
---|
82 | if test -n "$ac_prev"; then
|
---|
83 | eval "$ac_prev=\$ac_option"
|
---|
84 | ac_prev=
|
---|
85 | continue
|
---|
86 | fi
|
---|
87 |
|
---|
88 | case "$ac_option" in
|
---|
89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
90 | *) ac_optarg= ;;
|
---|
91 | esac
|
---|
92 |
|
---|
93 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
94 |
|
---|
95 | case "$ac_option" in
|
---|
96 |
|
---|
97 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
98 | ac_prev=bindir ;;
|
---|
99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
100 | bindir="$ac_optarg" ;;
|
---|
101 |
|
---|
102 | -build | --build | --buil | --bui | --bu)
|
---|
103 | ac_prev=build ;;
|
---|
104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
105 | build="$ac_optarg" ;;
|
---|
106 |
|
---|
107 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
109 | ac_prev=cache_file ;;
|
---|
110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
112 | cache_file="$ac_optarg" ;;
|
---|
113 |
|
---|
114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
115 | ac_prev=datadir ;;
|
---|
116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
117 | | --da=*)
|
---|
118 | datadir="$ac_optarg" ;;
|
---|
119 |
|
---|
120 | -disable-* | --disable-*)
|
---|
121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
122 | # Reject names that are not valid shell variable names.
|
---|
123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
125 | fi
|
---|
126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
127 | eval "enable_${ac_feature}=no" ;;
|
---|
128 |
|
---|
129 | -enable-* | --enable-*)
|
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
131 | # Reject names that are not valid shell variable names.
|
---|
132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
134 | fi
|
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
136 | case "$ac_option" in
|
---|
137 | *=*) ;;
|
---|
138 | *) ac_optarg=yes ;;
|
---|
139 | esac
|
---|
140 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
141 |
|
---|
142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
144 | | --exec | --exe | --ex)
|
---|
145 | ac_prev=exec_prefix ;;
|
---|
146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
148 | | --exec=* | --exe=* | --ex=*)
|
---|
149 | exec_prefix="$ac_optarg" ;;
|
---|
150 |
|
---|
151 | -gas | --gas | --ga | --g)
|
---|
152 | # Obsolete; use --with-gas.
|
---|
153 | with_gas=yes ;;
|
---|
154 |
|
---|
155 | -help | --help | --hel | --he)
|
---|
156 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
157 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
158 | cat << EOF
|
---|
159 | Usage: configure [options] [host]
|
---|
160 | Options: [defaults in brackets after descriptions]
|
---|
161 | Configuration:
|
---|
162 | --cache-file=FILE cache test results in FILE
|
---|
163 | --help print this message
|
---|
164 | --no-create do not create output files
|
---|
165 | --quiet, --silent do not print \`checking...' messages
|
---|
166 | --version print the version of autoconf that created configure
|
---|
167 | Directory and file names:
|
---|
168 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
169 | [$ac_default_prefix]
|
---|
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
171 | [same as prefix]
|
---|
172 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
175 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
176 | [PREFIX/share]
|
---|
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
179 | [PREFIX/com]
|
---|
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
182 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
184 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
185 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
186 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
187 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
188 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
189 | --program-transform-name=PROGRAM
|
---|
190 | run sed PROGRAM on installed program names
|
---|
191 | EOF
|
---|
192 | cat << EOF
|
---|
193 | Host type:
|
---|
194 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
195 | --host=HOST configure for HOST [guessed]
|
---|
196 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
197 | Features and packages:
|
---|
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
202 | --x-includes=DIR X include files are in DIR
|
---|
203 | --x-libraries=DIR X library files are in DIR
|
---|
204 | EOF
|
---|
205 | if test -n "$ac_help"; then
|
---|
206 | echo "--enable and --with options recognized:$ac_help"
|
---|
207 | fi
|
---|
208 | exit 0 ;;
|
---|
209 |
|
---|
210 | -host | --host | --hos | --ho)
|
---|
211 | ac_prev=host ;;
|
---|
212 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
213 | host="$ac_optarg" ;;
|
---|
214 |
|
---|
215 | -includedir | --includedir | --includedi | --included | --include \
|
---|
216 | | --includ | --inclu | --incl | --inc)
|
---|
217 | ac_prev=includedir ;;
|
---|
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
219 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
220 | includedir="$ac_optarg" ;;
|
---|
221 |
|
---|
222 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
223 | ac_prev=infodir ;;
|
---|
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
225 | infodir="$ac_optarg" ;;
|
---|
226 |
|
---|
227 | -libdir | --libdir | --libdi | --libd)
|
---|
228 | ac_prev=libdir ;;
|
---|
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
230 | libdir="$ac_optarg" ;;
|
---|
231 |
|
---|
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
233 | | --libexe | --libex | --libe)
|
---|
234 | ac_prev=libexecdir ;;
|
---|
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
236 | | --libexe=* | --libex=* | --libe=*)
|
---|
237 | libexecdir="$ac_optarg" ;;
|
---|
238 |
|
---|
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
240 | | --localstate | --localstat | --localsta | --localst \
|
---|
241 | | --locals | --local | --loca | --loc | --lo)
|
---|
242 | ac_prev=localstatedir ;;
|
---|
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
246 | localstatedir="$ac_optarg" ;;
|
---|
247 |
|
---|
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
249 | ac_prev=mandir ;;
|
---|
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
251 | mandir="$ac_optarg" ;;
|
---|
252 |
|
---|
253 | -nfp | --nfp | --nf)
|
---|
254 | # Obsolete; use --without-fp.
|
---|
255 | with_fp=no ;;
|
---|
256 |
|
---|
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
258 | | --no-cr | --no-c)
|
---|
259 | no_create=yes ;;
|
---|
260 |
|
---|
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
263 | no_recursion=yes ;;
|
---|
264 |
|
---|
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
267 | | --oldin | --oldi | --old | --ol | --o)
|
---|
268 | ac_prev=oldincludedir ;;
|
---|
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
272 | oldincludedir="$ac_optarg" ;;
|
---|
273 |
|
---|
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
275 | ac_prev=prefix ;;
|
---|
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
277 | prefix="$ac_optarg" ;;
|
---|
278 |
|
---|
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
280 | | --program-pre | --program-pr | --program-p)
|
---|
281 | ac_prev=program_prefix ;;
|
---|
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
284 | program_prefix="$ac_optarg" ;;
|
---|
285 |
|
---|
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
287 | | --program-suf | --program-su | --program-s)
|
---|
288 | ac_prev=program_suffix ;;
|
---|
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
291 | program_suffix="$ac_optarg" ;;
|
---|
292 |
|
---|
293 | -program-transform-name | --program-transform-name \
|
---|
294 | | --program-transform-nam | --program-transform-na \
|
---|
295 | | --program-transform-n | --program-transform- \
|
---|
296 | | --program-transform | --program-transfor \
|
---|
297 | | --program-transfo | --program-transf \
|
---|
298 | | --program-trans | --program-tran \
|
---|
299 | | --progr-tra | --program-tr | --program-t)
|
---|
300 | ac_prev=program_transform_name ;;
|
---|
301 | -program-transform-name=* | --program-transform-name=* \
|
---|
302 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
303 | | --program-transform-n=* | --program-transform-=* \
|
---|
304 | | --program-transform=* | --program-transfor=* \
|
---|
305 | | --program-transfo=* | --program-transf=* \
|
---|
306 | | --program-trans=* | --program-tran=* \
|
---|
307 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
308 | program_transform_name="$ac_optarg" ;;
|
---|
309 |
|
---|
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
311 | | -silent | --silent | --silen | --sile | --sil)
|
---|
312 | silent=yes ;;
|
---|
313 |
|
---|
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
315 | ac_prev=sbindir ;;
|
---|
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
317 | | --sbi=* | --sb=*)
|
---|
318 | sbindir="$ac_optarg" ;;
|
---|
319 |
|
---|
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
322 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
323 | | --sha | --sh)
|
---|
324 | ac_prev=sharedstatedir ;;
|
---|
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
328 | | --sha=* | --sh=*)
|
---|
329 | sharedstatedir="$ac_optarg" ;;
|
---|
330 |
|
---|
331 | -site | --site | --sit)
|
---|
332 | ac_prev=site ;;
|
---|
333 | -site=* | --site=* | --sit=*)
|
---|
334 | site="$ac_optarg" ;;
|
---|
335 |
|
---|
336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
337 | ac_prev=srcdir ;;
|
---|
338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
339 | srcdir="$ac_optarg" ;;
|
---|
340 |
|
---|
341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
342 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
343 | ac_prev=sysconfdir ;;
|
---|
344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
346 | sysconfdir="$ac_optarg" ;;
|
---|
347 |
|
---|
348 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
349 | ac_prev=target ;;
|
---|
350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
351 | target="$ac_optarg" ;;
|
---|
352 |
|
---|
353 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
354 | verbose=yes ;;
|
---|
355 |
|
---|
356 | -version | --version | --versio | --versi | --vers)
|
---|
357 | echo "configure generated by autoconf version 2.13"
|
---|
358 | exit 0 ;;
|
---|
359 |
|
---|
360 | -with-* | --with-*)
|
---|
361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
362 | # Reject names that are not valid shell variable names.
|
---|
363 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
365 | fi
|
---|
366 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
367 | case "$ac_option" in
|
---|
368 | *=*) ;;
|
---|
369 | *) ac_optarg=yes ;;
|
---|
370 | esac
|
---|
371 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
372 |
|
---|
373 | -without-* | --without-*)
|
---|
374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
375 | # Reject names that are not valid shell variable names.
|
---|
376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
378 | fi
|
---|
379 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
380 | eval "with_${ac_package}=no" ;;
|
---|
381 |
|
---|
382 | --x)
|
---|
383 | # Obsolete; use --with-x.
|
---|
384 | with_x=yes ;;
|
---|
385 |
|
---|
386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
387 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
388 | ac_prev=x_includes ;;
|
---|
389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
391 | x_includes="$ac_optarg" ;;
|
---|
392 |
|
---|
393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
395 | ac_prev=x_libraries ;;
|
---|
396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
398 | x_libraries="$ac_optarg" ;;
|
---|
399 |
|
---|
400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
401 | ;;
|
---|
402 |
|
---|
403 | *)
|
---|
404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
405 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
406 | fi
|
---|
407 | if test "x$nonopt" != xNONE; then
|
---|
408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
409 | fi
|
---|
410 | nonopt="$ac_option"
|
---|
411 | ;;
|
---|
412 |
|
---|
413 | esac
|
---|
414 | done
|
---|
415 |
|
---|
416 | if test -n "$ac_prev"; then
|
---|
417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
418 | fi
|
---|
419 |
|
---|
420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
421 |
|
---|
422 | # File descriptor usage:
|
---|
423 | # 0 standard input
|
---|
424 | # 1 file creation
|
---|
425 | # 2 errors and warnings
|
---|
426 | # 3 some systems may open it to /dev/tty
|
---|
427 | # 4 used on the Kubota Titan
|
---|
428 | # 6 checking for... messages and results
|
---|
429 | # 5 compiler messages saved in config.log
|
---|
430 | if test "$silent" = yes; then
|
---|
431 | exec 6>/dev/null
|
---|
432 | else
|
---|
433 | exec 6>&1
|
---|
434 | fi
|
---|
435 | exec 5>./config.log
|
---|
436 |
|
---|
437 | echo "\
|
---|
438 | This file contains any messages produced by compilers while
|
---|
439 | running configure, to aid debugging if configure makes a mistake.
|
---|
440 | " 1>&5
|
---|
441 |
|
---|
442 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
443 | # Also quote any args containing shell metacharacters.
|
---|
444 | ac_configure_args=
|
---|
445 | for ac_arg
|
---|
446 | do
|
---|
447 | case "$ac_arg" in
|
---|
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
449 | | --no-cr | --no-c) ;;
|
---|
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
455 | esac
|
---|
456 | done
|
---|
457 |
|
---|
458 | # NLS nuisances.
|
---|
459 | # Only set these to C if already set. These must not be set unconditionally
|
---|
460 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
462 | # Non-C LC_CTYPE values break the ctype check.
|
---|
463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
467 |
|
---|
468 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
469 | rm -rf conftest* confdefs.h
|
---|
470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
471 | echo > confdefs.h
|
---|
472 |
|
---|
473 | # A filename unique to this package, relative to the directory that
|
---|
474 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
475 | ac_unique_file=ltdl.c
|
---|
476 |
|
---|
477 | # Find the source files, if location was not specified.
|
---|
478 | if test -z "$srcdir"; then
|
---|
479 | ac_srcdir_defaulted=yes
|
---|
480 | # Try the directory containing this script, then its parent.
|
---|
481 | ac_prog=$0
|
---|
482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
484 | srcdir=$ac_confdir
|
---|
485 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
486 | srcdir=..
|
---|
487 | fi
|
---|
488 | else
|
---|
489 | ac_srcdir_defaulted=no
|
---|
490 | fi
|
---|
491 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
492 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
494 | else
|
---|
495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
496 | fi
|
---|
497 | fi
|
---|
498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
499 |
|
---|
500 | # Prefer explicitly selected file to automatically selected ones.
|
---|
501 | if test -z "$CONFIG_SITE"; then
|
---|
502 | if test "x$prefix" != xNONE; then
|
---|
503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
504 | else
|
---|
505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
506 | fi
|
---|
507 | fi
|
---|
508 | for ac_site_file in $CONFIG_SITE; do
|
---|
509 | if test -r "$ac_site_file"; then
|
---|
510 | echo "loading site script $ac_site_file"
|
---|
511 | . "$ac_site_file"
|
---|
512 | fi
|
---|
513 | done
|
---|
514 |
|
---|
515 | if test -r "$cache_file"; then
|
---|
516 | echo "loading cache $cache_file"
|
---|
517 | . $cache_file
|
---|
518 | else
|
---|
519 | echo "creating cache $cache_file"
|
---|
520 | > $cache_file
|
---|
521 | fi
|
---|
522 |
|
---|
523 | ac_ext=c
|
---|
524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
525 | ac_cpp='$CPP $CPPFLAGS'
|
---|
526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
528 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
529 |
|
---|
530 | ac_exeext=
|
---|
531 | ac_objext=o
|
---|
532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
535 | ac_n= ac_c='
|
---|
536 | ' ac_t=' '
|
---|
537 | else
|
---|
538 | ac_n=-n ac_c= ac_t=
|
---|
539 | fi
|
---|
540 | else
|
---|
541 | ac_n= ac_c='\c' ac_t=
|
---|
542 | fi
|
---|
543 |
|
---|
544 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
545 | echo "configure:546: checking for path separator" >&5
|
---|
546 | # Filter path to get backslahes into forwardslashes
|
---|
547 | case "`uname -s 2> /dev/null`" in
|
---|
548 | OS/2)
|
---|
549 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
550 | PATH_IFS=';'
|
---|
551 | ;;
|
---|
552 | *)
|
---|
553 | PATH_IFS=':'
|
---|
554 | ;;
|
---|
555 | esac
|
---|
556 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
557 |
|
---|
558 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
559 | echo "configure:560: checking for Cygwin environment" >&5
|
---|
560 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
561 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
562 | else
|
---|
563 | cat > conftest.$ac_ext <<EOF
|
---|
564 | #line 565 "configure"
|
---|
565 | #include "confdefs.h"
|
---|
566 |
|
---|
567 | int main() {
|
---|
568 |
|
---|
569 | #ifndef __CYGWIN__
|
---|
570 | #define __CYGWIN__ __CYGWIN32__
|
---|
571 | #endif
|
---|
572 | return __CYGWIN__;
|
---|
573 | ; return 0; }
|
---|
574 | EOF
|
---|
575 | if { (eval echo configure:576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
576 | rm -rf conftest*
|
---|
577 | ac_cv_cygwin=yes
|
---|
578 | else
|
---|
579 | echo "configure: failed program was:" >&5
|
---|
580 | cat conftest.$ac_ext >&5
|
---|
581 | rm -rf conftest*
|
---|
582 | ac_cv_cygwin=no
|
---|
583 | fi
|
---|
584 | rm -f conftest*
|
---|
585 | rm -f conftest*
|
---|
586 | fi
|
---|
587 |
|
---|
588 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
589 | CYGWIN=
|
---|
590 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
591 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
592 | echo "configure:593: checking for mingw32 environment" >&5
|
---|
593 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
594 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
595 | else
|
---|
596 | cat > conftest.$ac_ext <<EOF
|
---|
597 | #line 598 "configure"
|
---|
598 | #include "confdefs.h"
|
---|
599 |
|
---|
600 | int main() {
|
---|
601 | return __MINGW32__;
|
---|
602 | ; return 0; }
|
---|
603 | EOF
|
---|
604 | if { (eval echo configure:605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
605 | rm -rf conftest*
|
---|
606 | ac_cv_mingw32=yes
|
---|
607 | else
|
---|
608 | echo "configure: failed program was:" >&5
|
---|
609 | cat conftest.$ac_ext >&5
|
---|
610 | rm -rf conftest*
|
---|
611 | ac_cv_mingw32=no
|
---|
612 | fi
|
---|
613 | rm -f conftest*
|
---|
614 | rm -f conftest*
|
---|
615 | fi
|
---|
616 |
|
---|
617 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
618 | MINGW32=
|
---|
619 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
620 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
621 | echo "configure:622: checking for EMX/OS2 environment" >&5
|
---|
622 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
623 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
624 | else
|
---|
625 | : ${CC=gcc.exe}
|
---|
626 | cat > conftest.$ac_ext <<EOF
|
---|
627 | #line 628 "configure"
|
---|
628 | #include "confdefs.h"
|
---|
629 |
|
---|
630 | int main() {
|
---|
631 | return __EMX__;
|
---|
632 | ; return 0; }
|
---|
633 | EOF
|
---|
634 | if { (eval echo configure:635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
635 | rm -rf conftest*
|
---|
636 | ac_cv_emxos2=yes
|
---|
637 | else
|
---|
638 | echo "configure: failed program was:" >&5
|
---|
639 | cat conftest.$ac_ext >&5
|
---|
640 | rm -rf conftest*
|
---|
641 | ac_cv_emxos2=no
|
---|
642 | fi
|
---|
643 | rm -f conftest*
|
---|
644 | rm -f conftest*
|
---|
645 | fi
|
---|
646 |
|
---|
647 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
648 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
649 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
650 | else
|
---|
651 | if test "$ac_cv_emxos2" = yes ; then
|
---|
652 | ac_cv_libpre=
|
---|
653 | else
|
---|
654 | ac_cv_libpre=lib
|
---|
655 | fi
|
---|
656 |
|
---|
657 | fi
|
---|
658 |
|
---|
659 | EMXOS2=
|
---|
660 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
661 |
|
---|
662 |
|
---|
663 |
|
---|
664 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
665 | echo "configure:666: checking for executable suffix" >&5
|
---|
666 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
667 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
668 | else
|
---|
669 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
670 | ac_cv_exeext=.exe
|
---|
671 | else
|
---|
672 | rm -f conftest*
|
---|
673 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
674 | ac_cv_exeext=
|
---|
675 | if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
676 | for file in conftest.*; do
|
---|
677 | case $file in
|
---|
678 | *.c | *.o | *.obj) ;;
|
---|
679 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
680 | esac
|
---|
681 | done
|
---|
682 | else
|
---|
683 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
684 | fi
|
---|
685 | rm -f conftest*
|
---|
686 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
687 | fi
|
---|
688 | fi
|
---|
689 |
|
---|
690 | EXEEXT=""
|
---|
691 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
692 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
693 | ac_exeext=$EXEEXT
|
---|
694 |
|
---|
695 |
|
---|
696 |
|
---|
697 | # Check whether --with-auxdir or --without-auxdir was given.
|
---|
698 | if test "${with_auxdir+set}" = set; then
|
---|
699 | withval="$with_auxdir"
|
---|
700 | ac_aux_dir=
|
---|
701 | for ac_dir in $with_auxdir $srcdir/$with_auxdir; do
|
---|
702 | if test -f $ac_dir/install-sh; then
|
---|
703 | ac_aux_dir=$ac_dir
|
---|
704 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
705 | break
|
---|
706 | elif test -f $ac_dir/install.sh; then
|
---|
707 | ac_aux_dir=$ac_dir
|
---|
708 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
709 | break
|
---|
710 | fi
|
---|
711 | done
|
---|
712 | if test -z "$ac_aux_dir"; then
|
---|
713 | { echo "configure: error: can not find install-sh or install.sh in $with_auxdir $srcdir/$with_auxdir" 1>&2; exit 1; }
|
---|
714 | fi
|
---|
715 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
716 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
717 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
718 |
|
---|
719 |
|
---|
720 | else
|
---|
721 | ac_aux_dir=
|
---|
722 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
723 | if test -f $ac_dir/install-sh; then
|
---|
724 | ac_aux_dir=$ac_dir
|
---|
725 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
726 | break
|
---|
727 | elif test -f $ac_dir/install.sh; then
|
---|
728 | ac_aux_dir=$ac_dir
|
---|
729 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
730 | break
|
---|
731 | fi
|
---|
732 | done
|
---|
733 | if test -z "$ac_aux_dir"; then
|
---|
734 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
735 | fi
|
---|
736 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
737 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
738 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
739 |
|
---|
740 | fi
|
---|
741 |
|
---|
742 |
|
---|
743 | # This is another blatant hack to work around automake bugs.
|
---|
744 | mkinstalldirs="$ac_aux_dir/mkinstalldirs"
|
---|
745 |
|
---|
746 |
|
---|
747 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
|
---|
748 | if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
|
---|
749 | # if libltdl is libtoolized, it is assumed to be stand-alone and
|
---|
750 | # installed unless the command line overrides it (tested above)
|
---|
751 | enable_ltdl_install=yes
|
---|
752 | else
|
---|
753 | echo "configure: warning: *** The top-level configure must select either" 1>&2
|
---|
754 | echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
|
---|
755 | { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
|
---|
756 | fi
|
---|
757 | fi
|
---|
758 |
|
---|
759 | # Find a good install program. We prefer a C program (faster),
|
---|
760 | # so one script is as good as another. But avoid the broken or
|
---|
761 | # incompatible versions:
|
---|
762 | # SysV /etc/install, /usr/sbin/install
|
---|
763 | # SunOS /usr/etc/install
|
---|
764 | # IRIX /sbin/install
|
---|
765 | # AIX /bin/install
|
---|
766 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
767 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
768 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
769 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
770 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
771 | echo "configure:772: checking for a BSD compatible install" >&5
|
---|
772 | if test -z "$INSTALL"; then
|
---|
773 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
774 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
775 | else
|
---|
776 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
777 | for ac_dir in $PATH; do
|
---|
778 | # Account for people who put trailing slashes in PATH elements.
|
---|
779 | case "$ac_dir/" in
|
---|
780 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
781 | # We reject the install program from OS/2 or W3.1
|
---|
782 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
783 | *)
|
---|
784 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
785 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
786 | # by default.
|
---|
787 | for ac_prog in ginstall scoinst install; do
|
---|
788 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
789 | if test $ac_prog = install &&
|
---|
790 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
791 | # AIX install. It has an incompatible calling convention.
|
---|
792 | :
|
---|
793 | else
|
---|
794 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
795 | break 2
|
---|
796 | fi
|
---|
797 | fi
|
---|
798 | done
|
---|
799 | ;;
|
---|
800 | esac
|
---|
801 | done
|
---|
802 | IFS="$ac_save_IFS"
|
---|
803 |
|
---|
804 | fi
|
---|
805 | if test "${ac_cv_path_install+set}" = set; then
|
---|
806 | INSTALL="$ac_cv_path_install"
|
---|
807 | else
|
---|
808 | # As a last resort, use the slow shell script. We don't cache a
|
---|
809 | # path for INSTALL within a source directory, because that will
|
---|
810 | # break other packages using the cache if that directory is
|
---|
811 | # removed, or if the path is relative.
|
---|
812 | INSTALL="$ac_install_sh"
|
---|
813 | fi
|
---|
814 | fi
|
---|
815 | echo "$ac_t""$INSTALL" 1>&6
|
---|
816 |
|
---|
817 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
818 | # It thinks the first close brace ends the variable substitution.
|
---|
819 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
820 |
|
---|
821 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
822 |
|
---|
823 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
824 |
|
---|
825 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
826 | echo "configure:827: checking whether build environment is sane" >&5
|
---|
827 | # Just in case
|
---|
828 | sleep 1
|
---|
829 | echo timestamp > conftestfile
|
---|
830 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
831 | # arguments. Must try -L first in case configure is actually a
|
---|
832 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
833 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
834 | # directory).
|
---|
835 | if (
|
---|
836 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
837 | if test "$*" = "X"; then
|
---|
838 | # -L didn't work.
|
---|
839 | set X `ls -t $srcdir/configure conftestfile`
|
---|
840 | fi
|
---|
841 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
842 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
843 |
|
---|
844 | # If neither matched, then we have a broken ls. This can happen
|
---|
845 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
846 | # broken ls alias from the environment. This has actually
|
---|
847 | # happened. Such a system could not be considered "sane".
|
---|
848 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
849 | alias in your environment" 1>&2; exit 1; }
|
---|
850 | fi
|
---|
851 |
|
---|
852 | test "$2" = conftestfile
|
---|
853 | )
|
---|
854 | then
|
---|
855 | # Ok.
|
---|
856 | :
|
---|
857 | else
|
---|
858 | { echo "configure: error: newly created file is older than distributed files!
|
---|
859 | Check your system clock" 1>&2; exit 1; }
|
---|
860 | fi
|
---|
861 | rm -f conftest*
|
---|
862 | echo "$ac_t""yes" 1>&6
|
---|
863 | if test "$program_transform_name" = s,x,x,; then
|
---|
864 | program_transform_name=
|
---|
865 | else
|
---|
866 | # Double any \ or $. echo might interpret backslashes.
|
---|
867 | cat <<\EOF_SED > conftestsed
|
---|
868 | s,\\,\\\\,g; s,\$,$$,g
|
---|
869 | EOF_SED
|
---|
870 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
871 | rm -f conftestsed
|
---|
872 | fi
|
---|
873 | test "$program_prefix" != NONE &&
|
---|
874 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
875 | # Use a double $ so make ignores it.
|
---|
876 | test "$program_suffix" != NONE &&
|
---|
877 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
878 |
|
---|
879 | # sed with no file args requires a program.
|
---|
880 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
881 |
|
---|
882 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
883 | echo "configure:884: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
884 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
885 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
886 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
887 | else
|
---|
888 | cat > conftestmake <<\EOF
|
---|
889 | all:
|
---|
890 | @echo 'ac_maketemp="${MAKE}"'
|
---|
891 | EOF
|
---|
892 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
893 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
894 | if test -n "$ac_maketemp"; then
|
---|
895 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
896 | else
|
---|
897 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
898 | fi
|
---|
899 | rm -f conftestmake
|
---|
900 | fi
|
---|
901 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
902 | echo "$ac_t""yes" 1>&6
|
---|
903 | SET_MAKE=
|
---|
904 | else
|
---|
905 | echo "$ac_t""no" 1>&6
|
---|
906 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
907 | fi
|
---|
908 |
|
---|
909 |
|
---|
910 | PACKAGE=libltdl
|
---|
911 |
|
---|
912 | VERSION=1.1
|
---|
913 |
|
---|
914 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
915 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
916 | fi
|
---|
917 |
|
---|
918 |
|
---|
919 |
|
---|
920 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
921 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
922 | echo "configure:923: checking for working aclocal" >&5
|
---|
923 | # Run test in a subshell; some versions of sh will print an error if
|
---|
924 | # an executable is not found, even if stderr is redirected.
|
---|
925 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
926 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
927 | ACLOCAL=aclocal
|
---|
928 | echo "$ac_t""found" 1>&6
|
---|
929 | else
|
---|
930 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
931 | echo "$ac_t""missing" 1>&6
|
---|
932 | fi
|
---|
933 |
|
---|
934 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
935 | echo "configure:936: checking for working autoconf" >&5
|
---|
936 | # Run test in a subshell; some versions of sh will print an error if
|
---|
937 | # an executable is not found, even if stderr is redirected.
|
---|
938 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
939 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
940 | AUTOCONF=autoconf
|
---|
941 | echo "$ac_t""found" 1>&6
|
---|
942 | else
|
---|
943 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
944 | echo "$ac_t""missing" 1>&6
|
---|
945 | fi
|
---|
946 |
|
---|
947 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
948 | echo "configure:949: checking for working automake" >&5
|
---|
949 | # Run test in a subshell; some versions of sh will print an error if
|
---|
950 | # an executable is not found, even if stderr is redirected.
|
---|
951 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
952 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
953 | AUTOMAKE=automake
|
---|
954 | echo "$ac_t""found" 1>&6
|
---|
955 | else
|
---|
956 | AUTOMAKE="$missing_dir/missing automake"
|
---|
957 | echo "$ac_t""missing" 1>&6
|
---|
958 | fi
|
---|
959 |
|
---|
960 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
961 | echo "configure:962: checking for working autoheader" >&5
|
---|
962 | # Run test in a subshell; some versions of sh will print an error if
|
---|
963 | # an executable is not found, even if stderr is redirected.
|
---|
964 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
965 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
966 | AUTOHEADER=autoheader
|
---|
967 | echo "$ac_t""found" 1>&6
|
---|
968 | else
|
---|
969 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
970 | echo "$ac_t""missing" 1>&6
|
---|
971 | fi
|
---|
972 |
|
---|
973 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
974 | echo "configure:975: checking for working makeinfo" >&5
|
---|
975 | # Run test in a subshell; some versions of sh will print an error if
|
---|
976 | # an executable is not found, even if stderr is redirected.
|
---|
977 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
978 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
979 | MAKEINFO=makeinfo
|
---|
980 | echo "$ac_t""found" 1>&6
|
---|
981 | else
|
---|
982 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
983 | echo "$ac_t""missing" 1>&6
|
---|
984 | fi
|
---|
985 |
|
---|
986 |
|
---|
987 |
|
---|
988 |
|
---|
989 |
|
---|
990 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
991 | echo "configure:992: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
992 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
993 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
994 | enableval="$enable_maintainer_mode"
|
---|
995 | USE_MAINTAINER_MODE=$enableval
|
---|
996 | else
|
---|
997 | USE_MAINTAINER_MODE=no
|
---|
998 | fi
|
---|
999 |
|
---|
1000 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
1001 |
|
---|
1002 |
|
---|
1003 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
1004 | MAINTAINER_MODE_TRUE=
|
---|
1005 | MAINTAINER_MODE_FALSE='#'
|
---|
1006 | else
|
---|
1007 | MAINTAINER_MODE_TRUE='#'
|
---|
1008 | MAINTAINER_MODE_FALSE=
|
---|
1009 | fi
|
---|
1010 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
1011 |
|
---|
1012 |
|
---|
1013 |
|
---|
1014 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1015 | set dummy gcc; ac_word=$2
|
---|
1016 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1017 | echo "configure:1018: checking for $ac_word" >&5
|
---|
1018 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1019 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1020 | else
|
---|
1021 | if test -n "$CC"; then
|
---|
1022 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1023 | else
|
---|
1024 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1025 | ac_dummy="$PATH"
|
---|
1026 | for ac_dir in $ac_dummy; do
|
---|
1027 | test -z "$ac_dir" && ac_dir=.
|
---|
1028 | if test -f $ac_dir/$ac_word -o \
|
---|
1029 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1030 | ac_cv_prog_CC="gcc"
|
---|
1031 | break
|
---|
1032 | fi
|
---|
1033 | done
|
---|
1034 | IFS="$ac_save_ifs"
|
---|
1035 | fi
|
---|
1036 | fi
|
---|
1037 | CC="$ac_cv_prog_CC"
|
---|
1038 | if test -n "$CC"; then
|
---|
1039 | echo "$ac_t""$CC" 1>&6
|
---|
1040 | else
|
---|
1041 | echo "$ac_t""no" 1>&6
|
---|
1042 | fi
|
---|
1043 |
|
---|
1044 | if test -z "$CC"; then
|
---|
1045 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1046 | set dummy cc; ac_word=$2
|
---|
1047 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1048 | echo "configure:1049: checking for $ac_word" >&5
|
---|
1049 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1050 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1051 | else
|
---|
1052 | if test -n "$CC"; then
|
---|
1053 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1054 | else
|
---|
1055 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1056 | ac_prog_rejected=no
|
---|
1057 | ac_dummy="$PATH"
|
---|
1058 | for ac_dir in $ac_dummy; do
|
---|
1059 | test -z "$ac_dir" && ac_dir=.
|
---|
1060 | if test -f $ac_dir/$ac_word -o \
|
---|
1061 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1062 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
1063 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
1064 | ac_prog_rejected=yes
|
---|
1065 | continue
|
---|
1066 | fi
|
---|
1067 | ac_cv_prog_CC="cc"
|
---|
1068 | break
|
---|
1069 | fi
|
---|
1070 | done
|
---|
1071 | IFS="$ac_save_ifs"
|
---|
1072 | if test $ac_prog_rejected = yes; then
|
---|
1073 | # We found a bogon in the path, so make sure we never use it.
|
---|
1074 | set dummy $ac_cv_prog_CC
|
---|
1075 | shift
|
---|
1076 | if test $# -gt 0; then
|
---|
1077 | # We chose a different compiler from the bogus one.
|
---|
1078 | # However, it has the same basename, so the bogon will be chosen
|
---|
1079 | # first if we set CC to just the basename; use the full file name.
|
---|
1080 | shift
|
---|
1081 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
1082 | shift
|
---|
1083 | ac_cv_prog_CC="$@"
|
---|
1084 | fi
|
---|
1085 | fi
|
---|
1086 | fi
|
---|
1087 | fi
|
---|
1088 | CC="$ac_cv_prog_CC"
|
---|
1089 | if test -n "$CC"; then
|
---|
1090 | echo "$ac_t""$CC" 1>&6
|
---|
1091 | else
|
---|
1092 | echo "$ac_t""no" 1>&6
|
---|
1093 | fi
|
---|
1094 |
|
---|
1095 | if test -z "$CC"; then
|
---|
1096 | case "`uname -s`" in
|
---|
1097 | *win32* | *WIN32*)
|
---|
1098 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
1099 | set dummy cl; ac_word=$2
|
---|
1100 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1101 | echo "configure:1102: checking for $ac_word" >&5
|
---|
1102 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1103 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1104 | else
|
---|
1105 | if test -n "$CC"; then
|
---|
1106 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1107 | else
|
---|
1108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1109 | ac_dummy="$PATH"
|
---|
1110 | for ac_dir in $ac_dummy; do
|
---|
1111 | test -z "$ac_dir" && ac_dir=.
|
---|
1112 | if test -f $ac_dir/$ac_word -o \
|
---|
1113 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1114 | ac_cv_prog_CC="cl"
|
---|
1115 | break
|
---|
1116 | fi
|
---|
1117 | done
|
---|
1118 | IFS="$ac_save_ifs"
|
---|
1119 | fi
|
---|
1120 | fi
|
---|
1121 | CC="$ac_cv_prog_CC"
|
---|
1122 | if test -n "$CC"; then
|
---|
1123 | echo "$ac_t""$CC" 1>&6
|
---|
1124 | else
|
---|
1125 | echo "$ac_t""no" 1>&6
|
---|
1126 | fi
|
---|
1127 | ;;
|
---|
1128 | esac
|
---|
1129 | fi
|
---|
1130 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
1131 | fi
|
---|
1132 |
|
---|
1133 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
1134 | echo "configure:1135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
1135 |
|
---|
1136 | ac_ext=c
|
---|
1137 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1138 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1139 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1140 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1141 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1142 |
|
---|
1143 | cat > conftest.$ac_ext << EOF
|
---|
1144 |
|
---|
1145 | #line 1146 "configure"
|
---|
1146 | #include "confdefs.h"
|
---|
1147 |
|
---|
1148 | main(){return(0);}
|
---|
1149 | EOF
|
---|
1150 | if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1151 | ac_cv_prog_cc_works=yes
|
---|
1152 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
1153 | if (./conftest; exit) 2>/dev/null; then
|
---|
1154 | ac_cv_prog_cc_cross=no
|
---|
1155 | else
|
---|
1156 | ac_cv_prog_cc_cross=yes
|
---|
1157 | fi
|
---|
1158 | else
|
---|
1159 | echo "configure: failed program was:" >&5
|
---|
1160 | cat conftest.$ac_ext >&5
|
---|
1161 | ac_cv_prog_cc_works=no
|
---|
1162 | fi
|
---|
1163 | rm -fr conftest*
|
---|
1164 | ac_ext=c
|
---|
1165 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1166 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1167 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1168 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1169 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1170 |
|
---|
1171 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
1172 | if test $ac_cv_prog_cc_works = no; then
|
---|
1173 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
1174 | fi
|
---|
1175 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
1176 | echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
1177 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
1178 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1179 |
|
---|
1180 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1181 | echo "configure:1182: checking whether we are using GNU C" >&5
|
---|
1182 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1183 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1184 | else
|
---|
1185 | cat > conftest.c <<EOF
|
---|
1186 | #ifdef __GNUC__
|
---|
1187 | yes;
|
---|
1188 | #endif
|
---|
1189 | EOF
|
---|
1190 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1191 | ac_cv_prog_gcc=yes
|
---|
1192 | else
|
---|
1193 | ac_cv_prog_gcc=no
|
---|
1194 | fi
|
---|
1195 | fi
|
---|
1196 |
|
---|
1197 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1198 |
|
---|
1199 | if test $ac_cv_prog_gcc = yes; then
|
---|
1200 | GCC=yes
|
---|
1201 | else
|
---|
1202 | GCC=
|
---|
1203 | fi
|
---|
1204 |
|
---|
1205 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1206 | ac_save_CFLAGS="$CFLAGS"
|
---|
1207 | CFLAGS=
|
---|
1208 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1209 | echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
|
---|
1210 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1211 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1212 | else
|
---|
1213 | echo 'void f(){}' > conftest.c
|
---|
1214 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1215 | ac_cv_prog_cc_g=yes
|
---|
1216 | else
|
---|
1217 | ac_cv_prog_cc_g=no
|
---|
1218 | fi
|
---|
1219 | rm -f conftest*
|
---|
1220 |
|
---|
1221 | fi
|
---|
1222 |
|
---|
1223 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1224 | if test "$ac_test_CFLAGS" = set; then
|
---|
1225 | CFLAGS="$ac_save_CFLAGS"
|
---|
1226 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1227 | if test "$GCC" = yes; then
|
---|
1228 | CFLAGS="-g -O2"
|
---|
1229 | else
|
---|
1230 | CFLAGS="-g"
|
---|
1231 | fi
|
---|
1232 | else
|
---|
1233 | if test "$GCC" = yes; then
|
---|
1234 | CFLAGS="-O2"
|
---|
1235 | else
|
---|
1236 | CFLAGS=
|
---|
1237 | fi
|
---|
1238 | fi
|
---|
1239 |
|
---|
1240 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1241 | echo "configure:1242: checking for working const" >&5
|
---|
1242 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1243 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1244 | else
|
---|
1245 | cat > conftest.$ac_ext <<EOF
|
---|
1246 | #line 1247 "configure"
|
---|
1247 | #include "confdefs.h"
|
---|
1248 |
|
---|
1249 | int main() {
|
---|
1250 |
|
---|
1251 | /* Ultrix mips cc rejects this. */
|
---|
1252 | typedef int charset[2]; const charset x;
|
---|
1253 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1254 | char const *const *ccp;
|
---|
1255 | char **p;
|
---|
1256 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1257 | struct point {int x, y;};
|
---|
1258 | static struct point const zero = {0,0};
|
---|
1259 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1260 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1261 | of an if-expression whose if-part is not a constant expression */
|
---|
1262 | const char *g = "string";
|
---|
1263 | ccp = &g + (g ? g-g : 0);
|
---|
1264 | /* HPUX 7.0 cc rejects these. */
|
---|
1265 | ++ccp;
|
---|
1266 | p = (char**) ccp;
|
---|
1267 | ccp = (char const *const *) p;
|
---|
1268 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1269 | char *t;
|
---|
1270 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1271 |
|
---|
1272 | *t++ = 0;
|
---|
1273 | }
|
---|
1274 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1275 | int x[] = {25, 17};
|
---|
1276 | const int *foo = &x[0];
|
---|
1277 | ++foo;
|
---|
1278 | }
|
---|
1279 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1280 | typedef const int *iptr;
|
---|
1281 | iptr p = 0;
|
---|
1282 | ++p;
|
---|
1283 | }
|
---|
1284 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1285 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1286 | struct s { int j; const int *ap[3]; };
|
---|
1287 | struct s *b; b->j = 5;
|
---|
1288 | }
|
---|
1289 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1290 | const int foo = 10;
|
---|
1291 | }
|
---|
1292 |
|
---|
1293 | ; return 0; }
|
---|
1294 | EOF
|
---|
1295 | if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1296 | rm -rf conftest*
|
---|
1297 | ac_cv_c_const=yes
|
---|
1298 | else
|
---|
1299 | echo "configure: failed program was:" >&5
|
---|
1300 | cat conftest.$ac_ext >&5
|
---|
1301 | rm -rf conftest*
|
---|
1302 | ac_cv_c_const=no
|
---|
1303 | fi
|
---|
1304 | rm -f conftest*
|
---|
1305 | fi
|
---|
1306 |
|
---|
1307 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1308 | if test $ac_cv_c_const = no; then
|
---|
1309 | cat >> confdefs.h <<\EOF
|
---|
1310 | #define const
|
---|
1311 | EOF
|
---|
1312 |
|
---|
1313 | fi
|
---|
1314 |
|
---|
1315 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
1316 | echo "configure:1317: checking for inline" >&5
|
---|
1317 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
1318 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1319 | else
|
---|
1320 | ac_cv_c_inline=no
|
---|
1321 | for ac_kw in inline __inline__ __inline; do
|
---|
1322 | cat > conftest.$ac_ext <<EOF
|
---|
1323 | #line 1324 "configure"
|
---|
1324 | #include "confdefs.h"
|
---|
1325 |
|
---|
1326 | int main() {
|
---|
1327 | } $ac_kw foo() {
|
---|
1328 | ; return 0; }
|
---|
1329 | EOF
|
---|
1330 | if { (eval echo configure:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1331 | rm -rf conftest*
|
---|
1332 | ac_cv_c_inline=$ac_kw; break
|
---|
1333 | else
|
---|
1334 | echo "configure: failed program was:" >&5
|
---|
1335 | cat conftest.$ac_ext >&5
|
---|
1336 | fi
|
---|
1337 | rm -f conftest*
|
---|
1338 | done
|
---|
1339 |
|
---|
1340 | fi
|
---|
1341 |
|
---|
1342 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
1343 | case "$ac_cv_c_inline" in
|
---|
1344 | inline | yes) ;;
|
---|
1345 | no) cat >> confdefs.h <<\EOF
|
---|
1346 | #define inline
|
---|
1347 | EOF
|
---|
1348 | ;;
|
---|
1349 | *) cat >> confdefs.h <<EOF
|
---|
1350 | #define inline $ac_cv_c_inline
|
---|
1351 | EOF
|
---|
1352 | ;;
|
---|
1353 | esac
|
---|
1354 |
|
---|
1355 |
|
---|
1356 |
|
---|
1357 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1358 | if test "${enable_shared+set}" = set; then
|
---|
1359 | enableval="$enable_shared"
|
---|
1360 | p=${PACKAGE-default}
|
---|
1361 | case "$enableval" in
|
---|
1362 | yes) enable_shared=yes ;;
|
---|
1363 | no) enable_shared=no ;;
|
---|
1364 | *)
|
---|
1365 | enable_shared=no
|
---|
1366 | # Look at the argument we got. We use all the common list separators.
|
---|
1367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1368 | for pkg in $enableval; do
|
---|
1369 | if test "X$pkg" = "X$p"; then
|
---|
1370 | enable_shared=yes
|
---|
1371 | fi
|
---|
1372 | done
|
---|
1373 | IFS="$ac_save_ifs"
|
---|
1374 | ;;
|
---|
1375 | esac
|
---|
1376 | else
|
---|
1377 | enable_shared=yes
|
---|
1378 | fi
|
---|
1379 |
|
---|
1380 | # Check whether --enable-static or --disable-static was given.
|
---|
1381 | if test "${enable_static+set}" = set; then
|
---|
1382 | enableval="$enable_static"
|
---|
1383 | p=${PACKAGE-default}
|
---|
1384 | case "$enableval" in
|
---|
1385 | yes) enable_static=yes ;;
|
---|
1386 | no) enable_static=no ;;
|
---|
1387 | *)
|
---|
1388 | enable_static=no
|
---|
1389 | # Look at the argument we got. We use all the common list separators.
|
---|
1390 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1391 | for pkg in $enableval; do
|
---|
1392 | if test "X$pkg" = "X$p"; then
|
---|
1393 | enable_static=yes
|
---|
1394 | fi
|
---|
1395 | done
|
---|
1396 | IFS="$ac_save_ifs"
|
---|
1397 | ;;
|
---|
1398 | esac
|
---|
1399 | else
|
---|
1400 | enable_static=yes
|
---|
1401 | fi
|
---|
1402 |
|
---|
1403 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1404 | if test "${enable_fast_install+set}" = set; then
|
---|
1405 | enableval="$enable_fast_install"
|
---|
1406 | p=${PACKAGE-default}
|
---|
1407 | case "$enableval" in
|
---|
1408 | yes) enable_fast_install=yes ;;
|
---|
1409 | no) enable_fast_install=no ;;
|
---|
1410 | *)
|
---|
1411 | enable_fast_install=no
|
---|
1412 | # Look at the argument we got. We use all the common list separators.
|
---|
1413 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1414 | for pkg in $enableval; do
|
---|
1415 | if test "X$pkg" = "X$p"; then
|
---|
1416 | enable_fast_install=yes
|
---|
1417 | fi
|
---|
1418 | done
|
---|
1419 | IFS="$ac_save_ifs"
|
---|
1420 | ;;
|
---|
1421 | esac
|
---|
1422 | else
|
---|
1423 | enable_fast_install=yes
|
---|
1424 | fi
|
---|
1425 |
|
---|
1426 |
|
---|
1427 | # Make sure we can run config.sub.
|
---|
1428 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
1429 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
1430 | fi
|
---|
1431 |
|
---|
1432 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
1433 | echo "configure:1434: checking host system type" >&5
|
---|
1434 |
|
---|
1435 | host_alias=$host
|
---|
1436 | case "$host_alias" in
|
---|
1437 | NONE)
|
---|
1438 | case $nonopt in
|
---|
1439 | NONE)
|
---|
1440 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
1441 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
1442 | fi ;;
|
---|
1443 | *) host_alias=$nonopt ;;
|
---|
1444 | esac ;;
|
---|
1445 | esac
|
---|
1446 |
|
---|
1447 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
1448 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1449 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1450 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1451 | echo "$ac_t""$host" 1>&6
|
---|
1452 |
|
---|
1453 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
1454 | echo "configure:1455: checking build system type" >&5
|
---|
1455 |
|
---|
1456 | build_alias=$build
|
---|
1457 | case "$build_alias" in
|
---|
1458 | NONE)
|
---|
1459 | case $nonopt in
|
---|
1460 | NONE) build_alias=$host_alias ;;
|
---|
1461 | *) build_alias=$nonopt ;;
|
---|
1462 | esac ;;
|
---|
1463 | esac
|
---|
1464 |
|
---|
1465 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
1466 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1467 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1468 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1469 | echo "$ac_t""$build" 1>&6
|
---|
1470 |
|
---|
1471 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1472 | if test "${with_gnu_ld+set}" = set; then
|
---|
1473 | withval="$with_gnu_ld"
|
---|
1474 | test "$withval" = no || with_gnu_ld=yes
|
---|
1475 | else
|
---|
1476 | with_gnu_ld=no
|
---|
1477 | fi
|
---|
1478 |
|
---|
1479 | ac_prog=ld
|
---|
1480 | if test "$ac_cv_prog_gcc" = yes; then
|
---|
1481 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1482 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1483 | echo "configure:1484: checking for ld used by GCC" >&5
|
---|
1484 | case $host in
|
---|
1485 | *-*-mingw*)
|
---|
1486 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1487 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1488 | *)
|
---|
1489 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1490 | esac
|
---|
1491 | case "$ac_prog" in
|
---|
1492 | # Accept absolute paths.
|
---|
1493 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1494 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1495 | # Canonicalize the path of ld
|
---|
1496 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1497 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1498 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1499 | done
|
---|
1500 | test -z "$LD" && LD="$ac_prog"
|
---|
1501 | ;;
|
---|
1502 | "")
|
---|
1503 | # If it fails, then pretend we aren't using GCC.
|
---|
1504 | ac_prog=ld
|
---|
1505 | ;;
|
---|
1506 | *)
|
---|
1507 | # If it is relative, then search for the first ld in PATH.
|
---|
1508 | with_gnu_ld=unknown
|
---|
1509 | ;;
|
---|
1510 | esac
|
---|
1511 | elif test "$with_gnu_ld" = yes; then
|
---|
1512 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1513 | echo "configure:1514: checking for GNU ld" >&5
|
---|
1514 | else
|
---|
1515 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1516 | echo "configure:1517: checking for non-GNU ld" >&5
|
---|
1517 | fi
|
---|
1518 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
---|
1519 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1520 | else
|
---|
1521 | if test -z "$LD"; then
|
---|
1522 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1523 | for ac_dir in $PATH; do
|
---|
1524 | test -z "$ac_dir" && ac_dir=.
|
---|
1525 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1526 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1527 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1528 | # but apparently some GNU ld's only accept -v.
|
---|
1529 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1530 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1531 | test "$with_gnu_ld" != no && break
|
---|
1532 | else
|
---|
1533 | test "$with_gnu_ld" != yes && break
|
---|
1534 | fi
|
---|
1535 | fi
|
---|
1536 | done
|
---|
1537 | IFS="$ac_save_ifs"
|
---|
1538 | else
|
---|
1539 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1540 | fi
|
---|
1541 | fi
|
---|
1542 |
|
---|
1543 | LD="$ac_cv_path_LD"
|
---|
1544 | if test -n "$LD"; then
|
---|
1545 | echo "$ac_t""$LD" 1>&6
|
---|
1546 | else
|
---|
1547 | echo "$ac_t""no" 1>&6
|
---|
1548 | fi
|
---|
1549 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1550 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1551 | echo "configure:1552: checking if the linker ($LD) is GNU ld" >&5
|
---|
1552 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1553 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1554 | else
|
---|
1555 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1556 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1557 | ac_cv_prog_gnu_ld=yes
|
---|
1558 | else
|
---|
1559 | ac_cv_prog_gnu_ld=no
|
---|
1560 | fi
|
---|
1561 | fi
|
---|
1562 |
|
---|
1563 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
---|
1564 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
---|
1565 |
|
---|
1566 |
|
---|
1567 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1568 | echo "configure:1569: checking for $LD option to reload object files" >&5
|
---|
1569 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1570 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1571 | else
|
---|
1572 | lt_cv_ld_reload_flag='-r'
|
---|
1573 | fi
|
---|
1574 |
|
---|
1575 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1576 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1577 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1578 |
|
---|
1579 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1580 | echo "configure:1581: checking for BSD-compatible nm" >&5
|
---|
1581 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
---|
1582 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1583 | else
|
---|
1584 | if test -n "$NM"; then
|
---|
1585 | # Let the user override the test.
|
---|
1586 | ac_cv_path_NM="$NM"
|
---|
1587 | else
|
---|
1588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1589 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1590 | test -z "$ac_dir" && ac_dir=.
|
---|
1591 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1592 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1593 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1594 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1595 | # nm: unknown option "B" ignored
|
---|
1596 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1597 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1598 | ac_cv_path_NM="$tmp_nm -B"
|
---|
1599 | break
|
---|
1600 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1601 | ac_cv_path_NM="$tmp_nm -p"
|
---|
1602 | break
|
---|
1603 | else
|
---|
1604 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1605 | continue # so that we can try to find one that supports BSD flags
|
---|
1606 | fi
|
---|
1607 | fi
|
---|
1608 | done
|
---|
1609 | IFS="$ac_save_ifs"
|
---|
1610 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
---|
1611 | fi
|
---|
1612 | fi
|
---|
1613 |
|
---|
1614 | NM="$ac_cv_path_NM"
|
---|
1615 | echo "$ac_t""$NM" 1>&6
|
---|
1616 |
|
---|
1617 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1618 | echo "configure:1619: checking whether ln -s works" >&5
|
---|
1619 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1620 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1621 | else
|
---|
1622 | rm -f conftestdata
|
---|
1623 | if ln -s X conftestdata 2>/dev/null
|
---|
1624 | then
|
---|
1625 | rm -f conftestdata
|
---|
1626 | ac_cv_prog_LN_S="ln -s"
|
---|
1627 | else
|
---|
1628 | echo A > conftestdata;
|
---|
1629 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1630 | ac_cv_prog_LN_S=ln
|
---|
1631 | else
|
---|
1632 | ac_cv_prog_LN_S=cp
|
---|
1633 | fi
|
---|
1634 | fi
|
---|
1635 | rm -f conftestdata*
|
---|
1636 | fi
|
---|
1637 | LN_S="$ac_cv_prog_LN_S"
|
---|
1638 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1639 | echo "$ac_t""yes" 1>&6
|
---|
1640 | else
|
---|
1641 | echo "$ac_t""no" 1>&6
|
---|
1642 | fi
|
---|
1643 |
|
---|
1644 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1645 | echo "configure:1646: checking how to recognise dependant libraries" >&5
|
---|
1646 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1647 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1648 | else
|
---|
1649 | lt_cv_file_magic_cmd='${MAGIC}'
|
---|
1650 | lt_cv_file_magic_test_file=
|
---|
1651 | lt_cv_deplibs_check_method='unknown'
|
---|
1652 | # Need to set the preceding variable on all platforms that support
|
---|
1653 | # interlibrary dependencies.
|
---|
1654 | # 'none' -- dependencies not supported.
|
---|
1655 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1656 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1657 | # 'test_compile' -- check by making test program.
|
---|
1658 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1659 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1660 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1661 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1662 |
|
---|
1663 | case "$host_os" in
|
---|
1664 | aix4*)
|
---|
1665 | lt_cv_deplibs_check_method=pass_all
|
---|
1666 | ;;
|
---|
1667 |
|
---|
1668 | beos*)
|
---|
1669 | lt_cv_deplibs_check_method=pass_all
|
---|
1670 | ;;
|
---|
1671 |
|
---|
1672 | bsdi4*)
|
---|
1673 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1674 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1675 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1676 | ;;
|
---|
1677 |
|
---|
1678 | cygwin* | mingw*)
|
---|
1679 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1680 | lt_cv_file_magic_cmd='${OBJDUMP} -f'
|
---|
1681 | ;;
|
---|
1682 |
|
---|
1683 | freebsd* )
|
---|
1684 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1685 | case "$host_cpu" in
|
---|
1686 | i*86 )
|
---|
1687 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1688 | # Let's accept both of them until this is cleared up.
|
---|
1689 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1690 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1691 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1692 | ;;
|
---|
1693 | esac
|
---|
1694 | else
|
---|
1695 | lt_cv_deplibs_check_method=pass_all
|
---|
1696 | fi
|
---|
1697 | ;;
|
---|
1698 |
|
---|
1699 | gnu*)
|
---|
1700 | lt_cv_deplibs_check_method=pass_all
|
---|
1701 | ;;
|
---|
1702 |
|
---|
1703 | hpux10.20*)
|
---|
1704 | # TODO: Does this work for hpux-11 too?
|
---|
1705 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
---|
1706 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1707 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1708 | ;;
|
---|
1709 |
|
---|
1710 | irix5* | irix6*)
|
---|
1711 | case "$host_os" in
|
---|
1712 | irix5*)
|
---|
1713 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1714 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1715 | ;;
|
---|
1716 | *)
|
---|
1717 | case "$LD" in
|
---|
1718 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1719 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1720 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1721 | *) libmagic=never-match;;
|
---|
1722 | esac
|
---|
1723 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1724 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1725 | ;;
|
---|
1726 | esac
|
---|
1727 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1728 | lt_cv_deplibs_check_method=pass_all
|
---|
1729 | ;;
|
---|
1730 |
|
---|
1731 | # This must be Linux ELF.
|
---|
1732 | linux-gnu*)
|
---|
1733 | case "$host_cpu" in
|
---|
1734 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1735 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1736 | *)
|
---|
1737 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1738 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1739 | esac
|
---|
1740 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1741 | ;;
|
---|
1742 |
|
---|
1743 | netbsd*)
|
---|
1744 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
---|
1745 | else
|
---|
1746 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
---|
1747 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1748 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1749 | fi
|
---|
1750 | ;;
|
---|
1751 |
|
---|
1752 | osf3* | osf4* | osf5*)
|
---|
1753 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1754 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1755 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1756 | lt_cv_deplibs_check_method=pass_all
|
---|
1757 | ;;
|
---|
1758 |
|
---|
1759 | sco3.2v5*)
|
---|
1760 | lt_cv_deplibs_check_method=pass_all
|
---|
1761 | ;;
|
---|
1762 |
|
---|
1763 | solaris*)
|
---|
1764 | lt_cv_deplibs_check_method=pass_all
|
---|
1765 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1766 | ;;
|
---|
1767 |
|
---|
1768 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1769 | case "$host_vendor" in
|
---|
1770 | ncr)
|
---|
1771 | lt_cv_deplibs_check_method=pass_all
|
---|
1772 | ;;
|
---|
1773 | motorola)
|
---|
1774 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
---|
1775 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1776 | ;;
|
---|
1777 | esac
|
---|
1778 | ;;
|
---|
1779 | esac
|
---|
1780 |
|
---|
1781 | fi
|
---|
1782 |
|
---|
1783 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1784 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1785 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1786 |
|
---|
1787 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1788 | echo "configure:1789: checking for object suffix" >&5
|
---|
1789 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1790 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1791 | else
|
---|
1792 | rm -f conftest*
|
---|
1793 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1794 | if { (eval echo configure:1795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1795 | for ac_file in conftest.*; do
|
---|
1796 | case $ac_file in
|
---|
1797 | *.c) ;;
|
---|
1798 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1799 | esac
|
---|
1800 | done
|
---|
1801 | else
|
---|
1802 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1803 | fi
|
---|
1804 | rm -f conftest*
|
---|
1805 | fi
|
---|
1806 |
|
---|
1807 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1808 | OBJEXT=$ac_cv_objext
|
---|
1809 | ac_objext=$ac_cv_objext
|
---|
1810 |
|
---|
1811 | if test $host != $build; then
|
---|
1812 | ac_tool_prefix=${host_alias}-
|
---|
1813 | else
|
---|
1814 | ac_tool_prefix=
|
---|
1815 | fi
|
---|
1816 |
|
---|
1817 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1818 |
|
---|
1819 | # Only perform the check for file, if the check method requires it
|
---|
1820 | case "$deplibs_check_method" in
|
---|
1821 | file_magic*)
|
---|
1822 | if test "$file_magic_cmd" = '${MAGIC}'; then
|
---|
1823 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1824 | echo "configure:1825: checking for ${ac_tool_prefix}file" >&5
|
---|
1825 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
|
---|
1826 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1827 | else
|
---|
1828 | case "$MAGIC" in
|
---|
1829 | /*)
|
---|
1830 | lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
|
---|
1831 | ;;
|
---|
1832 | ?:/*)
|
---|
1833 | ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
|
---|
1834 | ;;
|
---|
1835 | *)
|
---|
1836 | ac_save_MAGIC="$MAGIC"
|
---|
1837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1838 | ac_dummy="/usr/bin:$PATH"
|
---|
1839 | for ac_dir in $ac_dummy; do
|
---|
1840 | test -z "$ac_dir" && ac_dir=.
|
---|
1841 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1842 | lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
|
---|
1843 | if test -n "$file_magic_test_file"; then
|
---|
1844 | case "$deplibs_check_method" in
|
---|
1845 | "file_magic "*)
|
---|
1846 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1847 | MAGIC="$lt_cv_path_MAGIC"
|
---|
1848 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1849 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1850 | :
|
---|
1851 | else
|
---|
1852 | cat <<EOF 1>&2
|
---|
1853 |
|
---|
1854 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1855 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1856 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1857 | *** as such. This will affect the creation of libtool libraries that
|
---|
1858 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1859 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1860 | *** may want to report the problem to your system manager and/or to
|
---|
1861 | *** bug-libtool@gnu.org
|
---|
1862 |
|
---|
1863 | EOF
|
---|
1864 | fi ;;
|
---|
1865 | esac
|
---|
1866 | fi
|
---|
1867 | break
|
---|
1868 | fi
|
---|
1869 | done
|
---|
1870 | IFS="$ac_save_ifs"
|
---|
1871 | MAGIC="$ac_save_MAGIC"
|
---|
1872 | ;;
|
---|
1873 | esac
|
---|
1874 | fi
|
---|
1875 |
|
---|
1876 | MAGIC="$lt_cv_path_MAGIC"
|
---|
1877 | if test -n "$MAGIC"; then
|
---|
1878 | echo "$ac_t""$MAGIC" 1>&6
|
---|
1879 | else
|
---|
1880 | echo "$ac_t""no" 1>&6
|
---|
1881 | fi
|
---|
1882 |
|
---|
1883 | if test -z "$lt_cv_path_MAGIC"; then
|
---|
1884 | if test -n "$ac_tool_prefix"; then
|
---|
1885 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1886 | echo "configure:1887: checking for file" >&5
|
---|
1887 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
|
---|
1888 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1889 | else
|
---|
1890 | case "$MAGIC" in
|
---|
1891 | /*)
|
---|
1892 | lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
|
---|
1893 | ;;
|
---|
1894 | ?:/*)
|
---|
1895 | ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
|
---|
1896 | ;;
|
---|
1897 | *)
|
---|
1898 | ac_save_MAGIC="$MAGIC"
|
---|
1899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1900 | ac_dummy="/usr/bin:$PATH"
|
---|
1901 | for ac_dir in $ac_dummy; do
|
---|
1902 | test -z "$ac_dir" && ac_dir=.
|
---|
1903 | if test -f $ac_dir/file; then
|
---|
1904 | lt_cv_path_MAGIC="$ac_dir/file"
|
---|
1905 | if test -n "$file_magic_test_file"; then
|
---|
1906 | case "$deplibs_check_method" in
|
---|
1907 | "file_magic "*)
|
---|
1908 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1909 | MAGIC="$lt_cv_path_MAGIC"
|
---|
1910 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1911 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1912 | :
|
---|
1913 | else
|
---|
1914 | cat <<EOF 1>&2
|
---|
1915 |
|
---|
1916 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1917 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1918 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1919 | *** as such. This will affect the creation of libtool libraries that
|
---|
1920 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1921 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1922 | *** may want to report the problem to your system manager and/or to
|
---|
1923 | *** bug-libtool@gnu.org
|
---|
1924 |
|
---|
1925 | EOF
|
---|
1926 | fi ;;
|
---|
1927 | esac
|
---|
1928 | fi
|
---|
1929 | break
|
---|
1930 | fi
|
---|
1931 | done
|
---|
1932 | IFS="$ac_save_ifs"
|
---|
1933 | MAGIC="$ac_save_MAGIC"
|
---|
1934 | ;;
|
---|
1935 | esac
|
---|
1936 | fi
|
---|
1937 |
|
---|
1938 | MAGIC="$lt_cv_path_MAGIC"
|
---|
1939 | if test -n "$MAGIC"; then
|
---|
1940 | echo "$ac_t""$MAGIC" 1>&6
|
---|
1941 | else
|
---|
1942 | echo "$ac_t""no" 1>&6
|
---|
1943 | fi
|
---|
1944 |
|
---|
1945 | else
|
---|
1946 | MAGIC=:
|
---|
1947 | fi
|
---|
1948 | fi
|
---|
1949 |
|
---|
1950 | fi
|
---|
1951 | ;;
|
---|
1952 | esac
|
---|
1953 |
|
---|
1954 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1955 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1956 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1957 | echo "configure:1958: checking for $ac_word" >&5
|
---|
1958 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1959 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1960 | else
|
---|
1961 | if test -n "$RANLIB"; then
|
---|
1962 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1963 | else
|
---|
1964 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1965 | ac_dummy="$PATH"
|
---|
1966 | for ac_dir in $ac_dummy; do
|
---|
1967 | test -z "$ac_dir" && ac_dir=.
|
---|
1968 | if test -f $ac_dir/$ac_word -o \
|
---|
1969 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1970 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1971 | break
|
---|
1972 | fi
|
---|
1973 | done
|
---|
1974 | IFS="$ac_save_ifs"
|
---|
1975 | fi
|
---|
1976 | fi
|
---|
1977 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1978 | if test -n "$RANLIB"; then
|
---|
1979 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1980 | else
|
---|
1981 | echo "$ac_t""no" 1>&6
|
---|
1982 | fi
|
---|
1983 |
|
---|
1984 |
|
---|
1985 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1986 | if test -n "$ac_tool_prefix"; then
|
---|
1987 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1988 | set dummy ranlib; ac_word=$2
|
---|
1989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1990 | echo "configure:1991: checking for $ac_word" >&5
|
---|
1991 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1992 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1993 | else
|
---|
1994 | if test -n "$RANLIB"; then
|
---|
1995 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1996 | else
|
---|
1997 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1998 | ac_dummy="$PATH"
|
---|
1999 | for ac_dir in $ac_dummy; do
|
---|
2000 | test -z "$ac_dir" && ac_dir=.
|
---|
2001 | if test -f $ac_dir/$ac_word -o \
|
---|
2002 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2003 | ac_cv_prog_RANLIB="ranlib"
|
---|
2004 | break
|
---|
2005 | fi
|
---|
2006 | done
|
---|
2007 | IFS="$ac_save_ifs"
|
---|
2008 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2009 | fi
|
---|
2010 | fi
|
---|
2011 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2012 | if test -n "$RANLIB"; then
|
---|
2013 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2014 | else
|
---|
2015 | echo "$ac_t""no" 1>&6
|
---|
2016 | fi
|
---|
2017 |
|
---|
2018 | else
|
---|
2019 | RANLIB=":"
|
---|
2020 | fi
|
---|
2021 | fi
|
---|
2022 |
|
---|
2023 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2024 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2026 | echo "configure:2027: checking for $ac_word" >&5
|
---|
2027 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2028 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2029 | else
|
---|
2030 | if test -n "$STRIP"; then
|
---|
2031 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2032 | else
|
---|
2033 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2034 | ac_dummy="$PATH"
|
---|
2035 | for ac_dir in $ac_dummy; do
|
---|
2036 | test -z "$ac_dir" && ac_dir=.
|
---|
2037 | if test -f $ac_dir/$ac_word -o \
|
---|
2038 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2039 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2040 | break
|
---|
2041 | fi
|
---|
2042 | done
|
---|
2043 | IFS="$ac_save_ifs"
|
---|
2044 | fi
|
---|
2045 | fi
|
---|
2046 | STRIP="$ac_cv_prog_STRIP"
|
---|
2047 | if test -n "$STRIP"; then
|
---|
2048 | echo "$ac_t""$STRIP" 1>&6
|
---|
2049 | else
|
---|
2050 | echo "$ac_t""no" 1>&6
|
---|
2051 | fi
|
---|
2052 |
|
---|
2053 |
|
---|
2054 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2055 | if test -n "$ac_tool_prefix"; then
|
---|
2056 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2057 | set dummy strip; ac_word=$2
|
---|
2058 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2059 | echo "configure:2060: checking for $ac_word" >&5
|
---|
2060 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2061 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2062 | else
|
---|
2063 | if test -n "$STRIP"; then
|
---|
2064 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2065 | else
|
---|
2066 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2067 | ac_dummy="$PATH"
|
---|
2068 | for ac_dir in $ac_dummy; do
|
---|
2069 | test -z "$ac_dir" && ac_dir=.
|
---|
2070 | if test -f $ac_dir/$ac_word -o \
|
---|
2071 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2072 | ac_cv_prog_STRIP="strip"
|
---|
2073 | break
|
---|
2074 | fi
|
---|
2075 | done
|
---|
2076 | IFS="$ac_save_ifs"
|
---|
2077 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2078 | fi
|
---|
2079 | fi
|
---|
2080 | STRIP="$ac_cv_prog_STRIP"
|
---|
2081 | if test -n "$STRIP"; then
|
---|
2082 | echo "$ac_t""$STRIP" 1>&6
|
---|
2083 | else
|
---|
2084 | echo "$ac_t""no" 1>&6
|
---|
2085 | fi
|
---|
2086 |
|
---|
2087 | else
|
---|
2088 | STRIP=":"
|
---|
2089 | fi
|
---|
2090 | fi
|
---|
2091 |
|
---|
2092 |
|
---|
2093 | # Check for any special flags to pass to ltconfig.
|
---|
2094 | libtool_flags="--cache-file=$cache_file"
|
---|
2095 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2096 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2097 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2098 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2099 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2100 |
|
---|
2101 | libtool_flags="$libtool_flags --enable-win32-dll"
|
---|
2102 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2103 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2104 | enableval="$enable_libtool_lock"
|
---|
2105 | :
|
---|
2106 | fi
|
---|
2107 |
|
---|
2108 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2109 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2110 |
|
---|
2111 | # Check whether --with-pic or --without-pic was given.
|
---|
2112 | if test "${with_pic+set}" = set; then
|
---|
2113 | withval="$with_pic"
|
---|
2114 | pic_mode="$withval"
|
---|
2115 | else
|
---|
2116 | pic_mode=default
|
---|
2117 | fi
|
---|
2118 |
|
---|
2119 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2120 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2121 |
|
---|
2122 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2123 | # libtool support.
|
---|
2124 | case "$host" in
|
---|
2125 | *-*-irix6*)
|
---|
2126 | # Find out which ABI we are using.
|
---|
2127 | echo '#line 2128 "configure"' > conftest.$ac_ext
|
---|
2128 | if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2129 | case "`/usr/bin/file conftest.o`" in
|
---|
2130 | *32-bit*)
|
---|
2131 | LD="${LD-ld} -32"
|
---|
2132 | ;;
|
---|
2133 | *N32*)
|
---|
2134 | LD="${LD-ld} -n32"
|
---|
2135 | ;;
|
---|
2136 | *64-bit*)
|
---|
2137 | LD="${LD-ld} -64"
|
---|
2138 | ;;
|
---|
2139 | esac
|
---|
2140 | fi
|
---|
2141 | rm -rf conftest*
|
---|
2142 | ;;
|
---|
2143 |
|
---|
2144 | *-*-sco3.2v5*)
|
---|
2145 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2146 | SAVE_CFLAGS="$CFLAGS"
|
---|
2147 | CFLAGS="$CFLAGS -belf"
|
---|
2148 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2149 | echo "configure:2150: checking whether the C compiler needs -belf" >&5
|
---|
2150 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2151 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2152 | else
|
---|
2153 |
|
---|
2154 | ac_ext=c
|
---|
2155 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2156 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2157 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2158 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2159 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2160 |
|
---|
2161 | cat > conftest.$ac_ext <<EOF
|
---|
2162 | #line 2163 "configure"
|
---|
2163 | #include "confdefs.h"
|
---|
2164 |
|
---|
2165 | int main() {
|
---|
2166 |
|
---|
2167 | ; return 0; }
|
---|
2168 | EOF
|
---|
2169 | if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2170 | rm -rf conftest*
|
---|
2171 | lt_cv_cc_needs_belf=yes
|
---|
2172 | else
|
---|
2173 | echo "configure: failed program was:" >&5
|
---|
2174 | cat conftest.$ac_ext >&5
|
---|
2175 | rm -rf conftest*
|
---|
2176 | lt_cv_cc_needs_belf=no
|
---|
2177 | fi
|
---|
2178 | rm -f conftest*
|
---|
2179 | ac_ext=c
|
---|
2180 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2181 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2182 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2183 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2184 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2185 |
|
---|
2186 | fi
|
---|
2187 |
|
---|
2188 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2189 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2190 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2191 | CFLAGS="$SAVE_CFLAGS"
|
---|
2192 | fi
|
---|
2193 | ;;
|
---|
2194 |
|
---|
2195 | *-*-cygwin* | *-*-mingw*)
|
---|
2196 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
2197 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
2198 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2199 | echo "configure:2200: checking for $ac_word" >&5
|
---|
2200 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
---|
2201 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2202 | else
|
---|
2203 | if test -n "$DLLTOOL"; then
|
---|
2204 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
2205 | else
|
---|
2206 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2207 | ac_dummy="$PATH"
|
---|
2208 | for ac_dir in $ac_dummy; do
|
---|
2209 | test -z "$ac_dir" && ac_dir=.
|
---|
2210 | if test -f $ac_dir/$ac_word -o \
|
---|
2211 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2212 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
2213 | break
|
---|
2214 | fi
|
---|
2215 | done
|
---|
2216 | IFS="$ac_save_ifs"
|
---|
2217 | fi
|
---|
2218 | fi
|
---|
2219 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
2220 | if test -n "$DLLTOOL"; then
|
---|
2221 | echo "$ac_t""$DLLTOOL" 1>&6
|
---|
2222 | else
|
---|
2223 | echo "$ac_t""no" 1>&6
|
---|
2224 | fi
|
---|
2225 |
|
---|
2226 |
|
---|
2227 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
2228 | if test -n "$ac_tool_prefix"; then
|
---|
2229 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
2230 | set dummy dlltool; ac_word=$2
|
---|
2231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2232 | echo "configure:2233: checking for $ac_word" >&5
|
---|
2233 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
---|
2234 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2235 | else
|
---|
2236 | if test -n "$DLLTOOL"; then
|
---|
2237 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
2238 | else
|
---|
2239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2240 | ac_dummy="$PATH"
|
---|
2241 | for ac_dir in $ac_dummy; do
|
---|
2242 | test -z "$ac_dir" && ac_dir=.
|
---|
2243 | if test -f $ac_dir/$ac_word -o \
|
---|
2244 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2245 | ac_cv_prog_DLLTOOL="dlltool"
|
---|
2246 | break
|
---|
2247 | fi
|
---|
2248 | done
|
---|
2249 | IFS="$ac_save_ifs"
|
---|
2250 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
|
---|
2251 | fi
|
---|
2252 | fi
|
---|
2253 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
2254 | if test -n "$DLLTOOL"; then
|
---|
2255 | echo "$ac_t""$DLLTOOL" 1>&6
|
---|
2256 | else
|
---|
2257 | echo "$ac_t""no" 1>&6
|
---|
2258 | fi
|
---|
2259 |
|
---|
2260 | else
|
---|
2261 | DLLTOOL="false"
|
---|
2262 | fi
|
---|
2263 | fi
|
---|
2264 |
|
---|
2265 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
2266 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
2267 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2268 | echo "configure:2269: checking for $ac_word" >&5
|
---|
2269 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
---|
2270 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2271 | else
|
---|
2272 | if test -n "$AS"; then
|
---|
2273 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
2274 | else
|
---|
2275 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2276 | ac_dummy="$PATH"
|
---|
2277 | for ac_dir in $ac_dummy; do
|
---|
2278 | test -z "$ac_dir" && ac_dir=.
|
---|
2279 | if test -f $ac_dir/$ac_word -o \
|
---|
2280 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2281 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
2282 | break
|
---|
2283 | fi
|
---|
2284 | done
|
---|
2285 | IFS="$ac_save_ifs"
|
---|
2286 | fi
|
---|
2287 | fi
|
---|
2288 | AS="$ac_cv_prog_AS"
|
---|
2289 | if test -n "$AS"; then
|
---|
2290 | echo "$ac_t""$AS" 1>&6
|
---|
2291 | else
|
---|
2292 | echo "$ac_t""no" 1>&6
|
---|
2293 | fi
|
---|
2294 |
|
---|
2295 |
|
---|
2296 | if test -z "$ac_cv_prog_AS"; then
|
---|
2297 | if test -n "$ac_tool_prefix"; then
|
---|
2298 | # Extract the first word of "as", so it can be a program name with args.
|
---|
2299 | set dummy as; ac_word=$2
|
---|
2300 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2301 | echo "configure:2302: checking for $ac_word" >&5
|
---|
2302 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
---|
2303 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2304 | else
|
---|
2305 | if test -n "$AS"; then
|
---|
2306 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
2307 | else
|
---|
2308 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2309 | ac_dummy="$PATH"
|
---|
2310 | for ac_dir in $ac_dummy; do
|
---|
2311 | test -z "$ac_dir" && ac_dir=.
|
---|
2312 | if test -f $ac_dir/$ac_word -o \
|
---|
2313 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2314 | ac_cv_prog_AS="as"
|
---|
2315 | break
|
---|
2316 | fi
|
---|
2317 | done
|
---|
2318 | IFS="$ac_save_ifs"
|
---|
2319 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
|
---|
2320 | fi
|
---|
2321 | fi
|
---|
2322 | AS="$ac_cv_prog_AS"
|
---|
2323 | if test -n "$AS"; then
|
---|
2324 | echo "$ac_t""$AS" 1>&6
|
---|
2325 | else
|
---|
2326 | echo "$ac_t""no" 1>&6
|
---|
2327 | fi
|
---|
2328 |
|
---|
2329 | else
|
---|
2330 | AS="false"
|
---|
2331 | fi
|
---|
2332 | fi
|
---|
2333 |
|
---|
2334 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
2335 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
2336 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2337 | echo "configure:2338: checking for $ac_word" >&5
|
---|
2338 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
---|
2339 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2340 | else
|
---|
2341 | if test -n "$OBJDUMP"; then
|
---|
2342 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
2343 | else
|
---|
2344 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2345 | ac_dummy="$PATH"
|
---|
2346 | for ac_dir in $ac_dummy; do
|
---|
2347 | test -z "$ac_dir" && ac_dir=.
|
---|
2348 | if test -f $ac_dir/$ac_word -o \
|
---|
2349 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2350 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
2351 | break
|
---|
2352 | fi
|
---|
2353 | done
|
---|
2354 | IFS="$ac_save_ifs"
|
---|
2355 | fi
|
---|
2356 | fi
|
---|
2357 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
2358 | if test -n "$OBJDUMP"; then
|
---|
2359 | echo "$ac_t""$OBJDUMP" 1>&6
|
---|
2360 | else
|
---|
2361 | echo "$ac_t""no" 1>&6
|
---|
2362 | fi
|
---|
2363 |
|
---|
2364 |
|
---|
2365 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
2366 | if test -n "$ac_tool_prefix"; then
|
---|
2367 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
2368 | set dummy objdump; ac_word=$2
|
---|
2369 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2370 | echo "configure:2371: checking for $ac_word" >&5
|
---|
2371 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
---|
2372 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2373 | else
|
---|
2374 | if test -n "$OBJDUMP"; then
|
---|
2375 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
2376 | else
|
---|
2377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2378 | ac_dummy="$PATH"
|
---|
2379 | for ac_dir in $ac_dummy; do
|
---|
2380 | test -z "$ac_dir" && ac_dir=.
|
---|
2381 | if test -f $ac_dir/$ac_word -o \
|
---|
2382 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2383 | ac_cv_prog_OBJDUMP="objdump"
|
---|
2384 | break
|
---|
2385 | fi
|
---|
2386 | done
|
---|
2387 | IFS="$ac_save_ifs"
|
---|
2388 | test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
|
---|
2389 | fi
|
---|
2390 | fi
|
---|
2391 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
2392 | if test -n "$OBJDUMP"; then
|
---|
2393 | echo "$ac_t""$OBJDUMP" 1>&6
|
---|
2394 | else
|
---|
2395 | echo "$ac_t""no" 1>&6
|
---|
2396 | fi
|
---|
2397 |
|
---|
2398 | else
|
---|
2399 | OBJDUMP="false"
|
---|
2400 | fi
|
---|
2401 | fi
|
---|
2402 |
|
---|
2403 |
|
---|
2404 | # recent cygwin and mingw systems supply a stub DllMain which the user
|
---|
2405 | # can override, but on older systems we have to supply one
|
---|
2406 | echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
|
---|
2407 | echo "configure:2408: checking if libtool should supply DllMain function" >&5
|
---|
2408 | if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
|
---|
2409 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2410 | else
|
---|
2411 | cat > conftest.$ac_ext <<EOF
|
---|
2412 | #line 2413 "configure"
|
---|
2413 | #include "confdefs.h"
|
---|
2414 |
|
---|
2415 | int main() {
|
---|
2416 | extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
|
---|
2417 | DllMain (0, 0, 0);
|
---|
2418 | ; return 0; }
|
---|
2419 | EOF
|
---|
2420 | if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2421 | rm -rf conftest*
|
---|
2422 | lt_cv_need_dllmain=no
|
---|
2423 | else
|
---|
2424 | echo "configure: failed program was:" >&5
|
---|
2425 | cat conftest.$ac_ext >&5
|
---|
2426 | rm -rf conftest*
|
---|
2427 | lt_cv_need_dllmain=yes
|
---|
2428 | fi
|
---|
2429 | rm -f conftest*
|
---|
2430 | fi
|
---|
2431 |
|
---|
2432 | echo "$ac_t""$lt_cv_need_dllmain" 1>&6
|
---|
2433 |
|
---|
2434 | case "$host/$CC" in
|
---|
2435 | *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
|
---|
2436 | # old mingw systems require "-dll" to link a DLL, while more recent ones
|
---|
2437 | # require "-mdll"
|
---|
2438 | SAVE_CFLAGS="$CFLAGS"
|
---|
2439 | CFLAGS="$CFLAGS -mdll"
|
---|
2440 | echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
|
---|
2441 | echo "configure:2442: checking how to link DLLs" >&5
|
---|
2442 | if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
|
---|
2443 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2444 | else
|
---|
2445 | cat > conftest.$ac_ext <<EOF
|
---|
2446 | #line 2447 "configure"
|
---|
2447 | #include "confdefs.h"
|
---|
2448 |
|
---|
2449 | int main() {
|
---|
2450 |
|
---|
2451 | ; return 0; }
|
---|
2452 | EOF
|
---|
2453 | if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2454 | rm -rf conftest*
|
---|
2455 | lt_cv_cc_dll_switch=-mdll
|
---|
2456 | else
|
---|
2457 | echo "configure: failed program was:" >&5
|
---|
2458 | cat conftest.$ac_ext >&5
|
---|
2459 | rm -rf conftest*
|
---|
2460 | lt_cv_cc_dll_switch=-dll
|
---|
2461 | fi
|
---|
2462 | rm -f conftest*
|
---|
2463 | fi
|
---|
2464 |
|
---|
2465 | echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
|
---|
2466 | CFLAGS="$SAVE_CFLAGS" ;;
|
---|
2467 | *-*-cygwin*)
|
---|
2468 | # cygwin systems need to pass --dll to the linker, and not link
|
---|
2469 | # crt.o which will require a WinMain@16 definition.
|
---|
2470 | lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
|
---|
2471 | esac
|
---|
2472 | ;;
|
---|
2473 |
|
---|
2474 | esac
|
---|
2475 |
|
---|
2476 |
|
---|
2477 | # Save cache, so that ltconfig can load it
|
---|
2478 | cat > confcache <<\EOF
|
---|
2479 | # This file is a shell script that caches the results of configure
|
---|
2480 | # tests run on this system so they can be shared between configure
|
---|
2481 | # scripts and configure runs. It is not useful on other systems.
|
---|
2482 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2483 | #
|
---|
2484 | # By default, configure uses ./config.cache as the cache file,
|
---|
2485 | # creating it if it does not exist already. You can give configure
|
---|
2486 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2487 | # what configure does when it calls configure scripts in
|
---|
2488 | # subdirectories, so they share the cache.
|
---|
2489 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2490 | # config.status only pays attention to the cache file if you give it the
|
---|
2491 | # --recheck option to rerun configure.
|
---|
2492 | #
|
---|
2493 | EOF
|
---|
2494 | # The following way of writing the cache mishandles newlines in values,
|
---|
2495 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2496 | # So, don't put newlines in cache variables' values.
|
---|
2497 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2498 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2499 | (set) 2>&1 |
|
---|
2500 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2501 | *ac_space=\ *)
|
---|
2502 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2503 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2504 | sed -n \
|
---|
2505 | -e "s/'/'\\\\''/g" \
|
---|
2506 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2507 | ;;
|
---|
2508 | *)
|
---|
2509 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2510 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2511 | ;;
|
---|
2512 | esac >> confcache
|
---|
2513 | if cmp -s $cache_file confcache; then
|
---|
2514 | :
|
---|
2515 | else
|
---|
2516 | if test -w $cache_file; then
|
---|
2517 | echo "updating cache $cache_file"
|
---|
2518 | cat confcache > $cache_file
|
---|
2519 | else
|
---|
2520 | echo "not updating unwritable cache $cache_file"
|
---|
2521 | fi
|
---|
2522 | fi
|
---|
2523 | rm -f confcache
|
---|
2524 |
|
---|
2525 |
|
---|
2526 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2527 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2528 | MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2529 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2530 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2531 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2532 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2533 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2534 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2535 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2536 |
|
---|
2537 | # Reload cache, that may have been modified by ltconfig
|
---|
2538 | if test -r "$cache_file"; then
|
---|
2539 | echo "loading cache $cache_file"
|
---|
2540 | . $cache_file
|
---|
2541 | else
|
---|
2542 | echo "creating cache $cache_file"
|
---|
2543 | > $cache_file
|
---|
2544 | fi
|
---|
2545 |
|
---|
2546 |
|
---|
2547 | # This can be used to rebuild libtool when needed
|
---|
2548 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2549 |
|
---|
2550 | # Always use our own libtool.
|
---|
2551 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2552 |
|
---|
2553 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2554 | # clobbered by the next message.
|
---|
2555 | exec 5>>./config.log
|
---|
2556 |
|
---|
2557 |
|
---|
2558 |
|
---|
2559 |
|
---|
2560 |
|
---|
2561 |
|
---|
2562 |
|
---|
2563 |
|
---|
2564 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
|
---|
2565 | echo "configure:2566: checking for garbage collector to use" >&5
|
---|
2566 | # Check whether --enable-java-gc or --disable-java-gc was given.
|
---|
2567 | if test "${enable_java_gc+set}" = set; then
|
---|
2568 | enableval="$enable_java_gc"
|
---|
2569 |
|
---|
2570 | GC=$enableval
|
---|
2571 | else
|
---|
2572 | GC=boehm
|
---|
2573 | fi
|
---|
2574 |
|
---|
2575 |
|
---|
2576 | GCINCS=
|
---|
2577 | if test "$GC" = "boehm"; then
|
---|
2578 | GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
|
---|
2579 | GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
|
---|
2580 | cat >> confdefs.h <<\EOF
|
---|
2581 | #define HAVE_BOEHM_GC 1
|
---|
2582 | EOF
|
---|
2583 |
|
---|
2584 | fi
|
---|
2585 |
|
---|
2586 |
|
---|
2587 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2588 | echo "configure:2589: checking how to run the C preprocessor" >&5
|
---|
2589 | # On Suns, sometimes $CPP names a directory.
|
---|
2590 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2591 | CPP=
|
---|
2592 | fi
|
---|
2593 | if test -z "$CPP"; then
|
---|
2594 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2595 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2596 | else
|
---|
2597 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2598 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2599 | CPP="${CC-cc} -E"
|
---|
2600 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2601 | # not just through cpp.
|
---|
2602 | cat > conftest.$ac_ext <<EOF
|
---|
2603 | #include <sys/types.h>
|
---|
2604 | #line 2605 "configure"
|
---|
2605 | #include "confdefs.h"
|
---|
2606 | #include <assert.h>
|
---|
2607 | Syntax Error
|
---|
2608 | EOF
|
---|
2609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2610 | { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2612 | if test -z "$ac_err"; then
|
---|
2613 | :
|
---|
2614 | else
|
---|
2615 | echo "$ac_err" >&5
|
---|
2616 | echo "configure: failed program was:" >&5
|
---|
2617 | cat conftest.$ac_ext >&5
|
---|
2618 | rm -rf conftest*
|
---|
2619 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2620 | cat > conftest.$ac_ext <<EOF
|
---|
2621 | #include <sys/types.h>
|
---|
2622 | #line 2623 "configure"
|
---|
2623 | #include "confdefs.h"
|
---|
2624 | #include <assert.h>
|
---|
2625 | Syntax Error
|
---|
2626 | EOF
|
---|
2627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2628 | { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2630 | if test -z "$ac_err"; then
|
---|
2631 | :
|
---|
2632 | else
|
---|
2633 | echo "$ac_err" >&5
|
---|
2634 | echo "configure: failed program was:" >&5
|
---|
2635 | cat conftest.$ac_ext >&5
|
---|
2636 | rm -rf conftest*
|
---|
2637 | CPP="${CC-cc} -nologo -E"
|
---|
2638 | cat > conftest.$ac_ext <<EOF
|
---|
2639 | #include <sys/types.h>
|
---|
2640 | #line 2641 "configure"
|
---|
2641 | #include "confdefs.h"
|
---|
2642 | #include <assert.h>
|
---|
2643 | Syntax Error
|
---|
2644 | EOF
|
---|
2645 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2646 | { (eval echo configure:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2647 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2648 | if test -z "$ac_err"; then
|
---|
2649 | :
|
---|
2650 | else
|
---|
2651 | echo "$ac_err" >&5
|
---|
2652 | echo "configure: failed program was:" >&5
|
---|
2653 | cat conftest.$ac_ext >&5
|
---|
2654 | rm -rf conftest*
|
---|
2655 | CPP=/lib/cpp
|
---|
2656 | fi
|
---|
2657 | rm -f conftest*
|
---|
2658 | fi
|
---|
2659 | rm -f conftest*
|
---|
2660 | fi
|
---|
2661 | rm -f conftest*
|
---|
2662 | ac_cv_prog_CPP="$CPP"
|
---|
2663 | fi
|
---|
2664 | CPP="$ac_cv_prog_CPP"
|
---|
2665 | else
|
---|
2666 | ac_cv_prog_CPP="$CPP"
|
---|
2667 | fi
|
---|
2668 | echo "$ac_t""$CPP" 1>&6
|
---|
2669 |
|
---|
2670 | # Read the libtool configuration
|
---|
2671 | rm -f conftest
|
---|
2672 | ./libtool --config > conftest
|
---|
2673 | . ./conftest
|
---|
2674 | rm -f conftest
|
---|
2675 |
|
---|
2676 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
2677 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
|
---|
2678 | echo "configure:2679: checking command to parse $NM output" >&5
|
---|
2679 | if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
|
---|
2680 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2681 | else
|
---|
2682 | # These are sane defaults that work on at least a few old systems.
|
---|
2683 | # {They come from Ultrix. What could be older than Ultrix?!! ;)}
|
---|
2684 |
|
---|
2685 | # Character class describing NM global symbol codes.
|
---|
2686 | ac_symcode='[BCDEGRST]'
|
---|
2687 |
|
---|
2688 | # Regexp to match symbols that can be accessed directly from C.
|
---|
2689 | ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
2690 |
|
---|
2691 | # Transform the above into a raw symbol and a C symbol.
|
---|
2692 | ac_symxfrm='\1 \2\3 \3'
|
---|
2693 |
|
---|
2694 | # Transform an extracted symbol line into a proper C declaration
|
---|
2695 | ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
|
---|
2696 |
|
---|
2697 | # Define system-specific variables.
|
---|
2698 | case "$host_os" in
|
---|
2699 | aix*)
|
---|
2700 | ac_symcode='[BCDT]'
|
---|
2701 | ;;
|
---|
2702 | cygwin* | mingw*)
|
---|
2703 | ac_symcode='[ABCDGISTW]'
|
---|
2704 | ;;
|
---|
2705 | hpux*)
|
---|
2706 | ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
|
---|
2707 | ;;
|
---|
2708 | irix*)
|
---|
2709 | ac_symcode='[BCDEGRST]'
|
---|
2710 | ;;
|
---|
2711 | solaris*)
|
---|
2712 | ac_symcode='[BDT]'
|
---|
2713 | ;;
|
---|
2714 | esac
|
---|
2715 |
|
---|
2716 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
2717 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
2718 | ac_symcode='[ABCDGISTW]'
|
---|
2719 | fi
|
---|
2720 |
|
---|
2721 | # Try without a prefix undercore, then with it.
|
---|
2722 | for ac_symprfx in "" "_"; do
|
---|
2723 |
|
---|
2724 | ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
|
---|
2725 |
|
---|
2726 | # Check to see that the pipe works correctly.
|
---|
2727 | ac_pipe_works=no
|
---|
2728 | rm -f conftest.$ac_ext
|
---|
2729 | cat > conftest.$ac_ext <<EOF
|
---|
2730 | #ifdef __cplusplus
|
---|
2731 | extern "C" {
|
---|
2732 | #endif
|
---|
2733 | char nm_test_var;
|
---|
2734 | void nm_test_func(){}
|
---|
2735 | #ifdef __cplusplus
|
---|
2736 | }
|
---|
2737 | #endif
|
---|
2738 | int main(){nm_test_var='a';nm_test_func;return 0;}
|
---|
2739 | EOF
|
---|
2740 |
|
---|
2741 | if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2742 | # Now try to grab the symbols.
|
---|
2743 | ac_nlist=conftest.nm
|
---|
2744 |
|
---|
2745 | if { (eval echo configure:2746: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
|
---|
2746 |
|
---|
2747 | # Try sorting and uniquifying the output.
|
---|
2748 | if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
|
---|
2749 | mv -f "$ac_nlist"T "$ac_nlist"
|
---|
2750 | else
|
---|
2751 | rm -f "$ac_nlist"T
|
---|
2752 | fi
|
---|
2753 |
|
---|
2754 | # Make sure that we snagged all the symbols we need.
|
---|
2755 | if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
|
---|
2756 | if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
|
---|
2757 | cat <<EOF > conftest.c
|
---|
2758 | #ifdef __cplusplus
|
---|
2759 | extern "C" {
|
---|
2760 | #endif
|
---|
2761 |
|
---|
2762 | EOF
|
---|
2763 | # Now generate the symbol file.
|
---|
2764 | eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
|
---|
2765 |
|
---|
2766 | cat <<EOF >> conftest.c
|
---|
2767 | #if defined (__STDC__) && __STDC__
|
---|
2768 | # define lt_ptr_t void *
|
---|
2769 | #else
|
---|
2770 | # define lt_ptr_t char *
|
---|
2771 | # define const
|
---|
2772 | #endif
|
---|
2773 |
|
---|
2774 | /* The mapping between symbol names and symbols. */
|
---|
2775 | const struct {
|
---|
2776 | const char *name;
|
---|
2777 | lt_ptr_t address;
|
---|
2778 | }
|
---|
2779 | lt_preloaded_symbols[] =
|
---|
2780 | {
|
---|
2781 | EOF
|
---|
2782 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
|
---|
2783 | cat <<\EOF >> conftest.c
|
---|
2784 | {0, (lt_ptr_t) 0}
|
---|
2785 | };
|
---|
2786 |
|
---|
2787 | #ifdef __cplusplus
|
---|
2788 | }
|
---|
2789 | #endif
|
---|
2790 | EOF
|
---|
2791 | # Now try linking the two files.
|
---|
2792 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
2793 | ac_save_LIBS="$LIBS"
|
---|
2794 | ac_save_CFLAGS="$CFLAGS"
|
---|
2795 | LIBS="conftstm.$ac_objext"
|
---|
2796 | CFLAGS="$CFLAGS$no_builtin_flag"
|
---|
2797 | if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
---|
2798 | ac_pipe_works=yes
|
---|
2799 | else
|
---|
2800 | echo "configure: failed program was:" >&5
|
---|
2801 | cat conftest.c >&5
|
---|
2802 | fi
|
---|
2803 | LIBS="$ac_save_LIBS"
|
---|
2804 | CFLAGS="$ac_save_CFLAGS"
|
---|
2805 | else
|
---|
2806 | echo "cannot find nm_test_func in $ac_nlist" >&5
|
---|
2807 | fi
|
---|
2808 | else
|
---|
2809 | echo "cannot find nm_test_var in $ac_nlist" >&5
|
---|
2810 | fi
|
---|
2811 | else
|
---|
2812 | echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
|
---|
2813 | fi
|
---|
2814 | else
|
---|
2815 | echo "$progname: failed program was:" >&5
|
---|
2816 | cat conftest.c >&5
|
---|
2817 | fi
|
---|
2818 | rm -rf conftest* conftst*
|
---|
2819 |
|
---|
2820 | # Do not use the global_symbol_pipe unless it works.
|
---|
2821 | if test "$ac_pipe_works" = yes; then
|
---|
2822 | if test x"$ac_symprfx" = x"_"; then
|
---|
2823 | ac_cv_sys_symbol_underscore=yes
|
---|
2824 | else
|
---|
2825 | ac_cv_sys_symbol_underscore=no
|
---|
2826 | fi
|
---|
2827 | break
|
---|
2828 | else
|
---|
2829 | ac_cv_sys_global_symbol_pipe=
|
---|
2830 | fi
|
---|
2831 | done
|
---|
2832 |
|
---|
2833 | fi
|
---|
2834 |
|
---|
2835 |
|
---|
2836 | ac_result=yes
|
---|
2837 | if test -z "$ac_cv_sys_global_symbol_pipe"; then
|
---|
2838 | ac_result=no
|
---|
2839 | fi
|
---|
2840 | echo "$ac_t""$ac_result" 1>&6
|
---|
2841 |
|
---|
2842 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2843 | echo "configure:2844: checking for ANSI C header files" >&5
|
---|
2844 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2845 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2846 | else
|
---|
2847 | cat > conftest.$ac_ext <<EOF
|
---|
2848 | #include <sys/types.h>
|
---|
2849 | #line 2850 "configure"
|
---|
2850 | #include "confdefs.h"
|
---|
2851 | #include <stdlib.h>
|
---|
2852 | #include <stdarg.h>
|
---|
2853 | #include <string.h>
|
---|
2854 | #include <float.h>
|
---|
2855 | EOF
|
---|
2856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2857 | { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2859 | if test -z "$ac_err"; then
|
---|
2860 | rm -rf conftest*
|
---|
2861 | ac_cv_header_stdc=yes
|
---|
2862 | else
|
---|
2863 | echo "$ac_err" >&5
|
---|
2864 | echo "configure: failed program was:" >&5
|
---|
2865 | cat conftest.$ac_ext >&5
|
---|
2866 | rm -rf conftest*
|
---|
2867 | ac_cv_header_stdc=no
|
---|
2868 | fi
|
---|
2869 | rm -f conftest*
|
---|
2870 |
|
---|
2871 | if test $ac_cv_header_stdc = yes; then
|
---|
2872 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2873 | cat > conftest.$ac_ext <<EOF
|
---|
2874 | #line 2875 "configure"
|
---|
2875 | #include "confdefs.h"
|
---|
2876 | #include <string.h>
|
---|
2877 | EOF
|
---|
2878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2879 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2880 | :
|
---|
2881 | else
|
---|
2882 | rm -rf conftest*
|
---|
2883 | ac_cv_header_stdc=no
|
---|
2884 | fi
|
---|
2885 | rm -f conftest*
|
---|
2886 |
|
---|
2887 | fi
|
---|
2888 |
|
---|
2889 | if test $ac_cv_header_stdc = yes; then
|
---|
2890 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2891 | cat > conftest.$ac_ext <<EOF
|
---|
2892 | #line 2893 "configure"
|
---|
2893 | #include "confdefs.h"
|
---|
2894 | #include <stdlib.h>
|
---|
2895 | EOF
|
---|
2896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2897 | egrep "free" >/dev/null 2>&1; then
|
---|
2898 | :
|
---|
2899 | else
|
---|
2900 | rm -rf conftest*
|
---|
2901 | ac_cv_header_stdc=no
|
---|
2902 | fi
|
---|
2903 | rm -f conftest*
|
---|
2904 |
|
---|
2905 | fi
|
---|
2906 |
|
---|
2907 | if test $ac_cv_header_stdc = yes; then
|
---|
2908 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2909 | if test "$cross_compiling" = yes; then
|
---|
2910 | :
|
---|
2911 | else
|
---|
2912 | cat > conftest.$ac_ext <<EOF
|
---|
2913 | #line 2914 "configure"
|
---|
2914 | #include "confdefs.h"
|
---|
2915 | #include <ctype.h>
|
---|
2916 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2917 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2918 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2919 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2920 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2921 | exit (0); }
|
---|
2922 |
|
---|
2923 | EOF
|
---|
2924 | if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2925 | then
|
---|
2926 | :
|
---|
2927 | else
|
---|
2928 | echo "configure: failed program was:" >&5
|
---|
2929 | cat conftest.$ac_ext >&5
|
---|
2930 | rm -fr conftest*
|
---|
2931 | ac_cv_header_stdc=no
|
---|
2932 | fi
|
---|
2933 | rm -fr conftest*
|
---|
2934 | fi
|
---|
2935 |
|
---|
2936 | fi
|
---|
2937 | fi
|
---|
2938 |
|
---|
2939 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2940 | if test $ac_cv_header_stdc = yes; then
|
---|
2941 | cat >> confdefs.h <<\EOF
|
---|
2942 | #define STDC_HEADERS 1
|
---|
2943 | EOF
|
---|
2944 |
|
---|
2945 | fi
|
---|
2946 |
|
---|
2947 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
|
---|
2948 | if test "${enable_ltdl_install+set}" = set; then
|
---|
2949 | enableval="$enable_ltdl_install"
|
---|
2950 | :
|
---|
2951 | fi
|
---|
2952 |
|
---|
2953 |
|
---|
2954 |
|
---|
2955 |
|
---|
2956 | if test x"${enable_ltdl_install-no}" != xno; then
|
---|
2957 | INSTALL_LTDL_TRUE=
|
---|
2958 | INSTALL_LTDL_FALSE='#'
|
---|
2959 | else
|
---|
2960 | INSTALL_LTDL_TRUE='#'
|
---|
2961 | INSTALL_LTDL_FALSE=
|
---|
2962 | fi
|
---|
2963 |
|
---|
2964 |
|
---|
2965 | if test x"${enable_ltdl_convenience-no}" != xno; then
|
---|
2966 | CONVENIENCE_LTDL_TRUE=
|
---|
2967 | CONVENIENCE_LTDL_FALSE='#'
|
---|
2968 | else
|
---|
2969 | CONVENIENCE_LTDL_TRUE='#'
|
---|
2970 | CONVENIENCE_LTDL_FALSE=
|
---|
2971 | fi
|
---|
2972 |
|
---|
2973 | echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
|
---|
2974 | echo "configure:2975: checking which extension is used for shared libraries" >&5
|
---|
2975 | if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
|
---|
2976 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2977 | else
|
---|
2978 | (
|
---|
2979 | last=
|
---|
2980 | for spec in $library_names_spec; do
|
---|
2981 | last="$spec"
|
---|
2982 | done
|
---|
2983 |
|
---|
2984 | echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
|
---|
2985 |
|
---|
2986 | )
|
---|
2987 | libltdl_cv_shlibext=`cat conftest`
|
---|
2988 | rm -f conftest
|
---|
2989 |
|
---|
2990 | fi
|
---|
2991 |
|
---|
2992 | echo "$ac_t""$libltdl_cv_shlibext" 1>&6
|
---|
2993 | if test -n "$libltdl_cv_shlibext"; then
|
---|
2994 | cat >> confdefs.h <<EOF
|
---|
2995 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
|
---|
2996 | EOF
|
---|
2997 |
|
---|
2998 | fi
|
---|
2999 |
|
---|
3000 | echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
|
---|
3001 | echo "configure:3002: checking which variable specifies run-time library path" >&5
|
---|
3002 | if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
|
---|
3003 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3004 | else
|
---|
3005 | libltdl_cv_shlibpath_var="$shlibpath_var"
|
---|
3006 | fi
|
---|
3007 |
|
---|
3008 | echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
|
---|
3009 | if test -n "$libltdl_cv_shlibpath_var"; then
|
---|
3010 | cat >> confdefs.h <<EOF
|
---|
3011 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
|
---|
3012 | EOF
|
---|
3013 |
|
---|
3014 | fi
|
---|
3015 |
|
---|
3016 | echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
|
---|
3017 | echo "configure:3018: checking for the default library search path" >&5
|
---|
3018 | if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
|
---|
3019 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3020 | else
|
---|
3021 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
|
---|
3022 | fi
|
---|
3023 |
|
---|
3024 | echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
|
---|
3025 | if test -n "$libltdl_cv_sys_search_path"; then
|
---|
3026 | case "$host" in
|
---|
3027 | *-*-mingw*) pathsep=";" ;;
|
---|
3028 | *) pathsep=":" ;;
|
---|
3029 | esac
|
---|
3030 | sys_search_path=
|
---|
3031 | for dir in $libltdl_cv_sys_search_path; do
|
---|
3032 | if test -z "$sys_search_path"; then
|
---|
3033 | sys_search_path="$dir"
|
---|
3034 | else
|
---|
3035 | sys_search_path="$sys_search_path$pathsep$dir"
|
---|
3036 | fi
|
---|
3037 | done
|
---|
3038 | cat >> confdefs.h <<EOF
|
---|
3039 | #define LTDL_SYSSEARCHPATH "$sys_search_path"
|
---|
3040 | EOF
|
---|
3041 |
|
---|
3042 | fi
|
---|
3043 |
|
---|
3044 | echo $ac_n "checking for objdir""... $ac_c" 1>&6
|
---|
3045 | echo "configure:3046: checking for objdir" >&5
|
---|
3046 | if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
|
---|
3047 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3048 | else
|
---|
3049 | libltdl_cv_objdir="$objdir"
|
---|
3050 | if test -n "$objdir"; then
|
---|
3051 | :
|
---|
3052 | else
|
---|
3053 | rm -f .libs 2>/dev/null
|
---|
3054 | mkdir .libs 2>/dev/null
|
---|
3055 | if test -d .libs; then
|
---|
3056 | libltdl_cv_objdir=.libs
|
---|
3057 | else
|
---|
3058 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
3059 | libltdl_cv_objdir=_libs
|
---|
3060 | fi
|
---|
3061 | rmdir .libs 2>/dev/null
|
---|
3062 | fi
|
---|
3063 | fi
|
---|
3064 |
|
---|
3065 | echo "$ac_t""$libltdl_cv_objdir" 1>&6
|
---|
3066 | cat >> confdefs.h <<EOF
|
---|
3067 | #define LTDL_OBJDIR "$libltdl_cv_objdir/"
|
---|
3068 | EOF
|
---|
3069 |
|
---|
3070 |
|
---|
3071 | echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
|
---|
3072 | echo "configure:3073: checking whether libtool supports -dlopen/-dlpreopen" >&5
|
---|
3073 | if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
|
---|
3074 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3075 | else
|
---|
3076 | if test -n "$global_symbol_pipe"; then
|
---|
3077 | libltdl_cv_preloaded_symbols=yes
|
---|
3078 | else
|
---|
3079 | libltdl_cv_preloaded_symbols=no
|
---|
3080 | fi
|
---|
3081 |
|
---|
3082 | fi
|
---|
3083 |
|
---|
3084 | echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
|
---|
3085 | if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
|
---|
3086 | cat >> confdefs.h <<\EOF
|
---|
3087 | #define HAVE_PRELOADED_SYMBOLS 1
|
---|
3088 | EOF
|
---|
3089 |
|
---|
3090 | fi
|
---|
3091 |
|
---|
3092 | LIBADD_DL=
|
---|
3093 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
---|
3094 | echo "configure:3095: checking for dlopen in -ldl" >&5
|
---|
3095 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
---|
3096 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3097 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3098 | else
|
---|
3099 | ac_save_LIBS="$LIBS"
|
---|
3100 | LIBS="-ldl $LIBS"
|
---|
3101 | cat > conftest.$ac_ext <<EOF
|
---|
3102 | #line 3103 "configure"
|
---|
3103 | #include "confdefs.h"
|
---|
3104 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3105 | /* We use char because int might match the return type of a gcc2
|
---|
3106 | builtin and then its argument prototype would still apply. */
|
---|
3107 | char dlopen();
|
---|
3108 |
|
---|
3109 | int main() {
|
---|
3110 | dlopen()
|
---|
3111 | ; return 0; }
|
---|
3112 | EOF
|
---|
3113 | if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3114 | rm -rf conftest*
|
---|
3115 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3116 | else
|
---|
3117 | echo "configure: failed program was:" >&5
|
---|
3118 | cat conftest.$ac_ext >&5
|
---|
3119 | rm -rf conftest*
|
---|
3120 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3121 | fi
|
---|
3122 | rm -f conftest*
|
---|
3123 | LIBS="$ac_save_LIBS"
|
---|
3124 |
|
---|
3125 | fi
|
---|
3126 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3127 | echo "$ac_t""yes" 1>&6
|
---|
3128 | cat >> confdefs.h <<\EOF
|
---|
3129 | #define HAVE_LIBDL 1
|
---|
3130 | EOF
|
---|
3131 | LIBADD_DL="-ldl"
|
---|
3132 | else
|
---|
3133 | echo "$ac_t""no" 1>&6
|
---|
3134 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
---|
3135 | echo "configure:3136: checking for dlopen" >&5
|
---|
3136 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
|
---|
3137 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3138 | else
|
---|
3139 | cat > conftest.$ac_ext <<EOF
|
---|
3140 | #line 3141 "configure"
|
---|
3141 | #include "confdefs.h"
|
---|
3142 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3143 | which can conflict with char dlopen(); below. */
|
---|
3144 | #include <assert.h>
|
---|
3145 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3146 | /* We use char because int might match the return type of a gcc2
|
---|
3147 | builtin and then its argument prototype would still apply. */
|
---|
3148 | char dlopen();
|
---|
3149 |
|
---|
3150 | int main() {
|
---|
3151 |
|
---|
3152 | /* The GNU C library defines this for functions which it implements
|
---|
3153 | to always fail with ENOSYS. Some functions are actually named
|
---|
3154 | something starting with __ and the normal name is an alias. */
|
---|
3155 | #if defined (__stub_dlopen) || defined (__stub___dlopen)
|
---|
3156 | choke me
|
---|
3157 | #else
|
---|
3158 | dlopen();
|
---|
3159 | #endif
|
---|
3160 |
|
---|
3161 | ; return 0; }
|
---|
3162 | EOF
|
---|
3163 | if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3164 | rm -rf conftest*
|
---|
3165 | eval "ac_cv_func_dlopen=yes"
|
---|
3166 | else
|
---|
3167 | echo "configure: failed program was:" >&5
|
---|
3168 | cat conftest.$ac_ext >&5
|
---|
3169 | rm -rf conftest*
|
---|
3170 | eval "ac_cv_func_dlopen=no"
|
---|
3171 | fi
|
---|
3172 | rm -f conftest*
|
---|
3173 | fi
|
---|
3174 |
|
---|
3175 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
|
---|
3176 | echo "$ac_t""yes" 1>&6
|
---|
3177 | cat >> confdefs.h <<\EOF
|
---|
3178 | #define HAVE_LIBDL 1
|
---|
3179 | EOF
|
---|
3180 |
|
---|
3181 | else
|
---|
3182 | echo "$ac_t""no" 1>&6
|
---|
3183 | echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
|
---|
3184 | echo "configure:3185: checking for dlopen in -lsvld" >&5
|
---|
3185 | ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
|
---|
3186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3187 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3188 | else
|
---|
3189 | ac_save_LIBS="$LIBS"
|
---|
3190 | LIBS="-lsvld $LIBS"
|
---|
3191 | cat > conftest.$ac_ext <<EOF
|
---|
3192 | #line 3193 "configure"
|
---|
3193 | #include "confdefs.h"
|
---|
3194 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3195 | /* We use char because int might match the return type of a gcc2
|
---|
3196 | builtin and then its argument prototype would still apply. */
|
---|
3197 | char dlopen();
|
---|
3198 |
|
---|
3199 | int main() {
|
---|
3200 | dlopen()
|
---|
3201 | ; return 0; }
|
---|
3202 | EOF
|
---|
3203 | if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3204 | rm -rf conftest*
|
---|
3205 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3206 | else
|
---|
3207 | echo "configure: failed program was:" >&5
|
---|
3208 | cat conftest.$ac_ext >&5
|
---|
3209 | rm -rf conftest*
|
---|
3210 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3211 | fi
|
---|
3212 | rm -f conftest*
|
---|
3213 | LIBS="$ac_save_LIBS"
|
---|
3214 |
|
---|
3215 | fi
|
---|
3216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3217 | echo "$ac_t""yes" 1>&6
|
---|
3218 | cat >> confdefs.h <<\EOF
|
---|
3219 | #define HAVE_LIBDL 1
|
---|
3220 | EOF
|
---|
3221 | LIBADD_DL="-lsvld"
|
---|
3222 |
|
---|
3223 | else
|
---|
3224 | echo "$ac_t""no" 1>&6
|
---|
3225 | fi
|
---|
3226 |
|
---|
3227 | fi
|
---|
3228 |
|
---|
3229 | fi
|
---|
3230 |
|
---|
3231 | echo $ac_n "checking for shl_load""... $ac_c" 1>&6
|
---|
3232 | echo "configure:3233: checking for shl_load" >&5
|
---|
3233 | if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
|
---|
3234 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3235 | else
|
---|
3236 | cat > conftest.$ac_ext <<EOF
|
---|
3237 | #line 3238 "configure"
|
---|
3238 | #include "confdefs.h"
|
---|
3239 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3240 | which can conflict with char shl_load(); below. */
|
---|
3241 | #include <assert.h>
|
---|
3242 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3243 | /* We use char because int might match the return type of a gcc2
|
---|
3244 | builtin and then its argument prototype would still apply. */
|
---|
3245 | char shl_load();
|
---|
3246 |
|
---|
3247 | int main() {
|
---|
3248 |
|
---|
3249 | /* The GNU C library defines this for functions which it implements
|
---|
3250 | to always fail with ENOSYS. Some functions are actually named
|
---|
3251 | something starting with __ and the normal name is an alias. */
|
---|
3252 | #if defined (__stub_shl_load) || defined (__stub___shl_load)
|
---|
3253 | choke me
|
---|
3254 | #else
|
---|
3255 | shl_load();
|
---|
3256 | #endif
|
---|
3257 |
|
---|
3258 | ; return 0; }
|
---|
3259 | EOF
|
---|
3260 | if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3261 | rm -rf conftest*
|
---|
3262 | eval "ac_cv_func_shl_load=yes"
|
---|
3263 | else
|
---|
3264 | echo "configure: failed program was:" >&5
|
---|
3265 | cat conftest.$ac_ext >&5
|
---|
3266 | rm -rf conftest*
|
---|
3267 | eval "ac_cv_func_shl_load=no"
|
---|
3268 | fi
|
---|
3269 | rm -f conftest*
|
---|
3270 | fi
|
---|
3271 |
|
---|
3272 | if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
|
---|
3273 | echo "$ac_t""yes" 1>&6
|
---|
3274 | cat >> confdefs.h <<\EOF
|
---|
3275 | #define HAVE_SHL_LOAD 1
|
---|
3276 | EOF
|
---|
3277 |
|
---|
3278 | else
|
---|
3279 | echo "$ac_t""no" 1>&6
|
---|
3280 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
---|
3281 | echo "configure:3282: checking for shl_load in -ldld" >&5
|
---|
3282 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
---|
3283 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3284 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3285 | else
|
---|
3286 | ac_save_LIBS="$LIBS"
|
---|
3287 | LIBS="-ldld $LIBS"
|
---|
3288 | cat > conftest.$ac_ext <<EOF
|
---|
3289 | #line 3290 "configure"
|
---|
3290 | #include "confdefs.h"
|
---|
3291 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3292 | /* We use char because int might match the return type of a gcc2
|
---|
3293 | builtin and then its argument prototype would still apply. */
|
---|
3294 | char shl_load();
|
---|
3295 |
|
---|
3296 | int main() {
|
---|
3297 | shl_load()
|
---|
3298 | ; return 0; }
|
---|
3299 | EOF
|
---|
3300 | if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3301 | rm -rf conftest*
|
---|
3302 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3303 | else
|
---|
3304 | echo "configure: failed program was:" >&5
|
---|
3305 | cat conftest.$ac_ext >&5
|
---|
3306 | rm -rf conftest*
|
---|
3307 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3308 | fi
|
---|
3309 | rm -f conftest*
|
---|
3310 | LIBS="$ac_save_LIBS"
|
---|
3311 |
|
---|
3312 | fi
|
---|
3313 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3314 | echo "$ac_t""yes" 1>&6
|
---|
3315 | cat >> confdefs.h <<\EOF
|
---|
3316 | #define HAVE_SHL_LOAD 1
|
---|
3317 | EOF
|
---|
3318 |
|
---|
3319 | LIBADD_DL="$LIBADD_DL -ldld"
|
---|
3320 | else
|
---|
3321 | echo "$ac_t""no" 1>&6
|
---|
3322 | fi
|
---|
3323 |
|
---|
3324 |
|
---|
3325 | fi
|
---|
3326 |
|
---|
3327 | echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
|
---|
3328 | echo "configure:3329: checking for dld_link in -ldld" >&5
|
---|
3329 | ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
|
---|
3330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3331 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3332 | else
|
---|
3333 | ac_save_LIBS="$LIBS"
|
---|
3334 | LIBS="-ldld $LIBS"
|
---|
3335 | cat > conftest.$ac_ext <<EOF
|
---|
3336 | #line 3337 "configure"
|
---|
3337 | #include "confdefs.h"
|
---|
3338 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3339 | /* We use char because int might match the return type of a gcc2
|
---|
3340 | builtin and then its argument prototype would still apply. */
|
---|
3341 | char dld_link();
|
---|
3342 |
|
---|
3343 | int main() {
|
---|
3344 | dld_link()
|
---|
3345 | ; return 0; }
|
---|
3346 | EOF
|
---|
3347 | if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3348 | rm -rf conftest*
|
---|
3349 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3350 | else
|
---|
3351 | echo "configure: failed program was:" >&5
|
---|
3352 | cat conftest.$ac_ext >&5
|
---|
3353 | rm -rf conftest*
|
---|
3354 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3355 | fi
|
---|
3356 | rm -f conftest*
|
---|
3357 | LIBS="$ac_save_LIBS"
|
---|
3358 |
|
---|
3359 | fi
|
---|
3360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3361 | echo "$ac_t""yes" 1>&6
|
---|
3362 | cat >> confdefs.h <<\EOF
|
---|
3363 | #define HAVE_DLD 1
|
---|
3364 | EOF
|
---|
3365 | test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
|
---|
3366 | else
|
---|
3367 | echo "$ac_t""no" 1>&6
|
---|
3368 | fi
|
---|
3369 |
|
---|
3370 |
|
---|
3371 |
|
---|
3372 | if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
|
---|
3373 | LIBS_SAVE="$LIBS"
|
---|
3374 | LIBS="$LIBS $LIBADD_DL"
|
---|
3375 | for ac_func in dlerror
|
---|
3376 | do
|
---|
3377 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3378 | echo "configure:3379: checking for $ac_func" >&5
|
---|
3379 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3380 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3381 | else
|
---|
3382 | cat > conftest.$ac_ext <<EOF
|
---|
3383 | #line 3384 "configure"
|
---|
3384 | #include "confdefs.h"
|
---|
3385 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3386 | which can conflict with char $ac_func(); below. */
|
---|
3387 | #include <assert.h>
|
---|
3388 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3389 | /* We use char because int might match the return type of a gcc2
|
---|
3390 | builtin and then its argument prototype would still apply. */
|
---|
3391 | char $ac_func();
|
---|
3392 |
|
---|
3393 | int main() {
|
---|
3394 |
|
---|
3395 | /* The GNU C library defines this for functions which it implements
|
---|
3396 | to always fail with ENOSYS. Some functions are actually named
|
---|
3397 | something starting with __ and the normal name is an alias. */
|
---|
3398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3399 | choke me
|
---|
3400 | #else
|
---|
3401 | $ac_func();
|
---|
3402 | #endif
|
---|
3403 |
|
---|
3404 | ; return 0; }
|
---|
3405 | EOF
|
---|
3406 | if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3407 | rm -rf conftest*
|
---|
3408 | eval "ac_cv_func_$ac_func=yes"
|
---|
3409 | else
|
---|
3410 | echo "configure: failed program was:" >&5
|
---|
3411 | cat conftest.$ac_ext >&5
|
---|
3412 | rm -rf conftest*
|
---|
3413 | eval "ac_cv_func_$ac_func=no"
|
---|
3414 | fi
|
---|
3415 | rm -f conftest*
|
---|
3416 | fi
|
---|
3417 |
|
---|
3418 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3419 | echo "$ac_t""yes" 1>&6
|
---|
3420 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3421 | cat >> confdefs.h <<EOF
|
---|
3422 | #define $ac_tr_func 1
|
---|
3423 | EOF
|
---|
3424 |
|
---|
3425 | else
|
---|
3426 | echo "$ac_t""no" 1>&6
|
---|
3427 | fi
|
---|
3428 | done
|
---|
3429 |
|
---|
3430 | LIBS="$LIBS_SAVE"
|
---|
3431 | fi
|
---|
3432 |
|
---|
3433 | echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
|
---|
3434 | echo "configure:3435: checking for _ prefix in compiled symbols" >&5
|
---|
3435 | if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
|
---|
3436 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3437 | else
|
---|
3438 | ac_cv_sys_symbol_underscore=no
|
---|
3439 | cat > conftest.$ac_ext <<EOF
|
---|
3440 | void nm_test_func(){}
|
---|
3441 | int main(){nm_test_func;return 0;}
|
---|
3442 | EOF
|
---|
3443 | if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3444 | # Now try to grab the symbols.
|
---|
3445 | ac_nlist=conftest.nm
|
---|
3446 | if { (eval echo configure:3447: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
|
---|
3447 | # See whether the symbols have a leading underscore.
|
---|
3448 | if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
|
---|
3449 | ac_cv_sys_symbol_underscore=yes
|
---|
3450 | else
|
---|
3451 | if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
|
---|
3452 | :
|
---|
3453 | else
|
---|
3454 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5
|
---|
3455 | fi
|
---|
3456 | fi
|
---|
3457 | else
|
---|
3458 | echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
|
---|
3459 | fi
|
---|
3460 | else
|
---|
3461 | echo "configure: failed program was:" >&5
|
---|
3462 | cat conftest.c >&5
|
---|
3463 | fi
|
---|
3464 | rm -rf conftest*
|
---|
3465 |
|
---|
3466 | fi
|
---|
3467 |
|
---|
3468 | echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
|
---|
3469 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then
|
---|
3470 | if test x"$ac_cv_func_dlopen" = xyes ||
|
---|
3471 | test x"$ac_cv_lib_dl_dlopen" = xyes ; then
|
---|
3472 | echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
|
---|
3473 | echo "configure:3474: checking whether we have to add an underscore for dlsym" >&5
|
---|
3474 | if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
|
---|
3475 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3476 | else
|
---|
3477 | if test "$cross_compiling" = yes; then
|
---|
3478 | libltdl_cv_need_uscore=cross
|
---|
3479 |
|
---|
3480 | else
|
---|
3481 | cat > conftest.$ac_ext <<EOF
|
---|
3482 | #line 3483 "configure"
|
---|
3483 | #include "confdefs.h"
|
---|
3484 |
|
---|
3485 | #if HAVE_DLFCN_H
|
---|
3486 | #include <dlfcn.h>
|
---|
3487 | #endif
|
---|
3488 |
|
---|
3489 | #include <stdio.h>
|
---|
3490 |
|
---|
3491 | #ifdef RTLD_GLOBAL
|
---|
3492 | # define LTDL_GLOBAL RTLD_GLOBAL
|
---|
3493 | #else
|
---|
3494 | # ifdef DL_GLOBAL
|
---|
3495 | # define LTDL_GLOBAL DL_GLOBAL
|
---|
3496 | # else
|
---|
3497 | # define LTDL_GLOBAL 0
|
---|
3498 | # endif
|
---|
3499 | #endif
|
---|
3500 |
|
---|
3501 | /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
|
---|
3502 | find out it does not work in some platform. */
|
---|
3503 | #ifndef LTDL_LAZY_OR_NOW
|
---|
3504 | # ifdef RTLD_LAZY
|
---|
3505 | # define LTDL_LAZY_OR_NOW RTLD_LAZY
|
---|
3506 | # else
|
---|
3507 | # ifdef DL_LAZY
|
---|
3508 | # define LTDL_LAZY_OR_NOW DL_LAZY
|
---|
3509 | # else
|
---|
3510 | # ifdef RTLD_NOW
|
---|
3511 | # define LTDL_LAZY_OR_NOW RTLD_NOW
|
---|
3512 | # else
|
---|
3513 | # ifdef DL_NOW
|
---|
3514 | # define LTDL_LAZY_OR_NOW DL_NOW
|
---|
3515 | # else
|
---|
3516 | # define LTDL_LAZY_OR_NOW 0
|
---|
3517 | # endif
|
---|
3518 | # endif
|
---|
3519 | # endif
|
---|
3520 | # endif
|
---|
3521 | #endif
|
---|
3522 |
|
---|
3523 | fnord() { int i=42;}
|
---|
3524 | main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
|
---|
3525 | if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
|
---|
3526 | if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
|
---|
3527 |
|
---|
3528 | EOF
|
---|
3529 | if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3530 | then
|
---|
3531 | libltdl_cv_need_uscore=no
|
---|
3532 | else
|
---|
3533 | echo "configure: failed program was:" >&5
|
---|
3534 | cat conftest.$ac_ext >&5
|
---|
3535 | rm -fr conftest*
|
---|
3536 | libltdl_cv_need_uscore=yes
|
---|
3537 | fi
|
---|
3538 | rm -fr conftest*
|
---|
3539 | fi
|
---|
3540 |
|
---|
3541 | fi
|
---|
3542 |
|
---|
3543 | echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
|
---|
3544 | fi
|
---|
3545 | fi
|
---|
3546 |
|
---|
3547 | if test x"$libltdl_cv_need_uscore" = xyes; then
|
---|
3548 | cat >> confdefs.h <<\EOF
|
---|
3549 | #define NEED_USCORE 1
|
---|
3550 | EOF
|
---|
3551 |
|
---|
3552 | fi
|
---|
3553 |
|
---|
3554 |
|
---|
3555 |
|
---|
3556 |
|
---|
3557 | for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
|
---|
3558 | do
|
---|
3559 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3560 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3561 | echo "configure:3562: checking for $ac_hdr" >&5
|
---|
3562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3563 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3564 | else
|
---|
3565 | cat > conftest.$ac_ext <<EOF
|
---|
3566 | #include <sys/types.h>
|
---|
3567 | #line 3568 "configure"
|
---|
3568 | #include "confdefs.h"
|
---|
3569 | #include <$ac_hdr>
|
---|
3570 | EOF
|
---|
3571 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3572 | { (eval echo configure:3573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3573 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3574 | if test -z "$ac_err"; then
|
---|
3575 | rm -rf conftest*
|
---|
3576 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3577 | else
|
---|
3578 | echo "$ac_err" >&5
|
---|
3579 | echo "configure: failed program was:" >&5
|
---|
3580 | cat conftest.$ac_ext >&5
|
---|
3581 | rm -rf conftest*
|
---|
3582 | eval "ac_cv_header_$ac_safe=no"
|
---|
3583 | fi
|
---|
3584 | rm -f conftest*
|
---|
3585 | fi
|
---|
3586 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3587 | echo "$ac_t""yes" 1>&6
|
---|
3588 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3589 | cat >> confdefs.h <<EOF
|
---|
3590 | #define $ac_tr_hdr 1
|
---|
3591 | EOF
|
---|
3592 |
|
---|
3593 | else
|
---|
3594 | echo "$ac_t""no" 1>&6
|
---|
3595 | fi
|
---|
3596 | done
|
---|
3597 |
|
---|
3598 | for ac_hdr in string.h strings.h
|
---|
3599 | do
|
---|
3600 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3601 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3602 | echo "configure:3603: checking for $ac_hdr" >&5
|
---|
3603 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3604 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3605 | else
|
---|
3606 | cat > conftest.$ac_ext <<EOF
|
---|
3607 | #include <sys/types.h>
|
---|
3608 | #line 3609 "configure"
|
---|
3609 | #include "confdefs.h"
|
---|
3610 | #include <$ac_hdr>
|
---|
3611 | EOF
|
---|
3612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3613 | { (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3615 | if test -z "$ac_err"; then
|
---|
3616 | rm -rf conftest*
|
---|
3617 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3618 | else
|
---|
3619 | echo "$ac_err" >&5
|
---|
3620 | echo "configure: failed program was:" >&5
|
---|
3621 | cat conftest.$ac_ext >&5
|
---|
3622 | rm -rf conftest*
|
---|
3623 | eval "ac_cv_header_$ac_safe=no"
|
---|
3624 | fi
|
---|
3625 | rm -f conftest*
|
---|
3626 | fi
|
---|
3627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3628 | echo "$ac_t""yes" 1>&6
|
---|
3629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3630 | cat >> confdefs.h <<EOF
|
---|
3631 | #define $ac_tr_hdr 1
|
---|
3632 | EOF
|
---|
3633 | break
|
---|
3634 | else
|
---|
3635 | echo "$ac_t""no" 1>&6
|
---|
3636 | fi
|
---|
3637 | done
|
---|
3638 |
|
---|
3639 | for ac_func in strchr index
|
---|
3640 | do
|
---|
3641 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3642 | echo "configure:3643: checking for $ac_func" >&5
|
---|
3643 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3644 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3645 | else
|
---|
3646 | cat > conftest.$ac_ext <<EOF
|
---|
3647 | #line 3648 "configure"
|
---|
3648 | #include "confdefs.h"
|
---|
3649 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3650 | which can conflict with char $ac_func(); below. */
|
---|
3651 | #include <assert.h>
|
---|
3652 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3653 | /* We use char because int might match the return type of a gcc2
|
---|
3654 | builtin and then its argument prototype would still apply. */
|
---|
3655 | char $ac_func();
|
---|
3656 |
|
---|
3657 | int main() {
|
---|
3658 |
|
---|
3659 | /* The GNU C library defines this for functions which it implements
|
---|
3660 | to always fail with ENOSYS. Some functions are actually named
|
---|
3661 | something starting with __ and the normal name is an alias. */
|
---|
3662 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3663 | choke me
|
---|
3664 | #else
|
---|
3665 | $ac_func();
|
---|
3666 | #endif
|
---|
3667 |
|
---|
3668 | ; return 0; }
|
---|
3669 | EOF
|
---|
3670 | if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3671 | rm -rf conftest*
|
---|
3672 | eval "ac_cv_func_$ac_func=yes"
|
---|
3673 | else
|
---|
3674 | echo "configure: failed program was:" >&5
|
---|
3675 | cat conftest.$ac_ext >&5
|
---|
3676 | rm -rf conftest*
|
---|
3677 | eval "ac_cv_func_$ac_func=no"
|
---|
3678 | fi
|
---|
3679 | rm -f conftest*
|
---|
3680 | fi
|
---|
3681 |
|
---|
3682 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3683 | echo "$ac_t""yes" 1>&6
|
---|
3684 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3685 | cat >> confdefs.h <<EOF
|
---|
3686 | #define $ac_tr_func 1
|
---|
3687 | EOF
|
---|
3688 | break
|
---|
3689 | else
|
---|
3690 | echo "$ac_t""no" 1>&6
|
---|
3691 | fi
|
---|
3692 | done
|
---|
3693 |
|
---|
3694 | for ac_func in strrchr rindex
|
---|
3695 | do
|
---|
3696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3697 | echo "configure:3698: checking for $ac_func" >&5
|
---|
3698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3699 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3700 | else
|
---|
3701 | cat > conftest.$ac_ext <<EOF
|
---|
3702 | #line 3703 "configure"
|
---|
3703 | #include "confdefs.h"
|
---|
3704 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3705 | which can conflict with char $ac_func(); below. */
|
---|
3706 | #include <assert.h>
|
---|
3707 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3708 | /* We use char because int might match the return type of a gcc2
|
---|
3709 | builtin and then its argument prototype would still apply. */
|
---|
3710 | char $ac_func();
|
---|
3711 |
|
---|
3712 | int main() {
|
---|
3713 |
|
---|
3714 | /* The GNU C library defines this for functions which it implements
|
---|
3715 | to always fail with ENOSYS. Some functions are actually named
|
---|
3716 | something starting with __ and the normal name is an alias. */
|
---|
3717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3718 | choke me
|
---|
3719 | #else
|
---|
3720 | $ac_func();
|
---|
3721 | #endif
|
---|
3722 |
|
---|
3723 | ; return 0; }
|
---|
3724 | EOF
|
---|
3725 | if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3726 | rm -rf conftest*
|
---|
3727 | eval "ac_cv_func_$ac_func=yes"
|
---|
3728 | else
|
---|
3729 | echo "configure: failed program was:" >&5
|
---|
3730 | cat conftest.$ac_ext >&5
|
---|
3731 | rm -rf conftest*
|
---|
3732 | eval "ac_cv_func_$ac_func=no"
|
---|
3733 | fi
|
---|
3734 | rm -f conftest*
|
---|
3735 | fi
|
---|
3736 |
|
---|
3737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3738 | echo "$ac_t""yes" 1>&6
|
---|
3739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3740 | cat >> confdefs.h <<EOF
|
---|
3741 | #define $ac_tr_func 1
|
---|
3742 | EOF
|
---|
3743 | break
|
---|
3744 | else
|
---|
3745 | echo "$ac_t""no" 1>&6
|
---|
3746 | fi
|
---|
3747 | done
|
---|
3748 |
|
---|
3749 | for ac_func in strcmp
|
---|
3750 | do
|
---|
3751 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3752 | echo "configure:3753: checking for $ac_func" >&5
|
---|
3753 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3754 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3755 | else
|
---|
3756 | cat > conftest.$ac_ext <<EOF
|
---|
3757 | #line 3758 "configure"
|
---|
3758 | #include "confdefs.h"
|
---|
3759 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3760 | which can conflict with char $ac_func(); below. */
|
---|
3761 | #include <assert.h>
|
---|
3762 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3763 | /* We use char because int might match the return type of a gcc2
|
---|
3764 | builtin and then its argument prototype would still apply. */
|
---|
3765 | char $ac_func();
|
---|
3766 |
|
---|
3767 | int main() {
|
---|
3768 |
|
---|
3769 | /* The GNU C library defines this for functions which it implements
|
---|
3770 | to always fail with ENOSYS. Some functions are actually named
|
---|
3771 | something starting with __ and the normal name is an alias. */
|
---|
3772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3773 | choke me
|
---|
3774 | #else
|
---|
3775 | $ac_func();
|
---|
3776 | #endif
|
---|
3777 |
|
---|
3778 | ; return 0; }
|
---|
3779 | EOF
|
---|
3780 | if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3781 | rm -rf conftest*
|
---|
3782 | eval "ac_cv_func_$ac_func=yes"
|
---|
3783 | else
|
---|
3784 | echo "configure: failed program was:" >&5
|
---|
3785 | cat conftest.$ac_ext >&5
|
---|
3786 | rm -rf conftest*
|
---|
3787 | eval "ac_cv_func_$ac_func=no"
|
---|
3788 | fi
|
---|
3789 | rm -f conftest*
|
---|
3790 | fi
|
---|
3791 |
|
---|
3792 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3793 | echo "$ac_t""yes" 1>&6
|
---|
3794 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3795 | cat >> confdefs.h <<EOF
|
---|
3796 | #define $ac_tr_func 1
|
---|
3797 | EOF
|
---|
3798 |
|
---|
3799 | else
|
---|
3800 | echo "$ac_t""no" 1>&6
|
---|
3801 | fi
|
---|
3802 | done
|
---|
3803 |
|
---|
3804 |
|
---|
3805 |
|
---|
3806 |
|
---|
3807 | trap '' 1 2 15
|
---|
3808 | cat > confcache <<\EOF
|
---|
3809 | # This file is a shell script that caches the results of configure
|
---|
3810 | # tests run on this system so they can be shared between configure
|
---|
3811 | # scripts and configure runs. It is not useful on other systems.
|
---|
3812 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
3813 | #
|
---|
3814 | # By default, configure uses ./config.cache as the cache file,
|
---|
3815 | # creating it if it does not exist already. You can give configure
|
---|
3816 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
3817 | # what configure does when it calls configure scripts in
|
---|
3818 | # subdirectories, so they share the cache.
|
---|
3819 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
3820 | # config.status only pays attention to the cache file if you give it the
|
---|
3821 | # --recheck option to rerun configure.
|
---|
3822 | #
|
---|
3823 | EOF
|
---|
3824 | # The following way of writing the cache mishandles newlines in values,
|
---|
3825 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
3826 | # So, don't put newlines in cache variables' values.
|
---|
3827 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
3828 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
3829 | (set) 2>&1 |
|
---|
3830 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
3831 | *ac_space=\ *)
|
---|
3832 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
3833 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
3834 | sed -n \
|
---|
3835 | -e "s/'/'\\\\''/g" \
|
---|
3836 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
3837 | ;;
|
---|
3838 | *)
|
---|
3839 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
3840 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
3841 | ;;
|
---|
3842 | esac >> confcache
|
---|
3843 | if cmp -s $cache_file confcache; then
|
---|
3844 | :
|
---|
3845 | else
|
---|
3846 | if test -w $cache_file; then
|
---|
3847 | echo "updating cache $cache_file"
|
---|
3848 | cat confcache > $cache_file
|
---|
3849 | else
|
---|
3850 | echo "not updating unwritable cache $cache_file"
|
---|
3851 | fi
|
---|
3852 | fi
|
---|
3853 | rm -f confcache
|
---|
3854 |
|
---|
3855 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
3856 |
|
---|
3857 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
3858 | # Let make expand exec_prefix.
|
---|
3859 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
3860 |
|
---|
3861 | # Any assignment to VPATH causes Sun make to only execute
|
---|
3862 | # the first set of double-colon rules, so remove it if not needed.
|
---|
3863 | # If there is a colon in the path, we need to keep it.
|
---|
3864 | if test "x$srcdir" = x.; then
|
---|
3865 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
3866 | fi
|
---|
3867 |
|
---|
3868 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
3869 |
|
---|
3870 | DEFS=-DHAVE_CONFIG_H
|
---|
3871 |
|
---|
3872 | # Without the "./", some shells look in PATH for config.status.
|
---|
3873 | : ${CONFIG_STATUS=./config.status}
|
---|
3874 |
|
---|
3875 | echo creating $CONFIG_STATUS
|
---|
3876 | rm -f $CONFIG_STATUS
|
---|
3877 | cat > $CONFIG_STATUS <<EOF
|
---|
3878 | #! /bin/sh
|
---|
3879 | # Generated automatically by configure.
|
---|
3880 | # Run this file to recreate the current configuration.
|
---|
3881 | # This directory was configured as follows,
|
---|
3882 | EOF
|
---|
3883 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
3884 | cat >> $CONFIG_STATUS <<EOF
|
---|
3885 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
3886 | #
|
---|
3887 | # $0 $ac_configure_args
|
---|
3888 | #
|
---|
3889 | # Compiler output produced by configure, useful for debugging
|
---|
3890 | # configure, is in ./config.log if it exists.
|
---|
3891 |
|
---|
3892 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
3893 | for ac_option
|
---|
3894 | do
|
---|
3895 | case "\$ac_option" in
|
---|
3896 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
3897 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
3898 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
3899 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
3900 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
3901 | exit 0 ;;
|
---|
3902 | -help | --help | --hel | --he | --h)
|
---|
3903 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
3904 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
3905 | esac
|
---|
3906 | done
|
---|
3907 |
|
---|
3908 | ac_given_srcdir=$srcdir
|
---|
3909 | ac_given_INSTALL="$INSTALL"
|
---|
3910 | PATHIFS="$PATH_IFS"
|
---|
3911 |
|
---|
3912 | trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
3913 | EOF
|
---|
3914 | cat >> $CONFIG_STATUS <<EOF
|
---|
3915 |
|
---|
3916 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3917 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
3918 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
3919 | $ac_vpsub
|
---|
3920 | $extrasub
|
---|
3921 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
3922 | s%@SHELL@%$SHELL%g
|
---|
3923 | s%@CFLAGS@%$CFLAGS%g
|
---|
3924 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
3925 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
3926 | s%@FFLAGS@%$FFLAGS%g
|
---|
3927 | s%@DEFS@%$DEFS%g
|
---|
3928 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
3929 | s%@LIBS@%$LIBS%g
|
---|
3930 | s%@exec_prefix@%$exec_prefix%g
|
---|
3931 | s%@prefix@%$prefix%g
|
---|
3932 | s%@program_transform_name@%$program_transform_name%g
|
---|
3933 | s%@bindir@%$bindir%g
|
---|
3934 | s%@sbindir@%$sbindir%g
|
---|
3935 | s%@libexecdir@%$libexecdir%g
|
---|
3936 | s%@datadir@%$datadir%g
|
---|
3937 | s%@sysconfdir@%$sysconfdir%g
|
---|
3938 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
3939 | s%@localstatedir@%$localstatedir%g
|
---|
3940 | s%@libdir@%$libdir%g
|
---|
3941 | s%@includedir@%$includedir%g
|
---|
3942 | s%@oldincludedir@%$oldincludedir%g
|
---|
3943 | s%@infodir@%$infodir%g
|
---|
3944 | s%@mandir@%$mandir%g
|
---|
3945 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
3946 | s%@EXEEXT@%$EXEEXT%g
|
---|
3947 | s%@mkinstalldirs@%$mkinstalldirs%g
|
---|
3948 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
3949 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
3950 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
3951 | s%@PACKAGE@%$PACKAGE%g
|
---|
3952 | s%@VERSION@%$VERSION%g
|
---|
3953 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
3954 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
3955 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
3956 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
3957 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
3958 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
3959 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
3960 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
3961 | s%@MAINT@%$MAINT%g
|
---|
3962 | s%@CC@%$CC%g
|
---|
3963 | s%@host@%$host%g
|
---|
3964 | s%@host_alias@%$host_alias%g
|
---|
3965 | s%@host_cpu@%$host_cpu%g
|
---|
3966 | s%@host_vendor@%$host_vendor%g
|
---|
3967 | s%@host_os@%$host_os%g
|
---|
3968 | s%@build@%$build%g
|
---|
3969 | s%@build_alias@%$build_alias%g
|
---|
3970 | s%@build_cpu@%$build_cpu%g
|
---|
3971 | s%@build_vendor@%$build_vendor%g
|
---|
3972 | s%@build_os@%$build_os%g
|
---|
3973 | s%@LN_S@%$LN_S%g
|
---|
3974 | s%@OBJEXT@%$OBJEXT%g
|
---|
3975 | s%@RANLIB@%$RANLIB%g
|
---|
3976 | s%@STRIP@%$STRIP%g
|
---|
3977 | s%@DLLTOOL@%$DLLTOOL%g
|
---|
3978 | s%@AS@%$AS%g
|
---|
3979 | s%@OBJDUMP@%$OBJDUMP%g
|
---|
3980 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
3981 | s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
|
---|
3982 | s%@GCINCS@%$GCINCS%g
|
---|
3983 | s%@CPP@%$CPP%g
|
---|
3984 | s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
|
---|
3985 | s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
|
---|
3986 | s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
|
---|
3987 | s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
|
---|
3988 | s%@LIBADD_DL@%$LIBADD_DL%g
|
---|
3989 |
|
---|
3990 | CEOF
|
---|
3991 | EOF
|
---|
3992 |
|
---|
3993 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3994 |
|
---|
3995 | # Split the substitutions into bite-sized pieces for seds with
|
---|
3996 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
3997 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
3998 | ac_file=1 # Number of current file.
|
---|
3999 | ac_beg=1 # First line for current file.
|
---|
4000 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
4001 | ac_more_lines=:
|
---|
4002 | ac_sed_cmds=""
|
---|
4003 | while $ac_more_lines; do
|
---|
4004 | if test $ac_beg -gt 1; then
|
---|
4005 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4006 | else
|
---|
4007 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4008 | fi
|
---|
4009 | if test ! -s conftest.s$ac_file; then
|
---|
4010 | ac_more_lines=false
|
---|
4011 | rm -f conftest.s$ac_file
|
---|
4012 | else
|
---|
4013 | if test -z "$ac_sed_cmds"; then
|
---|
4014 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
4015 | else
|
---|
4016 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
4017 | fi
|
---|
4018 | ac_file=`expr $ac_file + 1`
|
---|
4019 | ac_beg=$ac_end
|
---|
4020 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
4021 | fi
|
---|
4022 | done
|
---|
4023 | if test -z "$ac_sed_cmds"; then
|
---|
4024 | ac_sed_cmds=cat
|
---|
4025 | fi
|
---|
4026 | EOF
|
---|
4027 |
|
---|
4028 | cat >> $CONFIG_STATUS <<EOF
|
---|
4029 |
|
---|
4030 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
---|
4031 | EOF
|
---|
4032 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4033 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
4034 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4035 | case "$ac_file" in
|
---|
4036 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4037 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4038 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4039 | esac
|
---|
4040 |
|
---|
4041 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
4042 |
|
---|
4043 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4044 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4045 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4046 | # The file is in a subdirectory.
|
---|
4047 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4048 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
4049 | # A "../" for each directory in $ac_dir_suffix.
|
---|
4050 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
4051 | else
|
---|
4052 | ac_dir_suffix= ac_dots=
|
---|
4053 | fi
|
---|
4054 |
|
---|
4055 | case "$ac_given_srcdir" in
|
---|
4056 | .) srcdir=.
|
---|
4057 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
4058 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
4059 | [/\\]* | [a-zA-Z]:*)
|
---|
4060 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
4061 | *) # Relative path.
|
---|
4062 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
4063 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
4064 | esac
|
---|
4065 |
|
---|
4066 | case "$ac_given_INSTALL" in
|
---|
4067 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
4068 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
4069 | esac
|
---|
4070 |
|
---|
4071 | echo creating "$ac_file"
|
---|
4072 | rm -f "$ac_file"
|
---|
4073 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
4074 | case "$ac_file" in
|
---|
4075 | *Makefile*) ac_comsub="1i\\
|
---|
4076 | # $configure_input" ;;
|
---|
4077 | *) ac_comsub= ;;
|
---|
4078 | esac
|
---|
4079 |
|
---|
4080 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
4081 | sed -e "$ac_comsub
|
---|
4082 | s%@configure_input@%$configure_input%g
|
---|
4083 | s%@srcdir@%$srcdir%g
|
---|
4084 | s%@top_srcdir@%$top_srcdir%g
|
---|
4085 | s%@INSTALL@%$INSTALL%g
|
---|
4086 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
4087 | fi; done
|
---|
4088 | rm -f conftest.s*
|
---|
4089 |
|
---|
4090 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
4091 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
4092 | #
|
---|
4093 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
4094 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
4095 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
4096 | ac_dC='\3'
|
---|
4097 | ac_dD='%g'
|
---|
4098 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
4099 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4100 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
4101 | ac_uC=' '
|
---|
4102 | ac_uD='\4%g'
|
---|
4103 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
4104 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4105 | ac_eB='$%\1#\2define\3'
|
---|
4106 | ac_eC=' '
|
---|
4107 | ac_eD='%g'
|
---|
4108 |
|
---|
4109 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
4110 | EOF
|
---|
4111 | cat >> $CONFIG_STATUS <<EOF
|
---|
4112 | CONFIG_HEADERS="config.h"
|
---|
4113 | EOF
|
---|
4114 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4115 | fi
|
---|
4116 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
4117 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4118 | case "$ac_file" in
|
---|
4119 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4120 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4121 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4122 | esac
|
---|
4123 |
|
---|
4124 | echo creating $ac_file
|
---|
4125 |
|
---|
4126 | rm -f conftest.frag conftest.in conftest.out
|
---|
4127 | # kso the other way around might work better with drive letters and such.
|
---|
4128 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
4129 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
4130 | cat $ac_file_inputs > conftest.in
|
---|
4131 |
|
---|
4132 | EOF
|
---|
4133 |
|
---|
4134 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
4135 | # the proper values into config.h.in to produce config.h. And first:
|
---|
4136 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4137 | # Protect against being in an unquoted here document in config.status.
|
---|
4138 | rm -f conftest.vals
|
---|
4139 | cat > conftest.hdr <<\EOF
|
---|
4140 | s/[\\&%]/\\&/g
|
---|
4141 | s%[\\$`]%\\&%g
|
---|
4142 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
4143 | s%ac_d%ac_u%gp
|
---|
4144 | s%ac_u%ac_e%gp
|
---|
4145 | EOF
|
---|
4146 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
4147 | rm -f conftest.hdr
|
---|
4148 |
|
---|
4149 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
4150 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
4151 | # on some systems where configure will not decide to define it.
|
---|
4152 | cat >> conftest.vals <<\EOF
|
---|
4153 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
4154 | EOF
|
---|
4155 |
|
---|
4156 | # Break up conftest.vals because some shells have a limit on
|
---|
4157 | # the size of here documents, and old seds have small limits too.
|
---|
4158 |
|
---|
4159 | rm -f conftest.tail
|
---|
4160 | while :
|
---|
4161 | do
|
---|
4162 | ac_lines=`grep -c . conftest.vals`
|
---|
4163 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
4164 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
4165 | # Write a limited-size here document to conftest.frag.
|
---|
4166 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
4167 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
4168 | echo 'CEOF
|
---|
4169 | sed -f conftest.frag conftest.in > conftest.out
|
---|
4170 | rm -f conftest.in
|
---|
4171 | mv conftest.out conftest.in
|
---|
4172 | ' >> $CONFIG_STATUS
|
---|
4173 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
4174 | rm -f conftest.vals
|
---|
4175 | mv conftest.tail conftest.vals
|
---|
4176 | done
|
---|
4177 | rm -f conftest.vals
|
---|
4178 |
|
---|
4179 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4180 | rm -f conftest.frag conftest.h
|
---|
4181 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
4182 | cat conftest.in >> conftest.h
|
---|
4183 | rm -f conftest.in
|
---|
4184 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
4185 | echo "$ac_file is unchanged"
|
---|
4186 | rm -f conftest.h
|
---|
4187 | else
|
---|
4188 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4189 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4190 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4191 | # The file is in a subdirectory.
|
---|
4192 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4193 | fi
|
---|
4194 | rm -f $ac_file
|
---|
4195 | mv conftest.h $ac_file
|
---|
4196 | fi
|
---|
4197 | fi; done
|
---|
4198 |
|
---|
4199 | EOF
|
---|
4200 | cat >> $CONFIG_STATUS <<EOF
|
---|
4201 |
|
---|
4202 |
|
---|
4203 | EOF
|
---|
4204 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4205 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
4206 |
|
---|
4207 | exit 0
|
---|
4208 | EOF
|
---|
4209 | chmod +x $CONFIG_STATUS
|
---|
4210 | rm -fr confdefs* $ac_clean_files
|
---|
4211 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
4212 |
|
---|
4213 |
|
---|
4214 | # Local Variables:
|
---|
4215 | # mode:shell-script
|
---|
4216 | # sh-indentation:2
|
---|
4217 | # End:
|
---|