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-html-dir=PATH path to installed docs " |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
18 | ac_help="$ac_help |
---|
19 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
20 | ac_help="$ac_help |
---|
21 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
22 | ac_help="$ac_help |
---|
23 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
24 | |
---|
25 | # Find the correct PATH separator. Usually this is `:', but |
---|
26 | # DJGPP uses `;' like DOS. |
---|
27 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
---|
28 | UNAME=${UNAME-`uname 2>/dev/null`} |
---|
29 | case X$UNAME in |
---|
30 | *-DOS) lt_cv_sys_path_separator=';' ;; |
---|
31 | *) lt_cv_sys_path_separator=':' ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | # Check that we are running under the correct shell. |
---|
37 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
38 | |
---|
39 | case X$ECHO in |
---|
40 | X*--fallback-echo) |
---|
41 | # Remove one level of quotation (which was required for Make). |
---|
42 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
43 | ;; |
---|
44 | esac |
---|
45 | |
---|
46 | echo=${ECHO-echo} |
---|
47 | if test "X$1" = X--no-reexec; then |
---|
48 | # Discard the --no-reexec flag, and continue. |
---|
49 | shift |
---|
50 | elif test "X$1" = X--fallback-echo; then |
---|
51 | # Avoid inline document here, it may be left over |
---|
52 | : |
---|
53 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
---|
54 | # Yippee, $echo works! |
---|
55 | : |
---|
56 | else |
---|
57 | # Restart under the correct shell. |
---|
58 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
59 | fi |
---|
60 | |
---|
61 | if test "X$1" = X--fallback-echo; then |
---|
62 | # used as fallback echo |
---|
63 | shift |
---|
64 | cat <<EOF |
---|
65 | |
---|
66 | EOF |
---|
67 | exit 0 |
---|
68 | fi |
---|
69 | |
---|
70 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
71 | # if CDPATH is set. |
---|
72 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
73 | |
---|
74 | if test -z "$ECHO"; then |
---|
75 | if test "X${echo_test_string+set}" != Xset; then |
---|
76 | # find a string as large as possible, as long as the shell can cope with it |
---|
77 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
78 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
79 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
---|
80 | echo_test_string="`eval $cmd`" && |
---|
81 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
82 | then |
---|
83 | break |
---|
84 | fi |
---|
85 | done |
---|
86 | fi |
---|
87 | |
---|
88 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
89 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
90 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
91 | : |
---|
92 | else |
---|
93 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
94 | # backslashes. This makes it impossible to quote backslashes using |
---|
95 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
96 | # |
---|
97 | # So, first we look for a working echo in the user's PATH. |
---|
98 | |
---|
99 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
---|
100 | for dir in $PATH /usr/ucb; do |
---|
101 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
102 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
103 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
104 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
105 | echo="$dir/echo" |
---|
106 | break |
---|
107 | fi |
---|
108 | done |
---|
109 | IFS="$save_ifs" |
---|
110 | |
---|
111 | if test "X$echo" = Xecho; then |
---|
112 | # We didn't find a better echo, so look for alternatives. |
---|
113 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
114 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
115 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
116 | # This shell has a builtin print -r that does the trick. |
---|
117 | echo='print -r' |
---|
118 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
119 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
120 | # If we have ksh, try running configure again with it. |
---|
121 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
122 | export ORIGINAL_CONFIG_SHELL |
---|
123 | CONFIG_SHELL=/bin/ksh |
---|
124 | export CONFIG_SHELL |
---|
125 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
126 | else |
---|
127 | # Try using printf. |
---|
128 | echo='printf %s\n' |
---|
129 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
130 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
131 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
132 | # Cool, printf works |
---|
133 | : |
---|
134 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
135 | test "X$echo_testing_string" = 'X\t' && |
---|
136 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
137 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
138 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
139 | export CONFIG_SHELL |
---|
140 | SHELL="$CONFIG_SHELL" |
---|
141 | export SHELL |
---|
142 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
143 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
144 | test "X$echo_testing_string" = 'X\t' && |
---|
145 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
146 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
147 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
148 | else |
---|
149 | # maybe with a smaller string... |
---|
150 | prev=: |
---|
151 | |
---|
152 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
153 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
154 | then |
---|
155 | break |
---|
156 | fi |
---|
157 | prev="$cmd" |
---|
158 | done |
---|
159 | |
---|
160 | if test "$prev" != 'sed 50q "$0"'; then |
---|
161 | echo_test_string=`eval $prev` |
---|
162 | export echo_test_string |
---|
163 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
164 | else |
---|
165 | # Oops. We lost completely, so just stick with echo. |
---|
166 | echo=echo |
---|
167 | fi |
---|
168 | fi |
---|
169 | fi |
---|
170 | fi |
---|
171 | fi |
---|
172 | fi |
---|
173 | |
---|
174 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
175 | # the Makefile, instead of quoting the original, which is used later. |
---|
176 | ECHO=$echo |
---|
177 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
178 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
179 | fi |
---|
180 | |
---|
181 | |
---|
182 | ac_help="$ac_help |
---|
183 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
184 | ac_help="$ac_help |
---|
185 | --with-pic try to use only PIC/non-PIC objects [default=use both]" |
---|
186 | ac_help="$ac_help |
---|
187 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
188 | (and sometimes confusing) to the casual installer" |
---|
189 | ac_help="$ac_help |
---|
190 | --with-zlib[=DIR] use libz in DIR" |
---|
191 | ac_help="$ac_help |
---|
192 | --with-python[=DIR] Build Python bindings if found" |
---|
193 | ac_help="$ac_help |
---|
194 | --with-buffers Use buffers for node content" |
---|
195 | ac_help="$ac_help |
---|
196 | --with-readline=DIR use readline in DIR" |
---|
197 | ac_help="$ac_help |
---|
198 | --with-threads Add multithread support(off)" |
---|
199 | ac_help="$ac_help |
---|
200 | --with-thread-alloc Add per-thread memory(off)" |
---|
201 | ac_help="$ac_help |
---|
202 | --with-history Add history support to xmllint shell(off)" |
---|
203 | ac_help="$ac_help |
---|
204 | --with-ftp Add the FTP support (on)" |
---|
205 | ac_help="$ac_help |
---|
206 | --with-http Add the HTTP support (on)" |
---|
207 | ac_help="$ac_help |
---|
208 | --with-html Add the HTML support (on)" |
---|
209 | ac_help="$ac_help |
---|
210 | --with-catalog Add the Catalog support (on)" |
---|
211 | ac_help="$ac_help |
---|
212 | --with-docbook Add Docbook SGML support (on)" |
---|
213 | ac_help="$ac_help |
---|
214 | --with-xpath Add the XPATH support (on)" |
---|
215 | ac_help="$ac_help |
---|
216 | --with-xptr Add the XPointer support (on)" |
---|
217 | ac_help="$ac_help |
---|
218 | --with-xinclude Add the XInclude support (on)" |
---|
219 | ac_help="$ac_help |
---|
220 | --with-iconv[=DIR] Add ICONV support (on)" |
---|
221 | ac_help="$ac_help |
---|
222 | --with-debug Add the debugging module (on)" |
---|
223 | ac_help="$ac_help |
---|
224 | --with-mem-debug Add the memory debugging module (off)" |
---|
225 | |
---|
226 | # Initialize some variables set by options. |
---|
227 | # The variables have the same names as the options, with |
---|
228 | # dashes changed to underlines. |
---|
229 | build=NONE |
---|
230 | cache_file=./config.cache |
---|
231 | exec_prefix=NONE |
---|
232 | host=NONE |
---|
233 | no_create= |
---|
234 | nonopt=NONE |
---|
235 | no_recursion= |
---|
236 | prefix=NONE |
---|
237 | program_prefix=NONE |
---|
238 | program_suffix=NONE |
---|
239 | program_transform_name=s,x,x, |
---|
240 | silent= |
---|
241 | site= |
---|
242 | srcdir= |
---|
243 | target=NONE |
---|
244 | verbose= |
---|
245 | x_includes=NONE |
---|
246 | x_libraries=NONE |
---|
247 | bindir='${exec_prefix}/bin' |
---|
248 | sbindir='${exec_prefix}/sbin' |
---|
249 | libexecdir='${exec_prefix}/libexec' |
---|
250 | datadir='${prefix}/share' |
---|
251 | sysconfdir='${prefix}/etc' |
---|
252 | sharedstatedir='${prefix}/com' |
---|
253 | localstatedir='${prefix}/var' |
---|
254 | libdir='${exec_prefix}/lib' |
---|
255 | includedir='${prefix}/include' |
---|
256 | oldincludedir='/usr/include' |
---|
257 | infodir='${prefix}/info' |
---|
258 | mandir='${prefix}/man' |
---|
259 | |
---|
260 | # Initialize some other variables. |
---|
261 | subdirs= |
---|
262 | MFLAGS= MAKEFLAGS= |
---|
263 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | ac_max_here_lines=12 |
---|
266 | |
---|
267 | ac_prev= |
---|
268 | for ac_option |
---|
269 | do |
---|
270 | |
---|
271 | # If the previous option needs an argument, assign it. |
---|
272 | if test -n "$ac_prev"; then |
---|
273 | eval "$ac_prev=\$ac_option" |
---|
274 | ac_prev= |
---|
275 | continue |
---|
276 | fi |
---|
277 | |
---|
278 | case "$ac_option" in |
---|
279 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
280 | *) ac_optarg= ;; |
---|
281 | esac |
---|
282 | |
---|
283 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
284 | |
---|
285 | case "$ac_option" in |
---|
286 | |
---|
287 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
288 | ac_prev=bindir ;; |
---|
289 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
290 | bindir="$ac_optarg" ;; |
---|
291 | |
---|
292 | -build | --build | --buil | --bui | --bu) |
---|
293 | ac_prev=build ;; |
---|
294 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
295 | build="$ac_optarg" ;; |
---|
296 | |
---|
297 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
298 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
299 | ac_prev=cache_file ;; |
---|
300 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
301 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
302 | cache_file="$ac_optarg" ;; |
---|
303 | |
---|
304 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
305 | ac_prev=datadir ;; |
---|
306 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
307 | | --da=*) |
---|
308 | datadir="$ac_optarg" ;; |
---|
309 | |
---|
310 | -disable-* | --disable-*) |
---|
311 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
312 | # Reject names that are not valid shell variable names. |
---|
313 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
314 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
315 | fi |
---|
316 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
317 | eval "enable_${ac_feature}=no" ;; |
---|
318 | |
---|
319 | -enable-* | --enable-*) |
---|
320 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
321 | # Reject names that are not valid shell variable names. |
---|
322 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
323 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
324 | fi |
---|
325 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
326 | case "$ac_option" in |
---|
327 | *=*) ;; |
---|
328 | *) ac_optarg=yes ;; |
---|
329 | esac |
---|
330 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
331 | |
---|
332 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
333 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
334 | | --exec | --exe | --ex) |
---|
335 | ac_prev=exec_prefix ;; |
---|
336 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
337 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
338 | | --exec=* | --exe=* | --ex=*) |
---|
339 | exec_prefix="$ac_optarg" ;; |
---|
340 | |
---|
341 | -gas | --gas | --ga | --g) |
---|
342 | # Obsolete; use --with-gas. |
---|
343 | with_gas=yes ;; |
---|
344 | |
---|
345 | -help | --help | --hel | --he) |
---|
346 | # Omit some internal or obsolete options to make the list less imposing. |
---|
347 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
348 | cat << EOF |
---|
349 | Usage: configure [options] [host] |
---|
350 | Options: [defaults in brackets after descriptions] |
---|
351 | Configuration: |
---|
352 | --cache-file=FILE cache test results in FILE |
---|
353 | --help print this message |
---|
354 | --no-create do not create output files |
---|
355 | --quiet, --silent do not print \`checking...' messages |
---|
356 | --version print the version of autoconf that created configure |
---|
357 | Directory and file names: |
---|
358 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
359 | [$ac_default_prefix] |
---|
360 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
361 | [same as prefix] |
---|
362 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
363 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
364 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
365 | --datadir=DIR read-only architecture-independent data in DIR |
---|
366 | [PREFIX/share] |
---|
367 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
368 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
369 | [PREFIX/com] |
---|
370 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
371 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
372 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
373 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
374 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
375 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
376 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
377 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
378 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
379 | --program-transform-name=PROGRAM |
---|
380 | run sed PROGRAM on installed program names |
---|
381 | EOF |
---|
382 | cat << EOF |
---|
383 | Host type: |
---|
384 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
385 | --host=HOST configure for HOST [guessed] |
---|
386 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
387 | Features and packages: |
---|
388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
390 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
391 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
392 | --x-includes=DIR X include files are in DIR |
---|
393 | --x-libraries=DIR X library files are in DIR |
---|
394 | EOF |
---|
395 | if test -n "$ac_help"; then |
---|
396 | echo "--enable and --with options recognized:$ac_help" |
---|
397 | fi |
---|
398 | exit 0 ;; |
---|
399 | |
---|
400 | -host | --host | --hos | --ho) |
---|
401 | ac_prev=host ;; |
---|
402 | -host=* | --host=* | --hos=* | --ho=*) |
---|
403 | host="$ac_optarg" ;; |
---|
404 | |
---|
405 | -includedir | --includedir | --includedi | --included | --include \ |
---|
406 | | --includ | --inclu | --incl | --inc) |
---|
407 | ac_prev=includedir ;; |
---|
408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
409 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
410 | includedir="$ac_optarg" ;; |
---|
411 | |
---|
412 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
413 | ac_prev=infodir ;; |
---|
414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
415 | infodir="$ac_optarg" ;; |
---|
416 | |
---|
417 | -libdir | --libdir | --libdi | --libd) |
---|
418 | ac_prev=libdir ;; |
---|
419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
420 | libdir="$ac_optarg" ;; |
---|
421 | |
---|
422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
423 | | --libexe | --libex | --libe) |
---|
424 | ac_prev=libexecdir ;; |
---|
425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
426 | | --libexe=* | --libex=* | --libe=*) |
---|
427 | libexecdir="$ac_optarg" ;; |
---|
428 | |
---|
429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
430 | | --localstate | --localstat | --localsta | --localst \ |
---|
431 | | --locals | --local | --loca | --loc | --lo) |
---|
432 | ac_prev=localstatedir ;; |
---|
433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
436 | localstatedir="$ac_optarg" ;; |
---|
437 | |
---|
438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
439 | ac_prev=mandir ;; |
---|
440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
441 | mandir="$ac_optarg" ;; |
---|
442 | |
---|
443 | -nfp | --nfp | --nf) |
---|
444 | # Obsolete; use --without-fp. |
---|
445 | with_fp=no ;; |
---|
446 | |
---|
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
448 | | --no-cr | --no-c) |
---|
449 | no_create=yes ;; |
---|
450 | |
---|
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
453 | no_recursion=yes ;; |
---|
454 | |
---|
455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
457 | | --oldin | --oldi | --old | --ol | --o) |
---|
458 | ac_prev=oldincludedir ;; |
---|
459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
462 | oldincludedir="$ac_optarg" ;; |
---|
463 | |
---|
464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
465 | ac_prev=prefix ;; |
---|
466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
467 | prefix="$ac_optarg" ;; |
---|
468 | |
---|
469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
470 | | --program-pre | --program-pr | --program-p) |
---|
471 | ac_prev=program_prefix ;; |
---|
472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
474 | program_prefix="$ac_optarg" ;; |
---|
475 | |
---|
476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
477 | | --program-suf | --program-su | --program-s) |
---|
478 | ac_prev=program_suffix ;; |
---|
479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
481 | program_suffix="$ac_optarg" ;; |
---|
482 | |
---|
483 | -program-transform-name | --program-transform-name \ |
---|
484 | | --program-transform-nam | --program-transform-na \ |
---|
485 | | --program-transform-n | --program-transform- \ |
---|
486 | | --program-transform | --program-transfor \ |
---|
487 | | --program-transfo | --program-transf \ |
---|
488 | | --program-trans | --program-tran \ |
---|
489 | | --progr-tra | --program-tr | --program-t) |
---|
490 | ac_prev=program_transform_name ;; |
---|
491 | -program-transform-name=* | --program-transform-name=* \ |
---|
492 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
493 | | --program-transform-n=* | --program-transform-=* \ |
---|
494 | | --program-transform=* | --program-transfor=* \ |
---|
495 | | --program-transfo=* | --program-transf=* \ |
---|
496 | | --program-trans=* | --program-tran=* \ |
---|
497 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
498 | program_transform_name="$ac_optarg" ;; |
---|
499 | |
---|
500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
501 | | -silent | --silent | --silen | --sile | --sil) |
---|
502 | silent=yes ;; |
---|
503 | |
---|
504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
505 | ac_prev=sbindir ;; |
---|
506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
507 | | --sbi=* | --sb=*) |
---|
508 | sbindir="$ac_optarg" ;; |
---|
509 | |
---|
510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
512 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
513 | | --sha | --sh) |
---|
514 | ac_prev=sharedstatedir ;; |
---|
515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
518 | | --sha=* | --sh=*) |
---|
519 | sharedstatedir="$ac_optarg" ;; |
---|
520 | |
---|
521 | -site | --site | --sit) |
---|
522 | ac_prev=site ;; |
---|
523 | -site=* | --site=* | --sit=*) |
---|
524 | site="$ac_optarg" ;; |
---|
525 | |
---|
526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
527 | ac_prev=srcdir ;; |
---|
528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
529 | srcdir="$ac_optarg" ;; |
---|
530 | |
---|
531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
532 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
533 | ac_prev=sysconfdir ;; |
---|
534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
536 | sysconfdir="$ac_optarg" ;; |
---|
537 | |
---|
538 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
539 | ac_prev=target ;; |
---|
540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
541 | target="$ac_optarg" ;; |
---|
542 | |
---|
543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
544 | verbose=yes ;; |
---|
545 | |
---|
546 | -version | --version | --versio | --versi | --vers) |
---|
547 | echo "configure generated by autoconf version 2.13" |
---|
548 | exit 0 ;; |
---|
549 | |
---|
550 | -with-* | --with-*) |
---|
551 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
552 | # Reject names that are not valid shell variable names. |
---|
553 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
554 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
555 | fi |
---|
556 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
557 | case "$ac_option" in |
---|
558 | *=*) ;; |
---|
559 | *) ac_optarg=yes ;; |
---|
560 | esac |
---|
561 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
562 | |
---|
563 | -without-* | --without-*) |
---|
564 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
565 | # Reject names that are not valid shell variable names. |
---|
566 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
567 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
568 | fi |
---|
569 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
570 | eval "with_${ac_package}=no" ;; |
---|
571 | |
---|
572 | --x) |
---|
573 | # Obsolete; use --with-x. |
---|
574 | with_x=yes ;; |
---|
575 | |
---|
576 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
577 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
578 | ac_prev=x_includes ;; |
---|
579 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
580 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
581 | x_includes="$ac_optarg" ;; |
---|
582 | |
---|
583 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
584 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
585 | ac_prev=x_libraries ;; |
---|
586 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
587 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
588 | x_libraries="$ac_optarg" ;; |
---|
589 | |
---|
590 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
591 | ;; |
---|
592 | |
---|
593 | *) |
---|
594 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
595 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
596 | fi |
---|
597 | if test "x$nonopt" != xNONE; then |
---|
598 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
599 | fi |
---|
600 | nonopt="$ac_option" |
---|
601 | ;; |
---|
602 | |
---|
603 | esac |
---|
604 | done |
---|
605 | |
---|
606 | if test -n "$ac_prev"; then |
---|
607 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
608 | fi |
---|
609 | |
---|
610 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
611 | |
---|
612 | # File descriptor usage: |
---|
613 | # 0 standard input |
---|
614 | # 1 file creation |
---|
615 | # 2 errors and warnings |
---|
616 | # 3 some systems may open it to /dev/tty |
---|
617 | # 4 used on the Kubota Titan |
---|
618 | # 6 checking for... messages and results |
---|
619 | # 5 compiler messages saved in config.log |
---|
620 | if test "$silent" = yes; then |
---|
621 | exec 6>/dev/null |
---|
622 | else |
---|
623 | exec 6>&1 |
---|
624 | fi |
---|
625 | exec 5>./config.log |
---|
626 | |
---|
627 | echo "\ |
---|
628 | This file contains any messages produced by compilers while |
---|
629 | running configure, to aid debugging if configure makes a mistake. |
---|
630 | " 1>&5 |
---|
631 | |
---|
632 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
633 | # Also quote any args containing shell metacharacters. |
---|
634 | ac_configure_args= |
---|
635 | for ac_arg |
---|
636 | do |
---|
637 | case "$ac_arg" in |
---|
638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
639 | | --no-cr | --no-c) ;; |
---|
640 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
641 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
642 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
643 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
644 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
645 | esac |
---|
646 | done |
---|
647 | |
---|
648 | # NLS nuisances. |
---|
649 | # Only set these to C if already set. These must not be set unconditionally |
---|
650 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
651 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
652 | # Non-C LC_CTYPE values break the ctype check. |
---|
653 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
654 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
655 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
656 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
657 | |
---|
658 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
659 | rm -rf conftest* confdefs.h |
---|
660 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
661 | echo > confdefs.h |
---|
662 | |
---|
663 | # A filename unique to this package, relative to the directory that |
---|
664 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
665 | ac_unique_file=entities.c |
---|
666 | |
---|
667 | # Find the source files, if location was not specified. |
---|
668 | if test -z "$srcdir"; then |
---|
669 | ac_srcdir_defaulted=yes |
---|
670 | # Try the directory containing this script, then its parent. |
---|
671 | ac_prog=$0 |
---|
672 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
673 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
674 | srcdir=$ac_confdir |
---|
675 | if test ! -r $srcdir/$ac_unique_file; then |
---|
676 | srcdir=.. |
---|
677 | fi |
---|
678 | else |
---|
679 | ac_srcdir_defaulted=no |
---|
680 | fi |
---|
681 | if test ! -r $srcdir/$ac_unique_file; then |
---|
682 | if test "$ac_srcdir_defaulted" = yes; then |
---|
683 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
684 | else |
---|
685 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
686 | fi |
---|
687 | fi |
---|
688 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
689 | |
---|
690 | # Prefer explicitly selected file to automatically selected ones. |
---|
691 | if test -z "$CONFIG_SITE"; then |
---|
692 | if test "x$prefix" != xNONE; then |
---|
693 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
694 | else |
---|
695 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
696 | fi |
---|
697 | fi |
---|
698 | for ac_site_file in $CONFIG_SITE; do |
---|
699 | if test -r "$ac_site_file"; then |
---|
700 | echo "loading site script $ac_site_file" |
---|
701 | . "$ac_site_file" |
---|
702 | fi |
---|
703 | done |
---|
704 | |
---|
705 | if test -r "$cache_file"; then |
---|
706 | echo "loading cache $cache_file" |
---|
707 | . $cache_file |
---|
708 | else |
---|
709 | echo "creating cache $cache_file" |
---|
710 | > $cache_file |
---|
711 | fi |
---|
712 | |
---|
713 | ac_ext=c |
---|
714 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
715 | ac_cpp='$CPP $CPPFLAGS' |
---|
716 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
717 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
718 | cross_compiling=$ac_cv_prog_cc_cross |
---|
719 | |
---|
720 | ac_exeext= |
---|
721 | ac_objext=o |
---|
722 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
723 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
724 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
725 | ac_n= ac_c=' |
---|
726 | ' ac_t=' ' |
---|
727 | else |
---|
728 | ac_n=-n ac_c= ac_t= |
---|
729 | fi |
---|
730 | else |
---|
731 | ac_n= ac_c='\c' ac_t= |
---|
732 | fi |
---|
733 | |
---|
734 | |
---|
735 | |
---|
736 | |
---|
737 | |
---|
738 | ac_aux_dir= |
---|
739 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
740 | if test -f $ac_dir/install-sh; then |
---|
741 | ac_aux_dir=$ac_dir |
---|
742 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
743 | break |
---|
744 | elif test -f $ac_dir/install.sh; then |
---|
745 | ac_aux_dir=$ac_dir |
---|
746 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
747 | break |
---|
748 | fi |
---|
749 | done |
---|
750 | if test -z "$ac_aux_dir"; then |
---|
751 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
752 | fi |
---|
753 | ac_config_guess=$ac_aux_dir/config.guess |
---|
754 | ac_config_sub=$ac_aux_dir/config.sub |
---|
755 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
756 | |
---|
757 | |
---|
758 | # Make sure we can run config.sub. |
---|
759 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
760 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
761 | fi |
---|
762 | |
---|
763 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
764 | echo "configure:765: checking host system type" >&5 |
---|
765 | |
---|
766 | host_alias=$host |
---|
767 | case "$host_alias" in |
---|
768 | NONE) |
---|
769 | case $nonopt in |
---|
770 | NONE) |
---|
771 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
772 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
773 | fi ;; |
---|
774 | *) host_alias=$nonopt ;; |
---|
775 | esac ;; |
---|
776 | esac |
---|
777 | |
---|
778 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
779 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
780 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
781 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
782 | echo "$ac_t""$host" 1>&6 |
---|
783 | |
---|
784 | |
---|
785 | LIBXML_MAJOR_VERSION=2 |
---|
786 | LIBXML_MINOR_VERSION=4 |
---|
787 | LIBXML_MICRO_VERSION=15 |
---|
788 | LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION |
---|
789 | LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION |
---|
790 | |
---|
791 | LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION` |
---|
792 | |
---|
793 | |
---|
794 | |
---|
795 | |
---|
796 | |
---|
797 | |
---|
798 | |
---|
799 | |
---|
800 | VERSION=${LIBXML_VERSION} |
---|
801 | |
---|
802 | # Find a good install program. We prefer a C program (faster), |
---|
803 | # so one script is as good as another. But avoid the broken or |
---|
804 | # incompatible versions: |
---|
805 | # SysV /etc/install, /usr/sbin/install |
---|
806 | # SunOS /usr/etc/install |
---|
807 | # IRIX /sbin/install |
---|
808 | # AIX /bin/install |
---|
809 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
810 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
811 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
812 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
813 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
814 | echo "configure:815: checking for a BSD compatible install" >&5 |
---|
815 | if test -z "$INSTALL"; then |
---|
816 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
818 | else |
---|
819 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
820 | for ac_dir in $PATH; do |
---|
821 | # Account for people who put trailing slashes in PATH elements. |
---|
822 | case "$ac_dir/" in |
---|
823 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
824 | *) |
---|
825 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
826 | # Don't use installbsd from OSF since it installs stuff as root |
---|
827 | # by default. |
---|
828 | for ac_prog in ginstall scoinst install; do |
---|
829 | if test -f $ac_dir/$ac_prog; then |
---|
830 | if test $ac_prog = install && |
---|
831 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
832 | # AIX install. It has an incompatible calling convention. |
---|
833 | : |
---|
834 | else |
---|
835 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
836 | break 2 |
---|
837 | fi |
---|
838 | fi |
---|
839 | done |
---|
840 | ;; |
---|
841 | esac |
---|
842 | done |
---|
843 | IFS="$ac_save_IFS" |
---|
844 | |
---|
845 | fi |
---|
846 | if test "${ac_cv_path_install+set}" = set; then |
---|
847 | INSTALL="$ac_cv_path_install" |
---|
848 | else |
---|
849 | # As a last resort, use the slow shell script. We don't cache a |
---|
850 | # path for INSTALL within a source directory, because that will |
---|
851 | # break other packages using the cache if that directory is |
---|
852 | # removed, or if the path is relative. |
---|
853 | INSTALL="$ac_install_sh" |
---|
854 | fi |
---|
855 | fi |
---|
856 | echo "$ac_t""$INSTALL" 1>&6 |
---|
857 | |
---|
858 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
859 | # It thinks the first close brace ends the variable substitution. |
---|
860 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
861 | |
---|
862 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
863 | |
---|
864 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
865 | |
---|
866 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
867 | echo "configure:868: checking whether build environment is sane" >&5 |
---|
868 | # Just in case |
---|
869 | sleep 1 |
---|
870 | echo timestamp > conftestfile |
---|
871 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
872 | # arguments. Must try -L first in case configure is actually a |
---|
873 | # symlink; some systems play weird games with the mod time of symlinks |
---|
874 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
875 | # directory). |
---|
876 | if ( |
---|
877 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
878 | if test "$*" = "X"; then |
---|
879 | # -L didn't work. |
---|
880 | set X `ls -t $srcdir/configure conftestfile` |
---|
881 | fi |
---|
882 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
883 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
884 | |
---|
885 | # If neither matched, then we have a broken ls. This can happen |
---|
886 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
887 | # broken ls alias from the environment. This has actually |
---|
888 | # happened. Such a system could not be considered "sane". |
---|
889 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
890 | alias in your environment" 1>&2; exit 1; } |
---|
891 | fi |
---|
892 | |
---|
893 | test "$2" = conftestfile |
---|
894 | ) |
---|
895 | then |
---|
896 | # Ok. |
---|
897 | : |
---|
898 | else |
---|
899 | { echo "configure: error: newly created file is older than distributed files! |
---|
900 | Check your system clock" 1>&2; exit 1; } |
---|
901 | fi |
---|
902 | rm -f conftest* |
---|
903 | echo "$ac_t""yes" 1>&6 |
---|
904 | if test "$program_transform_name" = s,x,x,; then |
---|
905 | program_transform_name= |
---|
906 | else |
---|
907 | # Double any \ or $. echo might interpret backslashes. |
---|
908 | cat <<\EOF_SED > conftestsed |
---|
909 | s,\\,\\\\,g; s,\$,$$,g |
---|
910 | EOF_SED |
---|
911 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
912 | rm -f conftestsed |
---|
913 | fi |
---|
914 | test "$program_prefix" != NONE && |
---|
915 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
916 | # Use a double $ so make ignores it. |
---|
917 | test "$program_suffix" != NONE && |
---|
918 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
919 | |
---|
920 | # sed with no file args requires a program. |
---|
921 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
922 | |
---|
923 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
924 | echo "configure:925: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
925 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
926 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
927 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
928 | else |
---|
929 | cat > conftestmake <<\EOF |
---|
930 | all: |
---|
931 | @echo 'ac_maketemp="${MAKE}"' |
---|
932 | EOF |
---|
933 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
934 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
935 | if test -n "$ac_maketemp"; then |
---|
936 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
937 | else |
---|
938 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
939 | fi |
---|
940 | rm -f conftestmake |
---|
941 | fi |
---|
942 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
943 | echo "$ac_t""yes" 1>&6 |
---|
944 | SET_MAKE= |
---|
945 | else |
---|
946 | echo "$ac_t""no" 1>&6 |
---|
947 | SET_MAKE="MAKE=${MAKE-make}" |
---|
948 | fi |
---|
949 | |
---|
950 | |
---|
951 | PACKAGE=libxml2 |
---|
952 | |
---|
953 | VERSION=$VERSION |
---|
954 | |
---|
955 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
956 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
957 | fi |
---|
958 | cat >> confdefs.h <<EOF |
---|
959 | #define PACKAGE "$PACKAGE" |
---|
960 | EOF |
---|
961 | |
---|
962 | cat >> confdefs.h <<EOF |
---|
963 | #define VERSION "$VERSION" |
---|
964 | EOF |
---|
965 | |
---|
966 | |
---|
967 | |
---|
968 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
969 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
970 | echo "configure:971: checking for working aclocal" >&5 |
---|
971 | # Run test in a subshell; some versions of sh will print an error if |
---|
972 | # an executable is not found, even if stderr is redirected. |
---|
973 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
974 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
975 | ACLOCAL=aclocal |
---|
976 | echo "$ac_t""found" 1>&6 |
---|
977 | else |
---|
978 | ACLOCAL="$missing_dir/missing aclocal" |
---|
979 | echo "$ac_t""missing" 1>&6 |
---|
980 | fi |
---|
981 | |
---|
982 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
983 | echo "configure:984: checking for working autoconf" >&5 |
---|
984 | # Run test in a subshell; some versions of sh will print an error if |
---|
985 | # an executable is not found, even if stderr is redirected. |
---|
986 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
987 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
988 | AUTOCONF=autoconf |
---|
989 | echo "$ac_t""found" 1>&6 |
---|
990 | else |
---|
991 | AUTOCONF="$missing_dir/missing autoconf" |
---|
992 | echo "$ac_t""missing" 1>&6 |
---|
993 | fi |
---|
994 | |
---|
995 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
996 | echo "configure:997: checking for working automake" >&5 |
---|
997 | # Run test in a subshell; some versions of sh will print an error if |
---|
998 | # an executable is not found, even if stderr is redirected. |
---|
999 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1000 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
1001 | AUTOMAKE=automake |
---|
1002 | echo "$ac_t""found" 1>&6 |
---|
1003 | else |
---|
1004 | AUTOMAKE="$missing_dir/missing automake" |
---|
1005 | echo "$ac_t""missing" 1>&6 |
---|
1006 | fi |
---|
1007 | |
---|
1008 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
1009 | echo "configure:1010: checking for working autoheader" >&5 |
---|
1010 | # Run test in a subshell; some versions of sh will print an error if |
---|
1011 | # an executable is not found, even if stderr is redirected. |
---|
1012 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1013 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
1014 | AUTOHEADER=autoheader |
---|
1015 | echo "$ac_t""found" 1>&6 |
---|
1016 | else |
---|
1017 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
1018 | echo "$ac_t""missing" 1>&6 |
---|
1019 | fi |
---|
1020 | |
---|
1021 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
1022 | echo "configure:1023: checking for working makeinfo" >&5 |
---|
1023 | # Run test in a subshell; some versions of sh will print an error if |
---|
1024 | # an executable is not found, even if stderr is redirected. |
---|
1025 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1026 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
1027 | MAKEINFO=makeinfo |
---|
1028 | echo "$ac_t""found" 1>&6 |
---|
1029 | else |
---|
1030 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
1031 | echo "$ac_t""missing" 1>&6 |
---|
1032 | fi |
---|
1033 | |
---|
1034 | |
---|
1035 | |
---|
1036 | # Check whether --with-html-dir or --without-html-dir was given. |
---|
1037 | if test "${with_html_dir+set}" = set; then |
---|
1038 | withval="$with_html_dir" |
---|
1039 | : |
---|
1040 | fi |
---|
1041 | |
---|
1042 | |
---|
1043 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1044 | set dummy gcc; ac_word=$2 |
---|
1045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1046 | echo "configure:1047: checking for $ac_word" >&5 |
---|
1047 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1048 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1049 | else |
---|
1050 | if test -n "$CC"; then |
---|
1051 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1052 | else |
---|
1053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1054 | ac_dummy="$PATH" |
---|
1055 | for ac_dir in $ac_dummy; do |
---|
1056 | test -z "$ac_dir" && ac_dir=. |
---|
1057 | if test -f $ac_dir/$ac_word; then |
---|
1058 | ac_cv_prog_CC="gcc" |
---|
1059 | break |
---|
1060 | fi |
---|
1061 | done |
---|
1062 | IFS="$ac_save_ifs" |
---|
1063 | fi |
---|
1064 | fi |
---|
1065 | CC="$ac_cv_prog_CC" |
---|
1066 | if test -n "$CC"; then |
---|
1067 | echo "$ac_t""$CC" 1>&6 |
---|
1068 | else |
---|
1069 | echo "$ac_t""no" 1>&6 |
---|
1070 | fi |
---|
1071 | |
---|
1072 | if test -z "$CC"; then |
---|
1073 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1074 | set dummy cc; ac_word=$2 |
---|
1075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1076 | echo "configure:1077: checking for $ac_word" >&5 |
---|
1077 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1078 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1079 | else |
---|
1080 | if test -n "$CC"; then |
---|
1081 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1082 | else |
---|
1083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1084 | ac_prog_rejected=no |
---|
1085 | ac_dummy="$PATH" |
---|
1086 | for ac_dir in $ac_dummy; do |
---|
1087 | test -z "$ac_dir" && ac_dir=. |
---|
1088 | if test -f $ac_dir/$ac_word; then |
---|
1089 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1090 | ac_prog_rejected=yes |
---|
1091 | continue |
---|
1092 | fi |
---|
1093 | ac_cv_prog_CC="cc" |
---|
1094 | break |
---|
1095 | fi |
---|
1096 | done |
---|
1097 | IFS="$ac_save_ifs" |
---|
1098 | if test $ac_prog_rejected = yes; then |
---|
1099 | # We found a bogon in the path, so make sure we never use it. |
---|
1100 | set dummy $ac_cv_prog_CC |
---|
1101 | shift |
---|
1102 | if test $# -gt 0; then |
---|
1103 | # We chose a different compiler from the bogus one. |
---|
1104 | # However, it has the same basename, so the bogon will be chosen |
---|
1105 | # first if we set CC to just the basename; use the full file name. |
---|
1106 | shift |
---|
1107 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1108 | shift |
---|
1109 | ac_cv_prog_CC="$@" |
---|
1110 | fi |
---|
1111 | fi |
---|
1112 | fi |
---|
1113 | fi |
---|
1114 | CC="$ac_cv_prog_CC" |
---|
1115 | if test -n "$CC"; then |
---|
1116 | echo "$ac_t""$CC" 1>&6 |
---|
1117 | else |
---|
1118 | echo "$ac_t""no" 1>&6 |
---|
1119 | fi |
---|
1120 | |
---|
1121 | if test -z "$CC"; then |
---|
1122 | case "`uname -s`" in |
---|
1123 | *win32* | *WIN32*) |
---|
1124 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1125 | set dummy cl; ac_word=$2 |
---|
1126 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1127 | echo "configure:1128: checking for $ac_word" >&5 |
---|
1128 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1129 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1130 | else |
---|
1131 | if test -n "$CC"; then |
---|
1132 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1133 | else |
---|
1134 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1135 | ac_dummy="$PATH" |
---|
1136 | for ac_dir in $ac_dummy; do |
---|
1137 | test -z "$ac_dir" && ac_dir=. |
---|
1138 | if test -f $ac_dir/$ac_word; then |
---|
1139 | ac_cv_prog_CC="cl" |
---|
1140 | break |
---|
1141 | fi |
---|
1142 | done |
---|
1143 | IFS="$ac_save_ifs" |
---|
1144 | fi |
---|
1145 | fi |
---|
1146 | CC="$ac_cv_prog_CC" |
---|
1147 | if test -n "$CC"; then |
---|
1148 | echo "$ac_t""$CC" 1>&6 |
---|
1149 | else |
---|
1150 | echo "$ac_t""no" 1>&6 |
---|
1151 | fi |
---|
1152 | ;; |
---|
1153 | esac |
---|
1154 | fi |
---|
1155 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1156 | fi |
---|
1157 | |
---|
1158 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1159 | echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1160 | |
---|
1161 | ac_ext=c |
---|
1162 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1163 | ac_cpp='$CPP $CPPFLAGS' |
---|
1164 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1165 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1166 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1167 | |
---|
1168 | cat > conftest.$ac_ext << EOF |
---|
1169 | |
---|
1170 | #line 1171 "configure" |
---|
1171 | #include "confdefs.h" |
---|
1172 | |
---|
1173 | main(){return(0);} |
---|
1174 | EOF |
---|
1175 | if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1176 | ac_cv_prog_cc_works=yes |
---|
1177 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1178 | if (./conftest; exit) 2>/dev/null; then |
---|
1179 | ac_cv_prog_cc_cross=no |
---|
1180 | else |
---|
1181 | ac_cv_prog_cc_cross=yes |
---|
1182 | fi |
---|
1183 | else |
---|
1184 | echo "configure: failed program was:" >&5 |
---|
1185 | cat conftest.$ac_ext >&5 |
---|
1186 | ac_cv_prog_cc_works=no |
---|
1187 | fi |
---|
1188 | rm -fr conftest* |
---|
1189 | ac_ext=c |
---|
1190 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1191 | ac_cpp='$CPP $CPPFLAGS' |
---|
1192 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1193 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1194 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1195 | |
---|
1196 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1197 | if test $ac_cv_prog_cc_works = no; then |
---|
1198 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1199 | fi |
---|
1200 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1201 | echo "configure:1202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1202 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1203 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1204 | |
---|
1205 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1206 | echo "configure:1207: checking whether we are using GNU C" >&5 |
---|
1207 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1208 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1209 | else |
---|
1210 | cat > conftest.c <<EOF |
---|
1211 | #ifdef __GNUC__ |
---|
1212 | yes; |
---|
1213 | #endif |
---|
1214 | EOF |
---|
1215 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1216 | ac_cv_prog_gcc=yes |
---|
1217 | else |
---|
1218 | ac_cv_prog_gcc=no |
---|
1219 | fi |
---|
1220 | fi |
---|
1221 | |
---|
1222 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1223 | |
---|
1224 | if test $ac_cv_prog_gcc = yes; then |
---|
1225 | GCC=yes |
---|
1226 | else |
---|
1227 | GCC= |
---|
1228 | fi |
---|
1229 | |
---|
1230 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1231 | ac_save_CFLAGS="$CFLAGS" |
---|
1232 | CFLAGS= |
---|
1233 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1234 | echo "configure:1235: checking whether ${CC-cc} accepts -g" >&5 |
---|
1235 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1236 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1237 | else |
---|
1238 | echo 'void f(){}' > conftest.c |
---|
1239 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1240 | ac_cv_prog_cc_g=yes |
---|
1241 | else |
---|
1242 | ac_cv_prog_cc_g=no |
---|
1243 | fi |
---|
1244 | rm -f conftest* |
---|
1245 | |
---|
1246 | fi |
---|
1247 | |
---|
1248 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1249 | if test "$ac_test_CFLAGS" = set; then |
---|
1250 | CFLAGS="$ac_save_CFLAGS" |
---|
1251 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1252 | if test "$GCC" = yes; then |
---|
1253 | CFLAGS="-g -O2" |
---|
1254 | else |
---|
1255 | CFLAGS="-g" |
---|
1256 | fi |
---|
1257 | else |
---|
1258 | if test "$GCC" = yes; then |
---|
1259 | CFLAGS="-O2" |
---|
1260 | else |
---|
1261 | CFLAGS= |
---|
1262 | fi |
---|
1263 | fi |
---|
1264 | |
---|
1265 | # Find a good install program. We prefer a C program (faster), |
---|
1266 | # so one script is as good as another. But avoid the broken or |
---|
1267 | # incompatible versions: |
---|
1268 | # SysV /etc/install, /usr/sbin/install |
---|
1269 | # SunOS /usr/etc/install |
---|
1270 | # IRIX /sbin/install |
---|
1271 | # AIX /bin/install |
---|
1272 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1273 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1274 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1275 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1276 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1277 | echo "configure:1278: checking for a BSD compatible install" >&5 |
---|
1278 | if test -z "$INSTALL"; then |
---|
1279 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1280 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1281 | else |
---|
1282 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1283 | for ac_dir in $PATH; do |
---|
1284 | # Account for people who put trailing slashes in PATH elements. |
---|
1285 | case "$ac_dir/" in |
---|
1286 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1287 | *) |
---|
1288 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1289 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1290 | # by default. |
---|
1291 | for ac_prog in ginstall scoinst install; do |
---|
1292 | if test -f $ac_dir/$ac_prog; then |
---|
1293 | if test $ac_prog = install && |
---|
1294 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1295 | # AIX install. It has an incompatible calling convention. |
---|
1296 | : |
---|
1297 | else |
---|
1298 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1299 | break 2 |
---|
1300 | fi |
---|
1301 | fi |
---|
1302 | done |
---|
1303 | ;; |
---|
1304 | esac |
---|
1305 | done |
---|
1306 | IFS="$ac_save_IFS" |
---|
1307 | |
---|
1308 | fi |
---|
1309 | if test "${ac_cv_path_install+set}" = set; then |
---|
1310 | INSTALL="$ac_cv_path_install" |
---|
1311 | else |
---|
1312 | # As a last resort, use the slow shell script. We don't cache a |
---|
1313 | # path for INSTALL within a source directory, because that will |
---|
1314 | # break other packages using the cache if that directory is |
---|
1315 | # removed, or if the path is relative. |
---|
1316 | INSTALL="$ac_install_sh" |
---|
1317 | fi |
---|
1318 | fi |
---|
1319 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1320 | |
---|
1321 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1322 | # It thinks the first close brace ends the variable substitution. |
---|
1323 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1324 | |
---|
1325 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1326 | |
---|
1327 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1328 | |
---|
1329 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1330 | echo "configure:1331: checking how to run the C preprocessor" >&5 |
---|
1331 | # On Suns, sometimes $CPP names a directory. |
---|
1332 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1333 | CPP= |
---|
1334 | fi |
---|
1335 | if test -z "$CPP"; then |
---|
1336 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1337 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1338 | else |
---|
1339 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1340 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1341 | CPP="${CC-cc} -E" |
---|
1342 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1343 | # not just through cpp. |
---|
1344 | cat > conftest.$ac_ext <<EOF |
---|
1345 | #line 1346 "configure" |
---|
1346 | #include "confdefs.h" |
---|
1347 | #include <assert.h> |
---|
1348 | Syntax Error |
---|
1349 | EOF |
---|
1350 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1351 | { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1352 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1353 | if test -z "$ac_err"; then |
---|
1354 | : |
---|
1355 | else |
---|
1356 | echo "$ac_err" >&5 |
---|
1357 | echo "configure: failed program was:" >&5 |
---|
1358 | cat conftest.$ac_ext >&5 |
---|
1359 | rm -rf conftest* |
---|
1360 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1361 | cat > conftest.$ac_ext <<EOF |
---|
1362 | #line 1363 "configure" |
---|
1363 | #include "confdefs.h" |
---|
1364 | #include <assert.h> |
---|
1365 | Syntax Error |
---|
1366 | EOF |
---|
1367 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1368 | { (eval echo configure:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1369 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1370 | if test -z "$ac_err"; then |
---|
1371 | : |
---|
1372 | else |
---|
1373 | echo "$ac_err" >&5 |
---|
1374 | echo "configure: failed program was:" >&5 |
---|
1375 | cat conftest.$ac_ext >&5 |
---|
1376 | rm -rf conftest* |
---|
1377 | CPP="${CC-cc} -nologo -E" |
---|
1378 | cat > conftest.$ac_ext <<EOF |
---|
1379 | #line 1380 "configure" |
---|
1380 | #include "confdefs.h" |
---|
1381 | #include <assert.h> |
---|
1382 | Syntax Error |
---|
1383 | EOF |
---|
1384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1385 | { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1386 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1387 | if test -z "$ac_err"; then |
---|
1388 | : |
---|
1389 | else |
---|
1390 | echo "$ac_err" >&5 |
---|
1391 | echo "configure: failed program was:" >&5 |
---|
1392 | cat conftest.$ac_ext >&5 |
---|
1393 | rm -rf conftest* |
---|
1394 | CPP=/lib/cpp |
---|
1395 | fi |
---|
1396 | rm -f conftest* |
---|
1397 | fi |
---|
1398 | rm -f conftest* |
---|
1399 | fi |
---|
1400 | rm -f conftest* |
---|
1401 | ac_cv_prog_CPP="$CPP" |
---|
1402 | fi |
---|
1403 | CPP="$ac_cv_prog_CPP" |
---|
1404 | else |
---|
1405 | ac_cv_prog_CPP="$CPP" |
---|
1406 | fi |
---|
1407 | echo "$ac_t""$CPP" 1>&6 |
---|
1408 | |
---|
1409 | # Extract the first word of "rm", so it can be a program name with args. |
---|
1410 | set dummy rm; ac_word=$2 |
---|
1411 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1412 | echo "configure:1413: checking for $ac_word" >&5 |
---|
1413 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
---|
1414 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1415 | else |
---|
1416 | case "$RM" in |
---|
1417 | /*) |
---|
1418 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
---|
1419 | ;; |
---|
1420 | ?:/*) |
---|
1421 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
---|
1422 | ;; |
---|
1423 | *) |
---|
1424 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1425 | ac_dummy="$PATH" |
---|
1426 | for ac_dir in $ac_dummy; do |
---|
1427 | test -z "$ac_dir" && ac_dir=. |
---|
1428 | if test -f $ac_dir/$ac_word; then |
---|
1429 | ac_cv_path_RM="$ac_dir/$ac_word" |
---|
1430 | break |
---|
1431 | fi |
---|
1432 | done |
---|
1433 | IFS="$ac_save_ifs" |
---|
1434 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm" |
---|
1435 | ;; |
---|
1436 | esac |
---|
1437 | fi |
---|
1438 | RM="$ac_cv_path_RM" |
---|
1439 | if test -n "$RM"; then |
---|
1440 | echo "$ac_t""$RM" 1>&6 |
---|
1441 | else |
---|
1442 | echo "$ac_t""no" 1>&6 |
---|
1443 | fi |
---|
1444 | |
---|
1445 | # Extract the first word of "mv", so it can be a program name with args. |
---|
1446 | set dummy mv; ac_word=$2 |
---|
1447 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1448 | echo "configure:1449: checking for $ac_word" >&5 |
---|
1449 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
---|
1450 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1451 | else |
---|
1452 | case "$MV" in |
---|
1453 | /*) |
---|
1454 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
---|
1455 | ;; |
---|
1456 | ?:/*) |
---|
1457 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
---|
1458 | ;; |
---|
1459 | *) |
---|
1460 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1461 | ac_dummy="$PATH" |
---|
1462 | for ac_dir in $ac_dummy; do |
---|
1463 | test -z "$ac_dir" && ac_dir=. |
---|
1464 | if test -f $ac_dir/$ac_word; then |
---|
1465 | ac_cv_path_MV="$ac_dir/$ac_word" |
---|
1466 | break |
---|
1467 | fi |
---|
1468 | done |
---|
1469 | IFS="$ac_save_ifs" |
---|
1470 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv" |
---|
1471 | ;; |
---|
1472 | esac |
---|
1473 | fi |
---|
1474 | MV="$ac_cv_path_MV" |
---|
1475 | if test -n "$MV"; then |
---|
1476 | echo "$ac_t""$MV" 1>&6 |
---|
1477 | else |
---|
1478 | echo "$ac_t""no" 1>&6 |
---|
1479 | fi |
---|
1480 | |
---|
1481 | # Extract the first word of "tar", so it can be a program name with args. |
---|
1482 | set dummy tar; ac_word=$2 |
---|
1483 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1484 | echo "configure:1485: checking for $ac_word" >&5 |
---|
1485 | if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then |
---|
1486 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1487 | else |
---|
1488 | case "$TAR" in |
---|
1489 | /*) |
---|
1490 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
---|
1491 | ;; |
---|
1492 | ?:/*) |
---|
1493 | ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path. |
---|
1494 | ;; |
---|
1495 | *) |
---|
1496 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1497 | ac_dummy="$PATH" |
---|
1498 | for ac_dir in $ac_dummy; do |
---|
1499 | test -z "$ac_dir" && ac_dir=. |
---|
1500 | if test -f $ac_dir/$ac_word; then |
---|
1501 | ac_cv_path_TAR="$ac_dir/$ac_word" |
---|
1502 | break |
---|
1503 | fi |
---|
1504 | done |
---|
1505 | IFS="$ac_save_ifs" |
---|
1506 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar" |
---|
1507 | ;; |
---|
1508 | esac |
---|
1509 | fi |
---|
1510 | TAR="$ac_cv_path_TAR" |
---|
1511 | if test -n "$TAR"; then |
---|
1512 | echo "$ac_t""$TAR" 1>&6 |
---|
1513 | else |
---|
1514 | echo "$ac_t""no" 1>&6 |
---|
1515 | fi |
---|
1516 | |
---|
1517 | |
---|
1518 | |
---|
1519 | |
---|
1520 | |
---|
1521 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
---|
1522 | echo "configure:1523: checking for ${CC-cc} option to accept ANSI C" >&5 |
---|
1523 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
---|
1524 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1525 | else |
---|
1526 | am_cv_prog_cc_stdc=no |
---|
1527 | ac_save_CC="$CC" |
---|
1528 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
1529 | # breaks some systems' header files. |
---|
1530 | # AIX -qlanglvl=ansi |
---|
1531 | # Ultrix and OSF/1 -std1 |
---|
1532 | # HP-UX -Aa -D_HPUX_SOURCE |
---|
1533 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
1534 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
1535 | do |
---|
1536 | CC="$ac_save_CC $ac_arg" |
---|
1537 | cat > conftest.$ac_ext <<EOF |
---|
1538 | #line 1539 "configure" |
---|
1539 | #include "confdefs.h" |
---|
1540 | #include <stdarg.h> |
---|
1541 | #include <stdio.h> |
---|
1542 | #include <sys/types.h> |
---|
1543 | #include <sys/stat.h> |
---|
1544 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
1545 | struct buf { int x; }; |
---|
1546 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1547 | static char *e (p, i) |
---|
1548 | char **p; |
---|
1549 | int i; |
---|
1550 | { |
---|
1551 | return p[i]; |
---|
1552 | } |
---|
1553 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1554 | { |
---|
1555 | char *s; |
---|
1556 | va_list v; |
---|
1557 | va_start (v,p); |
---|
1558 | s = g (p, va_arg (v,int)); |
---|
1559 | va_end (v); |
---|
1560 | return s; |
---|
1561 | } |
---|
1562 | int test (int i, double x); |
---|
1563 | struct s1 {int (*f) (int a);}; |
---|
1564 | struct s2 {int (*f) (double a);}; |
---|
1565 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
1566 | int argc; |
---|
1567 | char **argv; |
---|
1568 | |
---|
1569 | int main() { |
---|
1570 | |
---|
1571 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
1572 | |
---|
1573 | ; return 0; } |
---|
1574 | EOF |
---|
1575 | if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1576 | rm -rf conftest* |
---|
1577 | am_cv_prog_cc_stdc="$ac_arg"; break |
---|
1578 | else |
---|
1579 | echo "configure: failed program was:" >&5 |
---|
1580 | cat conftest.$ac_ext >&5 |
---|
1581 | fi |
---|
1582 | rm -f conftest* |
---|
1583 | done |
---|
1584 | CC="$ac_save_CC" |
---|
1585 | |
---|
1586 | fi |
---|
1587 | |
---|
1588 | if test -z "$am_cv_prog_cc_stdc"; then |
---|
1589 | echo "$ac_t""none needed" 1>&6 |
---|
1590 | else |
---|
1591 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 |
---|
1592 | fi |
---|
1593 | case "x$am_cv_prog_cc_stdc" in |
---|
1594 | x|xno) ;; |
---|
1595 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
---|
1596 | esac |
---|
1597 | |
---|
1598 | |
---|
1599 | |
---|
1600 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
---|
1601 | echo "configure:1602: checking for function prototypes" >&5 |
---|
1602 | if test "$am_cv_prog_cc_stdc" != no; then |
---|
1603 | echo "$ac_t""yes" 1>&6 |
---|
1604 | cat >> confdefs.h <<\EOF |
---|
1605 | #define PROTOTYPES 1 |
---|
1606 | EOF |
---|
1607 | |
---|
1608 | U= ANSI2KNR= |
---|
1609 | else |
---|
1610 | echo "$ac_t""no" 1>&6 |
---|
1611 | U=_ ANSI2KNR=./ansi2knr |
---|
1612 | # Ensure some checks needed by ansi2knr itself. |
---|
1613 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1614 | echo "configure:1615: checking for ANSI C header files" >&5 |
---|
1615 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1616 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1617 | else |
---|
1618 | cat > conftest.$ac_ext <<EOF |
---|
1619 | #line 1620 "configure" |
---|
1620 | #include "confdefs.h" |
---|
1621 | #include <stdlib.h> |
---|
1622 | #include <stdarg.h> |
---|
1623 | #include <string.h> |
---|
1624 | #include <float.h> |
---|
1625 | EOF |
---|
1626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1627 | { (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1628 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1629 | if test -z "$ac_err"; then |
---|
1630 | rm -rf conftest* |
---|
1631 | ac_cv_header_stdc=yes |
---|
1632 | else |
---|
1633 | echo "$ac_err" >&5 |
---|
1634 | echo "configure: failed program was:" >&5 |
---|
1635 | cat conftest.$ac_ext >&5 |
---|
1636 | rm -rf conftest* |
---|
1637 | ac_cv_header_stdc=no |
---|
1638 | fi |
---|
1639 | rm -f conftest* |
---|
1640 | |
---|
1641 | if test $ac_cv_header_stdc = yes; then |
---|
1642 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1643 | cat > conftest.$ac_ext <<EOF |
---|
1644 | #line 1645 "configure" |
---|
1645 | #include "confdefs.h" |
---|
1646 | #include <string.h> |
---|
1647 | EOF |
---|
1648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1649 | egrep "memchr" >/dev/null 2>&1; then |
---|
1650 | : |
---|
1651 | else |
---|
1652 | rm -rf conftest* |
---|
1653 | ac_cv_header_stdc=no |
---|
1654 | fi |
---|
1655 | rm -f conftest* |
---|
1656 | |
---|
1657 | fi |
---|
1658 | |
---|
1659 | if test $ac_cv_header_stdc = yes; then |
---|
1660 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1661 | cat > conftest.$ac_ext <<EOF |
---|
1662 | #line 1663 "configure" |
---|
1663 | #include "confdefs.h" |
---|
1664 | #include <stdlib.h> |
---|
1665 | EOF |
---|
1666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1667 | egrep "free" >/dev/null 2>&1; then |
---|
1668 | : |
---|
1669 | else |
---|
1670 | rm -rf conftest* |
---|
1671 | ac_cv_header_stdc=no |
---|
1672 | fi |
---|
1673 | rm -f conftest* |
---|
1674 | |
---|
1675 | fi |
---|
1676 | |
---|
1677 | if test $ac_cv_header_stdc = yes; then |
---|
1678 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1679 | if test "$cross_compiling" = yes; then |
---|
1680 | : |
---|
1681 | else |
---|
1682 | cat > conftest.$ac_ext <<EOF |
---|
1683 | #line 1684 "configure" |
---|
1684 | #include "confdefs.h" |
---|
1685 | #include <ctype.h> |
---|
1686 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1687 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1688 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1689 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1690 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1691 | exit (0); } |
---|
1692 | |
---|
1693 | EOF |
---|
1694 | if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1695 | then |
---|
1696 | : |
---|
1697 | else |
---|
1698 | echo "configure: failed program was:" >&5 |
---|
1699 | cat conftest.$ac_ext >&5 |
---|
1700 | rm -fr conftest* |
---|
1701 | ac_cv_header_stdc=no |
---|
1702 | fi |
---|
1703 | rm -fr conftest* |
---|
1704 | fi |
---|
1705 | |
---|
1706 | fi |
---|
1707 | fi |
---|
1708 | |
---|
1709 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1710 | if test $ac_cv_header_stdc = yes; then |
---|
1711 | cat >> confdefs.h <<\EOF |
---|
1712 | #define STDC_HEADERS 1 |
---|
1713 | EOF |
---|
1714 | |
---|
1715 | fi |
---|
1716 | |
---|
1717 | for ac_hdr in string.h |
---|
1718 | do |
---|
1719 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1720 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1721 | echo "configure:1722: checking for $ac_hdr" >&5 |
---|
1722 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1723 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1724 | else |
---|
1725 | cat > conftest.$ac_ext <<EOF |
---|
1726 | #line 1727 "configure" |
---|
1727 | #include "confdefs.h" |
---|
1728 | #include <$ac_hdr> |
---|
1729 | EOF |
---|
1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1733 | if test -z "$ac_err"; then |
---|
1734 | rm -rf conftest* |
---|
1735 | eval "ac_cv_header_$ac_safe=yes" |
---|
1736 | else |
---|
1737 | echo "$ac_err" >&5 |
---|
1738 | echo "configure: failed program was:" >&5 |
---|
1739 | cat conftest.$ac_ext >&5 |
---|
1740 | rm -rf conftest* |
---|
1741 | eval "ac_cv_header_$ac_safe=no" |
---|
1742 | fi |
---|
1743 | rm -f conftest* |
---|
1744 | fi |
---|
1745 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1746 | echo "$ac_t""yes" 1>&6 |
---|
1747 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1748 | cat >> confdefs.h <<EOF |
---|
1749 | #define $ac_tr_hdr 1 |
---|
1750 | EOF |
---|
1751 | |
---|
1752 | else |
---|
1753 | echo "$ac_t""no" 1>&6 |
---|
1754 | fi |
---|
1755 | done |
---|
1756 | |
---|
1757 | fi |
---|
1758 | |
---|
1759 | test "x$U" != "x" && { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; } |
---|
1760 | |
---|
1761 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
---|
1762 | echo "configure:1763: checking for Cygwin environment" >&5 |
---|
1763 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
---|
1764 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1765 | else |
---|
1766 | cat > conftest.$ac_ext <<EOF |
---|
1767 | #line 1768 "configure" |
---|
1768 | #include "confdefs.h" |
---|
1769 | |
---|
1770 | int main() { |
---|
1771 | |
---|
1772 | #ifndef __CYGWIN__ |
---|
1773 | #define __CYGWIN__ __CYGWIN32__ |
---|
1774 | #endif |
---|
1775 | return __CYGWIN__; |
---|
1776 | ; return 0; } |
---|
1777 | EOF |
---|
1778 | if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1779 | rm -rf conftest* |
---|
1780 | ac_cv_cygwin=yes |
---|
1781 | else |
---|
1782 | echo "configure: failed program was:" >&5 |
---|
1783 | cat conftest.$ac_ext >&5 |
---|
1784 | rm -rf conftest* |
---|
1785 | ac_cv_cygwin=no |
---|
1786 | fi |
---|
1787 | rm -f conftest* |
---|
1788 | rm -f conftest* |
---|
1789 | fi |
---|
1790 | |
---|
1791 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
---|
1792 | CYGWIN= |
---|
1793 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
---|
1794 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
---|
1795 | echo "configure:1796: checking for mingw32 environment" >&5 |
---|
1796 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
---|
1797 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1798 | else |
---|
1799 | cat > conftest.$ac_ext <<EOF |
---|
1800 | #line 1801 "configure" |
---|
1801 | #include "confdefs.h" |
---|
1802 | |
---|
1803 | int main() { |
---|
1804 | return __MINGW32__; |
---|
1805 | ; return 0; } |
---|
1806 | EOF |
---|
1807 | if { (eval echo configure:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1808 | rm -rf conftest* |
---|
1809 | ac_cv_mingw32=yes |
---|
1810 | else |
---|
1811 | echo "configure: failed program was:" >&5 |
---|
1812 | cat conftest.$ac_ext >&5 |
---|
1813 | rm -rf conftest* |
---|
1814 | ac_cv_mingw32=no |
---|
1815 | fi |
---|
1816 | rm -f conftest* |
---|
1817 | rm -f conftest* |
---|
1818 | fi |
---|
1819 | |
---|
1820 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
---|
1821 | MINGW32= |
---|
1822 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
---|
1823 | # Check whether --enable-shared or --disable-shared was given. |
---|
1824 | if test "${enable_shared+set}" = set; then |
---|
1825 | enableval="$enable_shared" |
---|
1826 | p=${PACKAGE-default} |
---|
1827 | case $enableval in |
---|
1828 | yes) enable_shared=yes ;; |
---|
1829 | no) enable_shared=no ;; |
---|
1830 | *) |
---|
1831 | enable_shared=no |
---|
1832 | # Look at the argument we got. We use all the common list separators. |
---|
1833 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1834 | for pkg in $enableval; do |
---|
1835 | if test "X$pkg" = "X$p"; then |
---|
1836 | enable_shared=yes |
---|
1837 | fi |
---|
1838 | done |
---|
1839 | IFS="$ac_save_ifs" |
---|
1840 | ;; |
---|
1841 | esac |
---|
1842 | else |
---|
1843 | enable_shared=yes |
---|
1844 | fi |
---|
1845 | |
---|
1846 | # Check whether --enable-static or --disable-static was given. |
---|
1847 | if test "${enable_static+set}" = set; then |
---|
1848 | enableval="$enable_static" |
---|
1849 | p=${PACKAGE-default} |
---|
1850 | case $enableval in |
---|
1851 | yes) enable_static=yes ;; |
---|
1852 | no) enable_static=no ;; |
---|
1853 | *) |
---|
1854 | enable_static=no |
---|
1855 | # Look at the argument we got. We use all the common list separators. |
---|
1856 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1857 | for pkg in $enableval; do |
---|
1858 | if test "X$pkg" = "X$p"; then |
---|
1859 | enable_static=yes |
---|
1860 | fi |
---|
1861 | done |
---|
1862 | IFS="$ac_save_ifs" |
---|
1863 | ;; |
---|
1864 | esac |
---|
1865 | else |
---|
1866 | enable_static=yes |
---|
1867 | fi |
---|
1868 | |
---|
1869 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
1870 | if test "${enable_fast_install+set}" = set; then |
---|
1871 | enableval="$enable_fast_install" |
---|
1872 | p=${PACKAGE-default} |
---|
1873 | case $enableval in |
---|
1874 | yes) enable_fast_install=yes ;; |
---|
1875 | no) enable_fast_install=no ;; |
---|
1876 | *) |
---|
1877 | enable_fast_install=no |
---|
1878 | # Look at the argument we got. We use all the common list separators. |
---|
1879 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1880 | for pkg in $enableval; do |
---|
1881 | if test "X$pkg" = "X$p"; then |
---|
1882 | enable_fast_install=yes |
---|
1883 | fi |
---|
1884 | done |
---|
1885 | IFS="$ac_save_ifs" |
---|
1886 | ;; |
---|
1887 | esac |
---|
1888 | else |
---|
1889 | enable_fast_install=yes |
---|
1890 | fi |
---|
1891 | |
---|
1892 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
1893 | echo "configure:1894: checking build system type" >&5 |
---|
1894 | |
---|
1895 | build_alias=$build |
---|
1896 | case "$build_alias" in |
---|
1897 | NONE) |
---|
1898 | case $nonopt in |
---|
1899 | NONE) build_alias=$host_alias ;; |
---|
1900 | *) build_alias=$nonopt ;; |
---|
1901 | esac ;; |
---|
1902 | esac |
---|
1903 | |
---|
1904 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
1905 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1906 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1907 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1908 | echo "$ac_t""$build" 1>&6 |
---|
1909 | |
---|
1910 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
1911 | if test "${with_gnu_ld+set}" = set; then |
---|
1912 | withval="$with_gnu_ld" |
---|
1913 | test "$withval" = no || with_gnu_ld=yes |
---|
1914 | else |
---|
1915 | with_gnu_ld=no |
---|
1916 | fi |
---|
1917 | |
---|
1918 | ac_prog=ld |
---|
1919 | if test "$GCC" = yes; then |
---|
1920 | # Check if gcc -print-prog-name=ld gives a path. |
---|
1921 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
1922 | echo "configure:1923: checking for ld used by GCC" >&5 |
---|
1923 | case $host in |
---|
1924 | *-*-mingw*) |
---|
1925 | # gcc leaves a trailing carriage return which upsets mingw |
---|
1926 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
1927 | *) |
---|
1928 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
1929 | esac |
---|
1930 | case $ac_prog in |
---|
1931 | # Accept absolute paths. |
---|
1932 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
1933 | re_direlt='/[^/][^/]*/\.\./' |
---|
1934 | # Canonicalize the path of ld |
---|
1935 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
1936 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
1937 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
1938 | done |
---|
1939 | test -z "$LD" && LD="$ac_prog" |
---|
1940 | ;; |
---|
1941 | "") |
---|
1942 | # If it fails, then pretend we aren't using GCC. |
---|
1943 | ac_prog=ld |
---|
1944 | ;; |
---|
1945 | *) |
---|
1946 | # If it is relative, then search for the first ld in PATH. |
---|
1947 | with_gnu_ld=unknown |
---|
1948 | ;; |
---|
1949 | esac |
---|
1950 | elif test "$with_gnu_ld" = yes; then |
---|
1951 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
1952 | echo "configure:1953: checking for GNU ld" >&5 |
---|
1953 | else |
---|
1954 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
1955 | echo "configure:1956: checking for non-GNU ld" >&5 |
---|
1956 | fi |
---|
1957 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
---|
1958 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1959 | else |
---|
1960 | if test -z "$LD"; then |
---|
1961 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
1962 | for ac_dir in $PATH; do |
---|
1963 | test -z "$ac_dir" && ac_dir=. |
---|
1964 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
1965 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
1966 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
1967 | # but apparently some GNU ld's only accept -v. |
---|
1968 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
1969 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
1970 | test "$with_gnu_ld" != no && break |
---|
1971 | else |
---|
1972 | test "$with_gnu_ld" != yes && break |
---|
1973 | fi |
---|
1974 | fi |
---|
1975 | done |
---|
1976 | IFS="$ac_save_ifs" |
---|
1977 | else |
---|
1978 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
1979 | fi |
---|
1980 | fi |
---|
1981 | |
---|
1982 | LD="$lt_cv_path_LD" |
---|
1983 | if test -n "$LD"; then |
---|
1984 | echo "$ac_t""$LD" 1>&6 |
---|
1985 | else |
---|
1986 | echo "$ac_t""no" 1>&6 |
---|
1987 | fi |
---|
1988 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
1989 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
1990 | echo "configure:1991: checking if the linker ($LD) is GNU ld" >&5 |
---|
1991 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
1992 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1993 | else |
---|
1994 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
1995 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
1996 | lt_cv_prog_gnu_ld=yes |
---|
1997 | else |
---|
1998 | lt_cv_prog_gnu_ld=no |
---|
1999 | fi |
---|
2000 | fi |
---|
2001 | |
---|
2002 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
---|
2003 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
2004 | |
---|
2005 | |
---|
2006 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
---|
2007 | echo "configure:2008: checking for $LD option to reload object files" >&5 |
---|
2008 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
---|
2009 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2010 | else |
---|
2011 | lt_cv_ld_reload_flag='-r' |
---|
2012 | fi |
---|
2013 | |
---|
2014 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
---|
2015 | reload_flag=$lt_cv_ld_reload_flag |
---|
2016 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
---|
2017 | |
---|
2018 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
2019 | echo "configure:2020: checking for BSD-compatible nm" >&5 |
---|
2020 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
---|
2021 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2022 | else |
---|
2023 | if test -n "$NM"; then |
---|
2024 | # Let the user override the test. |
---|
2025 | lt_cv_path_NM="$NM" |
---|
2026 | else |
---|
2027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2028 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
2029 | test -z "$ac_dir" && ac_dir=. |
---|
2030 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
---|
2031 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
---|
2032 | # Check to see if the nm accepts a BSD-compat flag. |
---|
2033 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
2034 | # nm: unknown option "B" ignored |
---|
2035 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
2036 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
---|
2037 | lt_cv_path_NM="$tmp_nm -B" |
---|
2038 | break |
---|
2039 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2040 | lt_cv_path_NM="$tmp_nm -p" |
---|
2041 | break |
---|
2042 | else |
---|
2043 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
2044 | continue # so that we can try to find one that supports BSD flags |
---|
2045 | fi |
---|
2046 | fi |
---|
2047 | done |
---|
2048 | IFS="$ac_save_ifs" |
---|
2049 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
2050 | fi |
---|
2051 | fi |
---|
2052 | |
---|
2053 | NM="$lt_cv_path_NM" |
---|
2054 | echo "$ac_t""$NM" 1>&6 |
---|
2055 | |
---|
2056 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
2057 | echo "configure:2058: checking whether ln -s works" >&5 |
---|
2058 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
2059 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2060 | else |
---|
2061 | rm -f conftestdata |
---|
2062 | if ln -s X conftestdata 2>/dev/null |
---|
2063 | then |
---|
2064 | rm -f conftestdata |
---|
2065 | ac_cv_prog_LN_S="ln -s" |
---|
2066 | else |
---|
2067 | ac_cv_prog_LN_S=ln |
---|
2068 | fi |
---|
2069 | fi |
---|
2070 | LN_S="$ac_cv_prog_LN_S" |
---|
2071 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
2072 | echo "$ac_t""yes" 1>&6 |
---|
2073 | else |
---|
2074 | echo "$ac_t""no" 1>&6 |
---|
2075 | fi |
---|
2076 | |
---|
2077 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
---|
2078 | echo "configure:2079: checking how to recognise dependant libraries" >&5 |
---|
2079 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
---|
2080 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2081 | else |
---|
2082 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
2083 | lt_cv_file_magic_test_file= |
---|
2084 | lt_cv_deplibs_check_method='unknown' |
---|
2085 | # Need to set the preceding variable on all platforms that support |
---|
2086 | # interlibrary dependencies. |
---|
2087 | # 'none' -- dependencies not supported. |
---|
2088 | # `unknown' -- same as none, but documents that we really don't know. |
---|
2089 | # 'pass_all' -- all dependencies passed with no checks. |
---|
2090 | # 'test_compile' -- check by making test program. |
---|
2091 | # ['file_magic [regex]'] -- check by looking for files in library path |
---|
2092 | # which responds to the $file_magic_cmd with a given egrep regex. |
---|
2093 | # If you have `file' or equivalent on your system and you're not sure |
---|
2094 | # whether `pass_all' will *always* work, you probably want this one. |
---|
2095 | |
---|
2096 | case $host_os in |
---|
2097 | aix4* | aix5*) |
---|
2098 | lt_cv_deplibs_check_method=pass_all |
---|
2099 | ;; |
---|
2100 | |
---|
2101 | beos*) |
---|
2102 | lt_cv_deplibs_check_method=pass_all |
---|
2103 | ;; |
---|
2104 | |
---|
2105 | bsdi4*) |
---|
2106 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
2107 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
2108 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
2109 | ;; |
---|
2110 | |
---|
2111 | cygwin* | mingw* | pw32*) |
---|
2112 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
2113 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
2114 | ;; |
---|
2115 | |
---|
2116 | darwin* | rhapsody*) |
---|
2117 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
---|
2118 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
2119 | case "$host_os" in |
---|
2120 | rhapsody* | darwin1.012) |
---|
2121 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
---|
2122 | ;; |
---|
2123 | *) # Darwin 1.3 on |
---|
2124 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
---|
2125 | ;; |
---|
2126 | esac |
---|
2127 | ;; |
---|
2128 | |
---|
2129 | freebsd*) |
---|
2130 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
2131 | case $host_cpu in |
---|
2132 | i*86 ) |
---|
2133 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
2134 | # Let's accept both of them until this is cleared up. |
---|
2135 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
---|
2136 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2137 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
2138 | ;; |
---|
2139 | esac |
---|
2140 | else |
---|
2141 | lt_cv_deplibs_check_method=pass_all |
---|
2142 | fi |
---|
2143 | ;; |
---|
2144 | |
---|
2145 | gnu*) |
---|
2146 | lt_cv_deplibs_check_method=pass_all |
---|
2147 | ;; |
---|
2148 | |
---|
2149 | hpux10.20*|hpux11*) |
---|
2150 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
2151 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2152 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
2153 | ;; |
---|
2154 | |
---|
2155 | irix5* | irix6*) |
---|
2156 | case $host_os in |
---|
2157 | irix5*) |
---|
2158 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2159 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
---|
2160 | ;; |
---|
2161 | *) |
---|
2162 | case $LD in |
---|
2163 | *-32|*"-32 ") libmagic=32-bit;; |
---|
2164 | *-n32|*"-n32 ") libmagic=N32;; |
---|
2165 | *-64|*"-64 ") libmagic=64-bit;; |
---|
2166 | *) libmagic=never-match;; |
---|
2167 | esac |
---|
2168 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2169 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
---|
2170 | ;; |
---|
2171 | esac |
---|
2172 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
---|
2173 | lt_cv_deplibs_check_method=pass_all |
---|
2174 | ;; |
---|
2175 | |
---|
2176 | # This must be Linux ELF. |
---|
2177 | linux-gnu*) |
---|
2178 | case $host_cpu in |
---|
2179 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) |
---|
2180 | lt_cv_deplibs_check_method=pass_all ;; |
---|
2181 | *) |
---|
2182 | # glibc up to 2.1.1 does not perform some relocations on ARM |
---|
2183 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
---|
2184 | esac |
---|
2185 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
---|
2186 | ;; |
---|
2187 | |
---|
2188 | netbsd*) |
---|
2189 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
2190 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
---|
2191 | else |
---|
2192 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
---|
2193 | fi |
---|
2194 | ;; |
---|
2195 | |
---|
2196 | newos6*) |
---|
2197 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
2198 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2199 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
2200 | ;; |
---|
2201 | |
---|
2202 | osf3* | osf4* | osf5*) |
---|
2203 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2204 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
---|
2205 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
2206 | lt_cv_deplibs_check_method=pass_all |
---|
2207 | ;; |
---|
2208 | |
---|
2209 | sco3.2v5*) |
---|
2210 | lt_cv_deplibs_check_method=pass_all |
---|
2211 | ;; |
---|
2212 | |
---|
2213 | solaris*) |
---|
2214 | lt_cv_deplibs_check_method=pass_all |
---|
2215 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
2216 | ;; |
---|
2217 | |
---|
2218 | sysv5uw[78]* | sysv4*uw2*) |
---|
2219 | lt_cv_deplibs_check_method=pass_all |
---|
2220 | ;; |
---|
2221 | |
---|
2222 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
2223 | case $host_vendor in |
---|
2224 | motorola) |
---|
2225 | 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]' |
---|
2226 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
2227 | ;; |
---|
2228 | ncr) |
---|
2229 | lt_cv_deplibs_check_method=pass_all |
---|
2230 | ;; |
---|
2231 | sequent) |
---|
2232 | lt_cv_file_magic_cmd='/bin/file' |
---|
2233 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
2234 | ;; |
---|
2235 | sni) |
---|
2236 | lt_cv_file_magic_cmd='/bin/file' |
---|
2237 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
2238 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
2239 | ;; |
---|
2240 | esac |
---|
2241 | ;; |
---|
2242 | esac |
---|
2243 | |
---|
2244 | fi |
---|
2245 | |
---|
2246 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 |
---|
2247 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
2248 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
2249 | |
---|
2250 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
---|
2251 | echo "configure:2252: checking for object suffix" >&5 |
---|
2252 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
---|
2253 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2254 | else |
---|
2255 | rm -f conftest* |
---|
2256 | echo 'int i = 1;' > conftest.$ac_ext |
---|
2257 | if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2258 | for ac_file in conftest.*; do |
---|
2259 | case $ac_file in |
---|
2260 | *.c) ;; |
---|
2261 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; |
---|
2262 | esac |
---|
2263 | done |
---|
2264 | else |
---|
2265 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
---|
2266 | fi |
---|
2267 | rm -f conftest* |
---|
2268 | fi |
---|
2269 | |
---|
2270 | echo "$ac_t""$ac_cv_objext" 1>&6 |
---|
2271 | OBJEXT=$ac_cv_objext |
---|
2272 | ac_objext=$ac_cv_objext |
---|
2273 | |
---|
2274 | |
---|
2275 | |
---|
2276 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
---|
2277 | echo "configure:2278: checking for executable suffix" >&5 |
---|
2278 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
---|
2279 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2280 | else |
---|
2281 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
---|
2282 | ac_cv_exeext=.exe |
---|
2283 | else |
---|
2284 | rm -f conftest* |
---|
2285 | echo 'int main () { return 0; }' > conftest.$ac_ext |
---|
2286 | ac_cv_exeext= |
---|
2287 | if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2288 | for file in conftest.*; do |
---|
2289 | case $file in |
---|
2290 | *.c | *.o | *.obj) ;; |
---|
2291 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
---|
2292 | esac |
---|
2293 | done |
---|
2294 | else |
---|
2295 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
---|
2296 | fi |
---|
2297 | rm -f conftest* |
---|
2298 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
---|
2299 | fi |
---|
2300 | fi |
---|
2301 | |
---|
2302 | EXEEXT="" |
---|
2303 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
---|
2304 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
---|
2305 | ac_exeext=$EXEEXT |
---|
2306 | |
---|
2307 | if test $host != $build; then |
---|
2308 | ac_tool_prefix=${host_alias}- |
---|
2309 | else |
---|
2310 | ac_tool_prefix= |
---|
2311 | fi |
---|
2312 | |
---|
2313 | |
---|
2314 | |
---|
2315 | |
---|
2316 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
2317 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 |
---|
2318 | echo "configure:2319: checking command to parse $NM output" >&5 |
---|
2319 | if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then |
---|
2320 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2321 | else |
---|
2322 | |
---|
2323 | # These are sane defaults that work on at least a few old systems. |
---|
2324 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
2325 | |
---|
2326 | # Character class describing NM global symbol codes. |
---|
2327 | symcode='[BCDEGRST]' |
---|
2328 | |
---|
2329 | # Regexp to match symbols that can be accessed directly from C. |
---|
2330 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
2331 | |
---|
2332 | # Transform the above into a raw symbol and a C symbol. |
---|
2333 | symxfrm='\1 \2\3 \3' |
---|
2334 | |
---|
2335 | # Transform an extracted symbol line into a proper C declaration |
---|
2336 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
---|
2337 | |
---|
2338 | # Define system-specific variables. |
---|
2339 | case $host_os in |
---|
2340 | aix*) |
---|
2341 | symcode='[BCDT]' |
---|
2342 | ;; |
---|
2343 | cygwin* | mingw* | pw32*) |
---|
2344 | symcode='[ABCDGISTW]' |
---|
2345 | ;; |
---|
2346 | hpux*) # Its linker distinguishes data from code symbols |
---|
2347 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
2348 | ;; |
---|
2349 | irix*) |
---|
2350 | symcode='[BCDEGRST]' |
---|
2351 | ;; |
---|
2352 | solaris* | sysv5*) |
---|
2353 | symcode='[BDT]' |
---|
2354 | ;; |
---|
2355 | sysv4) |
---|
2356 | symcode='[DFNSTU]' |
---|
2357 | ;; |
---|
2358 | esac |
---|
2359 | |
---|
2360 | # Handle CRLF in mingw tool chain |
---|
2361 | opt_cr= |
---|
2362 | case $host_os in |
---|
2363 | mingw*) |
---|
2364 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
2365 | ;; |
---|
2366 | esac |
---|
2367 | |
---|
2368 | # If we're using GNU nm, then use its standard symbol codes. |
---|
2369 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
---|
2370 | symcode='[ABCDGISTW]' |
---|
2371 | fi |
---|
2372 | |
---|
2373 | # Try without a prefix undercore, then with it. |
---|
2374 | for ac_symprfx in "" "_"; do |
---|
2375 | |
---|
2376 | # Write the raw and C identifiers. |
---|
2377 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
---|
2378 | |
---|
2379 | # Check to see that the pipe works correctly. |
---|
2380 | pipe_works=no |
---|
2381 | rm -f conftest* |
---|
2382 | cat > conftest.$ac_ext <<EOF |
---|
2383 | #ifdef __cplusplus |
---|
2384 | extern "C" { |
---|
2385 | #endif |
---|
2386 | char nm_test_var; |
---|
2387 | void nm_test_func(){} |
---|
2388 | #ifdef __cplusplus |
---|
2389 | } |
---|
2390 | #endif |
---|
2391 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
2392 | EOF |
---|
2393 | |
---|
2394 | if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2395 | # Now try to grab the symbols. |
---|
2396 | nlist=conftest.nm |
---|
2397 | if { (eval echo configure:2398: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then |
---|
2398 | # Try sorting and uniquifying the output. |
---|
2399 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
2400 | mv -f "$nlist"T "$nlist" |
---|
2401 | else |
---|
2402 | rm -f "$nlist"T |
---|
2403 | fi |
---|
2404 | |
---|
2405 | # Make sure that we snagged all the symbols we need. |
---|
2406 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
2407 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
2408 | cat <<EOF > conftest.$ac_ext |
---|
2409 | #ifdef __cplusplus |
---|
2410 | extern "C" { |
---|
2411 | #endif |
---|
2412 | |
---|
2413 | EOF |
---|
2414 | # Now generate the symbol file. |
---|
2415 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
---|
2416 | |
---|
2417 | cat <<EOF >> conftest.$ac_ext |
---|
2418 | #if defined (__STDC__) && __STDC__ |
---|
2419 | # define lt_ptr_t void * |
---|
2420 | #else |
---|
2421 | # define lt_ptr_t char * |
---|
2422 | # define const |
---|
2423 | #endif |
---|
2424 | |
---|
2425 | /* The mapping between symbol names and symbols. */ |
---|
2426 | const struct { |
---|
2427 | const char *name; |
---|
2428 | lt_ptr_t address; |
---|
2429 | } |
---|
2430 | lt_preloaded_symbols[] = |
---|
2431 | { |
---|
2432 | EOF |
---|
2433 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
---|
2434 | cat <<\EOF >> conftest.$ac_ext |
---|
2435 | {0, (lt_ptr_t) 0} |
---|
2436 | }; |
---|
2437 | |
---|
2438 | #ifdef __cplusplus |
---|
2439 | } |
---|
2440 | #endif |
---|
2441 | EOF |
---|
2442 | # Now try linking the two files. |
---|
2443 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
2444 | save_LIBS="$LIBS" |
---|
2445 | save_CFLAGS="$CFLAGS" |
---|
2446 | LIBS="conftstm.$ac_objext" |
---|
2447 | CFLAGS="$CFLAGS$no_builtin_flag" |
---|
2448 | if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2449 | pipe_works=yes |
---|
2450 | fi |
---|
2451 | LIBS="$save_LIBS" |
---|
2452 | CFLAGS="$save_CFLAGS" |
---|
2453 | else |
---|
2454 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
2455 | fi |
---|
2456 | else |
---|
2457 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
2458 | fi |
---|
2459 | else |
---|
2460 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
2461 | fi |
---|
2462 | else |
---|
2463 | echo "$progname: failed program was:" >&5 |
---|
2464 | cat conftest.$ac_ext >&5 |
---|
2465 | fi |
---|
2466 | rm -f conftest* conftst* |
---|
2467 | |
---|
2468 | # Do not use the global_symbol_pipe unless it works. |
---|
2469 | if test "$pipe_works" = yes; then |
---|
2470 | break |
---|
2471 | else |
---|
2472 | lt_cv_sys_global_symbol_pipe= |
---|
2473 | fi |
---|
2474 | done |
---|
2475 | |
---|
2476 | fi |
---|
2477 | |
---|
2478 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
---|
2479 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
2480 | global_symbol_to_cdecl= |
---|
2481 | else |
---|
2482 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
---|
2483 | fi |
---|
2484 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
---|
2485 | echo "$ac_t""failed" 1>&6 |
---|
2486 | else |
---|
2487 | echo "$ac_t""ok" 1>&6 |
---|
2488 | fi |
---|
2489 | |
---|
2490 | for ac_hdr in dlfcn.h |
---|
2491 | do |
---|
2492 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2493 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2494 | echo "configure:2495: checking for $ac_hdr" >&5 |
---|
2495 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2496 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2497 | else |
---|
2498 | cat > conftest.$ac_ext <<EOF |
---|
2499 | #line 2500 "configure" |
---|
2500 | #include "confdefs.h" |
---|
2501 | #include <$ac_hdr> |
---|
2502 | EOF |
---|
2503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2504 | { (eval echo configure:2505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2506 | if test -z "$ac_err"; then |
---|
2507 | rm -rf conftest* |
---|
2508 | eval "ac_cv_header_$ac_safe=yes" |
---|
2509 | else |
---|
2510 | echo "$ac_err" >&5 |
---|
2511 | echo "configure: failed program was:" >&5 |
---|
2512 | cat conftest.$ac_ext >&5 |
---|
2513 | rm -rf conftest* |
---|
2514 | eval "ac_cv_header_$ac_safe=no" |
---|
2515 | fi |
---|
2516 | rm -f conftest* |
---|
2517 | fi |
---|
2518 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2519 | echo "$ac_t""yes" 1>&6 |
---|
2520 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2521 | cat >> confdefs.h <<EOF |
---|
2522 | #define $ac_tr_hdr 1 |
---|
2523 | EOF |
---|
2524 | |
---|
2525 | else |
---|
2526 | echo "$ac_t""no" 1>&6 |
---|
2527 | fi |
---|
2528 | done |
---|
2529 | |
---|
2530 | |
---|
2531 | |
---|
2532 | |
---|
2533 | |
---|
2534 | # Only perform the check for file, if the check method requires it |
---|
2535 | case $deplibs_check_method in |
---|
2536 | file_magic*) |
---|
2537 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
2538 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
---|
2539 | echo "configure:2540: checking for ${ac_tool_prefix}file" >&5 |
---|
2540 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
---|
2541 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2542 | else |
---|
2543 | case $MAGIC_CMD in |
---|
2544 | /*) |
---|
2545 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
2546 | ;; |
---|
2547 | ?:/*) |
---|
2548 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
---|
2549 | ;; |
---|
2550 | *) |
---|
2551 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
---|
2552 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2553 | ac_dummy="/usr/bin:$PATH" |
---|
2554 | for ac_dir in $ac_dummy; do |
---|
2555 | test -z "$ac_dir" && ac_dir=. |
---|
2556 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
2557 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
2558 | if test -n "$file_magic_test_file"; then |
---|
2559 | case $deplibs_check_method in |
---|
2560 | "file_magic "*) |
---|
2561 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
2562 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2563 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
2564 | egrep "$file_magic_regex" > /dev/null; then |
---|
2565 | : |
---|
2566 | else |
---|
2567 | cat <<EOF 1>&2 |
---|
2568 | |
---|
2569 | *** Warning: the command libtool uses to detect shared libraries, |
---|
2570 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
2571 | *** The result is that libtool may fail to recognize shared libraries |
---|
2572 | *** as such. This will affect the creation of libtool libraries that |
---|
2573 | *** depend on shared libraries, but programs linked with such libtool |
---|
2574 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
2575 | *** may want to report the problem to your system manager and/or to |
---|
2576 | *** bug-libtool@gnu.org |
---|
2577 | |
---|
2578 | EOF |
---|
2579 | fi ;; |
---|
2580 | esac |
---|
2581 | fi |
---|
2582 | break |
---|
2583 | fi |
---|
2584 | done |
---|
2585 | IFS="$ac_save_ifs" |
---|
2586 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
---|
2587 | ;; |
---|
2588 | esac |
---|
2589 | fi |
---|
2590 | |
---|
2591 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2592 | if test -n "$MAGIC_CMD"; then |
---|
2593 | echo "$ac_t""$MAGIC_CMD" 1>&6 |
---|
2594 | else |
---|
2595 | echo "$ac_t""no" 1>&6 |
---|
2596 | fi |
---|
2597 | |
---|
2598 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
2599 | if test -n "$ac_tool_prefix"; then |
---|
2600 | echo $ac_n "checking for file""... $ac_c" 1>&6 |
---|
2601 | echo "configure:2602: checking for file" >&5 |
---|
2602 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
---|
2603 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2604 | else |
---|
2605 | case $MAGIC_CMD in |
---|
2606 | /*) |
---|
2607 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
2608 | ;; |
---|
2609 | ?:/*) |
---|
2610 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
---|
2611 | ;; |
---|
2612 | *) |
---|
2613 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
---|
2614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2615 | ac_dummy="/usr/bin:$PATH" |
---|
2616 | for ac_dir in $ac_dummy; do |
---|
2617 | test -z "$ac_dir" && ac_dir=. |
---|
2618 | if test -f $ac_dir/file; then |
---|
2619 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
2620 | if test -n "$file_magic_test_file"; then |
---|
2621 | case $deplibs_check_method in |
---|
2622 | "file_magic "*) |
---|
2623 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
2624 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2625 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
2626 | egrep "$file_magic_regex" > /dev/null; then |
---|
2627 | : |
---|
2628 | else |
---|
2629 | cat <<EOF 1>&2 |
---|
2630 | |
---|
2631 | *** Warning: the command libtool uses to detect shared libraries, |
---|
2632 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
2633 | *** The result is that libtool may fail to recognize shared libraries |
---|
2634 | *** as such. This will affect the creation of libtool libraries that |
---|
2635 | *** depend on shared libraries, but programs linked with such libtool |
---|
2636 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
2637 | *** may want to report the problem to your system manager and/or to |
---|
2638 | *** bug-libtool@gnu.org |
---|
2639 | |
---|
2640 | EOF |
---|
2641 | fi ;; |
---|
2642 | esac |
---|
2643 | fi |
---|
2644 | break |
---|
2645 | fi |
---|
2646 | done |
---|
2647 | IFS="$ac_save_ifs" |
---|
2648 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
---|
2649 | ;; |
---|
2650 | esac |
---|
2651 | fi |
---|
2652 | |
---|
2653 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
2654 | if test -n "$MAGIC_CMD"; then |
---|
2655 | echo "$ac_t""$MAGIC_CMD" 1>&6 |
---|
2656 | else |
---|
2657 | echo "$ac_t""no" 1>&6 |
---|
2658 | fi |
---|
2659 | |
---|
2660 | else |
---|
2661 | MAGIC_CMD=: |
---|
2662 | fi |
---|
2663 | fi |
---|
2664 | |
---|
2665 | fi |
---|
2666 | ;; |
---|
2667 | esac |
---|
2668 | |
---|
2669 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2670 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2671 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2672 | echo "configure:2673: checking for $ac_word" >&5 |
---|
2673 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
2674 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2675 | else |
---|
2676 | if test -n "$RANLIB"; then |
---|
2677 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2678 | else |
---|
2679 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2680 | ac_dummy="$PATH" |
---|
2681 | for ac_dir in $ac_dummy; do |
---|
2682 | test -z "$ac_dir" && ac_dir=. |
---|
2683 | if test -f $ac_dir/$ac_word; then |
---|
2684 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2685 | break |
---|
2686 | fi |
---|
2687 | done |
---|
2688 | IFS="$ac_save_ifs" |
---|
2689 | fi |
---|
2690 | fi |
---|
2691 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2692 | if test -n "$RANLIB"; then |
---|
2693 | echo "$ac_t""$RANLIB" 1>&6 |
---|
2694 | else |
---|
2695 | echo "$ac_t""no" 1>&6 |
---|
2696 | fi |
---|
2697 | |
---|
2698 | |
---|
2699 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2700 | if test -n "$ac_tool_prefix"; then |
---|
2701 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2702 | set dummy ranlib; ac_word=$2 |
---|
2703 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2704 | echo "configure:2705: checking for $ac_word" >&5 |
---|
2705 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
2706 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2707 | else |
---|
2708 | if test -n "$RANLIB"; then |
---|
2709 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2710 | else |
---|
2711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2712 | ac_dummy="$PATH" |
---|
2713 | for ac_dir in $ac_dummy; do |
---|
2714 | test -z "$ac_dir" && ac_dir=. |
---|
2715 | if test -f $ac_dir/$ac_word; then |
---|
2716 | ac_cv_prog_RANLIB="ranlib" |
---|
2717 | break |
---|
2718 | fi |
---|
2719 | done |
---|
2720 | IFS="$ac_save_ifs" |
---|
2721 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
2722 | fi |
---|
2723 | fi |
---|
2724 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2725 | if test -n "$RANLIB"; then |
---|
2726 | echo "$ac_t""$RANLIB" 1>&6 |
---|
2727 | else |
---|
2728 | echo "$ac_t""no" 1>&6 |
---|
2729 | fi |
---|
2730 | |
---|
2731 | else |
---|
2732 | RANLIB=":" |
---|
2733 | fi |
---|
2734 | fi |
---|
2735 | |
---|
2736 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2737 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2738 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2739 | echo "configure:2740: checking for $ac_word" >&5 |
---|
2740 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
---|
2741 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2742 | else |
---|
2743 | if test -n "$STRIP"; then |
---|
2744 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2745 | else |
---|
2746 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2747 | ac_dummy="$PATH" |
---|
2748 | for ac_dir in $ac_dummy; do |
---|
2749 | test -z "$ac_dir" && ac_dir=. |
---|
2750 | if test -f $ac_dir/$ac_word; then |
---|
2751 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2752 | break |
---|
2753 | fi |
---|
2754 | done |
---|
2755 | IFS="$ac_save_ifs" |
---|
2756 | fi |
---|
2757 | fi |
---|
2758 | STRIP="$ac_cv_prog_STRIP" |
---|
2759 | if test -n "$STRIP"; then |
---|
2760 | echo "$ac_t""$STRIP" 1>&6 |
---|
2761 | else |
---|
2762 | echo "$ac_t""no" 1>&6 |
---|
2763 | fi |
---|
2764 | |
---|
2765 | |
---|
2766 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2767 | if test -n "$ac_tool_prefix"; then |
---|
2768 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2769 | set dummy strip; ac_word=$2 |
---|
2770 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2771 | echo "configure:2772: checking for $ac_word" >&5 |
---|
2772 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
---|
2773 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2774 | else |
---|
2775 | if test -n "$STRIP"; then |
---|
2776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2777 | else |
---|
2778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2779 | ac_dummy="$PATH" |
---|
2780 | for ac_dir in $ac_dummy; do |
---|
2781 | test -z "$ac_dir" && ac_dir=. |
---|
2782 | if test -f $ac_dir/$ac_word; then |
---|
2783 | ac_cv_prog_STRIP="strip" |
---|
2784 | break |
---|
2785 | fi |
---|
2786 | done |
---|
2787 | IFS="$ac_save_ifs" |
---|
2788 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
---|
2789 | fi |
---|
2790 | fi |
---|
2791 | STRIP="$ac_cv_prog_STRIP" |
---|
2792 | if test -n "$STRIP"; then |
---|
2793 | echo "$ac_t""$STRIP" 1>&6 |
---|
2794 | else |
---|
2795 | echo "$ac_t""no" 1>&6 |
---|
2796 | fi |
---|
2797 | |
---|
2798 | else |
---|
2799 | STRIP=":" |
---|
2800 | fi |
---|
2801 | fi |
---|
2802 | |
---|
2803 | |
---|
2804 | enable_dlopen=no |
---|
2805 | enable_win32_dll=no |
---|
2806 | |
---|
2807 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
2808 | if test "${enable_libtool_lock+set}" = set; then |
---|
2809 | enableval="$enable_libtool_lock" |
---|
2810 | : |
---|
2811 | fi |
---|
2812 | |
---|
2813 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
2814 | |
---|
2815 | # Some flags need to be propagated to the compiler or linker for good |
---|
2816 | # libtool support. |
---|
2817 | case $host in |
---|
2818 | *-*-irix6*) |
---|
2819 | # Find out which ABI we are using. |
---|
2820 | echo '#line 2821 "configure"' > conftest.$ac_ext |
---|
2821 | if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2822 | case `/usr/bin/file conftest.$ac_objext` in |
---|
2823 | *32-bit*) |
---|
2824 | LD="${LD-ld} -32" |
---|
2825 | ;; |
---|
2826 | *N32*) |
---|
2827 | LD="${LD-ld} -n32" |
---|
2828 | ;; |
---|
2829 | *64-bit*) |
---|
2830 | LD="${LD-ld} -64" |
---|
2831 | ;; |
---|
2832 | esac |
---|
2833 | fi |
---|
2834 | rm -rf conftest* |
---|
2835 | ;; |
---|
2836 | |
---|
2837 | *-*-sco3.2v5*) |
---|
2838 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
2839 | SAVE_CFLAGS="$CFLAGS" |
---|
2840 | CFLAGS="$CFLAGS -belf" |
---|
2841 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
2842 | echo "configure:2843: checking whether the C compiler needs -belf" >&5 |
---|
2843 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
2844 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2845 | else |
---|
2846 | |
---|
2847 | ac_ext=c |
---|
2848 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2849 | ac_cpp='$CPP $CPPFLAGS' |
---|
2850 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2851 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2852 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2853 | |
---|
2854 | cat > conftest.$ac_ext <<EOF |
---|
2855 | #line 2856 "configure" |
---|
2856 | #include "confdefs.h" |
---|
2857 | |
---|
2858 | int main() { |
---|
2859 | |
---|
2860 | ; return 0; } |
---|
2861 | EOF |
---|
2862 | if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2863 | rm -rf conftest* |
---|
2864 | lt_cv_cc_needs_belf=yes |
---|
2865 | else |
---|
2866 | echo "configure: failed program was:" >&5 |
---|
2867 | cat conftest.$ac_ext >&5 |
---|
2868 | rm -rf conftest* |
---|
2869 | lt_cv_cc_needs_belf=no |
---|
2870 | fi |
---|
2871 | rm -f conftest* |
---|
2872 | ac_ext=c |
---|
2873 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2874 | ac_cpp='$CPP $CPPFLAGS' |
---|
2875 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2876 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2877 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2878 | |
---|
2879 | fi |
---|
2880 | |
---|
2881 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
2882 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
2883 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
2884 | CFLAGS="$SAVE_CFLAGS" |
---|
2885 | fi |
---|
2886 | ;; |
---|
2887 | |
---|
2888 | |
---|
2889 | esac |
---|
2890 | |
---|
2891 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
2892 | # metacharacters that are still active within double-quoted strings. |
---|
2893 | Xsed='sed -e s/^X//' |
---|
2894 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
2895 | |
---|
2896 | # Same as above, but do not quote variable references. |
---|
2897 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
2898 | |
---|
2899 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
2900 | # double_quote_subst'ed string. |
---|
2901 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
2902 | |
---|
2903 | # Constants: |
---|
2904 | rm="rm -f" |
---|
2905 | |
---|
2906 | # Global variables: |
---|
2907 | default_ofile=libtool |
---|
2908 | can_build_shared=yes |
---|
2909 | |
---|
2910 | # All known linkers require a `.a' archive for static linking (except M$VC, |
---|
2911 | # which needs '.lib'). |
---|
2912 | libext=a |
---|
2913 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
2914 | ofile="$default_ofile" |
---|
2915 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
2916 | need_locks="$enable_libtool_lock" |
---|
2917 | |
---|
2918 | old_CC="$CC" |
---|
2919 | old_CFLAGS="$CFLAGS" |
---|
2920 | |
---|
2921 | # Set sane defaults for various variables |
---|
2922 | test -z "$AR" && AR=ar |
---|
2923 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
2924 | test -z "$AS" && AS=as |
---|
2925 | test -z "$CC" && CC=cc |
---|
2926 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
2927 | test -z "$LD" && LD=ld |
---|
2928 | test -z "$LN_S" && LN_S="ln -s" |
---|
2929 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
2930 | test -z "$NM" && NM=nm |
---|
2931 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
2932 | test -z "$RANLIB" && RANLIB=: |
---|
2933 | test -z "$STRIP" && STRIP=: |
---|
2934 | test -z "$ac_objext" && ac_objext=o |
---|
2935 | |
---|
2936 | if test x"$host" != x"$build"; then |
---|
2937 | ac_tool_prefix=${host_alias}- |
---|
2938 | else |
---|
2939 | ac_tool_prefix= |
---|
2940 | fi |
---|
2941 | |
---|
2942 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
---|
2943 | case $host_os in |
---|
2944 | linux-gnu*) ;; |
---|
2945 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
---|
2946 | esac |
---|
2947 | |
---|
2948 | case $host_os in |
---|
2949 | aix3*) |
---|
2950 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
2951 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
2952 | # vanish in a puff of smoke. |
---|
2953 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
2954 | COLLECT_NAMES= |
---|
2955 | export COLLECT_NAMES |
---|
2956 | fi |
---|
2957 | ;; |
---|
2958 | esac |
---|
2959 | |
---|
2960 | # Determine commands to create old-style static archives. |
---|
2961 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
2962 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
2963 | old_postuninstall_cmds= |
---|
2964 | |
---|
2965 | if test -n "$RANLIB"; then |
---|
2966 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
2967 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
2968 | fi |
---|
2969 | |
---|
2970 | # Allow CC to be a program name with arguments. |
---|
2971 | set dummy $CC |
---|
2972 | compiler="$2" |
---|
2973 | |
---|
2974 | echo $ac_n "checking for objdir""... $ac_c" 1>&6 |
---|
2975 | echo "configure:2976: checking for objdir" >&5 |
---|
2976 | rm -f .libs 2>/dev/null |
---|
2977 | mkdir .libs 2>/dev/null |
---|
2978 | if test -d .libs; then |
---|
2979 | objdir=.libs |
---|
2980 | else |
---|
2981 | # MS-DOS does not allow filenames that begin with a dot. |
---|
2982 | objdir=_libs |
---|
2983 | fi |
---|
2984 | rmdir .libs 2>/dev/null |
---|
2985 | echo "$ac_t""$objdir" 1>&6 |
---|
2986 | |
---|
2987 | |
---|
2988 | # Check whether --with-pic or --without-pic was given. |
---|
2989 | if test "${with_pic+set}" = set; then |
---|
2990 | withval="$with_pic" |
---|
2991 | pic_mode="$withval" |
---|
2992 | else |
---|
2993 | pic_mode=default |
---|
2994 | fi |
---|
2995 | |
---|
2996 | test -z "$pic_mode" && pic_mode=default |
---|
2997 | |
---|
2998 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
---|
2999 | # in isolation, and that seeing it set (from the cache) indicates that |
---|
3000 | # the associated values are set (in the cache) correctly too. |
---|
3001 | echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 |
---|
3002 | echo "configure:3003: checking for $compiler option to produce PIC" >&5 |
---|
3003 | if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then |
---|
3004 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3005 | else |
---|
3006 | lt_cv_prog_cc_pic= |
---|
3007 | lt_cv_prog_cc_shlib= |
---|
3008 | lt_cv_prog_cc_wl= |
---|
3009 | lt_cv_prog_cc_static= |
---|
3010 | lt_cv_prog_cc_no_builtin= |
---|
3011 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
---|
3012 | |
---|
3013 | if test "$GCC" = yes; then |
---|
3014 | lt_cv_prog_cc_wl='-Wl,' |
---|
3015 | lt_cv_prog_cc_static='-static' |
---|
3016 | |
---|
3017 | case $host_os in |
---|
3018 | aix*) |
---|
3019 | # Below there is a dirty hack to force normal static linking with -ldl |
---|
3020 | # The problem is because libdl dynamically linked with both libc and |
---|
3021 | # libC (AIX C++ library), which obviously doesn't included in libraries |
---|
3022 | # list by gcc. This cause undefined symbols with -static flags. |
---|
3023 | # This hack allows C programs to be linked with "-static -ldl", but |
---|
3024 | # we not sure about C++ programs. |
---|
3025 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
---|
3026 | ;; |
---|
3027 | amigaos*) |
---|
3028 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
3029 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
3030 | # like `-m68040'. |
---|
3031 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
---|
3032 | ;; |
---|
3033 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
---|
3034 | # PIC is the default for these OSes. |
---|
3035 | ;; |
---|
3036 | darwin* | rhapsody*) |
---|
3037 | # PIC is the default on this platform |
---|
3038 | # Common symbols not allowed in MH_DYLIB files |
---|
3039 | lt_cv_prog_cc_pic='-fno-common' |
---|
3040 | ;; |
---|
3041 | cygwin* | mingw* | pw32* | os2*) |
---|
3042 | # This hack is so that the source file can tell whether it is being |
---|
3043 | # built for inclusion in a dll (and should export symbols for example). |
---|
3044 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
---|
3045 | ;; |
---|
3046 | sysv4*MP*) |
---|
3047 | if test -d /usr/nec; then |
---|
3048 | lt_cv_prog_cc_pic=-Kconform_pic |
---|
3049 | fi |
---|
3050 | ;; |
---|
3051 | *) |
---|
3052 | lt_cv_prog_cc_pic='-fPIC' |
---|
3053 | ;; |
---|
3054 | esac |
---|
3055 | else |
---|
3056 | # PORTME Check for PIC flags for the system compiler. |
---|
3057 | case $host_os in |
---|
3058 | aix3* | aix4* | aix5*) |
---|
3059 | # All AIX code is PIC. |
---|
3060 | if test "$host_cpu" = ia64; then |
---|
3061 | # AIX 5 now supports IA64 processor |
---|
3062 | lt_cv_prog_cc_static='-Bstatic' |
---|
3063 | lt_cv_prog_cc_wl='-Wl,' |
---|
3064 | else |
---|
3065 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
---|
3066 | fi |
---|
3067 | ;; |
---|
3068 | |
---|
3069 | hpux9* | hpux10* | hpux11*) |
---|
3070 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
---|
3071 | lt_cv_prog_cc_wl='-Wl,' |
---|
3072 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
---|
3073 | lt_cv_prog_cc_pic='+Z' |
---|
3074 | ;; |
---|
3075 | |
---|
3076 | irix5* | irix6*) |
---|
3077 | lt_cv_prog_cc_wl='-Wl,' |
---|
3078 | lt_cv_prog_cc_static='-non_shared' |
---|
3079 | # PIC (with -KPIC) is the default. |
---|
3080 | ;; |
---|
3081 | |
---|
3082 | cygwin* | mingw* | pw32* | os2*) |
---|
3083 | # This hack is so that the source file can tell whether it is being |
---|
3084 | # built for inclusion in a dll (and should export symbols for example). |
---|
3085 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
---|
3086 | ;; |
---|
3087 | |
---|
3088 | newsos6) |
---|
3089 | lt_cv_prog_cc_pic='-KPIC' |
---|
3090 | lt_cv_prog_cc_static='-Bstatic' |
---|
3091 | ;; |
---|
3092 | |
---|
3093 | osf3* | osf4* | osf5*) |
---|
3094 | # All OSF/1 code is PIC. |
---|
3095 | lt_cv_prog_cc_wl='-Wl,' |
---|
3096 | lt_cv_prog_cc_static='-non_shared' |
---|
3097 | ;; |
---|
3098 | |
---|
3099 | sco3.2v5*) |
---|
3100 | lt_cv_prog_cc_pic='-Kpic' |
---|
3101 | lt_cv_prog_cc_static='-dn' |
---|
3102 | lt_cv_prog_cc_shlib='-belf' |
---|
3103 | ;; |
---|
3104 | |
---|
3105 | solaris*) |
---|
3106 | lt_cv_prog_cc_pic='-KPIC' |
---|
3107 | lt_cv_prog_cc_static='-Bstatic' |
---|
3108 | lt_cv_prog_cc_wl='-Wl,' |
---|
3109 | ;; |
---|
3110 | |
---|
3111 | sunos4*) |
---|
3112 | lt_cv_prog_cc_pic='-PIC' |
---|
3113 | lt_cv_prog_cc_static='-Bstatic' |
---|
3114 | lt_cv_prog_cc_wl='-Qoption ld ' |
---|
3115 | ;; |
---|
3116 | |
---|
3117 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
3118 | lt_cv_prog_cc_pic='-KPIC' |
---|
3119 | lt_cv_prog_cc_static='-Bstatic' |
---|
3120 | if test "x$host_vendor" = xsni; then |
---|
3121 | lt_cv_prog_cc_wl='-LD' |
---|
3122 | else |
---|
3123 | lt_cv_prog_cc_wl='-Wl,' |
---|
3124 | fi |
---|
3125 | ;; |
---|
3126 | |
---|
3127 | uts4*) |
---|
3128 | lt_cv_prog_cc_pic='-pic' |
---|
3129 | lt_cv_prog_cc_static='-Bstatic' |
---|
3130 | ;; |
---|
3131 | |
---|
3132 | sysv4*MP*) |
---|
3133 | if test -d /usr/nec ;then |
---|
3134 | lt_cv_prog_cc_pic='-Kconform_pic' |
---|
3135 | lt_cv_prog_cc_static='-Bstatic' |
---|
3136 | fi |
---|
3137 | ;; |
---|
3138 | |
---|
3139 | *) |
---|
3140 | lt_cv_prog_cc_can_build_shared=no |
---|
3141 | ;; |
---|
3142 | esac |
---|
3143 | fi |
---|
3144 | |
---|
3145 | fi |
---|
3146 | |
---|
3147 | if test -z "$lt_cv_prog_cc_pic"; then |
---|
3148 | echo "$ac_t""none" 1>&6 |
---|
3149 | else |
---|
3150 | echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 |
---|
3151 | |
---|
3152 | # Check to make sure the pic_flag actually works. |
---|
3153 | echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 |
---|
3154 | echo "configure:3155: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
---|
3155 | if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then |
---|
3156 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3157 | else |
---|
3158 | save_CFLAGS="$CFLAGS" |
---|
3159 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
---|
3160 | cat > conftest.$ac_ext <<EOF |
---|
3161 | #line 3162 "configure" |
---|
3162 | #include "confdefs.h" |
---|
3163 | |
---|
3164 | int main() { |
---|
3165 | |
---|
3166 | ; return 0; } |
---|
3167 | EOF |
---|
3168 | if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3169 | rm -rf conftest* |
---|
3170 | case $host_os in |
---|
3171 | hpux9* | hpux10* | hpux11*) |
---|
3172 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
---|
3173 | # they create non-PIC objects. So, if there were any warnings, we |
---|
3174 | # assume that PIC is not supported. |
---|
3175 | if test -s conftest.err; then |
---|
3176 | lt_cv_prog_cc_pic_works=no |
---|
3177 | else |
---|
3178 | lt_cv_prog_cc_pic_works=yes |
---|
3179 | fi |
---|
3180 | ;; |
---|
3181 | *) |
---|
3182 | lt_cv_prog_cc_pic_works=yes |
---|
3183 | ;; |
---|
3184 | esac |
---|
3185 | |
---|
3186 | else |
---|
3187 | echo "configure: failed program was:" >&5 |
---|
3188 | cat conftest.$ac_ext >&5 |
---|
3189 | rm -rf conftest* |
---|
3190 | lt_cv_prog_cc_pic_works=no |
---|
3191 | |
---|
3192 | fi |
---|
3193 | rm -f conftest* |
---|
3194 | CFLAGS="$save_CFLAGS" |
---|
3195 | |
---|
3196 | fi |
---|
3197 | |
---|
3198 | |
---|
3199 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
---|
3200 | lt_cv_prog_cc_pic= |
---|
3201 | lt_cv_prog_cc_can_build_shared=no |
---|
3202 | else |
---|
3203 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
---|
3204 | fi |
---|
3205 | |
---|
3206 | echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 |
---|
3207 | fi |
---|
3208 | |
---|
3209 | # Check for any special shared library compilation flags. |
---|
3210 | if test -n "$lt_cv_prog_cc_shlib"; then |
---|
3211 | echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 |
---|
3212 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
---|
3213 | else |
---|
3214 | echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 |
---|
3215 | lt_cv_prog_cc_can_build_shared=no |
---|
3216 | fi |
---|
3217 | fi |
---|
3218 | |
---|
3219 | echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 |
---|
3220 | echo "configure:3221: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
---|
3221 | if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then |
---|
3222 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3223 | else |
---|
3224 | lt_cv_prog_cc_static_works=no |
---|
3225 | save_LDFLAGS="$LDFLAGS" |
---|
3226 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
---|
3227 | cat > conftest.$ac_ext <<EOF |
---|
3228 | #line 3229 "configure" |
---|
3229 | #include "confdefs.h" |
---|
3230 | |
---|
3231 | int main() { |
---|
3232 | |
---|
3233 | ; return 0; } |
---|
3234 | EOF |
---|
3235 | if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3236 | rm -rf conftest* |
---|
3237 | lt_cv_prog_cc_static_works=yes |
---|
3238 | else |
---|
3239 | echo "configure: failed program was:" >&5 |
---|
3240 | cat conftest.$ac_ext >&5 |
---|
3241 | fi |
---|
3242 | rm -f conftest* |
---|
3243 | LDFLAGS="$save_LDFLAGS" |
---|
3244 | |
---|
3245 | fi |
---|
3246 | |
---|
3247 | |
---|
3248 | # Belt *and* braces to stop my trousers falling down: |
---|
3249 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
---|
3250 | echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 |
---|
3251 | |
---|
3252 | pic_flag="$lt_cv_prog_cc_pic" |
---|
3253 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
---|
3254 | wl="$lt_cv_prog_cc_wl" |
---|
3255 | link_static_flag="$lt_cv_prog_cc_static" |
---|
3256 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
---|
3257 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
---|
3258 | |
---|
3259 | |
---|
3260 | # Check to see if options -o and -c are simultaneously supported by compiler |
---|
3261 | echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 |
---|
3262 | echo "configure:3263: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
3263 | if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then |
---|
3264 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3265 | else |
---|
3266 | |
---|
3267 | $rm -r conftest 2>/dev/null |
---|
3268 | mkdir conftest |
---|
3269 | cd conftest |
---|
3270 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
3271 | mkdir out |
---|
3272 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
---|
3273 | # that will create temporary files in the current directory regardless of |
---|
3274 | # the output directory. Thus, making CWD read-only will cause this test |
---|
3275 | # to fail, enabling locking or at least warning the user not to do parallel |
---|
3276 | # builds. |
---|
3277 | chmod -w . |
---|
3278 | save_CFLAGS="$CFLAGS" |
---|
3279 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
---|
3280 | compiler_c_o=no |
---|
3281 | if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
---|
3282 | # The compiler can only warn and ignore the option if not recognized |
---|
3283 | # So say no if there are warnings |
---|
3284 | if test -s out/conftest.err; then |
---|
3285 | lt_cv_compiler_c_o=no |
---|
3286 | else |
---|
3287 | lt_cv_compiler_c_o=yes |
---|
3288 | fi |
---|
3289 | else |
---|
3290 | # Append any errors to the config.log. |
---|
3291 | cat out/conftest.err 1>&5 |
---|
3292 | lt_cv_compiler_c_o=no |
---|
3293 | fi |
---|
3294 | CFLAGS="$save_CFLAGS" |
---|
3295 | chmod u+w . |
---|
3296 | $rm conftest* out/* |
---|
3297 | rmdir out |
---|
3298 | cd .. |
---|
3299 | rmdir conftest |
---|
3300 | $rm -r conftest 2>/dev/null |
---|
3301 | |
---|
3302 | fi |
---|
3303 | |
---|
3304 | compiler_c_o=$lt_cv_compiler_c_o |
---|
3305 | echo "$ac_t""$compiler_c_o" 1>&6 |
---|
3306 | |
---|
3307 | if test x"$compiler_c_o" = x"yes"; then |
---|
3308 | # Check to see if we can write to a .lo |
---|
3309 | echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 |
---|
3310 | echo "configure:3311: checking if $compiler supports -c -o file.lo" >&5 |
---|
3311 | if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then |
---|
3312 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3313 | else |
---|
3314 | |
---|
3315 | lt_cv_compiler_o_lo=no |
---|
3316 | save_CFLAGS="$CFLAGS" |
---|
3317 | CFLAGS="$CFLAGS -c -o conftest.lo" |
---|
3318 | cat > conftest.$ac_ext <<EOF |
---|
3319 | #line 3320 "configure" |
---|
3320 | #include "confdefs.h" |
---|
3321 | |
---|
3322 | int main() { |
---|
3323 | int some_variable = 0; |
---|
3324 | ; return 0; } |
---|
3325 | EOF |
---|
3326 | if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3327 | rm -rf conftest* |
---|
3328 | # The compiler can only warn and ignore the option if not recognized |
---|
3329 | # So say no if there are warnings |
---|
3330 | if test -s conftest.err; then |
---|
3331 | lt_cv_compiler_o_lo=no |
---|
3332 | else |
---|
3333 | lt_cv_compiler_o_lo=yes |
---|
3334 | fi |
---|
3335 | |
---|
3336 | else |
---|
3337 | echo "configure: failed program was:" >&5 |
---|
3338 | cat conftest.$ac_ext >&5 |
---|
3339 | fi |
---|
3340 | rm -f conftest* |
---|
3341 | CFLAGS="$save_CFLAGS" |
---|
3342 | |
---|
3343 | fi |
---|
3344 | |
---|
3345 | compiler_o_lo=$lt_cv_compiler_o_lo |
---|
3346 | echo "$ac_t""$compiler_o_lo" 1>&6 |
---|
3347 | else |
---|
3348 | compiler_o_lo=no |
---|
3349 | fi |
---|
3350 | |
---|
3351 | # Check to see if we can do hard links to lock some files if needed |
---|
3352 | hard_links="nottested" |
---|
3353 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
---|
3354 | # do not overwrite the value of need_locks provided by the user |
---|
3355 | echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 |
---|
3356 | echo "configure:3357: checking if we can lock with hard links" >&5 |
---|
3357 | hard_links=yes |
---|
3358 | $rm conftest* |
---|
3359 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
3360 | touch conftest.a |
---|
3361 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
3362 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
3363 | echo "$ac_t""$hard_links" 1>&6 |
---|
3364 | if test "$hard_links" = no; then |
---|
3365 | echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 |
---|
3366 | need_locks=warn |
---|
3367 | fi |
---|
3368 | else |
---|
3369 | need_locks=no |
---|
3370 | fi |
---|
3371 | |
---|
3372 | if test "$GCC" = yes; then |
---|
3373 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
---|
3374 | echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 |
---|
3375 | echo "configure:3376: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
3376 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
3377 | save_CFLAGS="$CFLAGS" |
---|
3378 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
---|
3379 | compiler_rtti_exceptions=no |
---|
3380 | cat > conftest.$ac_ext <<EOF |
---|
3381 | #line 3382 "configure" |
---|
3382 | #include "confdefs.h" |
---|
3383 | |
---|
3384 | int main() { |
---|
3385 | int some_variable = 0; |
---|
3386 | ; return 0; } |
---|
3387 | EOF |
---|
3388 | if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3389 | rm -rf conftest* |
---|
3390 | # The compiler can only warn and ignore the option if not recognized |
---|
3391 | # So say no if there are warnings |
---|
3392 | if test -s conftest.err; then |
---|
3393 | compiler_rtti_exceptions=no |
---|
3394 | else |
---|
3395 | compiler_rtti_exceptions=yes |
---|
3396 | fi |
---|
3397 | |
---|
3398 | else |
---|
3399 | echo "configure: failed program was:" >&5 |
---|
3400 | cat conftest.$ac_ext >&5 |
---|
3401 | fi |
---|
3402 | rm -f conftest* |
---|
3403 | CFLAGS="$save_CFLAGS" |
---|
3404 | echo "$ac_t""$compiler_rtti_exceptions" 1>&6 |
---|
3405 | |
---|
3406 | if test "$compiler_rtti_exceptions" = "yes"; then |
---|
3407 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
---|
3408 | else |
---|
3409 | no_builtin_flag=' -fno-builtin' |
---|
3410 | fi |
---|
3411 | fi |
---|
3412 | |
---|
3413 | # See if the linker supports building shared libraries. |
---|
3414 | echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 |
---|
3415 | echo "configure:3416: checking whether the linker ($LD) supports shared libraries" >&5 |
---|
3416 | |
---|
3417 | allow_undefined_flag= |
---|
3418 | no_undefined_flag= |
---|
3419 | need_lib_prefix=unknown |
---|
3420 | need_version=unknown |
---|
3421 | # when you set need_version to no, make sure it does not cause -set_version |
---|
3422 | # flags to be left without arguments |
---|
3423 | archive_cmds= |
---|
3424 | archive_expsym_cmds= |
---|
3425 | old_archive_from_new_cmds= |
---|
3426 | old_archive_from_expsyms_cmds= |
---|
3427 | export_dynamic_flag_spec= |
---|
3428 | whole_archive_flag_spec= |
---|
3429 | thread_safe_flag_spec= |
---|
3430 | hardcode_into_libs=no |
---|
3431 | hardcode_libdir_flag_spec= |
---|
3432 | hardcode_libdir_separator= |
---|
3433 | hardcode_direct=no |
---|
3434 | hardcode_minus_L=no |
---|
3435 | hardcode_shlibpath_var=unsupported |
---|
3436 | runpath_var= |
---|
3437 | link_all_deplibs=unknown |
---|
3438 | always_export_symbols=no |
---|
3439 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
3440 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
3441 | # included in the symbol list |
---|
3442 | include_expsyms= |
---|
3443 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
---|
3444 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
3445 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
3446 | # as well as any symbol that contains `d'. |
---|
3447 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
3448 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
3449 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
3450 | # the symbol is explicitly referenced. Since portable code cannot |
---|
3451 | # rely on this symbol name, it's probably fine to never include it in |
---|
3452 | # preloaded symbol tables. |
---|
3453 | extract_expsyms_cmds= |
---|
3454 | |
---|
3455 | case $host_os in |
---|
3456 | cygwin* | mingw* | pw32* ) |
---|
3457 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
3458 | # When not using gcc, we currently assume that we are using |
---|
3459 | # Microsoft Visual C++. |
---|
3460 | if test "$GCC" != yes; then |
---|
3461 | with_gnu_ld=no |
---|
3462 | fi |
---|
3463 | ;; |
---|
3464 | |
---|
3465 | esac |
---|
3466 | |
---|
3467 | ld_shlibs=yes |
---|
3468 | if test "$with_gnu_ld" = yes; then |
---|
3469 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
3470 | wlarc='${wl}' |
---|
3471 | |
---|
3472 | # See if GNU ld supports shared libraries. |
---|
3473 | case $host_os in |
---|
3474 | aix3* | aix4* | aix5*) |
---|
3475 | # On AIX, the GNU linker is very broken |
---|
3476 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
---|
3477 | ld_shlibs=no |
---|
3478 | cat <<EOF 1>&2 |
---|
3479 | |
---|
3480 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
3481 | *** to be unable to reliably create shared libraries on AIX. |
---|
3482 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
3483 | *** really care for shared libraries, you may want to modify your PATH |
---|
3484 | *** so that a non-GNU linker is found, and then restart. |
---|
3485 | |
---|
3486 | EOF |
---|
3487 | ;; |
---|
3488 | |
---|
3489 | amigaos*) |
---|
3490 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
3491 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3492 | hardcode_minus_L=yes |
---|
3493 | |
---|
3494 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
3495 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
3496 | # to version 4, is to share data among multiple programs linked |
---|
3497 | # with the same dynamic library. Since this doesn't match the |
---|
3498 | # behavior of shared libraries on other platforms, we can use |
---|
3499 | # them. |
---|
3500 | ld_shlibs=no |
---|
3501 | ;; |
---|
3502 | |
---|
3503 | beos*) |
---|
3504 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
3505 | allow_undefined_flag=unsupported |
---|
3506 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
3507 | # support --undefined. This deserves some investigation. FIXME |
---|
3508 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
3509 | else |
---|
3510 | ld_shlibs=no |
---|
3511 | fi |
---|
3512 | ;; |
---|
3513 | |
---|
3514 | cygwin* | mingw* | pw32*) |
---|
3515 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
3516 | # no search path for DLLs. |
---|
3517 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3518 | allow_undefined_flag=unsupported |
---|
3519 | always_export_symbols=yes |
---|
3520 | |
---|
3521 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
---|
3522 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
---|
3523 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
---|
3524 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
---|
3525 | else $CC -o impgen impgen.c ; fi)~ |
---|
3526 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
---|
3527 | |
---|
3528 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
---|
3529 | |
---|
3530 | # cygwin and mingw dlls have different entry points and sets of symbols |
---|
3531 | # to exclude. |
---|
3532 | # FIXME: what about values for MSVC? |
---|
3533 | dll_entry=__cygwin_dll_entry@12 |
---|
3534 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
---|
3535 | case $host_os in |
---|
3536 | mingw*) |
---|
3537 | # mingw values |
---|
3538 | dll_entry=_DllMainCRTStartup@12 |
---|
3539 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
---|
3540 | ;; |
---|
3541 | esac |
---|
3542 | |
---|
3543 | # mingw and cygwin differ, and it's simplest to just exclude the union |
---|
3544 | # of the two symbol sets. |
---|
3545 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
---|
3546 | |
---|
3547 | # recent cygwin and mingw systems supply a stub DllMain which the user |
---|
3548 | # can override, but on older systems we have to supply one (in ltdll.c) |
---|
3549 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
---|
3550 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
---|
3551 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
---|
3552 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
---|
3553 | else |
---|
3554 | ltdll_obj= |
---|
3555 | ltdll_cmds= |
---|
3556 | fi |
---|
3557 | |
---|
3558 | # Extract the symbol export list from an `--export-all' def file, |
---|
3559 | # then regenerate the def file from the symbol export list, so that |
---|
3560 | # the compiled dll only exports the symbol export list. |
---|
3561 | # Be careful not to strip the DATA tag left be newer dlltools. |
---|
3562 | export_symbols_cmds="$ltdll_cmds"' |
---|
3563 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
---|
3564 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
---|
3565 | |
---|
3566 | # If the export-symbols file already is a .def file (1st line |
---|
3567 | # is EXPORTS), use it as is. |
---|
3568 | # If DATA tags from a recent dlltool are present, honour them! |
---|
3569 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
---|
3570 | cp $export_symbols $output_objdir/$soname-def; |
---|
3571 | else |
---|
3572 | echo EXPORTS > $output_objdir/$soname-def; |
---|
3573 | _lt_hint=1; |
---|
3574 | cat $export_symbols | while read symbol; do |
---|
3575 | set dummy \$symbol; |
---|
3576 | case \$# in |
---|
3577 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
---|
3578 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
---|
3579 | esac; |
---|
3580 | _lt_hint=`expr 1 + \$_lt_hint`; |
---|
3581 | done; |
---|
3582 | fi~ |
---|
3583 | '"$ltdll_cmds"' |
---|
3584 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
---|
3585 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
---|
3586 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
---|
3587 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
---|
3588 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
---|
3589 | ;; |
---|
3590 | |
---|
3591 | netbsd*) |
---|
3592 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
3593 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
3594 | wlarc= |
---|
3595 | else |
---|
3596 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
3597 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
3598 | fi |
---|
3599 | ;; |
---|
3600 | |
---|
3601 | solaris* | sysv5*) |
---|
3602 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
---|
3603 | ld_shlibs=no |
---|
3604 | cat <<EOF 1>&2 |
---|
3605 | |
---|
3606 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
3607 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
3608 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
3609 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
3610 | *** your PATH or compiler configuration so that the native linker is |
---|
3611 | *** used, and then restart. |
---|
3612 | |
---|
3613 | EOF |
---|
3614 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
3615 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
3616 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
3617 | else |
---|
3618 | ld_shlibs=no |
---|
3619 | fi |
---|
3620 | ;; |
---|
3621 | |
---|
3622 | sunos4*) |
---|
3623 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
3624 | wlarc= |
---|
3625 | hardcode_direct=yes |
---|
3626 | hardcode_shlibpath_var=no |
---|
3627 | ;; |
---|
3628 | |
---|
3629 | *) |
---|
3630 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
3631 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
3632 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
3633 | else |
---|
3634 | ld_shlibs=no |
---|
3635 | fi |
---|
3636 | ;; |
---|
3637 | esac |
---|
3638 | |
---|
3639 | if test "$ld_shlibs" = yes; then |
---|
3640 | runpath_var=LD_RUN_PATH |
---|
3641 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
3642 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
3643 | case $host_os in |
---|
3644 | cygwin* | mingw* | pw32*) |
---|
3645 | # dlltool doesn't understand --whole-archive et. al. |
---|
3646 | whole_archive_flag_spec= |
---|
3647 | ;; |
---|
3648 | *) |
---|
3649 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
3650 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
---|
3651 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
3652 | else |
---|
3653 | whole_archive_flag_spec= |
---|
3654 | fi |
---|
3655 | ;; |
---|
3656 | esac |
---|
3657 | fi |
---|
3658 | else |
---|
3659 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
3660 | case $host_os in |
---|
3661 | aix3*) |
---|
3662 | allow_undefined_flag=unsupported |
---|
3663 | always_export_symbols=yes |
---|
3664 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
3665 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
3666 | # are no directories specified by -L. |
---|
3667 | hardcode_minus_L=yes |
---|
3668 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
3669 | # Neither direct hardcoding nor static linking is supported with a |
---|
3670 | # broken collect2. |
---|
3671 | hardcode_direct=unsupported |
---|
3672 | fi |
---|
3673 | ;; |
---|
3674 | |
---|
3675 | aix4* | aix5*) |
---|
3676 | # When large executables or shared objects are built, AIX ld can |
---|
3677 | # have problems creating the table of contents. If linking a library |
---|
3678 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
3679 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
3680 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
3681 | |
---|
3682 | archive_cmds='' |
---|
3683 | hardcode_libdir_separator=':' |
---|
3684 | if test "$GCC" = yes; then |
---|
3685 | collect2name=`${CC} -print-prog-name=collect2` |
---|
3686 | if test -f "$collect2name" && \ |
---|
3687 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
3688 | then |
---|
3689 | # We have reworked collect2 |
---|
3690 | hardcode_direct=yes |
---|
3691 | else |
---|
3692 | # We have old collect2 |
---|
3693 | hardcode_direct=unsupported |
---|
3694 | # It fails to find uninstalled libraries when the uninstalled |
---|
3695 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
3696 | # to unsupported forces relinking |
---|
3697 | hardcode_minus_L=yes |
---|
3698 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3699 | hardcode_libdir_separator= |
---|
3700 | fi |
---|
3701 | shared_flag='-shared' |
---|
3702 | else |
---|
3703 | if test "$host_cpu" = ia64; then |
---|
3704 | shared_flag='-G' |
---|
3705 | else |
---|
3706 | shared_flag='${wl}-bM:SRE' |
---|
3707 | fi |
---|
3708 | hardcode_direct=yes |
---|
3709 | fi |
---|
3710 | |
---|
3711 | if test "$host_cpu" = ia64; then |
---|
3712 | # On IA64, the linker does run time linking by default, so we don't |
---|
3713 | # have to do anything special. |
---|
3714 | aix_use_runtimelinking=no |
---|
3715 | exp_sym_flag='-Bexport' |
---|
3716 | no_entry_flag="" |
---|
3717 | else |
---|
3718 | # Test if we are trying to use run time linking, or normal AIX style linking. |
---|
3719 | # If -brtl is somewhere in LDFLAGS, we need to do run time linking. |
---|
3720 | aix_use_runtimelinking=no |
---|
3721 | for ld_flag in $LDFLAGS; do |
---|
3722 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then |
---|
3723 | aix_use_runtimelinking=yes |
---|
3724 | break |
---|
3725 | fi |
---|
3726 | done |
---|
3727 | exp_sym_flag='-bexport' |
---|
3728 | no_entry_flag='-bnoentry' |
---|
3729 | fi |
---|
3730 | # It seems that -bexpall can do strange things, so it is better to |
---|
3731 | # generate a list of symbols to export. |
---|
3732 | always_export_symbols=yes |
---|
3733 | if test "$aix_use_runtimelinking" = yes; then |
---|
3734 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
---|
3735 | allow_undefined_flag=' -Wl,-G' |
---|
3736 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
3737 | else |
---|
3738 | if test "$host_cpu" = ia64; then |
---|
3739 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
3740 | allow_undefined_flag="-znodefs" |
---|
3741 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
3742 | else |
---|
3743 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
---|
3744 | # Warning - without using the other run time loading flags, -berok will |
---|
3745 | # link without error, but may produce a broken library. |
---|
3746 | allow_undefined_flag='${wl}-berok' |
---|
3747 | # This is a bit strange, but is similar to how AIX traditionally builds |
---|
3748 | # it's shared libraries. |
---|
3749 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
---|
3750 | fi |
---|
3751 | fi |
---|
3752 | ;; |
---|
3753 | |
---|
3754 | amigaos*) |
---|
3755 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
3756 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3757 | hardcode_minus_L=yes |
---|
3758 | # see comment about different semantics on the GNU ld section |
---|
3759 | ld_shlibs=no |
---|
3760 | ;; |
---|
3761 | |
---|
3762 | cygwin* | mingw* | pw32*) |
---|
3763 | # When not using gcc, we currently assume that we are using |
---|
3764 | # Microsoft Visual C++. |
---|
3765 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
3766 | # no search path for DLLs. |
---|
3767 | hardcode_libdir_flag_spec=' ' |
---|
3768 | allow_undefined_flag=unsupported |
---|
3769 | # Tell ltmain to make .lib files, not .a files. |
---|
3770 | libext=lib |
---|
3771 | # FIXME: Setting linknames here is a bad hack. |
---|
3772 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
3773 | # The linker will automatically build a .lib file if we build a DLL. |
---|
3774 | old_archive_from_new_cmds='true' |
---|
3775 | # FIXME: Should let the user specify the lib program. |
---|
3776 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
3777 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
3778 | ;; |
---|
3779 | |
---|
3780 | darwin* | rhapsody*) |
---|
3781 | allow_undefined_flag='-undefined suppress' |
---|
3782 | # FIXME: Relying on posixy $() will cause problems for |
---|
3783 | # cross-compilation, but unfortunately the echo tests do not |
---|
3784 | # yet detect zsh echo's removal of \ escapes. |
---|
3785 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
---|
3786 | # We need to add '_' to the symbols in $export_symbols first |
---|
3787 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
---|
3788 | hardcode_direct=yes |
---|
3789 | hardcode_shlibpath_var=no |
---|
3790 | whole_archive_flag_spec='-all_load $convenience' |
---|
3791 | ;; |
---|
3792 | |
---|
3793 | freebsd1*) |
---|
3794 | ld_shlibs=no |
---|
3795 | ;; |
---|
3796 | |
---|
3797 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
3798 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
3799 | # does not break anything, and helps significantly (at the cost of a little |
---|
3800 | # extra space). |
---|
3801 | freebsd2.2*) |
---|
3802 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
3803 | hardcode_libdir_flag_spec='-R$libdir' |
---|
3804 | hardcode_direct=yes |
---|
3805 | hardcode_shlibpath_var=no |
---|
3806 | ;; |
---|
3807 | |
---|
3808 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
3809 | freebsd2*) |
---|
3810 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
3811 | hardcode_direct=yes |
---|
3812 | hardcode_minus_L=yes |
---|
3813 | hardcode_shlibpath_var=no |
---|
3814 | ;; |
---|
3815 | |
---|
3816 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
3817 | freebsd*) |
---|
3818 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
3819 | hardcode_libdir_flag_spec='-R$libdir' |
---|
3820 | hardcode_direct=yes |
---|
3821 | hardcode_shlibpath_var=no |
---|
3822 | ;; |
---|
3823 | |
---|
3824 | hpux9* | hpux10* | hpux11*) |
---|
3825 | case $host_os in |
---|
3826 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
---|
3827 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
---|
3828 | esac |
---|
3829 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
3830 | hardcode_libdir_separator=: |
---|
3831 | hardcode_direct=yes |
---|
3832 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
---|
3833 | # location of the library. |
---|
3834 | export_dynamic_flag_spec='${wl}-E' |
---|
3835 | ;; |
---|
3836 | |
---|
3837 | irix5* | irix6*) |
---|
3838 | if test "$GCC" = yes; then |
---|
3839 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
3840 | else |
---|
3841 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
3842 | fi |
---|
3843 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
3844 | hardcode_libdir_separator=: |
---|
3845 | link_all_deplibs=yes |
---|
3846 | ;; |
---|
3847 | |
---|
3848 | netbsd*) |
---|
3849 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
3850 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
3851 | else |
---|
3852 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
3853 | fi |
---|
3854 | hardcode_libdir_flag_spec='-R$libdir' |
---|
3855 | hardcode_direct=yes |
---|
3856 | hardcode_shlibpath_var=no |
---|
3857 | ;; |
---|
3858 | |
---|
3859 | newsos6) |
---|
3860 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
---|
3861 | hardcode_direct=yes |
---|
3862 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
3863 | hardcode_libdir_separator=: |
---|
3864 | hardcode_shlibpath_var=no |
---|
3865 | ;; |
---|
3866 | |
---|
3867 | openbsd*) |
---|
3868 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
3869 | hardcode_libdir_flag_spec='-R$libdir' |
---|
3870 | hardcode_direct=yes |
---|
3871 | hardcode_shlibpath_var=no |
---|
3872 | ;; |
---|
3873 | |
---|
3874 | os2*) |
---|
3875 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3876 | hardcode_minus_L=yes |
---|
3877 | allow_undefined_flag=unsupported |
---|
3878 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
---|
3879 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
3880 | ;; |
---|
3881 | |
---|
3882 | osf3*) |
---|
3883 | if test "$GCC" = yes; then |
---|
3884 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
3885 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
3886 | else |
---|
3887 | allow_undefined_flag=' -expect_unresolved \*' |
---|
3888 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
3889 | fi |
---|
3890 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
3891 | hardcode_libdir_separator=: |
---|
3892 | ;; |
---|
3893 | |
---|
3894 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
3895 | if test "$GCC" = yes; then |
---|
3896 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
3897 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
3898 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
3899 | else |
---|
3900 | allow_undefined_flag=' -expect_unresolved \*' |
---|
3901 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
3902 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
3903 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
3904 | |
---|
3905 | #Both c and cxx compiler support -rpath directly |
---|
3906 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
3907 | fi |
---|
3908 | hardcode_libdir_separator=: |
---|
3909 | ;; |
---|
3910 | |
---|
3911 | sco3.2v5*) |
---|
3912 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3913 | hardcode_shlibpath_var=no |
---|
3914 | runpath_var=LD_RUN_PATH |
---|
3915 | hardcode_runpath_var=yes |
---|
3916 | ;; |
---|
3917 | |
---|
3918 | solaris*) |
---|
3919 | no_undefined_flag=' -z defs' |
---|
3920 | # $CC -shared without GNU ld will not create a library from C++ |
---|
3921 | # object files and a static libstdc++, better avoid it by now |
---|
3922 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3923 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
3924 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
3925 | hardcode_libdir_flag_spec='-R$libdir' |
---|
3926 | hardcode_shlibpath_var=no |
---|
3927 | case $host_os in |
---|
3928 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
3929 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
3930 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
3931 | esac |
---|
3932 | link_all_deplibs=yes |
---|
3933 | ;; |
---|
3934 | |
---|
3935 | sunos4*) |
---|
3936 | if test "x$host_vendor" = xsequent; then |
---|
3937 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
3938 | # files that make .init and .fini sections work. |
---|
3939 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
3940 | else |
---|
3941 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
3942 | fi |
---|
3943 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3944 | hardcode_direct=yes |
---|
3945 | hardcode_minus_L=yes |
---|
3946 | hardcode_shlibpath_var=no |
---|
3947 | ;; |
---|
3948 | |
---|
3949 | sysv4) |
---|
3950 | if test "x$host_vendor" = xsno; then |
---|
3951 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
---|
3952 | hardcode_direct=yes # is this really true??? |
---|
3953 | else |
---|
3954 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3955 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
3956 | fi |
---|
3957 | runpath_var='LD_RUN_PATH' |
---|
3958 | hardcode_shlibpath_var=no |
---|
3959 | ;; |
---|
3960 | |
---|
3961 | sysv4.3*) |
---|
3962 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3963 | hardcode_shlibpath_var=no |
---|
3964 | export_dynamic_flag_spec='-Bexport' |
---|
3965 | ;; |
---|
3966 | |
---|
3967 | sysv5*) |
---|
3968 | no_undefined_flag=' -z text' |
---|
3969 | # $CC -shared without GNU ld will not create a library from C++ |
---|
3970 | # object files and a static libstdc++, better avoid it by now |
---|
3971 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3972 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
3973 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
3974 | hardcode_libdir_flag_spec= |
---|
3975 | hardcode_shlibpath_var=no |
---|
3976 | runpath_var='LD_RUN_PATH' |
---|
3977 | ;; |
---|
3978 | |
---|
3979 | uts4*) |
---|
3980 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3981 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3982 | hardcode_shlibpath_var=no |
---|
3983 | ;; |
---|
3984 | |
---|
3985 | dgux*) |
---|
3986 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3987 | hardcode_libdir_flag_spec='-L$libdir' |
---|
3988 | hardcode_shlibpath_var=no |
---|
3989 | ;; |
---|
3990 | |
---|
3991 | sysv4*MP*) |
---|
3992 | if test -d /usr/nec; then |
---|
3993 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
3994 | hardcode_shlibpath_var=no |
---|
3995 | runpath_var=LD_RUN_PATH |
---|
3996 | hardcode_runpath_var=yes |
---|
3997 | ld_shlibs=yes |
---|
3998 | fi |
---|
3999 | ;; |
---|
4000 | |
---|
4001 | sysv4.2uw2*) |
---|
4002 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
4003 | hardcode_direct=yes |
---|
4004 | hardcode_minus_L=no |
---|
4005 | hardcode_shlibpath_var=no |
---|
4006 | hardcode_runpath_var=yes |
---|
4007 | runpath_var=LD_RUN_PATH |
---|
4008 | ;; |
---|
4009 | |
---|
4010 | sysv5uw7* | unixware7*) |
---|
4011 | no_undefined_flag='${wl}-z ${wl}text' |
---|
4012 | if test "$GCC" = yes; then |
---|
4013 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
4014 | else |
---|
4015 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
4016 | fi |
---|
4017 | runpath_var='LD_RUN_PATH' |
---|
4018 | hardcode_shlibpath_var=no |
---|
4019 | ;; |
---|
4020 | |
---|
4021 | *) |
---|
4022 | ld_shlibs=no |
---|
4023 | ;; |
---|
4024 | esac |
---|
4025 | fi |
---|
4026 | echo "$ac_t""$ld_shlibs" 1>&6 |
---|
4027 | test "$ld_shlibs" = no && can_build_shared=no |
---|
4028 | |
---|
4029 | # Check hardcoding attributes. |
---|
4030 | echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 |
---|
4031 | echo "configure:4032: checking how to hardcode library paths into programs" >&5 |
---|
4032 | hardcode_action= |
---|
4033 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
4034 | test -n "$runpath_var"; then |
---|
4035 | |
---|
4036 | # We can hardcode non-existant directories. |
---|
4037 | if test "$hardcode_direct" != no && |
---|
4038 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
4039 | # have to relink, otherwise we might link with an installed library |
---|
4040 | # when we should be linking with a yet-to-be-installed one |
---|
4041 | ## test "$hardcode_shlibpath_var" != no && |
---|
4042 | test "$hardcode_minus_L" != no; then |
---|
4043 | # Linking always hardcodes the temporary library directory. |
---|
4044 | hardcode_action=relink |
---|
4045 | else |
---|
4046 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
4047 | hardcode_action=immediate |
---|
4048 | fi |
---|
4049 | else |
---|
4050 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
4051 | # directories. |
---|
4052 | hardcode_action=unsupported |
---|
4053 | fi |
---|
4054 | echo "$ac_t""$hardcode_action" 1>&6 |
---|
4055 | |
---|
4056 | striplib= |
---|
4057 | old_striplib= |
---|
4058 | echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 |
---|
4059 | echo "configure:4060: checking whether stripping libraries is possible" >&5 |
---|
4060 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
4061 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
4062 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
4063 | echo "$ac_t""yes" 1>&6 |
---|
4064 | else |
---|
4065 | echo "$ac_t""no" 1>&6 |
---|
4066 | fi |
---|
4067 | |
---|
4068 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4069 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
4070 | |
---|
4071 | # PORTME Fill in your ld.so characteristics |
---|
4072 | echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 |
---|
4073 | echo "configure:4074: checking dynamic linker characteristics" >&5 |
---|
4074 | library_names_spec= |
---|
4075 | libname_spec='lib$name' |
---|
4076 | soname_spec= |
---|
4077 | postinstall_cmds= |
---|
4078 | postuninstall_cmds= |
---|
4079 | finish_cmds= |
---|
4080 | finish_eval= |
---|
4081 | shlibpath_var= |
---|
4082 | shlibpath_overrides_runpath=unknown |
---|
4083 | version_type=none |
---|
4084 | dynamic_linker="$host_os ld.so" |
---|
4085 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
4086 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
4087 | |
---|
4088 | case $host_os in |
---|
4089 | aix3*) |
---|
4090 | version_type=linux |
---|
4091 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
---|
4092 | shlibpath_var=LIBPATH |
---|
4093 | |
---|
4094 | # AIX has no versioning support, so we append a major version to the name. |
---|
4095 | soname_spec='${libname}${release}.so$major' |
---|
4096 | ;; |
---|
4097 | |
---|
4098 | aix4* | aix5*) |
---|
4099 | version_type=linux |
---|
4100 | if test "$host_cpu" = ia64; then |
---|
4101 | # AIX 5 supports IA64 |
---|
4102 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
---|
4103 | shlibpath_var=LD_LIBRARY_PATH |
---|
4104 | else |
---|
4105 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
4106 | # for dependence libraries. The import file would start with |
---|
4107 | # the line `#! .'. This would cause the generated library to |
---|
4108 | # depend on `.', always an invalid library. This was fixed in |
---|
4109 | # development snapshots of GCC prior to 3.0. |
---|
4110 | case $host_os in |
---|
4111 | aix4 | aix4.[01] | aix4.[01].*) |
---|
4112 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
4113 | echo ' yes ' |
---|
4114 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
4115 | : |
---|
4116 | else |
---|
4117 | can_build_shared=no |
---|
4118 | fi |
---|
4119 | ;; |
---|
4120 | esac |
---|
4121 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
4122 | # soname into executable. Probably we can add versioning support to |
---|
4123 | # collect2, so additional links can be useful in future. |
---|
4124 | if test "$aix_use_runtimelinking" = yes; then |
---|
4125 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of |
---|
4126 | # lib<name>.a to let people know that these are not typical AIX shared libraries. |
---|
4127 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4128 | else |
---|
4129 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
4130 | # and later when we are not doing run time linking. |
---|
4131 | library_names_spec='${libname}${release}.a $libname.a' |
---|
4132 | soname_spec='${libname}${release}.so$major' |
---|
4133 | fi |
---|
4134 | shlibpath_var=LIBPATH |
---|
4135 | deplibs_check_method=pass_all |
---|
4136 | fi |
---|
4137 | ;; |
---|
4138 | |
---|
4139 | amigaos*) |
---|
4140 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
4141 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
4142 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
---|
4143 | ;; |
---|
4144 | |
---|
4145 | beos*) |
---|
4146 | library_names_spec='${libname}.so' |
---|
4147 | dynamic_linker="$host_os ld.so" |
---|
4148 | shlibpath_var=LIBRARY_PATH |
---|
4149 | ;; |
---|
4150 | |
---|
4151 | bsdi4*) |
---|
4152 | version_type=linux |
---|
4153 | need_version=no |
---|
4154 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4155 | soname_spec='${libname}${release}.so$major' |
---|
4156 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
4157 | shlibpath_var=LD_LIBRARY_PATH |
---|
4158 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
4159 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
4160 | export_dynamic_flag_spec=-rdynamic |
---|
4161 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
4162 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
4163 | # libtool to hard-code these into programs |
---|
4164 | ;; |
---|
4165 | |
---|
4166 | cygwin* | mingw* | pw32*) |
---|
4167 | version_type=windows |
---|
4168 | need_version=no |
---|
4169 | need_lib_prefix=no |
---|
4170 | case $GCC,$host_os in |
---|
4171 | yes,cygwin*) |
---|
4172 | library_names_spec='$libname.dll.a' |
---|
4173 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
---|
4174 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
---|
4175 | dldir=$destdir/`dirname \$dlpath`~ |
---|
4176 | test -d \$dldir || mkdir -p \$dldir~ |
---|
4177 | $install_prog .libs/$dlname \$dldir/$dlname' |
---|
4178 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
4179 | dlpath=$dir/\$dldll~ |
---|
4180 | $rm \$dlpath' |
---|
4181 | ;; |
---|
4182 | yes,mingw*) |
---|
4183 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
---|
4184 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
---|
4185 | ;; |
---|
4186 | yes,pw32*) |
---|
4187 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
---|
4188 | ;; |
---|
4189 | *) |
---|
4190 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
---|
4191 | ;; |
---|
4192 | esac |
---|
4193 | dynamic_linker='Win32 ld.exe' |
---|
4194 | # FIXME: first we should search . and the directory the executable is in |
---|
4195 | shlibpath_var=PATH |
---|
4196 | ;; |
---|
4197 | |
---|
4198 | darwin* | rhapsody*) |
---|
4199 | dynamic_linker="$host_os dyld" |
---|
4200 | version_type=darwin |
---|
4201 | need_lib_prefix=no |
---|
4202 | need_version=no |
---|
4203 | # FIXME: Relying on posixy $() will cause problems for |
---|
4204 | # cross-compilation, but unfortunately the echo tests do not |
---|
4205 | # yet detect zsh echo's removal of \ escapes. |
---|
4206 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
---|
4207 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
---|
4208 | shlibpath_overrides_runpath=yes |
---|
4209 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
4210 | ;; |
---|
4211 | |
---|
4212 | freebsd1*) |
---|
4213 | dynamic_linker=no |
---|
4214 | ;; |
---|
4215 | |
---|
4216 | freebsd*) |
---|
4217 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
4218 | version_type=freebsd-$objformat |
---|
4219 | case $version_type in |
---|
4220 | freebsd-elf*) |
---|
4221 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
---|
4222 | need_version=no |
---|
4223 | need_lib_prefix=no |
---|
4224 | ;; |
---|
4225 | freebsd-*) |
---|
4226 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
---|
4227 | need_version=yes |
---|
4228 | ;; |
---|
4229 | esac |
---|
4230 | shlibpath_var=LD_LIBRARY_PATH |
---|
4231 | case $host_os in |
---|
4232 | freebsd2*) |
---|
4233 | shlibpath_overrides_runpath=yes |
---|
4234 | ;; |
---|
4235 | *) |
---|
4236 | shlibpath_overrides_runpath=no |
---|
4237 | hardcode_into_libs=yes |
---|
4238 | ;; |
---|
4239 | esac |
---|
4240 | ;; |
---|
4241 | |
---|
4242 | gnu*) |
---|
4243 | version_type=linux |
---|
4244 | need_lib_prefix=no |
---|
4245 | need_version=no |
---|
4246 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
---|
4247 | soname_spec='${libname}${release}.so$major' |
---|
4248 | shlibpath_var=LD_LIBRARY_PATH |
---|
4249 | hardcode_into_libs=yes |
---|
4250 | ;; |
---|
4251 | |
---|
4252 | hpux9* | hpux10* | hpux11*) |
---|
4253 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
4254 | # link against other versions. |
---|
4255 | dynamic_linker="$host_os dld.sl" |
---|
4256 | version_type=sunos |
---|
4257 | need_lib_prefix=no |
---|
4258 | need_version=no |
---|
4259 | shlibpath_var=SHLIB_PATH |
---|
4260 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
4261 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
---|
4262 | soname_spec='${libname}${release}.sl$major' |
---|
4263 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
4264 | postinstall_cmds='chmod 555 $lib' |
---|
4265 | ;; |
---|
4266 | |
---|
4267 | irix5* | irix6*) |
---|
4268 | version_type=irix |
---|
4269 | need_lib_prefix=no |
---|
4270 | need_version=no |
---|
4271 | soname_spec='${libname}${release}.so$major' |
---|
4272 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
---|
4273 | case $host_os in |
---|
4274 | irix5*) |
---|
4275 | libsuff= shlibsuff= |
---|
4276 | ;; |
---|
4277 | *) |
---|
4278 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
4279 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
---|
4280 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
4281 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
4282 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
4283 | esac |
---|
4284 | ;; |
---|
4285 | esac |
---|
4286 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
4287 | shlibpath_overrides_runpath=no |
---|
4288 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
4289 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
4290 | ;; |
---|
4291 | |
---|
4292 | # No shared lib support for Linux oldld, aout, or coff. |
---|
4293 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
---|
4294 | dynamic_linker=no |
---|
4295 | ;; |
---|
4296 | |
---|
4297 | # This must be Linux ELF. |
---|
4298 | linux-gnu*) |
---|
4299 | version_type=linux |
---|
4300 | need_lib_prefix=no |
---|
4301 | need_version=no |
---|
4302 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4303 | soname_spec='${libname}${release}.so$major' |
---|
4304 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
4305 | shlibpath_var=LD_LIBRARY_PATH |
---|
4306 | shlibpath_overrides_runpath=no |
---|
4307 | # This implies no fast_install, which is unacceptable. |
---|
4308 | # Some rework will be needed to allow for fast_install |
---|
4309 | # before this can be enabled. |
---|
4310 | hardcode_into_libs=yes |
---|
4311 | |
---|
4312 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
4313 | # powerpc, because MkLinux only supported shared libraries with the |
---|
4314 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
4315 | # most powerpc-linux boxes support dynamic linking these days and |
---|
4316 | # people can always --disable-shared, the test was removed, and we |
---|
4317 | # assume the GNU/Linux dynamic linker is in use. |
---|
4318 | dynamic_linker='GNU/Linux ld.so' |
---|
4319 | ;; |
---|
4320 | |
---|
4321 | netbsd*) |
---|
4322 | version_type=sunos |
---|
4323 | need_lib_prefix=no |
---|
4324 | need_version=no |
---|
4325 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
4326 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
4327 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
4328 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
4329 | else |
---|
4330 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
---|
4331 | soname_spec='${libname}${release}.so$major' |
---|
4332 | dynamic_linker='NetBSD ld.elf_so' |
---|
4333 | fi |
---|
4334 | shlibpath_var=LD_LIBRARY_PATH |
---|
4335 | shlibpath_overrides_runpath=yes |
---|
4336 | hardcode_into_libs=yes |
---|
4337 | ;; |
---|
4338 | |
---|
4339 | newsos6) |
---|
4340 | version_type=linux |
---|
4341 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4342 | shlibpath_var=LD_LIBRARY_PATH |
---|
4343 | shlibpath_overrides_runpath=yes |
---|
4344 | ;; |
---|
4345 | |
---|
4346 | openbsd*) |
---|
4347 | version_type=sunos |
---|
4348 | if test "$with_gnu_ld" = yes; then |
---|
4349 | need_lib_prefix=no |
---|
4350 | need_version=no |
---|
4351 | fi |
---|
4352 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
4353 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
4354 | shlibpath_var=LD_LIBRARY_PATH |
---|
4355 | ;; |
---|
4356 | |
---|
4357 | os2*) |
---|
4358 | libname_spec='$name' |
---|
4359 | need_lib_prefix=no |
---|
4360 | library_names_spec='$libname.dll $libname.a' |
---|
4361 | dynamic_linker='OS/2 ld.exe' |
---|
4362 | shlibpath_var=LIBPATH |
---|
4363 | ;; |
---|
4364 | |
---|
4365 | osf3* | osf4* | osf5*) |
---|
4366 | version_type=osf |
---|
4367 | need_version=no |
---|
4368 | soname_spec='${libname}${release}.so' |
---|
4369 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
---|
4370 | shlibpath_var=LD_LIBRARY_PATH |
---|
4371 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
4372 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
4373 | ;; |
---|
4374 | |
---|
4375 | sco3.2v5*) |
---|
4376 | version_type=osf |
---|
4377 | soname_spec='${libname}${release}.so$major' |
---|
4378 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4379 | shlibpath_var=LD_LIBRARY_PATH |
---|
4380 | ;; |
---|
4381 | |
---|
4382 | solaris*) |
---|
4383 | version_type=linux |
---|
4384 | need_lib_prefix=no |
---|
4385 | need_version=no |
---|
4386 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4387 | soname_spec='${libname}${release}.so$major' |
---|
4388 | shlibpath_var=LD_LIBRARY_PATH |
---|
4389 | shlibpath_overrides_runpath=yes |
---|
4390 | hardcode_into_libs=yes |
---|
4391 | # ldd complains unless libraries are executable |
---|
4392 | postinstall_cmds='chmod +x $lib' |
---|
4393 | ;; |
---|
4394 | |
---|
4395 | sunos4*) |
---|
4396 | version_type=sunos |
---|
4397 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
4398 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
4399 | shlibpath_var=LD_LIBRARY_PATH |
---|
4400 | shlibpath_overrides_runpath=yes |
---|
4401 | if test "$with_gnu_ld" = yes; then |
---|
4402 | need_lib_prefix=no |
---|
4403 | fi |
---|
4404 | need_version=yes |
---|
4405 | ;; |
---|
4406 | |
---|
4407 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
4408 | version_type=linux |
---|
4409 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4410 | soname_spec='${libname}${release}.so$major' |
---|
4411 | shlibpath_var=LD_LIBRARY_PATH |
---|
4412 | case $host_vendor in |
---|
4413 | sni) |
---|
4414 | shlibpath_overrides_runpath=no |
---|
4415 | ;; |
---|
4416 | motorola) |
---|
4417 | need_lib_prefix=no |
---|
4418 | need_version=no |
---|
4419 | shlibpath_overrides_runpath=no |
---|
4420 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
4421 | ;; |
---|
4422 | esac |
---|
4423 | ;; |
---|
4424 | |
---|
4425 | uts4*) |
---|
4426 | version_type=linux |
---|
4427 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4428 | soname_spec='${libname}${release}.so$major' |
---|
4429 | shlibpath_var=LD_LIBRARY_PATH |
---|
4430 | ;; |
---|
4431 | |
---|
4432 | dgux*) |
---|
4433 | version_type=linux |
---|
4434 | need_lib_prefix=no |
---|
4435 | need_version=no |
---|
4436 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
4437 | soname_spec='${libname}${release}.so$major' |
---|
4438 | shlibpath_var=LD_LIBRARY_PATH |
---|
4439 | ;; |
---|
4440 | |
---|
4441 | sysv4*MP*) |
---|
4442 | if test -d /usr/nec ;then |
---|
4443 | version_type=linux |
---|
4444 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
---|
4445 | soname_spec='$libname.so.$major' |
---|
4446 | shlibpath_var=LD_LIBRARY_PATH |
---|
4447 | fi |
---|
4448 | ;; |
---|
4449 | |
---|
4450 | *) |
---|
4451 | dynamic_linker=no |
---|
4452 | ;; |
---|
4453 | esac |
---|
4454 | echo "$ac_t""$dynamic_linker" 1>&6 |
---|
4455 | test "$dynamic_linker" = no && can_build_shared=no |
---|
4456 | |
---|
4457 | # Report the final consequences. |
---|
4458 | echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 |
---|
4459 | echo "configure:4460: checking if libtool supports shared libraries" >&5 |
---|
4460 | echo "$ac_t""$can_build_shared" 1>&6 |
---|
4461 | |
---|
4462 | if test "$hardcode_action" = relink; then |
---|
4463 | # Fast installation is not supported |
---|
4464 | enable_fast_install=no |
---|
4465 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
4466 | test "$enable_shared" = no; then |
---|
4467 | # Fast installation is not necessary |
---|
4468 | enable_fast_install=needless |
---|
4469 | fi |
---|
4470 | |
---|
4471 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
4472 | if test "$GCC" = yes; then |
---|
4473 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
4474 | fi |
---|
4475 | |
---|
4476 | if test "x$enable_dlopen" != xyes; then |
---|
4477 | enable_dlopen=unknown |
---|
4478 | enable_dlopen_self=unknown |
---|
4479 | enable_dlopen_self_static=unknown |
---|
4480 | else |
---|
4481 | lt_cv_dlopen=no |
---|
4482 | lt_cv_dlopen_libs= |
---|
4483 | |
---|
4484 | case $host_os in |
---|
4485 | beos*) |
---|
4486 | lt_cv_dlopen="load_add_on" |
---|
4487 | lt_cv_dlopen_libs= |
---|
4488 | lt_cv_dlopen_self=yes |
---|
4489 | ;; |
---|
4490 | |
---|
4491 | cygwin* | mingw* | pw32*) |
---|
4492 | lt_cv_dlopen="LoadLibrary" |
---|
4493 | lt_cv_dlopen_libs= |
---|
4494 | ;; |
---|
4495 | |
---|
4496 | *) |
---|
4497 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
4498 | echo "configure:4499: checking for dlopen in -ldl" >&5 |
---|
4499 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
4500 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4502 | else |
---|
4503 | ac_save_LIBS="$LIBS" |
---|
4504 | LIBS="-ldl $LIBS" |
---|
4505 | cat > conftest.$ac_ext <<EOF |
---|
4506 | #line 4507 "configure" |
---|
4507 | #include "confdefs.h" |
---|
4508 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4509 | /* We use char because int might match the return type of a gcc2 |
---|
4510 | builtin and then its argument prototype would still apply. */ |
---|
4511 | char dlopen(); |
---|
4512 | |
---|
4513 | int main() { |
---|
4514 | dlopen() |
---|
4515 | ; return 0; } |
---|
4516 | EOF |
---|
4517 | if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4518 | rm -rf conftest* |
---|
4519 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4520 | else |
---|
4521 | echo "configure: failed program was:" >&5 |
---|
4522 | cat conftest.$ac_ext >&5 |
---|
4523 | rm -rf conftest* |
---|
4524 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4525 | fi |
---|
4526 | rm -f conftest* |
---|
4527 | LIBS="$ac_save_LIBS" |
---|
4528 | |
---|
4529 | fi |
---|
4530 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4531 | echo "$ac_t""yes" 1>&6 |
---|
4532 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
4533 | else |
---|
4534 | echo "$ac_t""no" 1>&6 |
---|
4535 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
---|
4536 | echo "configure:4537: checking for dlopen" >&5 |
---|
4537 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
---|
4538 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4539 | else |
---|
4540 | cat > conftest.$ac_ext <<EOF |
---|
4541 | #line 4542 "configure" |
---|
4542 | #include "confdefs.h" |
---|
4543 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4544 | which can conflict with char dlopen(); below. */ |
---|
4545 | #include <assert.h> |
---|
4546 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4547 | /* We use char because int might match the return type of a gcc2 |
---|
4548 | builtin and then its argument prototype would still apply. */ |
---|
4549 | char dlopen(); |
---|
4550 | |
---|
4551 | int main() { |
---|
4552 | |
---|
4553 | /* The GNU C library defines this for functions which it implements |
---|
4554 | to always fail with ENOSYS. Some functions are actually named |
---|
4555 | something starting with __ and the normal name is an alias. */ |
---|
4556 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
4557 | choke me |
---|
4558 | #else |
---|
4559 | dlopen(); |
---|
4560 | #endif |
---|
4561 | |
---|
4562 | ; return 0; } |
---|
4563 | EOF |
---|
4564 | if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4565 | rm -rf conftest* |
---|
4566 | eval "ac_cv_func_dlopen=yes" |
---|
4567 | else |
---|
4568 | echo "configure: failed program was:" >&5 |
---|
4569 | cat conftest.$ac_ext >&5 |
---|
4570 | rm -rf conftest* |
---|
4571 | eval "ac_cv_func_dlopen=no" |
---|
4572 | fi |
---|
4573 | rm -f conftest* |
---|
4574 | fi |
---|
4575 | |
---|
4576 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
---|
4577 | echo "$ac_t""yes" 1>&6 |
---|
4578 | lt_cv_dlopen="dlopen" |
---|
4579 | else |
---|
4580 | echo "$ac_t""no" 1>&6 |
---|
4581 | echo $ac_n "checking for shl_load""... $ac_c" 1>&6 |
---|
4582 | echo "configure:4583: checking for shl_load" >&5 |
---|
4583 | if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then |
---|
4584 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4585 | else |
---|
4586 | cat > conftest.$ac_ext <<EOF |
---|
4587 | #line 4588 "configure" |
---|
4588 | #include "confdefs.h" |
---|
4589 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4590 | which can conflict with char shl_load(); below. */ |
---|
4591 | #include <assert.h> |
---|
4592 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4593 | /* We use char because int might match the return type of a gcc2 |
---|
4594 | builtin and then its argument prototype would still apply. */ |
---|
4595 | char shl_load(); |
---|
4596 | |
---|
4597 | int main() { |
---|
4598 | |
---|
4599 | /* The GNU C library defines this for functions which it implements |
---|
4600 | to always fail with ENOSYS. Some functions are actually named |
---|
4601 | something starting with __ and the normal name is an alias. */ |
---|
4602 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
4603 | choke me |
---|
4604 | #else |
---|
4605 | shl_load(); |
---|
4606 | #endif |
---|
4607 | |
---|
4608 | ; return 0; } |
---|
4609 | EOF |
---|
4610 | if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4611 | rm -rf conftest* |
---|
4612 | eval "ac_cv_func_shl_load=yes" |
---|
4613 | else |
---|
4614 | echo "configure: failed program was:" >&5 |
---|
4615 | cat conftest.$ac_ext >&5 |
---|
4616 | rm -rf conftest* |
---|
4617 | eval "ac_cv_func_shl_load=no" |
---|
4618 | fi |
---|
4619 | rm -f conftest* |
---|
4620 | fi |
---|
4621 | |
---|
4622 | if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then |
---|
4623 | echo "$ac_t""yes" 1>&6 |
---|
4624 | lt_cv_dlopen="shl_load" |
---|
4625 | else |
---|
4626 | echo "$ac_t""no" 1>&6 |
---|
4627 | echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 |
---|
4628 | echo "configure:4629: checking for dlopen in -lsvld" >&5 |
---|
4629 | ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` |
---|
4630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4631 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4632 | else |
---|
4633 | ac_save_LIBS="$LIBS" |
---|
4634 | LIBS="-lsvld $LIBS" |
---|
4635 | cat > conftest.$ac_ext <<EOF |
---|
4636 | #line 4637 "configure" |
---|
4637 | #include "confdefs.h" |
---|
4638 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4639 | /* We use char because int might match the return type of a gcc2 |
---|
4640 | builtin and then its argument prototype would still apply. */ |
---|
4641 | char dlopen(); |
---|
4642 | |
---|
4643 | int main() { |
---|
4644 | dlopen() |
---|
4645 | ; return 0; } |
---|
4646 | EOF |
---|
4647 | if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4648 | rm -rf conftest* |
---|
4649 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4650 | else |
---|
4651 | echo "configure: failed program was:" >&5 |
---|
4652 | cat conftest.$ac_ext >&5 |
---|
4653 | rm -rf conftest* |
---|
4654 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4655 | fi |
---|
4656 | rm -f conftest* |
---|
4657 | LIBS="$ac_save_LIBS" |
---|
4658 | |
---|
4659 | fi |
---|
4660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4661 | echo "$ac_t""yes" 1>&6 |
---|
4662 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
4663 | else |
---|
4664 | echo "$ac_t""no" 1>&6 |
---|
4665 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
4666 | echo "configure:4667: checking for shl_load in -ldld" >&5 |
---|
4667 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
4668 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4669 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4670 | else |
---|
4671 | ac_save_LIBS="$LIBS" |
---|
4672 | LIBS="-ldld $LIBS" |
---|
4673 | cat > conftest.$ac_ext <<EOF |
---|
4674 | #line 4675 "configure" |
---|
4675 | #include "confdefs.h" |
---|
4676 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4677 | /* We use char because int might match the return type of a gcc2 |
---|
4678 | builtin and then its argument prototype would still apply. */ |
---|
4679 | char shl_load(); |
---|
4680 | |
---|
4681 | int main() { |
---|
4682 | shl_load() |
---|
4683 | ; return 0; } |
---|
4684 | EOF |
---|
4685 | if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4686 | rm -rf conftest* |
---|
4687 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4688 | else |
---|
4689 | echo "configure: failed program was:" >&5 |
---|
4690 | cat conftest.$ac_ext >&5 |
---|
4691 | rm -rf conftest* |
---|
4692 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4693 | fi |
---|
4694 | rm -f conftest* |
---|
4695 | LIBS="$ac_save_LIBS" |
---|
4696 | |
---|
4697 | fi |
---|
4698 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4699 | echo "$ac_t""yes" 1>&6 |
---|
4700 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
4701 | else |
---|
4702 | echo "$ac_t""no" 1>&6 |
---|
4703 | fi |
---|
4704 | |
---|
4705 | |
---|
4706 | fi |
---|
4707 | |
---|
4708 | |
---|
4709 | fi |
---|
4710 | |
---|
4711 | |
---|
4712 | fi |
---|
4713 | |
---|
4714 | |
---|
4715 | fi |
---|
4716 | |
---|
4717 | ;; |
---|
4718 | esac |
---|
4719 | |
---|
4720 | if test "x$lt_cv_dlopen" != xno; then |
---|
4721 | enable_dlopen=yes |
---|
4722 | else |
---|
4723 | enable_dlopen=no |
---|
4724 | fi |
---|
4725 | |
---|
4726 | case $lt_cv_dlopen in |
---|
4727 | dlopen) |
---|
4728 | save_CPPFLAGS="$CPPFLAGS" |
---|
4729 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
4730 | |
---|
4731 | save_LDFLAGS="$LDFLAGS" |
---|
4732 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
4733 | |
---|
4734 | save_LIBS="$LIBS" |
---|
4735 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
4736 | |
---|
4737 | echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 |
---|
4738 | echo "configure:4739: checking whether a program can dlopen itself" >&5 |
---|
4739 | if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then |
---|
4740 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4741 | else |
---|
4742 | if test "$cross_compiling" = yes; then : |
---|
4743 | lt_cv_dlopen_self=cross |
---|
4744 | else |
---|
4745 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
4746 | lt_status=$lt_dlunknown |
---|
4747 | cat > conftest.$ac_ext <<EOF |
---|
4748 | #line 4749 "configure" |
---|
4749 | #include "confdefs.h" |
---|
4750 | |
---|
4751 | #if HAVE_DLFCN_H |
---|
4752 | #include <dlfcn.h> |
---|
4753 | #endif |
---|
4754 | |
---|
4755 | #include <stdio.h> |
---|
4756 | |
---|
4757 | #ifdef RTLD_GLOBAL |
---|
4758 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
4759 | #else |
---|
4760 | # ifdef DL_GLOBAL |
---|
4761 | # define LT_DLGLOBAL DL_GLOBAL |
---|
4762 | # else |
---|
4763 | # define LT_DLGLOBAL 0 |
---|
4764 | # endif |
---|
4765 | #endif |
---|
4766 | |
---|
4767 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
4768 | find out it does not work in some platform. */ |
---|
4769 | #ifndef LT_DLLAZY_OR_NOW |
---|
4770 | # ifdef RTLD_LAZY |
---|
4771 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
4772 | # else |
---|
4773 | # ifdef DL_LAZY |
---|
4774 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
4775 | # else |
---|
4776 | # ifdef RTLD_NOW |
---|
4777 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
4778 | # else |
---|
4779 | # ifdef DL_NOW |
---|
4780 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
4781 | # else |
---|
4782 | # define LT_DLLAZY_OR_NOW 0 |
---|
4783 | # endif |
---|
4784 | # endif |
---|
4785 | # endif |
---|
4786 | # endif |
---|
4787 | #endif |
---|
4788 | |
---|
4789 | #ifdef __cplusplus |
---|
4790 | extern "C" void exit (int); |
---|
4791 | #endif |
---|
4792 | |
---|
4793 | void fnord() { int i=42;} |
---|
4794 | int main () |
---|
4795 | { |
---|
4796 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
4797 | int status = $lt_dlunknown; |
---|
4798 | |
---|
4799 | if (self) |
---|
4800 | { |
---|
4801 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
4802 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
4803 | /* dlclose (self); */ |
---|
4804 | } |
---|
4805 | |
---|
4806 | exit (status); |
---|
4807 | } |
---|
4808 | EOF |
---|
4809 | if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
4810 | (./conftest; exit; ) 2>/dev/null |
---|
4811 | lt_status=$? |
---|
4812 | case x$lt_status in |
---|
4813 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
4814 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
4815 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
4816 | esac |
---|
4817 | else : |
---|
4818 | # compilation failed |
---|
4819 | lt_cv_dlopen_self=no |
---|
4820 | fi |
---|
4821 | fi |
---|
4822 | rm -fr conftest* |
---|
4823 | |
---|
4824 | |
---|
4825 | fi |
---|
4826 | |
---|
4827 | echo "$ac_t""$lt_cv_dlopen_self" 1>&6 |
---|
4828 | |
---|
4829 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
4830 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
4831 | echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 |
---|
4832 | echo "configure:4833: checking whether a statically linked program can dlopen itself" >&5 |
---|
4833 | if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then |
---|
4834 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4835 | else |
---|
4836 | if test "$cross_compiling" = yes; then : |
---|
4837 | lt_cv_dlopen_self_static=cross |
---|
4838 | else |
---|
4839 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
4840 | lt_status=$lt_dlunknown |
---|
4841 | cat > conftest.$ac_ext <<EOF |
---|
4842 | #line 4843 "configure" |
---|
4843 | #include "confdefs.h" |
---|
4844 | |
---|
4845 | #if HAVE_DLFCN_H |
---|
4846 | #include <dlfcn.h> |
---|
4847 | #endif |
---|
4848 | |
---|
4849 | #include <stdio.h> |
---|
4850 | |
---|
4851 | #ifdef RTLD_GLOBAL |
---|
4852 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
4853 | #else |
---|
4854 | # ifdef DL_GLOBAL |
---|
4855 | # define LT_DLGLOBAL DL_GLOBAL |
---|
4856 | # else |
---|
4857 | # define LT_DLGLOBAL 0 |
---|
4858 | # endif |
---|
4859 | #endif |
---|
4860 | |
---|
4861 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
4862 | find out it does not work in some platform. */ |
---|
4863 | #ifndef LT_DLLAZY_OR_NOW |
---|
4864 | # ifdef RTLD_LAZY |
---|
4865 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
4866 | # else |
---|
4867 | # ifdef DL_LAZY |
---|
4868 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
4869 | # else |
---|
4870 | # ifdef RTLD_NOW |
---|
4871 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
4872 | # else |
---|
4873 | # ifdef DL_NOW |
---|
4874 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
4875 | # else |
---|
4876 | # define LT_DLLAZY_OR_NOW 0 |
---|
4877 | # endif |
---|
4878 | # endif |
---|
4879 | # endif |
---|
4880 | # endif |
---|
4881 | #endif |
---|
4882 | |
---|
4883 | #ifdef __cplusplus |
---|
4884 | extern "C" void exit (int); |
---|
4885 | #endif |
---|
4886 | |
---|
4887 | void fnord() { int i=42;} |
---|
4888 | int main () |
---|
4889 | { |
---|
4890 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
4891 | int status = $lt_dlunknown; |
---|
4892 | |
---|
4893 | if (self) |
---|
4894 | { |
---|
4895 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
4896 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
4897 | /* dlclose (self); */ |
---|
4898 | } |
---|
4899 | |
---|
4900 | exit (status); |
---|
4901 | } |
---|
4902 | EOF |
---|
4903 | if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
4904 | (./conftest; exit; ) 2>/dev/null |
---|
4905 | lt_status=$? |
---|
4906 | case x$lt_status in |
---|
4907 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
4908 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
4909 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
4910 | esac |
---|
4911 | else : |
---|
4912 | # compilation failed |
---|
4913 | lt_cv_dlopen_self_static=no |
---|
4914 | fi |
---|
4915 | fi |
---|
4916 | rm -fr conftest* |
---|
4917 | |
---|
4918 | |
---|
4919 | fi |
---|
4920 | |
---|
4921 | echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 |
---|
4922 | fi |
---|
4923 | |
---|
4924 | CPPFLAGS="$save_CPPFLAGS" |
---|
4925 | LDFLAGS="$save_LDFLAGS" |
---|
4926 | LIBS="$save_LIBS" |
---|
4927 | ;; |
---|
4928 | esac |
---|
4929 | |
---|
4930 | case $lt_cv_dlopen_self in |
---|
4931 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
4932 | *) enable_dlopen_self=unknown ;; |
---|
4933 | esac |
---|
4934 | |
---|
4935 | case $lt_cv_dlopen_self_static in |
---|
4936 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
4937 | *) enable_dlopen_self_static=unknown ;; |
---|
4938 | esac |
---|
4939 | fi |
---|
4940 | |
---|
4941 | |
---|
4942 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
4943 | case $archive_cmds in |
---|
4944 | *'~'*) |
---|
4945 | # FIXME: we may have to deal with multi-command sequences. |
---|
4946 | ;; |
---|
4947 | '$CC '*) |
---|
4948 | # Test whether the compiler implicitly links with -lc since on some |
---|
4949 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
4950 | # to ld, don't add -lc before -lgcc. |
---|
4951 | echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 |
---|
4952 | echo "configure:4953: checking whether -lc should be explicitly linked in" >&5 |
---|
4953 | if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then |
---|
4954 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4955 | else |
---|
4956 | $rm conftest* |
---|
4957 | echo 'static int dummy;' > conftest.$ac_ext |
---|
4958 | |
---|
4959 | if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4960 | soname=conftest |
---|
4961 | lib=conftest |
---|
4962 | libobjs=conftest.$ac_objext |
---|
4963 | deplibs= |
---|
4964 | wl=$lt_cv_prog_cc_wl |
---|
4965 | compiler_flags=-v |
---|
4966 | linker_flags=-v |
---|
4967 | verstring= |
---|
4968 | output_objdir=. |
---|
4969 | libname=conftest |
---|
4970 | save_allow_undefined_flag=$allow_undefined_flag |
---|
4971 | allow_undefined_flag= |
---|
4972 | if { (eval echo configure:4973: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } |
---|
4973 | then |
---|
4974 | lt_cv_archive_cmds_need_lc=no |
---|
4975 | else |
---|
4976 | lt_cv_archive_cmds_need_lc=yes |
---|
4977 | fi |
---|
4978 | allow_undefined_flag=$save_allow_undefined_flag |
---|
4979 | else |
---|
4980 | cat conftest.err 1>&5 |
---|
4981 | fi |
---|
4982 | fi |
---|
4983 | |
---|
4984 | echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 |
---|
4985 | ;; |
---|
4986 | esac |
---|
4987 | fi |
---|
4988 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
---|
4989 | |
---|
4990 | # The second clause should only fire when bootstrapping the |
---|
4991 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
4992 | # with your package, and you will get complaints that there are |
---|
4993 | # no rules to generate ltmain.sh. |
---|
4994 | if test -f "$ltmain"; then |
---|
4995 | : |
---|
4996 | else |
---|
4997 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
4998 | # `config.status --recheck' to rerun these tests and create the |
---|
4999 | # libtool script then. |
---|
5000 | test -f Makefile && make "$ltmain" |
---|
5001 | fi |
---|
5002 | |
---|
5003 | if test -f "$ltmain"; then |
---|
5004 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
---|
5005 | $rm -f "${ofile}T" |
---|
5006 | |
---|
5007 | echo creating $ofile |
---|
5008 | |
---|
5009 | # Now quote all the things that may contain metacharacters while being |
---|
5010 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
5011 | # variables and quote the copies for generation of the libtool script. |
---|
5012 | for var in echo old_CC old_CFLAGS \ |
---|
5013 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
---|
5014 | reload_flag reload_cmds wl \ |
---|
5015 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
---|
5016 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
---|
5017 | library_names_spec soname_spec \ |
---|
5018 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
---|
5019 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
---|
5020 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
---|
5021 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
---|
5022 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
---|
5023 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
---|
5024 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
---|
5025 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
5026 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
---|
5027 | |
---|
5028 | case $var in |
---|
5029 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
---|
5030 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
5031 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
---|
5032 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
---|
5033 | postinstall_cmds | postuninstall_cmds | \ |
---|
5034 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
5035 | # Double-quote double-evaled strings. |
---|
5036 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
5037 | ;; |
---|
5038 | *) |
---|
5039 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
5040 | ;; |
---|
5041 | esac |
---|
5042 | done |
---|
5043 | |
---|
5044 | cat <<__EOF__ > "${ofile}T" |
---|
5045 | #! $SHELL |
---|
5046 | |
---|
5047 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
5048 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
5049 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
5050 | # |
---|
5051 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
---|
5052 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
5053 | # |
---|
5054 | # This program is free software; you can redistribute it and/or modify |
---|
5055 | # it under the terms of the GNU General Public License as published by |
---|
5056 | # the Free Software Foundation; either version 2 of the License, or |
---|
5057 | # (at your option) any later version. |
---|
5058 | # |
---|
5059 | # This program is distributed in the hope that it will be useful, but |
---|
5060 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
5061 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
5062 | # General Public License for more details. |
---|
5063 | # |
---|
5064 | # You should have received a copy of the GNU General Public License |
---|
5065 | # along with this program; if not, write to the Free Software |
---|
5066 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
5067 | # |
---|
5068 | # As a special exception to the GNU General Public License, if you |
---|
5069 | # distribute this file as part of a program that contains a |
---|
5070 | # configuration script generated by Autoconf, you may include it under |
---|
5071 | # the same distribution terms that you use for the rest of that program. |
---|
5072 | |
---|
5073 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
5074 | Xsed="sed -e s/^X//" |
---|
5075 | |
---|
5076 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
5077 | # if CDPATH is set. |
---|
5078 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
5079 | |
---|
5080 | # ### BEGIN LIBTOOL CONFIG |
---|
5081 | |
---|
5082 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
5083 | |
---|
5084 | # Shell to use when invoking shell scripts. |
---|
5085 | SHELL=$lt_SHELL |
---|
5086 | |
---|
5087 | # Whether or not to build shared libraries. |
---|
5088 | build_libtool_libs=$enable_shared |
---|
5089 | |
---|
5090 | # Whether or not to add -lc for building shared libraries. |
---|
5091 | build_libtool_need_lc=$need_lc |
---|
5092 | |
---|
5093 | # Whether or not to build static libraries. |
---|
5094 | build_old_libs=$enable_static |
---|
5095 | |
---|
5096 | # Whether or not to optimize for fast installation. |
---|
5097 | fast_install=$enable_fast_install |
---|
5098 | |
---|
5099 | # The host system. |
---|
5100 | host_alias=$host_alias |
---|
5101 | host=$host |
---|
5102 | |
---|
5103 | # An echo program that does not interpret backslashes. |
---|
5104 | echo=$lt_echo |
---|
5105 | |
---|
5106 | # The archiver. |
---|
5107 | AR=$lt_AR |
---|
5108 | AR_FLAGS=$lt_AR_FLAGS |
---|
5109 | |
---|
5110 | # The default C compiler. |
---|
5111 | CC=$lt_CC |
---|
5112 | |
---|
5113 | # Is the compiler the GNU C compiler? |
---|
5114 | with_gcc=$GCC |
---|
5115 | |
---|
5116 | # The linker used to build libraries. |
---|
5117 | LD=$lt_LD |
---|
5118 | |
---|
5119 | # Whether we need hard or soft links. |
---|
5120 | LN_S=$lt_LN_S |
---|
5121 | |
---|
5122 | # A BSD-compatible nm program. |
---|
5123 | NM=$lt_NM |
---|
5124 | |
---|
5125 | # A symbol stripping program |
---|
5126 | STRIP=$STRIP |
---|
5127 | |
---|
5128 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
5129 | MAGIC_CMD=$MAGIC_CMD |
---|
5130 | |
---|
5131 | # Used on cygwin: DLL creation program. |
---|
5132 | DLLTOOL="$DLLTOOL" |
---|
5133 | |
---|
5134 | # Used on cygwin: object dumper. |
---|
5135 | OBJDUMP="$OBJDUMP" |
---|
5136 | |
---|
5137 | # Used on cygwin: assembler. |
---|
5138 | AS="$AS" |
---|
5139 | |
---|
5140 | # The name of the directory that contains temporary libtool files. |
---|
5141 | objdir=$objdir |
---|
5142 | |
---|
5143 | # How to create reloadable object files. |
---|
5144 | reload_flag=$lt_reload_flag |
---|
5145 | reload_cmds=$lt_reload_cmds |
---|
5146 | |
---|
5147 | # How to pass a linker flag through the compiler. |
---|
5148 | wl=$lt_wl |
---|
5149 | |
---|
5150 | # Object file suffix (normally "o"). |
---|
5151 | objext="$ac_objext" |
---|
5152 | |
---|
5153 | # Old archive suffix (normally "a"). |
---|
5154 | libext="$libext" |
---|
5155 | |
---|
5156 | # Executable file suffix (normally ""). |
---|
5157 | exeext="$exeext" |
---|
5158 | |
---|
5159 | # Additional compiler flags for building library objects. |
---|
5160 | pic_flag=$lt_pic_flag |
---|
5161 | pic_mode=$pic_mode |
---|
5162 | |
---|
5163 | # Does compiler simultaneously support -c and -o options? |
---|
5164 | compiler_c_o=$lt_compiler_c_o |
---|
5165 | |
---|
5166 | # Can we write directly to a .lo ? |
---|
5167 | compiler_o_lo=$lt_compiler_o_lo |
---|
5168 | |
---|
5169 | # Must we lock files when doing compilation ? |
---|
5170 | need_locks=$lt_need_locks |
---|
5171 | |
---|
5172 | # Do we need the lib prefix for modules? |
---|
5173 | need_lib_prefix=$need_lib_prefix |
---|
5174 | |
---|
5175 | # Do we need a version for libraries? |
---|
5176 | need_version=$need_version |
---|
5177 | |
---|
5178 | # Whether dlopen is supported. |
---|
5179 | dlopen_support=$enable_dlopen |
---|
5180 | |
---|
5181 | # Whether dlopen of programs is supported. |
---|
5182 | dlopen_self=$enable_dlopen_self |
---|
5183 | |
---|
5184 | # Whether dlopen of statically linked programs is supported. |
---|
5185 | dlopen_self_static=$enable_dlopen_self_static |
---|
5186 | |
---|
5187 | # Compiler flag to prevent dynamic linking. |
---|
5188 | link_static_flag=$lt_link_static_flag |
---|
5189 | |
---|
5190 | # Compiler flag to turn off builtin functions. |
---|
5191 | no_builtin_flag=$lt_no_builtin_flag |
---|
5192 | |
---|
5193 | # Compiler flag to allow reflexive dlopens. |
---|
5194 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
5195 | |
---|
5196 | # Compiler flag to generate shared objects directly from archives. |
---|
5197 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
5198 | |
---|
5199 | # Compiler flag to generate thread-safe objects. |
---|
5200 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
5201 | |
---|
5202 | # Library versioning type. |
---|
5203 | version_type=$version_type |
---|
5204 | |
---|
5205 | # Format of library name prefix. |
---|
5206 | libname_spec=$lt_libname_spec |
---|
5207 | |
---|
5208 | # List of archive names. First name is the real one, the rest are links. |
---|
5209 | # The last name is the one that the linker finds with -lNAME. |
---|
5210 | library_names_spec=$lt_library_names_spec |
---|
5211 | |
---|
5212 | # The coded name of the library, if different from the real name. |
---|
5213 | soname_spec=$lt_soname_spec |
---|
5214 | |
---|
5215 | # Commands used to build and install an old-style archive. |
---|
5216 | RANLIB=$lt_RANLIB |
---|
5217 | old_archive_cmds=$lt_old_archive_cmds |
---|
5218 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
5219 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
5220 | |
---|
5221 | # Create an old-style archive from a shared archive. |
---|
5222 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
5223 | |
---|
5224 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
5225 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
5226 | |
---|
5227 | # Commands used to build and install a shared archive. |
---|
5228 | archive_cmds=$lt_archive_cmds |
---|
5229 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
5230 | postinstall_cmds=$lt_postinstall_cmds |
---|
5231 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
5232 | |
---|
5233 | # Commands to strip libraries. |
---|
5234 | old_striplib=$lt_old_striplib |
---|
5235 | striplib=$lt_striplib |
---|
5236 | |
---|
5237 | # Method to check whether dependent libraries are shared objects. |
---|
5238 | deplibs_check_method=$lt_deplibs_check_method |
---|
5239 | |
---|
5240 | # Command to use when deplibs_check_method == file_magic. |
---|
5241 | file_magic_cmd=$lt_file_magic_cmd |
---|
5242 | |
---|
5243 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
5244 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
5245 | |
---|
5246 | # Flag that forces no undefined symbols. |
---|
5247 | no_undefined_flag=$lt_no_undefined_flag |
---|
5248 | |
---|
5249 | # Commands used to finish a libtool library installation in a directory. |
---|
5250 | finish_cmds=$lt_finish_cmds |
---|
5251 | |
---|
5252 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
5253 | finish_eval=$lt_finish_eval |
---|
5254 | |
---|
5255 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
5256 | global_symbol_pipe=$lt_global_symbol_pipe |
---|
5257 | |
---|
5258 | # Transform the output of nm in a proper C declaration |
---|
5259 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
---|
5260 | |
---|
5261 | # This is the shared library runtime path variable. |
---|
5262 | runpath_var=$runpath_var |
---|
5263 | |
---|
5264 | # This is the shared library path variable. |
---|
5265 | shlibpath_var=$shlibpath_var |
---|
5266 | |
---|
5267 | # Is shlibpath searched before the hard-coded library search path? |
---|
5268 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
5269 | |
---|
5270 | # How to hardcode a shared library path into an executable. |
---|
5271 | hardcode_action=$hardcode_action |
---|
5272 | |
---|
5273 | # Whether we should hardcode library paths into libraries. |
---|
5274 | hardcode_into_libs=$hardcode_into_libs |
---|
5275 | |
---|
5276 | # Flag to hardcode \$libdir into a binary during linking. |
---|
5277 | # This must work even if \$libdir does not exist. |
---|
5278 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
5279 | |
---|
5280 | # Whether we need a single -rpath flag with a separated argument. |
---|
5281 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
5282 | |
---|
5283 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
---|
5284 | # resulting binary. |
---|
5285 | hardcode_direct=$hardcode_direct |
---|
5286 | |
---|
5287 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
5288 | # resulting binary. |
---|
5289 | hardcode_minus_L=$hardcode_minus_L |
---|
5290 | |
---|
5291 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
5292 | # the resulting binary. |
---|
5293 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
5294 | |
---|
5295 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
5296 | # restored at relink time. |
---|
5297 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
5298 | |
---|
5299 | # Whether libtool must link a program against all its dependency libraries. |
---|
5300 | link_all_deplibs=$link_all_deplibs |
---|
5301 | |
---|
5302 | # Compile-time system search path for libraries |
---|
5303 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
5304 | |
---|
5305 | # Run-time system search path for libraries |
---|
5306 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
5307 | |
---|
5308 | # Fix the shell variable \$srcfile for the compiler. |
---|
5309 | fix_srcfile_path="$fix_srcfile_path" |
---|
5310 | |
---|
5311 | # Set to yes if exported symbols are required. |
---|
5312 | always_export_symbols=$always_export_symbols |
---|
5313 | |
---|
5314 | # The commands to list exported symbols. |
---|
5315 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
5316 | |
---|
5317 | # The commands to extract the exported symbol list from a shared archive. |
---|
5318 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
5319 | |
---|
5320 | # Symbols that should not be listed in the preloaded symbols. |
---|
5321 | exclude_expsyms=$lt_exclude_expsyms |
---|
5322 | |
---|
5323 | # Symbols that must always be exported. |
---|
5324 | include_expsyms=$lt_include_expsyms |
---|
5325 | |
---|
5326 | # ### END LIBTOOL CONFIG |
---|
5327 | |
---|
5328 | __EOF__ |
---|
5329 | |
---|
5330 | case $host_os in |
---|
5331 | aix3*) |
---|
5332 | cat <<\EOF >> "${ofile}T" |
---|
5333 | |
---|
5334 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
5335 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
5336 | # vanish in a puff of smoke. |
---|
5337 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
5338 | COLLECT_NAMES= |
---|
5339 | export COLLECT_NAMES |
---|
5340 | fi |
---|
5341 | EOF |
---|
5342 | ;; |
---|
5343 | esac |
---|
5344 | |
---|
5345 | case $host_os in |
---|
5346 | cygwin* | mingw* | pw32* | os2*) |
---|
5347 | cat <<'EOF' >> "${ofile}T" |
---|
5348 | # This is a source program that is used to create dlls on Windows |
---|
5349 | # Don't remove nor modify the starting and closing comments |
---|
5350 | # /* ltdll.c starts here */ |
---|
5351 | # #define WIN32_LEAN_AND_MEAN |
---|
5352 | # #include <windows.h> |
---|
5353 | # #undef WIN32_LEAN_AND_MEAN |
---|
5354 | # #include <stdio.h> |
---|
5355 | # |
---|
5356 | # #ifndef __CYGWIN__ |
---|
5357 | # # ifdef __CYGWIN32__ |
---|
5358 | # # define __CYGWIN__ __CYGWIN32__ |
---|
5359 | # # endif |
---|
5360 | # #endif |
---|
5361 | # |
---|
5362 | # #ifdef __cplusplus |
---|
5363 | # extern "C" { |
---|
5364 | # #endif |
---|
5365 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
---|
5366 | # #ifdef __cplusplus |
---|
5367 | # } |
---|
5368 | # #endif |
---|
5369 | # |
---|
5370 | # #ifdef __CYGWIN__ |
---|
5371 | # #include <cygwin/cygwin_dll.h> |
---|
5372 | # DECLARE_CYGWIN_DLL( DllMain ); |
---|
5373 | # #endif |
---|
5374 | # HINSTANCE __hDllInstance_base; |
---|
5375 | # |
---|
5376 | # BOOL APIENTRY |
---|
5377 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
---|
5378 | # { |
---|
5379 | # __hDllInstance_base = hInst; |
---|
5380 | # return TRUE; |
---|
5381 | # } |
---|
5382 | # /* ltdll.c ends here */ |
---|
5383 | # This is a source program that is used to create import libraries |
---|
5384 | # on Windows for dlls which lack them. Don't remove nor modify the |
---|
5385 | # starting and closing comments |
---|
5386 | # /* impgen.c starts here */ |
---|
5387 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
---|
5388 | # |
---|
5389 | # This file is part of GNU libtool. |
---|
5390 | # |
---|
5391 | # This program is free software; you can redistribute it and/or modify |
---|
5392 | # it under the terms of the GNU General Public License as published by |
---|
5393 | # the Free Software Foundation; either version 2 of the License, or |
---|
5394 | # (at your option) any later version. |
---|
5395 | # |
---|
5396 | # This program is distributed in the hope that it will be useful, |
---|
5397 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
5398 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
5399 | # GNU General Public License for more details. |
---|
5400 | # |
---|
5401 | # You should have received a copy of the GNU General Public License |
---|
5402 | # along with this program; if not, write to the Free Software |
---|
5403 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
5404 | # */ |
---|
5405 | # |
---|
5406 | # #include <stdio.h> /* for printf() */ |
---|
5407 | # #include <unistd.h> /* for open(), lseek(), read() */ |
---|
5408 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
---|
5409 | # #include <string.h> /* for strdup() */ |
---|
5410 | # |
---|
5411 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
---|
5412 | # #ifndef O_BINARY |
---|
5413 | # #define O_BINARY 0 |
---|
5414 | # #endif |
---|
5415 | # |
---|
5416 | # static unsigned int |
---|
5417 | # pe_get16 (fd, offset) |
---|
5418 | # int fd; |
---|
5419 | # int offset; |
---|
5420 | # { |
---|
5421 | # unsigned char b[2]; |
---|
5422 | # lseek (fd, offset, SEEK_SET); |
---|
5423 | # read (fd, b, 2); |
---|
5424 | # return b[0] + (b[1]<<8); |
---|
5425 | # } |
---|
5426 | # |
---|
5427 | # static unsigned int |
---|
5428 | # pe_get32 (fd, offset) |
---|
5429 | # int fd; |
---|
5430 | # int offset; |
---|
5431 | # { |
---|
5432 | # unsigned char b[4]; |
---|
5433 | # lseek (fd, offset, SEEK_SET); |
---|
5434 | # read (fd, b, 4); |
---|
5435 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
---|
5436 | # } |
---|
5437 | # |
---|
5438 | # static unsigned int |
---|
5439 | # pe_as32 (ptr) |
---|
5440 | # void *ptr; |
---|
5441 | # { |
---|
5442 | # unsigned char *b = ptr; |
---|
5443 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
---|
5444 | # } |
---|
5445 | # |
---|
5446 | # int |
---|
5447 | # main (argc, argv) |
---|
5448 | # int argc; |
---|
5449 | # char *argv[]; |
---|
5450 | # { |
---|
5451 | # int dll; |
---|
5452 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
---|
5453 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
---|
5454 | # unsigned long name_rvas, nexp; |
---|
5455 | # unsigned char *expdata, *erva; |
---|
5456 | # char *filename, *dll_name; |
---|
5457 | # |
---|
5458 | # filename = argv[1]; |
---|
5459 | # |
---|
5460 | # dll = open(filename, O_RDONLY|O_BINARY); |
---|
5461 | # if (dll < 1) |
---|
5462 | # return 1; |
---|
5463 | # |
---|
5464 | # dll_name = filename; |
---|
5465 | # |
---|
5466 | # for (i=0; filename[i]; i++) |
---|
5467 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
---|
5468 | # dll_name = filename + i +1; |
---|
5469 | # |
---|
5470 | # pe_header_offset = pe_get32 (dll, 0x3c); |
---|
5471 | # opthdr_ofs = pe_header_offset + 4 + 20; |
---|
5472 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
---|
5473 | # |
---|
5474 | # if (num_entries < 1) /* no exports */ |
---|
5475 | # return 1; |
---|
5476 | # |
---|
5477 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
---|
5478 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
---|
5479 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
---|
5480 | # secptr = (pe_header_offset + 4 + 20 + |
---|
5481 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
---|
5482 | # |
---|
5483 | # expptr = 0; |
---|
5484 | # for (i = 0; i < nsections; i++) |
---|
5485 | # { |
---|
5486 | # char sname[8]; |
---|
5487 | # unsigned long secptr1 = secptr + 40 * i; |
---|
5488 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
---|
5489 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
---|
5490 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
---|
5491 | # lseek(dll, secptr1, SEEK_SET); |
---|
5492 | # read(dll, sname, 8); |
---|
5493 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
---|
5494 | # { |
---|
5495 | # expptr = fptr + (export_rva - vaddr); |
---|
5496 | # if (export_rva + export_size > vaddr + vsize) |
---|
5497 | # export_size = vsize - (export_rva - vaddr); |
---|
5498 | # break; |
---|
5499 | # } |
---|
5500 | # } |
---|
5501 | # |
---|
5502 | # expdata = (unsigned char*)malloc(export_size); |
---|
5503 | # lseek (dll, expptr, SEEK_SET); |
---|
5504 | # read (dll, expdata, export_size); |
---|
5505 | # erva = expdata - export_rva; |
---|
5506 | # |
---|
5507 | # nexp = pe_as32 (expdata+24); |
---|
5508 | # name_rvas = pe_as32 (expdata+32); |
---|
5509 | # |
---|
5510 | # printf ("EXPORTS\n"); |
---|
5511 | # for (i = 0; i<nexp; i++) |
---|
5512 | # { |
---|
5513 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
---|
5514 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
---|
5515 | # } |
---|
5516 | # |
---|
5517 | # return 0; |
---|
5518 | # } |
---|
5519 | # /* impgen.c ends here */ |
---|
5520 | |
---|
5521 | EOF |
---|
5522 | ;; |
---|
5523 | esac |
---|
5524 | |
---|
5525 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
5526 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
5527 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
5528 | # is reportedly fixed, but why not run on old versions too? |
---|
5529 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
---|
5530 | |
---|
5531 | mv -f "${ofile}T" "$ofile" || \ |
---|
5532 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
---|
5533 | chmod +x "$ofile" |
---|
5534 | fi |
---|
5535 | |
---|
5536 | |
---|
5537 | |
---|
5538 | |
---|
5539 | |
---|
5540 | # This can be used to rebuild libtool when needed |
---|
5541 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
5542 | |
---|
5543 | # Always use our own libtool. |
---|
5544 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
5545 | |
---|
5546 | # Prevent multiple expansion |
---|
5547 | |
---|
5548 | |
---|
5549 | |
---|
5550 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
5551 | echo "configure:5552: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
5552 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
5553 | if test "${enable_maintainer_mode+set}" = set; then |
---|
5554 | enableval="$enable_maintainer_mode" |
---|
5555 | USE_MAINTAINER_MODE=$enableval |
---|
5556 | else |
---|
5557 | USE_MAINTAINER_MODE=no |
---|
5558 | fi |
---|
5559 | |
---|
5560 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
5561 | |
---|
5562 | |
---|
5563 | if test $USE_MAINTAINER_MODE = yes; then |
---|
5564 | MAINTAINER_MODE_TRUE= |
---|
5565 | MAINTAINER_MODE_FALSE='#' |
---|
5566 | else |
---|
5567 | MAINTAINER_MODE_TRUE='#' |
---|
5568 | MAINTAINER_MODE_FALSE= |
---|
5569 | fi |
---|
5570 | MAINT=$MAINTAINER_MODE_TRUE |
---|
5571 | |
---|
5572 | |
---|
5573 | |
---|
5574 | _cppflags="${CPPFLAGS}" |
---|
5575 | _ldflags="${LDFLAGS}" |
---|
5576 | |
---|
5577 | |
---|
5578 | # Check whether --with-zlib or --without-zlib was given. |
---|
5579 | if test "${with_zlib+set}" = set; then |
---|
5580 | withval="$with_zlib" |
---|
5581 | |
---|
5582 | if test "$withval" != "no" -a "$withval" != "yes"; then |
---|
5583 | Z_DIR=$withval |
---|
5584 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
---|
5585 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
---|
5586 | fi |
---|
5587 | |
---|
5588 | fi |
---|
5589 | |
---|
5590 | if test "$with_zlib" = "no"; then |
---|
5591 | echo "Disabling compression support" |
---|
5592 | else |
---|
5593 | for ac_hdr in zlib.h |
---|
5594 | do |
---|
5595 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5596 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5597 | echo "configure:5598: checking for $ac_hdr" >&5 |
---|
5598 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5599 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5600 | else |
---|
5601 | cat > conftest.$ac_ext <<EOF |
---|
5602 | #line 5603 "configure" |
---|
5603 | #include "confdefs.h" |
---|
5604 | #include <$ac_hdr> |
---|
5605 | EOF |
---|
5606 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5607 | { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5608 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5609 | if test -z "$ac_err"; then |
---|
5610 | rm -rf conftest* |
---|
5611 | eval "ac_cv_header_$ac_safe=yes" |
---|
5612 | else |
---|
5613 | echo "$ac_err" >&5 |
---|
5614 | echo "configure: failed program was:" >&5 |
---|
5615 | cat conftest.$ac_ext >&5 |
---|
5616 | rm -rf conftest* |
---|
5617 | eval "ac_cv_header_$ac_safe=no" |
---|
5618 | fi |
---|
5619 | rm -f conftest* |
---|
5620 | fi |
---|
5621 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5622 | echo "$ac_t""yes" 1>&6 |
---|
5623 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5624 | cat >> confdefs.h <<EOF |
---|
5625 | #define $ac_tr_hdr 1 |
---|
5626 | EOF |
---|
5627 | echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6 |
---|
5628 | echo "configure:5629: checking for gzread in -lz" >&5 |
---|
5629 | ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'` |
---|
5630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5631 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5632 | else |
---|
5633 | ac_save_LIBS="$LIBS" |
---|
5634 | LIBS="-lz $LIBS" |
---|
5635 | cat > conftest.$ac_ext <<EOF |
---|
5636 | #line 5637 "configure" |
---|
5637 | #include "confdefs.h" |
---|
5638 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5639 | /* We use char because int might match the return type of a gcc2 |
---|
5640 | builtin and then its argument prototype would still apply. */ |
---|
5641 | char gzread(); |
---|
5642 | |
---|
5643 | int main() { |
---|
5644 | gzread() |
---|
5645 | ; return 0; } |
---|
5646 | EOF |
---|
5647 | if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5648 | rm -rf conftest* |
---|
5649 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5650 | else |
---|
5651 | echo "configure: failed program was:" >&5 |
---|
5652 | cat conftest.$ac_ext >&5 |
---|
5653 | rm -rf conftest* |
---|
5654 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5655 | fi |
---|
5656 | rm -f conftest* |
---|
5657 | LIBS="$ac_save_LIBS" |
---|
5658 | |
---|
5659 | fi |
---|
5660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5661 | echo "$ac_t""yes" 1>&6 |
---|
5662 | |
---|
5663 | cat >> confdefs.h <<\EOF |
---|
5664 | #define HAVE_LIBZ 1 |
---|
5665 | EOF |
---|
5666 | |
---|
5667 | if test "x${Z_DIR}" != "x"; then |
---|
5668 | Z_CFLAGS="-I${Z_DIR}/include" |
---|
5669 | Z_LIBS="-L${Z_DIR}/lib -lz" |
---|
5670 | case ${host} in |
---|
5671 | *-*-solaris*) |
---|
5672 | Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" |
---|
5673 | ;; |
---|
5674 | esac |
---|
5675 | else |
---|
5676 | Z_LIBS="-lz" |
---|
5677 | fi |
---|
5678 | else |
---|
5679 | echo "$ac_t""no" 1>&6 |
---|
5680 | fi |
---|
5681 | |
---|
5682 | else |
---|
5683 | echo "$ac_t""no" 1>&6 |
---|
5684 | fi |
---|
5685 | done |
---|
5686 | |
---|
5687 | fi |
---|
5688 | |
---|
5689 | |
---|
5690 | |
---|
5691 | |
---|
5692 | CPPFLAGS=${_cppflags} |
---|
5693 | LDFLAGS=${_ldflags} |
---|
5694 | |
---|
5695 | ac_header_dirent=no |
---|
5696 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
---|
5697 | do |
---|
5698 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5699 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
---|
5700 | echo "configure:5701: checking for $ac_hdr that defines DIR" >&5 |
---|
5701 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
---|
5702 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5703 | else |
---|
5704 | cat > conftest.$ac_ext <<EOF |
---|
5705 | #line 5706 "configure" |
---|
5706 | #include "confdefs.h" |
---|
5707 | #include <sys/types.h> |
---|
5708 | #include <$ac_hdr> |
---|
5709 | int main() { |
---|
5710 | DIR *dirp = 0; |
---|
5711 | ; return 0; } |
---|
5712 | EOF |
---|
5713 | if { (eval echo configure:5714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
5714 | rm -rf conftest* |
---|
5715 | eval "ac_cv_header_dirent_$ac_safe=yes" |
---|
5716 | else |
---|
5717 | echo "configure: failed program was:" >&5 |
---|
5718 | cat conftest.$ac_ext >&5 |
---|
5719 | rm -rf conftest* |
---|
5720 | eval "ac_cv_header_dirent_$ac_safe=no" |
---|
5721 | fi |
---|
5722 | rm -f conftest* |
---|
5723 | fi |
---|
5724 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
---|
5725 | echo "$ac_t""yes" 1>&6 |
---|
5726 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5727 | cat >> confdefs.h <<EOF |
---|
5728 | #define $ac_tr_hdr 1 |
---|
5729 | EOF |
---|
5730 | ac_header_dirent=$ac_hdr; break |
---|
5731 | else |
---|
5732 | echo "$ac_t""no" 1>&6 |
---|
5733 | fi |
---|
5734 | done |
---|
5735 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
5736 | if test $ac_header_dirent = dirent.h; then |
---|
5737 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
---|
5738 | echo "configure:5739: checking for opendir in -ldir" >&5 |
---|
5739 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
---|
5740 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5741 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5742 | else |
---|
5743 | ac_save_LIBS="$LIBS" |
---|
5744 | LIBS="-ldir $LIBS" |
---|
5745 | cat > conftest.$ac_ext <<EOF |
---|
5746 | #line 5747 "configure" |
---|
5747 | #include "confdefs.h" |
---|
5748 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5749 | /* We use char because int might match the return type of a gcc2 |
---|
5750 | builtin and then its argument prototype would still apply. */ |
---|
5751 | char opendir(); |
---|
5752 | |
---|
5753 | int main() { |
---|
5754 | opendir() |
---|
5755 | ; return 0; } |
---|
5756 | EOF |
---|
5757 | if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5758 | rm -rf conftest* |
---|
5759 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5760 | else |
---|
5761 | echo "configure: failed program was:" >&5 |
---|
5762 | cat conftest.$ac_ext >&5 |
---|
5763 | rm -rf conftest* |
---|
5764 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5765 | fi |
---|
5766 | rm -f conftest* |
---|
5767 | LIBS="$ac_save_LIBS" |
---|
5768 | |
---|
5769 | fi |
---|
5770 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5771 | echo "$ac_t""yes" 1>&6 |
---|
5772 | LIBS="$LIBS -ldir" |
---|
5773 | else |
---|
5774 | echo "$ac_t""no" 1>&6 |
---|
5775 | fi |
---|
5776 | |
---|
5777 | else |
---|
5778 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
---|
5779 | echo "configure:5780: checking for opendir in -lx" >&5 |
---|
5780 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
---|
5781 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5782 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5783 | else |
---|
5784 | ac_save_LIBS="$LIBS" |
---|
5785 | LIBS="-lx $LIBS" |
---|
5786 | cat > conftest.$ac_ext <<EOF |
---|
5787 | #line 5788 "configure" |
---|
5788 | #include "confdefs.h" |
---|
5789 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5790 | /* We use char because int might match the return type of a gcc2 |
---|
5791 | builtin and then its argument prototype would still apply. */ |
---|
5792 | char opendir(); |
---|
5793 | |
---|
5794 | int main() { |
---|
5795 | opendir() |
---|
5796 | ; return 0; } |
---|
5797 | EOF |
---|
5798 | if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5799 | rm -rf conftest* |
---|
5800 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5801 | else |
---|
5802 | echo "configure: failed program was:" >&5 |
---|
5803 | cat conftest.$ac_ext >&5 |
---|
5804 | rm -rf conftest* |
---|
5805 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5806 | fi |
---|
5807 | rm -f conftest* |
---|
5808 | LIBS="$ac_save_LIBS" |
---|
5809 | |
---|
5810 | fi |
---|
5811 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5812 | echo "$ac_t""yes" 1>&6 |
---|
5813 | LIBS="$LIBS -lx" |
---|
5814 | else |
---|
5815 | echo "$ac_t""no" 1>&6 |
---|
5816 | fi |
---|
5817 | |
---|
5818 | fi |
---|
5819 | |
---|
5820 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
5821 | echo "configure:5822: checking for ANSI C header files" >&5 |
---|
5822 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
5823 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5824 | else |
---|
5825 | cat > conftest.$ac_ext <<EOF |
---|
5826 | #line 5827 "configure" |
---|
5827 | #include "confdefs.h" |
---|
5828 | #include <stdlib.h> |
---|
5829 | #include <stdarg.h> |
---|
5830 | #include <string.h> |
---|
5831 | #include <float.h> |
---|
5832 | EOF |
---|
5833 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5834 | { (eval echo configure:5835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5835 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5836 | if test -z "$ac_err"; then |
---|
5837 | rm -rf conftest* |
---|
5838 | ac_cv_header_stdc=yes |
---|
5839 | else |
---|
5840 | echo "$ac_err" >&5 |
---|
5841 | echo "configure: failed program was:" >&5 |
---|
5842 | cat conftest.$ac_ext >&5 |
---|
5843 | rm -rf conftest* |
---|
5844 | ac_cv_header_stdc=no |
---|
5845 | fi |
---|
5846 | rm -f conftest* |
---|
5847 | |
---|
5848 | if test $ac_cv_header_stdc = yes; then |
---|
5849 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5850 | cat > conftest.$ac_ext <<EOF |
---|
5851 | #line 5852 "configure" |
---|
5852 | #include "confdefs.h" |
---|
5853 | #include <string.h> |
---|
5854 | EOF |
---|
5855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5856 | egrep "memchr" >/dev/null 2>&1; then |
---|
5857 | : |
---|
5858 | else |
---|
5859 | rm -rf conftest* |
---|
5860 | ac_cv_header_stdc=no |
---|
5861 | fi |
---|
5862 | rm -f conftest* |
---|
5863 | |
---|
5864 | fi |
---|
5865 | |
---|
5866 | if test $ac_cv_header_stdc = yes; then |
---|
5867 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5868 | cat > conftest.$ac_ext <<EOF |
---|
5869 | #line 5870 "configure" |
---|
5870 | #include "confdefs.h" |
---|
5871 | #include <stdlib.h> |
---|
5872 | EOF |
---|
5873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5874 | egrep "free" >/dev/null 2>&1; then |
---|
5875 | : |
---|
5876 | else |
---|
5877 | rm -rf conftest* |
---|
5878 | ac_cv_header_stdc=no |
---|
5879 | fi |
---|
5880 | rm -f conftest* |
---|
5881 | |
---|
5882 | fi |
---|
5883 | |
---|
5884 | if test $ac_cv_header_stdc = yes; then |
---|
5885 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5886 | if test "$cross_compiling" = yes; then |
---|
5887 | : |
---|
5888 | else |
---|
5889 | cat > conftest.$ac_ext <<EOF |
---|
5890 | #line 5891 "configure" |
---|
5891 | #include "confdefs.h" |
---|
5892 | #include <ctype.h> |
---|
5893 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5894 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5895 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5896 | int main () { int i; for (i = 0; i < 256; i++) |
---|
5897 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
5898 | exit (0); } |
---|
5899 | |
---|
5900 | EOF |
---|
5901 | if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
5902 | then |
---|
5903 | : |
---|
5904 | else |
---|
5905 | echo "configure: failed program was:" >&5 |
---|
5906 | cat conftest.$ac_ext >&5 |
---|
5907 | rm -fr conftest* |
---|
5908 | ac_cv_header_stdc=no |
---|
5909 | fi |
---|
5910 | rm -fr conftest* |
---|
5911 | fi |
---|
5912 | |
---|
5913 | fi |
---|
5914 | fi |
---|
5915 | |
---|
5916 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
5917 | if test $ac_cv_header_stdc = yes; then |
---|
5918 | cat >> confdefs.h <<\EOF |
---|
5919 | #define STDC_HEADERS 1 |
---|
5920 | EOF |
---|
5921 | |
---|
5922 | fi |
---|
5923 | |
---|
5924 | for ac_hdr in fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h |
---|
5925 | do |
---|
5926 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5927 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5928 | echo "configure:5929: checking for $ac_hdr" >&5 |
---|
5929 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5930 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5931 | else |
---|
5932 | cat > conftest.$ac_ext <<EOF |
---|
5933 | #line 5934 "configure" |
---|
5934 | #include "confdefs.h" |
---|
5935 | #include <$ac_hdr> |
---|
5936 | EOF |
---|
5937 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5938 | { (eval echo configure:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5939 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5940 | if test -z "$ac_err"; then |
---|
5941 | rm -rf conftest* |
---|
5942 | eval "ac_cv_header_$ac_safe=yes" |
---|
5943 | else |
---|
5944 | echo "$ac_err" >&5 |
---|
5945 | echo "configure: failed program was:" >&5 |
---|
5946 | cat conftest.$ac_ext >&5 |
---|
5947 | rm -rf conftest* |
---|
5948 | eval "ac_cv_header_$ac_safe=no" |
---|
5949 | fi |
---|
5950 | rm -f conftest* |
---|
5951 | fi |
---|
5952 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5953 | echo "$ac_t""yes" 1>&6 |
---|
5954 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5955 | cat >> confdefs.h <<EOF |
---|
5956 | #define $ac_tr_hdr 1 |
---|
5957 | EOF |
---|
5958 | |
---|
5959 | else |
---|
5960 | echo "$ac_t""no" 1>&6 |
---|
5961 | fi |
---|
5962 | done |
---|
5963 | |
---|
5964 | for ac_hdr in stdarg.h sys/stat.h sys/types.h time.h ansidecl.h |
---|
5965 | do |
---|
5966 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5967 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5968 | echo "configure:5969: checking for $ac_hdr" >&5 |
---|
5969 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5970 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5971 | else |
---|
5972 | cat > conftest.$ac_ext <<EOF |
---|
5973 | #line 5974 "configure" |
---|
5974 | #include "confdefs.h" |
---|
5975 | #include <$ac_hdr> |
---|
5976 | EOF |
---|
5977 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5978 | { (eval echo configure:5979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5979 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5980 | if test -z "$ac_err"; then |
---|
5981 | rm -rf conftest* |
---|
5982 | eval "ac_cv_header_$ac_safe=yes" |
---|
5983 | else |
---|
5984 | echo "$ac_err" >&5 |
---|
5985 | echo "configure: failed program was:" >&5 |
---|
5986 | cat conftest.$ac_ext >&5 |
---|
5987 | rm -rf conftest* |
---|
5988 | eval "ac_cv_header_$ac_safe=no" |
---|
5989 | fi |
---|
5990 | rm -f conftest* |
---|
5991 | fi |
---|
5992 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5993 | echo "$ac_t""yes" 1>&6 |
---|
5994 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5995 | cat >> confdefs.h <<EOF |
---|
5996 | #define $ac_tr_hdr 1 |
---|
5997 | EOF |
---|
5998 | |
---|
5999 | else |
---|
6000 | echo "$ac_t""no" 1>&6 |
---|
6001 | fi |
---|
6002 | done |
---|
6003 | |
---|
6004 | for ac_hdr in ieeefp.h nan.h math.h fp_class.h float.h |
---|
6005 | do |
---|
6006 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
6007 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
6008 | echo "configure:6009: checking for $ac_hdr" >&5 |
---|
6009 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
6010 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6011 | else |
---|
6012 | cat > conftest.$ac_ext <<EOF |
---|
6013 | #line 6014 "configure" |
---|
6014 | #include "confdefs.h" |
---|
6015 | #include <$ac_hdr> |
---|
6016 | EOF |
---|
6017 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
6018 | { (eval echo configure:6019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
6019 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
6020 | if test -z "$ac_err"; then |
---|
6021 | rm -rf conftest* |
---|
6022 | eval "ac_cv_header_$ac_safe=yes" |
---|
6023 | else |
---|
6024 | echo "$ac_err" >&5 |
---|
6025 | echo "configure: failed program was:" >&5 |
---|
6026 | cat conftest.$ac_ext >&5 |
---|
6027 | rm -rf conftest* |
---|
6028 | eval "ac_cv_header_$ac_safe=no" |
---|
6029 | fi |
---|
6030 | rm -f conftest* |
---|
6031 | fi |
---|
6032 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
6033 | echo "$ac_t""yes" 1>&6 |
---|
6034 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
6035 | cat >> confdefs.h <<EOF |
---|
6036 | #define $ac_tr_hdr 1 |
---|
6037 | EOF |
---|
6038 | |
---|
6039 | else |
---|
6040 | echo "$ac_t""no" 1>&6 |
---|
6041 | fi |
---|
6042 | done |
---|
6043 | |
---|
6044 | for ac_hdr in stdlib.h sys/socket.h netinet/in.h arpa/inet.h |
---|
6045 | do |
---|
6046 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
6047 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
6048 | echo "configure:6049: checking for $ac_hdr" >&5 |
---|
6049 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
6050 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6051 | else |
---|
6052 | cat > conftest.$ac_ext <<EOF |
---|
6053 | #line 6054 "configure" |
---|
6054 | #include "confdefs.h" |
---|
6055 | #include <$ac_hdr> |
---|
6056 | EOF |
---|
6057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
6058 | { (eval echo configure:6059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
6059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
6060 | if test -z "$ac_err"; then |
---|
6061 | rm -rf conftest* |
---|
6062 | eval "ac_cv_header_$ac_safe=yes" |
---|
6063 | else |
---|
6064 | echo "$ac_err" >&5 |
---|
6065 | echo "configure: failed program was:" >&5 |
---|
6066 | cat conftest.$ac_ext >&5 |
---|
6067 | rm -rf conftest* |
---|
6068 | eval "ac_cv_header_$ac_safe=no" |
---|
6069 | fi |
---|
6070 | rm -f conftest* |
---|
6071 | fi |
---|
6072 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
6073 | echo "$ac_t""yes" 1>&6 |
---|
6074 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
6075 | cat >> confdefs.h <<EOF |
---|
6076 | #define $ac_tr_hdr 1 |
---|
6077 | EOF |
---|
6078 | |
---|
6079 | else |
---|
6080 | echo "$ac_t""no" 1>&6 |
---|
6081 | fi |
---|
6082 | done |
---|
6083 | |
---|
6084 | for ac_hdr in netdb.h sys/time.h sys/select.h sys/mman.h |
---|
6085 | do |
---|
6086 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
6087 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
6088 | echo "configure:6089: checking for $ac_hdr" >&5 |
---|
6089 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
6090 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6091 | else |
---|
6092 | cat > conftest.$ac_ext <<EOF |
---|
6093 | #line 6094 "configure" |
---|
6094 | #include "confdefs.h" |
---|
6095 | #include <$ac_hdr> |
---|
6096 | EOF |
---|
6097 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
6098 | { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
6099 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
6100 | if test -z "$ac_err"; then |
---|
6101 | rm -rf conftest* |
---|
6102 | eval "ac_cv_header_$ac_safe=yes" |
---|
6103 | else |
---|
6104 | echo "$ac_err" >&5 |
---|
6105 | echo "configure: failed program was:" >&5 |
---|
6106 | cat conftest.$ac_ext >&5 |
---|
6107 | rm -rf conftest* |
---|
6108 | eval "ac_cv_header_$ac_safe=no" |
---|
6109 | fi |
---|
6110 | rm -f conftest* |
---|
6111 | fi |
---|
6112 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
6113 | echo "$ac_t""yes" 1>&6 |
---|
6114 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
6115 | cat >> confdefs.h <<EOF |
---|
6116 | #define $ac_tr_hdr 1 |
---|
6117 | EOF |
---|
6118 | |
---|
6119 | else |
---|
6120 | echo "$ac_t""no" 1>&6 |
---|
6121 | fi |
---|
6122 | done |
---|
6123 | |
---|
6124 | for ac_hdr in signal.h |
---|
6125 | do |
---|
6126 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
6127 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
6128 | echo "configure:6129: checking for $ac_hdr" >&5 |
---|
6129 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
6130 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6131 | else |
---|
6132 | cat > conftest.$ac_ext <<EOF |
---|
6133 | #line 6134 "configure" |
---|
6134 | #include "confdefs.h" |
---|
6135 | #include <$ac_hdr> |
---|
6136 | EOF |
---|
6137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
6138 | { (eval echo configure:6139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
6139 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
6140 | if test -z "$ac_err"; then |
---|
6141 | rm -rf conftest* |
---|
6142 | eval "ac_cv_header_$ac_safe=yes" |
---|
6143 | else |
---|
6144 | echo "$ac_err" >&5 |
---|
6145 | echo "configure: failed program was:" >&5 |
---|
6146 | cat conftest.$ac_ext >&5 |
---|
6147 | rm -rf conftest* |
---|
6148 | eval "ac_cv_header_$ac_safe=no" |
---|
6149 | fi |
---|
6150 | rm -f conftest* |
---|
6151 | fi |
---|
6152 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
6153 | echo "$ac_t""yes" 1>&6 |
---|
6154 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
6155 | cat >> confdefs.h <<EOF |
---|
6156 | #define $ac_tr_hdr 1 |
---|
6157 | EOF |
---|
6158 | |
---|
6159 | else |
---|
6160 | echo "$ac_t""no" 1>&6 |
---|
6161 | fi |
---|
6162 | done |
---|
6163 | |
---|
6164 | |
---|
6165 | if test "x$with_html_dir" = "x" ; then |
---|
6166 | HTML_DIR='$(prefix)/doc' |
---|
6167 | else |
---|
6168 | HTML_DIR=$with_html_dir |
---|
6169 | fi |
---|
6170 | |
---|
6171 | |
---|
6172 | |
---|
6173 | echo $ac_n "checking for strftime""... $ac_c" 1>&6 |
---|
6174 | echo "configure:6175: checking for strftime" >&5 |
---|
6175 | if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
---|
6176 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6177 | else |
---|
6178 | cat > conftest.$ac_ext <<EOF |
---|
6179 | #line 6180 "configure" |
---|
6180 | #include "confdefs.h" |
---|
6181 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6182 | which can conflict with char strftime(); below. */ |
---|
6183 | #include <assert.h> |
---|
6184 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6185 | /* We use char because int might match the return type of a gcc2 |
---|
6186 | builtin and then its argument prototype would still apply. */ |
---|
6187 | char strftime(); |
---|
6188 | |
---|
6189 | int main() { |
---|
6190 | |
---|
6191 | /* The GNU C library defines this for functions which it implements |
---|
6192 | to always fail with ENOSYS. Some functions are actually named |
---|
6193 | something starting with __ and the normal name is an alias. */ |
---|
6194 | #if defined (__stub_strftime) || defined (__stub___strftime) |
---|
6195 | choke me |
---|
6196 | #else |
---|
6197 | strftime(); |
---|
6198 | #endif |
---|
6199 | |
---|
6200 | ; return 0; } |
---|
6201 | EOF |
---|
6202 | if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6203 | rm -rf conftest* |
---|
6204 | eval "ac_cv_func_strftime=yes" |
---|
6205 | else |
---|
6206 | echo "configure: failed program was:" >&5 |
---|
6207 | cat conftest.$ac_ext >&5 |
---|
6208 | rm -rf conftest* |
---|
6209 | eval "ac_cv_func_strftime=no" |
---|
6210 | fi |
---|
6211 | rm -f conftest* |
---|
6212 | fi |
---|
6213 | |
---|
6214 | if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then |
---|
6215 | echo "$ac_t""yes" 1>&6 |
---|
6216 | cat >> confdefs.h <<\EOF |
---|
6217 | #define HAVE_STRFTIME 1 |
---|
6218 | EOF |
---|
6219 | |
---|
6220 | else |
---|
6221 | echo "$ac_t""no" 1>&6 |
---|
6222 | # strftime is in -lintl on SCO UNIX. |
---|
6223 | echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 |
---|
6224 | echo "configure:6225: checking for strftime in -lintl" >&5 |
---|
6225 | ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` |
---|
6226 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6227 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6228 | else |
---|
6229 | ac_save_LIBS="$LIBS" |
---|
6230 | LIBS="-lintl $LIBS" |
---|
6231 | cat > conftest.$ac_ext <<EOF |
---|
6232 | #line 6233 "configure" |
---|
6233 | #include "confdefs.h" |
---|
6234 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6235 | /* We use char because int might match the return type of a gcc2 |
---|
6236 | builtin and then its argument prototype would still apply. */ |
---|
6237 | char strftime(); |
---|
6238 | |
---|
6239 | int main() { |
---|
6240 | strftime() |
---|
6241 | ; return 0; } |
---|
6242 | EOF |
---|
6243 | if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6244 | rm -rf conftest* |
---|
6245 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6246 | else |
---|
6247 | echo "configure: failed program was:" >&5 |
---|
6248 | cat conftest.$ac_ext >&5 |
---|
6249 | rm -rf conftest* |
---|
6250 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6251 | fi |
---|
6252 | rm -f conftest* |
---|
6253 | LIBS="$ac_save_LIBS" |
---|
6254 | |
---|
6255 | fi |
---|
6256 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6257 | echo "$ac_t""yes" 1>&6 |
---|
6258 | cat >> confdefs.h <<\EOF |
---|
6259 | #define HAVE_STRFTIME 1 |
---|
6260 | EOF |
---|
6261 | |
---|
6262 | LIBS="-lintl $LIBS" |
---|
6263 | else |
---|
6264 | echo "$ac_t""no" 1>&6 |
---|
6265 | fi |
---|
6266 | |
---|
6267 | fi |
---|
6268 | |
---|
6269 | for ac_func in strdup strndup strerror |
---|
6270 | do |
---|
6271 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6272 | echo "configure:6273: checking for $ac_func" >&5 |
---|
6273 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6274 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6275 | else |
---|
6276 | cat > conftest.$ac_ext <<EOF |
---|
6277 | #line 6278 "configure" |
---|
6278 | #include "confdefs.h" |
---|
6279 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6280 | which can conflict with char $ac_func(); below. */ |
---|
6281 | #include <assert.h> |
---|
6282 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6283 | /* We use char because int might match the return type of a gcc2 |
---|
6284 | builtin and then its argument prototype would still apply. */ |
---|
6285 | char $ac_func(); |
---|
6286 | |
---|
6287 | int main() { |
---|
6288 | |
---|
6289 | /* The GNU C library defines this for functions which it implements |
---|
6290 | to always fail with ENOSYS. Some functions are actually named |
---|
6291 | something starting with __ and the normal name is an alias. */ |
---|
6292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6293 | choke me |
---|
6294 | #else |
---|
6295 | $ac_func(); |
---|
6296 | #endif |
---|
6297 | |
---|
6298 | ; return 0; } |
---|
6299 | EOF |
---|
6300 | if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6301 | rm -rf conftest* |
---|
6302 | eval "ac_cv_func_$ac_func=yes" |
---|
6303 | else |
---|
6304 | echo "configure: failed program was:" >&5 |
---|
6305 | cat conftest.$ac_ext >&5 |
---|
6306 | rm -rf conftest* |
---|
6307 | eval "ac_cv_func_$ac_func=no" |
---|
6308 | fi |
---|
6309 | rm -f conftest* |
---|
6310 | fi |
---|
6311 | |
---|
6312 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6313 | echo "$ac_t""yes" 1>&6 |
---|
6314 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6315 | cat >> confdefs.h <<EOF |
---|
6316 | #define $ac_tr_func 1 |
---|
6317 | EOF |
---|
6318 | |
---|
6319 | else |
---|
6320 | echo "$ac_t""no" 1>&6 |
---|
6321 | fi |
---|
6322 | done |
---|
6323 | |
---|
6324 | for ac_func in finite isnand fp_class class fpclass |
---|
6325 | do |
---|
6326 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6327 | echo "configure:6328: checking for $ac_func" >&5 |
---|
6328 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6329 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6330 | else |
---|
6331 | cat > conftest.$ac_ext <<EOF |
---|
6332 | #line 6333 "configure" |
---|
6333 | #include "confdefs.h" |
---|
6334 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6335 | which can conflict with char $ac_func(); below. */ |
---|
6336 | #include <assert.h> |
---|
6337 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6338 | /* We use char because int might match the return type of a gcc2 |
---|
6339 | builtin and then its argument prototype would still apply. */ |
---|
6340 | char $ac_func(); |
---|
6341 | |
---|
6342 | int main() { |
---|
6343 | |
---|
6344 | /* The GNU C library defines this for functions which it implements |
---|
6345 | to always fail with ENOSYS. Some functions are actually named |
---|
6346 | something starting with __ and the normal name is an alias. */ |
---|
6347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6348 | choke me |
---|
6349 | #else |
---|
6350 | $ac_func(); |
---|
6351 | #endif |
---|
6352 | |
---|
6353 | ; return 0; } |
---|
6354 | EOF |
---|
6355 | if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6356 | rm -rf conftest* |
---|
6357 | eval "ac_cv_func_$ac_func=yes" |
---|
6358 | else |
---|
6359 | echo "configure: failed program was:" >&5 |
---|
6360 | cat conftest.$ac_ext >&5 |
---|
6361 | rm -rf conftest* |
---|
6362 | eval "ac_cv_func_$ac_func=no" |
---|
6363 | fi |
---|
6364 | rm -f conftest* |
---|
6365 | fi |
---|
6366 | |
---|
6367 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6368 | echo "$ac_t""yes" 1>&6 |
---|
6369 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6370 | cat >> confdefs.h <<EOF |
---|
6371 | #define $ac_tr_func 1 |
---|
6372 | EOF |
---|
6373 | |
---|
6374 | else |
---|
6375 | echo "$ac_t""no" 1>&6 |
---|
6376 | fi |
---|
6377 | done |
---|
6378 | |
---|
6379 | for ac_func in strftime localtime |
---|
6380 | do |
---|
6381 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6382 | echo "configure:6383: checking for $ac_func" >&5 |
---|
6383 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6384 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6385 | else |
---|
6386 | cat > conftest.$ac_ext <<EOF |
---|
6387 | #line 6388 "configure" |
---|
6388 | #include "confdefs.h" |
---|
6389 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6390 | which can conflict with char $ac_func(); below. */ |
---|
6391 | #include <assert.h> |
---|
6392 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6393 | /* We use char because int might match the return type of a gcc2 |
---|
6394 | builtin and then its argument prototype would still apply. */ |
---|
6395 | char $ac_func(); |
---|
6396 | |
---|
6397 | int main() { |
---|
6398 | |
---|
6399 | /* The GNU C library defines this for functions which it implements |
---|
6400 | to always fail with ENOSYS. Some functions are actually named |
---|
6401 | something starting with __ and the normal name is an alias. */ |
---|
6402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6403 | choke me |
---|
6404 | #else |
---|
6405 | $ac_func(); |
---|
6406 | #endif |
---|
6407 | |
---|
6408 | ; return 0; } |
---|
6409 | EOF |
---|
6410 | if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6411 | rm -rf conftest* |
---|
6412 | eval "ac_cv_func_$ac_func=yes" |
---|
6413 | else |
---|
6414 | echo "configure: failed program was:" >&5 |
---|
6415 | cat conftest.$ac_ext >&5 |
---|
6416 | rm -rf conftest* |
---|
6417 | eval "ac_cv_func_$ac_func=no" |
---|
6418 | fi |
---|
6419 | rm -f conftest* |
---|
6420 | fi |
---|
6421 | |
---|
6422 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6423 | echo "$ac_t""yes" 1>&6 |
---|
6424 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6425 | cat >> confdefs.h <<EOF |
---|
6426 | #define $ac_tr_func 1 |
---|
6427 | EOF |
---|
6428 | |
---|
6429 | else |
---|
6430 | echo "$ac_t""no" 1>&6 |
---|
6431 | fi |
---|
6432 | done |
---|
6433 | |
---|
6434 | for ac_func in stat _stat signal |
---|
6435 | do |
---|
6436 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6437 | echo "configure:6438: checking for $ac_func" >&5 |
---|
6438 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6439 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6440 | else |
---|
6441 | cat > conftest.$ac_ext <<EOF |
---|
6442 | #line 6443 "configure" |
---|
6443 | #include "confdefs.h" |
---|
6444 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6445 | which can conflict with char $ac_func(); below. */ |
---|
6446 | #include <assert.h> |
---|
6447 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6448 | /* We use char because int might match the return type of a gcc2 |
---|
6449 | builtin and then its argument prototype would still apply. */ |
---|
6450 | char $ac_func(); |
---|
6451 | |
---|
6452 | int main() { |
---|
6453 | |
---|
6454 | /* The GNU C library defines this for functions which it implements |
---|
6455 | to always fail with ENOSYS. Some functions are actually named |
---|
6456 | something starting with __ and the normal name is an alias. */ |
---|
6457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6458 | choke me |
---|
6459 | #else |
---|
6460 | $ac_func(); |
---|
6461 | #endif |
---|
6462 | |
---|
6463 | ; return 0; } |
---|
6464 | EOF |
---|
6465 | if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6466 | rm -rf conftest* |
---|
6467 | eval "ac_cv_func_$ac_func=yes" |
---|
6468 | else |
---|
6469 | echo "configure: failed program was:" >&5 |
---|
6470 | cat conftest.$ac_ext >&5 |
---|
6471 | rm -rf conftest* |
---|
6472 | eval "ac_cv_func_$ac_func=no" |
---|
6473 | fi |
---|
6474 | rm -f conftest* |
---|
6475 | fi |
---|
6476 | |
---|
6477 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6478 | echo "$ac_t""yes" 1>&6 |
---|
6479 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6480 | cat >> confdefs.h <<EOF |
---|
6481 | #define $ac_tr_func 1 |
---|
6482 | EOF |
---|
6483 | |
---|
6484 | else |
---|
6485 | echo "$ac_t""no" 1>&6 |
---|
6486 | fi |
---|
6487 | done |
---|
6488 | |
---|
6489 | |
---|
6490 | for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf |
---|
6491 | do |
---|
6492 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6493 | echo "configure:6494: checking for $ac_func" >&5 |
---|
6494 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6495 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6496 | else |
---|
6497 | cat > conftest.$ac_ext <<EOF |
---|
6498 | #line 6499 "configure" |
---|
6499 | #include "confdefs.h" |
---|
6500 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6501 | which can conflict with char $ac_func(); below. */ |
---|
6502 | #include <assert.h> |
---|
6503 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6504 | /* We use char because int might match the return type of a gcc2 |
---|
6505 | builtin and then its argument prototype would still apply. */ |
---|
6506 | char $ac_func(); |
---|
6507 | |
---|
6508 | int main() { |
---|
6509 | |
---|
6510 | /* The GNU C library defines this for functions which it implements |
---|
6511 | to always fail with ENOSYS. Some functions are actually named |
---|
6512 | something starting with __ and the normal name is an alias. */ |
---|
6513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6514 | choke me |
---|
6515 | #else |
---|
6516 | $ac_func(); |
---|
6517 | #endif |
---|
6518 | |
---|
6519 | ; return 0; } |
---|
6520 | EOF |
---|
6521 | if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6522 | rm -rf conftest* |
---|
6523 | eval "ac_cv_func_$ac_func=yes" |
---|
6524 | else |
---|
6525 | echo "configure: failed program was:" >&5 |
---|
6526 | cat conftest.$ac_ext >&5 |
---|
6527 | rm -rf conftest* |
---|
6528 | eval "ac_cv_func_$ac_func=no" |
---|
6529 | fi |
---|
6530 | rm -f conftest* |
---|
6531 | fi |
---|
6532 | |
---|
6533 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6534 | echo "$ac_t""yes" 1>&6 |
---|
6535 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6536 | cat >> confdefs.h <<EOF |
---|
6537 | #define $ac_tr_func 1 |
---|
6538 | EOF |
---|
6539 | |
---|
6540 | else |
---|
6541 | echo "$ac_t""no" 1>&6 |
---|
6542 | NEED_TRIO=1 |
---|
6543 | fi |
---|
6544 | done |
---|
6545 | |
---|
6546 | |
---|
6547 | echo $ac_n "checking for gethostent""... $ac_c" 1>&6 |
---|
6548 | echo "configure:6549: checking for gethostent" >&5 |
---|
6549 | if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then |
---|
6550 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6551 | else |
---|
6552 | cat > conftest.$ac_ext <<EOF |
---|
6553 | #line 6554 "configure" |
---|
6554 | #include "confdefs.h" |
---|
6555 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6556 | which can conflict with char gethostent(); below. */ |
---|
6557 | #include <assert.h> |
---|
6558 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6559 | /* We use char because int might match the return type of a gcc2 |
---|
6560 | builtin and then its argument prototype would still apply. */ |
---|
6561 | char gethostent(); |
---|
6562 | |
---|
6563 | int main() { |
---|
6564 | |
---|
6565 | /* The GNU C library defines this for functions which it implements |
---|
6566 | to always fail with ENOSYS. Some functions are actually named |
---|
6567 | something starting with __ and the normal name is an alias. */ |
---|
6568 | #if defined (__stub_gethostent) || defined (__stub___gethostent) |
---|
6569 | choke me |
---|
6570 | #else |
---|
6571 | gethostent(); |
---|
6572 | #endif |
---|
6573 | |
---|
6574 | ; return 0; } |
---|
6575 | EOF |
---|
6576 | if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6577 | rm -rf conftest* |
---|
6578 | eval "ac_cv_func_gethostent=yes" |
---|
6579 | else |
---|
6580 | echo "configure: failed program was:" >&5 |
---|
6581 | cat conftest.$ac_ext >&5 |
---|
6582 | rm -rf conftest* |
---|
6583 | eval "ac_cv_func_gethostent=no" |
---|
6584 | fi |
---|
6585 | rm -f conftest* |
---|
6586 | fi |
---|
6587 | |
---|
6588 | if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then |
---|
6589 | echo "$ac_t""yes" 1>&6 |
---|
6590 | : |
---|
6591 | else |
---|
6592 | echo "$ac_t""no" 1>&6 |
---|
6593 | echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 |
---|
6594 | echo "configure:6595: checking for gethostent in -lnsl" >&5 |
---|
6595 | ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` |
---|
6596 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6597 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6598 | else |
---|
6599 | ac_save_LIBS="$LIBS" |
---|
6600 | LIBS="-lnsl $LIBS" |
---|
6601 | cat > conftest.$ac_ext <<EOF |
---|
6602 | #line 6603 "configure" |
---|
6603 | #include "confdefs.h" |
---|
6604 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6605 | /* We use char because int might match the return type of a gcc2 |
---|
6606 | builtin and then its argument prototype would still apply. */ |
---|
6607 | char gethostent(); |
---|
6608 | |
---|
6609 | int main() { |
---|
6610 | gethostent() |
---|
6611 | ; return 0; } |
---|
6612 | EOF |
---|
6613 | if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6614 | rm -rf conftest* |
---|
6615 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6616 | else |
---|
6617 | echo "configure: failed program was:" >&5 |
---|
6618 | cat conftest.$ac_ext >&5 |
---|
6619 | rm -rf conftest* |
---|
6620 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6621 | fi |
---|
6622 | rm -f conftest* |
---|
6623 | LIBS="$ac_save_LIBS" |
---|
6624 | |
---|
6625 | fi |
---|
6626 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6627 | echo "$ac_t""yes" 1>&6 |
---|
6628 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
6629 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6630 | cat >> confdefs.h <<EOF |
---|
6631 | #define $ac_tr_lib 1 |
---|
6632 | EOF |
---|
6633 | |
---|
6634 | LIBS="-lnsl $LIBS" |
---|
6635 | |
---|
6636 | else |
---|
6637 | echo "$ac_t""no" 1>&6 |
---|
6638 | fi |
---|
6639 | |
---|
6640 | fi |
---|
6641 | |
---|
6642 | echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 |
---|
6643 | echo "configure:6644: checking for setsockopt" >&5 |
---|
6644 | if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then |
---|
6645 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6646 | else |
---|
6647 | cat > conftest.$ac_ext <<EOF |
---|
6648 | #line 6649 "configure" |
---|
6649 | #include "confdefs.h" |
---|
6650 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6651 | which can conflict with char setsockopt(); below. */ |
---|
6652 | #include <assert.h> |
---|
6653 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6654 | /* We use char because int might match the return type of a gcc2 |
---|
6655 | builtin and then its argument prototype would still apply. */ |
---|
6656 | char setsockopt(); |
---|
6657 | |
---|
6658 | int main() { |
---|
6659 | |
---|
6660 | /* The GNU C library defines this for functions which it implements |
---|
6661 | to always fail with ENOSYS. Some functions are actually named |
---|
6662 | something starting with __ and the normal name is an alias. */ |
---|
6663 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) |
---|
6664 | choke me |
---|
6665 | #else |
---|
6666 | setsockopt(); |
---|
6667 | #endif |
---|
6668 | |
---|
6669 | ; return 0; } |
---|
6670 | EOF |
---|
6671 | if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6672 | rm -rf conftest* |
---|
6673 | eval "ac_cv_func_setsockopt=yes" |
---|
6674 | else |
---|
6675 | echo "configure: failed program was:" >&5 |
---|
6676 | cat conftest.$ac_ext >&5 |
---|
6677 | rm -rf conftest* |
---|
6678 | eval "ac_cv_func_setsockopt=no" |
---|
6679 | fi |
---|
6680 | rm -f conftest* |
---|
6681 | fi |
---|
6682 | |
---|
6683 | if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then |
---|
6684 | echo "$ac_t""yes" 1>&6 |
---|
6685 | : |
---|
6686 | else |
---|
6687 | echo "$ac_t""no" 1>&6 |
---|
6688 | echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 |
---|
6689 | echo "configure:6690: checking for setsockopt in -lsocket" >&5 |
---|
6690 | ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` |
---|
6691 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6692 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6693 | else |
---|
6694 | ac_save_LIBS="$LIBS" |
---|
6695 | LIBS="-lsocket $LIBS" |
---|
6696 | cat > conftest.$ac_ext <<EOF |
---|
6697 | #line 6698 "configure" |
---|
6698 | #include "confdefs.h" |
---|
6699 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6700 | /* We use char because int might match the return type of a gcc2 |
---|
6701 | builtin and then its argument prototype would still apply. */ |
---|
6702 | char setsockopt(); |
---|
6703 | |
---|
6704 | int main() { |
---|
6705 | setsockopt() |
---|
6706 | ; return 0; } |
---|
6707 | EOF |
---|
6708 | if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6709 | rm -rf conftest* |
---|
6710 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6711 | else |
---|
6712 | echo "configure: failed program was:" >&5 |
---|
6713 | cat conftest.$ac_ext >&5 |
---|
6714 | rm -rf conftest* |
---|
6715 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6716 | fi |
---|
6717 | rm -f conftest* |
---|
6718 | LIBS="$ac_save_LIBS" |
---|
6719 | |
---|
6720 | fi |
---|
6721 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6722 | echo "$ac_t""yes" 1>&6 |
---|
6723 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
6724 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6725 | cat >> confdefs.h <<EOF |
---|
6726 | #define $ac_tr_lib 1 |
---|
6727 | EOF |
---|
6728 | |
---|
6729 | LIBS="-lsocket $LIBS" |
---|
6730 | |
---|
6731 | else |
---|
6732 | echo "$ac_t""no" 1>&6 |
---|
6733 | fi |
---|
6734 | |
---|
6735 | fi |
---|
6736 | |
---|
6737 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
6738 | echo "configure:6739: checking for connect" >&5 |
---|
6739 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
6740 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6741 | else |
---|
6742 | cat > conftest.$ac_ext <<EOF |
---|
6743 | #line 6744 "configure" |
---|
6744 | #include "confdefs.h" |
---|
6745 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6746 | which can conflict with char connect(); below. */ |
---|
6747 | #include <assert.h> |
---|
6748 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6749 | /* We use char because int might match the return type of a gcc2 |
---|
6750 | builtin and then its argument prototype would still apply. */ |
---|
6751 | char connect(); |
---|
6752 | |
---|
6753 | int main() { |
---|
6754 | |
---|
6755 | /* The GNU C library defines this for functions which it implements |
---|
6756 | to always fail with ENOSYS. Some functions are actually named |
---|
6757 | something starting with __ and the normal name is an alias. */ |
---|
6758 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
6759 | choke me |
---|
6760 | #else |
---|
6761 | connect(); |
---|
6762 | #endif |
---|
6763 | |
---|
6764 | ; return 0; } |
---|
6765 | EOF |
---|
6766 | if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6767 | rm -rf conftest* |
---|
6768 | eval "ac_cv_func_connect=yes" |
---|
6769 | else |
---|
6770 | echo "configure: failed program was:" >&5 |
---|
6771 | cat conftest.$ac_ext >&5 |
---|
6772 | rm -rf conftest* |
---|
6773 | eval "ac_cv_func_connect=no" |
---|
6774 | fi |
---|
6775 | rm -f conftest* |
---|
6776 | fi |
---|
6777 | |
---|
6778 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
6779 | echo "$ac_t""yes" 1>&6 |
---|
6780 | : |
---|
6781 | else |
---|
6782 | echo "$ac_t""no" 1>&6 |
---|
6783 | echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6 |
---|
6784 | echo "configure:6785: checking for connect in -linet" >&5 |
---|
6785 | ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'` |
---|
6786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6787 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6788 | else |
---|
6789 | ac_save_LIBS="$LIBS" |
---|
6790 | LIBS="-linet $LIBS" |
---|
6791 | cat > conftest.$ac_ext <<EOF |
---|
6792 | #line 6793 "configure" |
---|
6793 | #include "confdefs.h" |
---|
6794 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6795 | /* We use char because int might match the return type of a gcc2 |
---|
6796 | builtin and then its argument prototype would still apply. */ |
---|
6797 | char connect(); |
---|
6798 | |
---|
6799 | int main() { |
---|
6800 | connect() |
---|
6801 | ; return 0; } |
---|
6802 | EOF |
---|
6803 | if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6804 | rm -rf conftest* |
---|
6805 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6806 | else |
---|
6807 | echo "configure: failed program was:" >&5 |
---|
6808 | cat conftest.$ac_ext >&5 |
---|
6809 | rm -rf conftest* |
---|
6810 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6811 | fi |
---|
6812 | rm -f conftest* |
---|
6813 | LIBS="$ac_save_LIBS" |
---|
6814 | |
---|
6815 | fi |
---|
6816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6817 | echo "$ac_t""yes" 1>&6 |
---|
6818 | ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
6819 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6820 | cat >> confdefs.h <<EOF |
---|
6821 | #define $ac_tr_lib 1 |
---|
6822 | EOF |
---|
6823 | |
---|
6824 | LIBS="-linet $LIBS" |
---|
6825 | |
---|
6826 | else |
---|
6827 | echo "$ac_t""no" 1>&6 |
---|
6828 | fi |
---|
6829 | |
---|
6830 | fi |
---|
6831 | |
---|
6832 | |
---|
6833 | echo $ac_n "checking for type of socket length (socklen_t)""... $ac_c" 1>&6 |
---|
6834 | echo "configure:6835: checking for type of socket length (socklen_t)" >&5 |
---|
6835 | cat > conftest.$ac_ext <<EOF |
---|
6836 | #line 6837 "configure" |
---|
6837 | #include "confdefs.h" |
---|
6838 | |
---|
6839 | #include <stddef.h> |
---|
6840 | #include <sys/types.h> |
---|
6841 | #include <sys/socket.h> |
---|
6842 | int main() { |
---|
6843 | |
---|
6844 | (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL) |
---|
6845 | ; return 0; } |
---|
6846 | EOF |
---|
6847 | if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then |
---|
6848 | rm -rf conftest* |
---|
6849 | |
---|
6850 | echo "$ac_t""socklen_t *" 1>&6 |
---|
6851 | SOCKLEN_T=socklen_t |
---|
6852 | else |
---|
6853 | echo "configure: failed program was:" >&5 |
---|
6854 | cat conftest.$ac_ext >&5 |
---|
6855 | rm -rf conftest* |
---|
6856 | |
---|
6857 | cat > conftest.$ac_ext <<EOF |
---|
6858 | #line 6859 "configure" |
---|
6859 | #include "confdefs.h" |
---|
6860 | |
---|
6861 | #include <stddef.h> |
---|
6862 | #include <sys/types.h> |
---|
6863 | #include <sys/socket.h> |
---|
6864 | int main() { |
---|
6865 | |
---|
6866 | (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL) |
---|
6867 | ; return 0; } |
---|
6868 | EOF |
---|
6869 | if { (eval echo configure:6870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then |
---|
6870 | rm -rf conftest* |
---|
6871 | |
---|
6872 | echo "$ac_t""size_t *" 1>&6 |
---|
6873 | SOCKLEN_T=size_t |
---|
6874 | else |
---|
6875 | echo "configure: failed program was:" >&5 |
---|
6876 | cat conftest.$ac_ext >&5 |
---|
6877 | rm -rf conftest* |
---|
6878 | |
---|
6879 | cat > conftest.$ac_ext <<EOF |
---|
6880 | #line 6881 "configure" |
---|
6881 | #include "confdefs.h" |
---|
6882 | |
---|
6883 | #include <stddef.h> |
---|
6884 | #include <sys/types.h> |
---|
6885 | #include <sys/socket.h> |
---|
6886 | int main() { |
---|
6887 | |
---|
6888 | (void)getsockopt (1, 1, 1, NULL, (int *)NULL) |
---|
6889 | ; return 0; } |
---|
6890 | EOF |
---|
6891 | if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then |
---|
6892 | rm -rf conftest* |
---|
6893 | |
---|
6894 | echo "$ac_t""int *" 1>&6 |
---|
6895 | SOCKLEN_T=int |
---|
6896 | else |
---|
6897 | echo "configure: failed program was:" >&5 |
---|
6898 | cat conftest.$ac_ext >&5 |
---|
6899 | rm -rf conftest* |
---|
6900 | |
---|
6901 | echo "configure: warning: could not determine" 1>&2 |
---|
6902 | fi |
---|
6903 | rm -f conftest* |
---|
6904 | fi |
---|
6905 | rm -f conftest* |
---|
6906 | fi |
---|
6907 | rm -f conftest* |
---|
6908 | cat >> confdefs.h <<EOF |
---|
6909 | #define SOCKLEN_T $SOCKLEN_T |
---|
6910 | EOF |
---|
6911 | |
---|
6912 | |
---|
6913 | echo $ac_n "checking for isnan""... $ac_c" 1>&6 |
---|
6914 | echo "configure:6915: checking for isnan" >&5 |
---|
6915 | if eval "test \"`echo '$''{'ac_cv_func_isnan'+set}'`\" = set"; then |
---|
6916 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6917 | else |
---|
6918 | cat > conftest.$ac_ext <<EOF |
---|
6919 | #line 6920 "configure" |
---|
6920 | #include "confdefs.h" |
---|
6921 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6922 | which can conflict with char isnan(); below. */ |
---|
6923 | #include <assert.h> |
---|
6924 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6925 | /* We use char because int might match the return type of a gcc2 |
---|
6926 | builtin and then its argument prototype would still apply. */ |
---|
6927 | char isnan(); |
---|
6928 | |
---|
6929 | int main() { |
---|
6930 | |
---|
6931 | /* The GNU C library defines this for functions which it implements |
---|
6932 | to always fail with ENOSYS. Some functions are actually named |
---|
6933 | something starting with __ and the normal name is an alias. */ |
---|
6934 | #if defined (__stub_isnan) || defined (__stub___isnan) |
---|
6935 | choke me |
---|
6936 | #else |
---|
6937 | isnan(); |
---|
6938 | #endif |
---|
6939 | |
---|
6940 | ; return 0; } |
---|
6941 | EOF |
---|
6942 | if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6943 | rm -rf conftest* |
---|
6944 | eval "ac_cv_func_isnan=yes" |
---|
6945 | else |
---|
6946 | echo "configure: failed program was:" >&5 |
---|
6947 | cat conftest.$ac_ext >&5 |
---|
6948 | rm -rf conftest* |
---|
6949 | eval "ac_cv_func_isnan=no" |
---|
6950 | fi |
---|
6951 | rm -f conftest* |
---|
6952 | fi |
---|
6953 | |
---|
6954 | if eval "test \"`echo '$ac_cv_func_'isnan`\" = yes"; then |
---|
6955 | echo "$ac_t""yes" 1>&6 |
---|
6956 | : |
---|
6957 | else |
---|
6958 | echo "$ac_t""no" 1>&6 |
---|
6959 | echo $ac_n "checking for isnan in -lm""... $ac_c" 1>&6 |
---|
6960 | echo "configure:6961: checking for isnan in -lm" >&5 |
---|
6961 | ac_lib_var=`echo m'_'isnan | sed 'y%./+-%__p_%'` |
---|
6962 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6963 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6964 | else |
---|
6965 | ac_save_LIBS="$LIBS" |
---|
6966 | LIBS="-lm $LIBS" |
---|
6967 | cat > conftest.$ac_ext <<EOF |
---|
6968 | #line 6969 "configure" |
---|
6969 | #include "confdefs.h" |
---|
6970 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6971 | /* We use char because int might match the return type of a gcc2 |
---|
6972 | builtin and then its argument prototype would still apply. */ |
---|
6973 | char isnan(); |
---|
6974 | |
---|
6975 | int main() { |
---|
6976 | isnan() |
---|
6977 | ; return 0; } |
---|
6978 | EOF |
---|
6979 | if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6980 | rm -rf conftest* |
---|
6981 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6982 | else |
---|
6983 | echo "configure: failed program was:" >&5 |
---|
6984 | cat conftest.$ac_ext >&5 |
---|
6985 | rm -rf conftest* |
---|
6986 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6987 | fi |
---|
6988 | rm -f conftest* |
---|
6989 | LIBS="$ac_save_LIBS" |
---|
6990 | |
---|
6991 | fi |
---|
6992 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6993 | echo "$ac_t""yes" 1>&6 |
---|
6994 | cat >> confdefs.h <<\EOF |
---|
6995 | #define HAVE_ISNAN 1 |
---|
6996 | EOF |
---|
6997 | |
---|
6998 | else |
---|
6999 | echo "$ac_t""no" 1>&6 |
---|
7000 | fi |
---|
7001 | |
---|
7002 | fi |
---|
7003 | |
---|
7004 | |
---|
7005 | echo $ac_n "checking for isinf""... $ac_c" 1>&6 |
---|
7006 | echo "configure:7007: checking for isinf" >&5 |
---|
7007 | if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then |
---|
7008 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7009 | else |
---|
7010 | cat > conftest.$ac_ext <<EOF |
---|
7011 | #line 7012 "configure" |
---|
7012 | #include "confdefs.h" |
---|
7013 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7014 | which can conflict with char isinf(); below. */ |
---|
7015 | #include <assert.h> |
---|
7016 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7017 | /* We use char because int might match the return type of a gcc2 |
---|
7018 | builtin and then its argument prototype would still apply. */ |
---|
7019 | char isinf(); |
---|
7020 | |
---|
7021 | int main() { |
---|
7022 | |
---|
7023 | /* The GNU C library defines this for functions which it implements |
---|
7024 | to always fail with ENOSYS. Some functions are actually named |
---|
7025 | something starting with __ and the normal name is an alias. */ |
---|
7026 | #if defined (__stub_isinf) || defined (__stub___isinf) |
---|
7027 | choke me |
---|
7028 | #else |
---|
7029 | isinf(); |
---|
7030 | #endif |
---|
7031 | |
---|
7032 | ; return 0; } |
---|
7033 | EOF |
---|
7034 | if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7035 | rm -rf conftest* |
---|
7036 | eval "ac_cv_func_isinf=yes" |
---|
7037 | else |
---|
7038 | echo "configure: failed program was:" >&5 |
---|
7039 | cat conftest.$ac_ext >&5 |
---|
7040 | rm -rf conftest* |
---|
7041 | eval "ac_cv_func_isinf=no" |
---|
7042 | fi |
---|
7043 | rm -f conftest* |
---|
7044 | fi |
---|
7045 | |
---|
7046 | if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then |
---|
7047 | echo "$ac_t""yes" 1>&6 |
---|
7048 | cat >> confdefs.h <<\EOF |
---|
7049 | #define HAVE_ISINF 1 |
---|
7050 | EOF |
---|
7051 | |
---|
7052 | else |
---|
7053 | echo "$ac_t""no" 1>&6 |
---|
7054 | echo $ac_n "checking for isinf in -lm""... $ac_c" 1>&6 |
---|
7055 | echo "configure:7056: checking for isinf in -lm" >&5 |
---|
7056 | ac_lib_var=`echo m'_'isinf | sed 'y%./+-%__p_%'` |
---|
7057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7058 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7059 | else |
---|
7060 | ac_save_LIBS="$LIBS" |
---|
7061 | LIBS="-lm $LIBS" |
---|
7062 | cat > conftest.$ac_ext <<EOF |
---|
7063 | #line 7064 "configure" |
---|
7064 | #include "confdefs.h" |
---|
7065 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7066 | /* We use char because int might match the return type of a gcc2 |
---|
7067 | builtin and then its argument prototype would still apply. */ |
---|
7068 | char isinf(); |
---|
7069 | |
---|
7070 | int main() { |
---|
7071 | isinf() |
---|
7072 | ; return 0; } |
---|
7073 | EOF |
---|
7074 | if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7075 | rm -rf conftest* |
---|
7076 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7077 | else |
---|
7078 | echo "configure: failed program was:" >&5 |
---|
7079 | cat conftest.$ac_ext >&5 |
---|
7080 | rm -rf conftest* |
---|
7081 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7082 | fi |
---|
7083 | rm -f conftest* |
---|
7084 | LIBS="$ac_save_LIBS" |
---|
7085 | |
---|
7086 | fi |
---|
7087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7088 | echo "$ac_t""yes" 1>&6 |
---|
7089 | cat >> confdefs.h <<\EOF |
---|
7090 | #define HAVE_ISINF 1 |
---|
7091 | EOF |
---|
7092 | |
---|
7093 | else |
---|
7094 | echo "$ac_t""no" 1>&6 |
---|
7095 | fi |
---|
7096 | |
---|
7097 | fi |
---|
7098 | |
---|
7099 | |
---|
7100 | XML_LIBDIR='-L${libdir}' |
---|
7101 | XML_INCLUDEDIR='-I${includedir}/libxml2/libxml -I${includedir}/libxml2' |
---|
7102 | |
---|
7103 | XML_CFLAGS="" |
---|
7104 | RDL_LIBS="" |
---|
7105 | |
---|
7106 | if test "${GCC}" != "yes" ; then |
---|
7107 | case "${host}" in |
---|
7108 | *-*-hpux* ) |
---|
7109 | CFLAGS="${CFLAGS} -Wp,-H30000" |
---|
7110 | ;; |
---|
7111 | *-dec-osf* ) |
---|
7112 | CFLAGS="${CFLAGS} -ieee" |
---|
7113 | ;; |
---|
7114 | esac |
---|
7115 | else |
---|
7116 | CFLAGS="${CFLAGS} -Wall" |
---|
7117 | case "${host}" in |
---|
7118 | alpha*-*-linux* ) |
---|
7119 | CFLAGS="${CFLAGS} -mieee" |
---|
7120 | ;; |
---|
7121 | esac |
---|
7122 | fi |
---|
7123 | case ${host} in |
---|
7124 | *-*-solaris*) |
---|
7125 | XML_LIBDIR="${XML_LIBDIR} -R${libdir}" |
---|
7126 | ;; |
---|
7127 | esac |
---|
7128 | |
---|
7129 | |
---|
7130 | |
---|
7131 | PYTHON= |
---|
7132 | PYTHON_VERSION= |
---|
7133 | PYTHON_INCLUDES= |
---|
7134 | PYTHON_SITE_PACKAGES= |
---|
7135 | # Check whether --with-python or --without-python was given. |
---|
7136 | if test "${with_python+set}" = set; then |
---|
7137 | withval="$with_python" |
---|
7138 | : |
---|
7139 | fi |
---|
7140 | |
---|
7141 | if test "$with_python" != "no" ; then |
---|
7142 | if test -x "$with_python/bin/python" |
---|
7143 | then |
---|
7144 | echo Found python in $with_python/bin/python |
---|
7145 | PYTHON="$with_python/bin/python" |
---|
7146 | else |
---|
7147 | # Extract the first word of "python python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. |
---|
7148 | set dummy python python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 |
---|
7149 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
7150 | echo "configure:7151: checking for $ac_word" >&5 |
---|
7151 | if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then |
---|
7152 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7153 | else |
---|
7154 | case "$PYTHON" in |
---|
7155 | /*) |
---|
7156 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
---|
7157 | ;; |
---|
7158 | ?:/*) |
---|
7159 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path. |
---|
7160 | ;; |
---|
7161 | *) |
---|
7162 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
7163 | ac_dummy="$PATH" |
---|
7164 | for ac_dir in $ac_dummy; do |
---|
7165 | test -z "$ac_dir" && ac_dir=. |
---|
7166 | if test -f $ac_dir/$ac_word; then |
---|
7167 | ac_cv_path_PYTHON="$ac_dir/$ac_word" |
---|
7168 | break |
---|
7169 | fi |
---|
7170 | done |
---|
7171 | IFS="$ac_save_ifs" |
---|
7172 | ;; |
---|
7173 | esac |
---|
7174 | fi |
---|
7175 | PYTHON="$ac_cv_path_PYTHON" |
---|
7176 | if test -n "$PYTHON"; then |
---|
7177 | echo "$ac_t""$PYTHON" 1>&6 |
---|
7178 | else |
---|
7179 | echo "$ac_t""no" 1>&6 |
---|
7180 | fi |
---|
7181 | |
---|
7182 | fi |
---|
7183 | if test "$PYTHON" != "" |
---|
7184 | then |
---|
7185 | PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"` |
---|
7186 | echo Found Python version $PYTHON_VERSION |
---|
7187 | fi |
---|
7188 | if test "$PYTHON_VERSION" != "" |
---|
7189 | then |
---|
7190 | if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ |
---|
7191 | -d $with_python/lib/python$PYTHON_VERSION/site-packages |
---|
7192 | then |
---|
7193 | PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION |
---|
7194 | PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages |
---|
7195 | else |
---|
7196 | if test -r $prefix/include/python$PYTHON_VERSION/Python.h |
---|
7197 | then |
---|
7198 | PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' |
---|
7199 | PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages' |
---|
7200 | else |
---|
7201 | if test -r /usr/include/python$PYTHON_VERSION/Python.h |
---|
7202 | then |
---|
7203 | PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION |
---|
7204 | PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages' |
---|
7205 | else |
---|
7206 | echo could not find python$PYTHON_VERSION/Python.h |
---|
7207 | fi |
---|
7208 | fi |
---|
7209 | fi |
---|
7210 | fi |
---|
7211 | fi |
---|
7212 | |
---|
7213 | |
---|
7214 | if test "$PYTHON_INCLUDES" != ""; then |
---|
7215 | WITH_PYTHON_TRUE= |
---|
7216 | WITH_PYTHON_FALSE='#' |
---|
7217 | else |
---|
7218 | WITH_PYTHON_TRUE='#' |
---|
7219 | WITH_PYTHON_FALSE= |
---|
7220 | fi |
---|
7221 | |
---|
7222 | |
---|
7223 | |
---|
7224 | # Check whether --with-buffers or --without-buffers was given. |
---|
7225 | if test "${with_buffers+set}" = set; then |
---|
7226 | withval="$with_buffers" |
---|
7227 | : |
---|
7228 | fi |
---|
7229 | |
---|
7230 | if test "$with_buffers" = "yes" ; then |
---|
7231 | CFLAGS="${CFLAGS} -DXML_USE_BUFFER_CONTENT" |
---|
7232 | XML_CFLAGS="${XML_CFLAGS} -DXML_USE_BUFFER_CONTENT" |
---|
7233 | fi |
---|
7234 | |
---|
7235 | _cppflags="${CPPFLAGS}" |
---|
7236 | _ldflags="${LDFLAGS}" |
---|
7237 | |
---|
7238 | # Check whether --with-readline or --without-readline was given. |
---|
7239 | if test "${with_readline+set}" = set; then |
---|
7240 | withval="$with_readline" |
---|
7241 | |
---|
7242 | if test "$withval" != "no" -a "$withval" != "yes"; then |
---|
7243 | RDL_DIR=$withval |
---|
7244 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
---|
7245 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
---|
7246 | fi |
---|
7247 | |
---|
7248 | fi |
---|
7249 | |
---|
7250 | |
---|
7251 | if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then |
---|
7252 | if test "${with_mem_debug}" = "" ; then |
---|
7253 | with_mem_debug="yes" |
---|
7254 | fi |
---|
7255 | if test "${with_docbook}" = "" ; then |
---|
7256 | with_docbook="yes" |
---|
7257 | fi |
---|
7258 | if test "${with_xptr}" = "" ; then |
---|
7259 | with_xptr="yes" |
---|
7260 | fi |
---|
7261 | CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls " |
---|
7262 | fi |
---|
7263 | |
---|
7264 | |
---|
7265 | if test "${NEED_TRIO}" = "1" ; then |
---|
7266 | echo Adding trio library for string functions |
---|
7267 | WITH_TRIO=1 |
---|
7268 | else |
---|
7269 | WITH_TRIO=0 |
---|
7270 | fi |
---|
7271 | |
---|
7272 | |
---|
7273 | if test "${NEED_TRIO}" = "1"; then |
---|
7274 | WITH_TRIO_SOURCES_TRUE= |
---|
7275 | WITH_TRIO_SOURCES_FALSE='#' |
---|
7276 | else |
---|
7277 | WITH_TRIO_SOURCES_TRUE='#' |
---|
7278 | WITH_TRIO_SOURCES_FALSE= |
---|
7279 | fi |
---|
7280 | |
---|
7281 | |
---|
7282 | |
---|
7283 | THREAD_LIBS="" |
---|
7284 | WITH_THREADS=0 |
---|
7285 | THREAD_CFLAGS="" |
---|
7286 | TEST_THREADS="" |
---|
7287 | |
---|
7288 | # Check whether --with-threads or --without-threads was given. |
---|
7289 | if test "${with_threads+set}" = set; then |
---|
7290 | withval="$with_threads" |
---|
7291 | : |
---|
7292 | fi |
---|
7293 | |
---|
7294 | if test "$with_threads" = "yes" ; then |
---|
7295 | echo Enabling multithreaded support |
---|
7296 | |
---|
7297 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` |
---|
7298 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 |
---|
7299 | echo "configure:7300: checking for pthread.h" >&5 |
---|
7300 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
7301 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7302 | else |
---|
7303 | cat > conftest.$ac_ext <<EOF |
---|
7304 | #line 7305 "configure" |
---|
7305 | #include "confdefs.h" |
---|
7306 | #include <pthread.h> |
---|
7307 | EOF |
---|
7308 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
7309 | { (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
7310 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
7311 | if test -z "$ac_err"; then |
---|
7312 | rm -rf conftest* |
---|
7313 | eval "ac_cv_header_$ac_safe=yes" |
---|
7314 | else |
---|
7315 | echo "$ac_err" >&5 |
---|
7316 | echo "configure: failed program was:" >&5 |
---|
7317 | cat conftest.$ac_ext >&5 |
---|
7318 | rm -rf conftest* |
---|
7319 | eval "ac_cv_header_$ac_safe=no" |
---|
7320 | fi |
---|
7321 | rm -f conftest* |
---|
7322 | fi |
---|
7323 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
7324 | echo "$ac_t""yes" 1>&6 |
---|
7325 | echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6 |
---|
7326 | echo "configure:7327: checking for pthread_join in -lpthread" >&5 |
---|
7327 | ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'` |
---|
7328 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7329 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7330 | else |
---|
7331 | ac_save_LIBS="$LIBS" |
---|
7332 | LIBS="-lpthread $LIBS" |
---|
7333 | cat > conftest.$ac_ext <<EOF |
---|
7334 | #line 7335 "configure" |
---|
7335 | #include "confdefs.h" |
---|
7336 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7337 | /* We use char because int might match the return type of a gcc2 |
---|
7338 | builtin and then its argument prototype would still apply. */ |
---|
7339 | char pthread_join(); |
---|
7340 | |
---|
7341 | int main() { |
---|
7342 | pthread_join() |
---|
7343 | ; return 0; } |
---|
7344 | EOF |
---|
7345 | if { (eval echo configure:7346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7346 | rm -rf conftest* |
---|
7347 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7348 | else |
---|
7349 | echo "configure: failed program was:" >&5 |
---|
7350 | cat conftest.$ac_ext >&5 |
---|
7351 | rm -rf conftest* |
---|
7352 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7353 | fi |
---|
7354 | rm -f conftest* |
---|
7355 | LIBS="$ac_save_LIBS" |
---|
7356 | |
---|
7357 | fi |
---|
7358 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7359 | echo "$ac_t""yes" 1>&6 |
---|
7360 | |
---|
7361 | THREAD_LIBS="-lpthread" |
---|
7362 | cat >> confdefs.h <<\EOF |
---|
7363 | #define HAVE_LIBPTHREAD 1 |
---|
7364 | EOF |
---|
7365 | |
---|
7366 | cat >> confdefs.h <<\EOF |
---|
7367 | #define HAVE_PTHREAD_H 1 |
---|
7368 | EOF |
---|
7369 | |
---|
7370 | WITH_THREADS="1" |
---|
7371 | else |
---|
7372 | echo "$ac_t""no" 1>&6 |
---|
7373 | fi |
---|
7374 | |
---|
7375 | else |
---|
7376 | echo "$ac_t""no" 1>&6 |
---|
7377 | fi |
---|
7378 | |
---|
7379 | |
---|
7380 | if test "$WITH_THREADS" = "1" ; then |
---|
7381 | THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" |
---|
7382 | TEST_THREADS="Threadtests" |
---|
7383 | fi |
---|
7384 | fi |
---|
7385 | # Check whether --with-thread-alloc or --without-thread-alloc was given. |
---|
7386 | if test "${with_thread_alloc+set}" = set; then |
---|
7387 | withval="$with_thread_alloc" |
---|
7388 | : |
---|
7389 | fi |
---|
7390 | |
---|
7391 | if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then |
---|
7392 | THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED" |
---|
7393 | fi |
---|
7394 | |
---|
7395 | |
---|
7396 | |
---|
7397 | |
---|
7398 | |
---|
7399 | |
---|
7400 | # Check whether --with-history or --without-history was given. |
---|
7401 | if test "${with_history+set}" = set; then |
---|
7402 | withval="$with_history" |
---|
7403 | : |
---|
7404 | fi |
---|
7405 | |
---|
7406 | if test "$with_history" = "yes" ; then |
---|
7407 | echo Enabling xmllint shell history |
---|
7408 | unset tcap |
---|
7409 | for termlib in ncurses curses termcap terminfo termlib; do |
---|
7410 | echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6 |
---|
7411 | echo "configure:7412: checking for tputs in -l${termlib}" >&5 |
---|
7412 | ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'` |
---|
7413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7414 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7415 | else |
---|
7416 | ac_save_LIBS="$LIBS" |
---|
7417 | LIBS="-l${termlib} $LIBS" |
---|
7418 | cat > conftest.$ac_ext <<EOF |
---|
7419 | #line 7420 "configure" |
---|
7420 | #include "confdefs.h" |
---|
7421 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7422 | /* We use char because int might match the return type of a gcc2 |
---|
7423 | builtin and then its argument prototype would still apply. */ |
---|
7424 | char tputs(); |
---|
7425 | |
---|
7426 | int main() { |
---|
7427 | tputs() |
---|
7428 | ; return 0; } |
---|
7429 | EOF |
---|
7430 | if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7431 | rm -rf conftest* |
---|
7432 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7433 | else |
---|
7434 | echo "configure: failed program was:" >&5 |
---|
7435 | cat conftest.$ac_ext >&5 |
---|
7436 | rm -rf conftest* |
---|
7437 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7438 | fi |
---|
7439 | rm -f conftest* |
---|
7440 | LIBS="$ac_save_LIBS" |
---|
7441 | |
---|
7442 | fi |
---|
7443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7444 | echo "$ac_t""yes" 1>&6 |
---|
7445 | tcap="-l$termlib" |
---|
7446 | else |
---|
7447 | echo "$ac_t""no" 1>&6 |
---|
7448 | fi |
---|
7449 | |
---|
7450 | test -n "$tcap" && break |
---|
7451 | done |
---|
7452 | |
---|
7453 | ac_safe=`echo "readline/history.h" | sed 'y%./+-%__p_%'` |
---|
7454 | echo $ac_n "checking for readline/history.h""... $ac_c" 1>&6 |
---|
7455 | echo "configure:7456: checking for readline/history.h" >&5 |
---|
7456 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
7457 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7458 | else |
---|
7459 | cat > conftest.$ac_ext <<EOF |
---|
7460 | #line 7461 "configure" |
---|
7461 | #include "confdefs.h" |
---|
7462 | #include <readline/history.h> |
---|
7463 | EOF |
---|
7464 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
7465 | { (eval echo configure:7466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
7466 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
7467 | if test -z "$ac_err"; then |
---|
7468 | rm -rf conftest* |
---|
7469 | eval "ac_cv_header_$ac_safe=yes" |
---|
7470 | else |
---|
7471 | echo "$ac_err" >&5 |
---|
7472 | echo "configure: failed program was:" >&5 |
---|
7473 | cat conftest.$ac_ext >&5 |
---|
7474 | rm -rf conftest* |
---|
7475 | eval "ac_cv_header_$ac_safe=no" |
---|
7476 | fi |
---|
7477 | rm -f conftest* |
---|
7478 | fi |
---|
7479 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
7480 | echo "$ac_t""yes" 1>&6 |
---|
7481 | echo $ac_n "checking for append_history in -lhistory""... $ac_c" 1>&6 |
---|
7482 | echo "configure:7483: checking for append_history in -lhistory" >&5 |
---|
7483 | ac_lib_var=`echo history'_'append_history | sed 'y%./+-%__p_%'` |
---|
7484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7485 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7486 | else |
---|
7487 | ac_save_LIBS="$LIBS" |
---|
7488 | LIBS="-lhistory $LIBS" |
---|
7489 | cat > conftest.$ac_ext <<EOF |
---|
7490 | #line 7491 "configure" |
---|
7491 | #include "confdefs.h" |
---|
7492 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7493 | /* We use char because int might match the return type of a gcc2 |
---|
7494 | builtin and then its argument prototype would still apply. */ |
---|
7495 | char append_history(); |
---|
7496 | |
---|
7497 | int main() { |
---|
7498 | append_history() |
---|
7499 | ; return 0; } |
---|
7500 | EOF |
---|
7501 | if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7502 | rm -rf conftest* |
---|
7503 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7504 | else |
---|
7505 | echo "configure: failed program was:" >&5 |
---|
7506 | cat conftest.$ac_ext >&5 |
---|
7507 | rm -rf conftest* |
---|
7508 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7509 | fi |
---|
7510 | rm -f conftest* |
---|
7511 | LIBS="$ac_save_LIBS" |
---|
7512 | |
---|
7513 | fi |
---|
7514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7515 | echo "$ac_t""yes" 1>&6 |
---|
7516 | |
---|
7517 | RDL_LIBS="-lhistory" |
---|
7518 | cat >> confdefs.h <<\EOF |
---|
7519 | #define HAVE_LIBHISTORY 1 |
---|
7520 | EOF |
---|
7521 | |
---|
7522 | else |
---|
7523 | echo "$ac_t""no" 1>&6 |
---|
7524 | fi |
---|
7525 | |
---|
7526 | else |
---|
7527 | echo "$ac_t""no" 1>&6 |
---|
7528 | fi |
---|
7529 | |
---|
7530 | ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'` |
---|
7531 | echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6 |
---|
7532 | echo "configure:7533: checking for readline/readline.h" >&5 |
---|
7533 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
7534 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7535 | else |
---|
7536 | cat > conftest.$ac_ext <<EOF |
---|
7537 | #line 7538 "configure" |
---|
7538 | #include "confdefs.h" |
---|
7539 | #include <readline/readline.h> |
---|
7540 | EOF |
---|
7541 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
7542 | { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
7543 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
7544 | if test -z "$ac_err"; then |
---|
7545 | rm -rf conftest* |
---|
7546 | eval "ac_cv_header_$ac_safe=yes" |
---|
7547 | else |
---|
7548 | echo "$ac_err" >&5 |
---|
7549 | echo "configure: failed program was:" >&5 |
---|
7550 | cat conftest.$ac_ext >&5 |
---|
7551 | rm -rf conftest* |
---|
7552 | eval "ac_cv_header_$ac_safe=no" |
---|
7553 | fi |
---|
7554 | rm -f conftest* |
---|
7555 | fi |
---|
7556 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
7557 | echo "$ac_t""yes" 1>&6 |
---|
7558 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 |
---|
7559 | echo "configure:7560: checking for readline in -lreadline" >&5 |
---|
7560 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
---|
7561 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7562 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7563 | else |
---|
7564 | ac_save_LIBS="$LIBS" |
---|
7565 | LIBS="-lreadline $tcap $LIBS" |
---|
7566 | cat > conftest.$ac_ext <<EOF |
---|
7567 | #line 7568 "configure" |
---|
7568 | #include "confdefs.h" |
---|
7569 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7570 | /* We use char because int might match the return type of a gcc2 |
---|
7571 | builtin and then its argument prototype would still apply. */ |
---|
7572 | char readline(); |
---|
7573 | |
---|
7574 | int main() { |
---|
7575 | readline() |
---|
7576 | ; return 0; } |
---|
7577 | EOF |
---|
7578 | if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7579 | rm -rf conftest* |
---|
7580 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7581 | else |
---|
7582 | echo "configure: failed program was:" >&5 |
---|
7583 | cat conftest.$ac_ext >&5 |
---|
7584 | rm -rf conftest* |
---|
7585 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7586 | fi |
---|
7587 | rm -f conftest* |
---|
7588 | LIBS="$ac_save_LIBS" |
---|
7589 | |
---|
7590 | fi |
---|
7591 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7592 | echo "$ac_t""yes" 1>&6 |
---|
7593 | |
---|
7594 | RDL_LIBS="-lreadline $RDL_LIBS $tcap" |
---|
7595 | cat >> confdefs.h <<\EOF |
---|
7596 | #define HAVE_LIBREADLINE 1 |
---|
7597 | EOF |
---|
7598 | |
---|
7599 | else |
---|
7600 | echo "$ac_t""no" 1>&6 |
---|
7601 | fi |
---|
7602 | |
---|
7603 | else |
---|
7604 | echo "$ac_t""no" 1>&6 |
---|
7605 | fi |
---|
7606 | |
---|
7607 | if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then |
---|
7608 | CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include" |
---|
7609 | RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS" |
---|
7610 | else |
---|
7611 | CPPFLAGS=${_cppflags} |
---|
7612 | fi |
---|
7613 | LDFLAGS=${_ldflags} |
---|
7614 | fi |
---|
7615 | |
---|
7616 | |
---|
7617 | |
---|
7618 | # Check whether --with-ftp or --without-ftp was given. |
---|
7619 | if test "${with_ftp+set}" = set; then |
---|
7620 | withval="$with_ftp" |
---|
7621 | : |
---|
7622 | fi |
---|
7623 | |
---|
7624 | if test "$with_ftp" = "no" ; then |
---|
7625 | echo Disabling FTP support |
---|
7626 | WITH_FTP=0 |
---|
7627 | FTP_OBJ= |
---|
7628 | else |
---|
7629 | WITH_FTP=1 |
---|
7630 | FTP_OBJ=nanoftp.o |
---|
7631 | fi |
---|
7632 | |
---|
7633 | |
---|
7634 | |
---|
7635 | # Check whether --with-http or --without-http was given. |
---|
7636 | if test "${with_http+set}" = set; then |
---|
7637 | withval="$with_http" |
---|
7638 | : |
---|
7639 | fi |
---|
7640 | |
---|
7641 | if test "$with_http" = "no" ; then |
---|
7642 | echo Disabling HTTP support |
---|
7643 | WITH_HTTP=0 |
---|
7644 | HTTP_OBJ= |
---|
7645 | else |
---|
7646 | WITH_HTTP=1 |
---|
7647 | HTTP_OBJ=nanohttp.o |
---|
7648 | fi |
---|
7649 | |
---|
7650 | |
---|
7651 | |
---|
7652 | # Check whether --with-html or --without-html was given. |
---|
7653 | if test "${with_html+set}" = set; then |
---|
7654 | withval="$with_html" |
---|
7655 | : |
---|
7656 | fi |
---|
7657 | |
---|
7658 | if test "$with_html" = "no" ; then |
---|
7659 | echo Disabling HTML support |
---|
7660 | WITH_HTML=0 |
---|
7661 | HTML_OBJ= |
---|
7662 | else |
---|
7663 | WITH_HTML=1 |
---|
7664 | HTML_OBJ="HTMLparser.o HTMLtree.o" |
---|
7665 | fi |
---|
7666 | |
---|
7667 | |
---|
7668 | |
---|
7669 | # Check whether --with-catalog or --without-catalog was given. |
---|
7670 | if test "${with_catalog+set}" = set; then |
---|
7671 | withval="$with_catalog" |
---|
7672 | : |
---|
7673 | fi |
---|
7674 | |
---|
7675 | if test "$with_catalog" = "no" ; then |
---|
7676 | echo Disabling Catalog support |
---|
7677 | WITH_CATALOG=0 |
---|
7678 | CATALOG_OBJ= |
---|
7679 | else |
---|
7680 | WITH_CATALOG=1 |
---|
7681 | CATALOG_OBJ="catalog.o" |
---|
7682 | fi |
---|
7683 | |
---|
7684 | |
---|
7685 | |
---|
7686 | # Check whether --with-docbook or --without-docbook was given. |
---|
7687 | if test "${with_docbook+set}" = set; then |
---|
7688 | withval="$with_docbook" |
---|
7689 | : |
---|
7690 | fi |
---|
7691 | |
---|
7692 | if test "$with_docbook" = "no" ; then |
---|
7693 | echo Disabling Docbook support |
---|
7694 | WITH_DOCB=0 |
---|
7695 | DOCB_OBJ= |
---|
7696 | else |
---|
7697 | WITH_DOCB=1 |
---|
7698 | DOCB_OBJ="DOCBparser.o" |
---|
7699 | fi |
---|
7700 | |
---|
7701 | |
---|
7702 | |
---|
7703 | |
---|
7704 | # Check whether --with-xpath or --without-xpath was given. |
---|
7705 | if test "${with_xpath+set}" = set; then |
---|
7706 | withval="$with_xpath" |
---|
7707 | : |
---|
7708 | fi |
---|
7709 | |
---|
7710 | if test "$with_xpath" = "no" ; then |
---|
7711 | echo Disabling XPATH support |
---|
7712 | with_xptr="no" |
---|
7713 | WITH_XPATH=0 |
---|
7714 | XPATH_OBJ= |
---|
7715 | else |
---|
7716 | WITH_XPATH=1 |
---|
7717 | XPATH_OBJ=xpath.o |
---|
7718 | fi |
---|
7719 | |
---|
7720 | |
---|
7721 | |
---|
7722 | # Check whether --with-xptr or --without-xptr was given. |
---|
7723 | if test "${with_xptr+set}" = set; then |
---|
7724 | withval="$with_xptr" |
---|
7725 | : |
---|
7726 | fi |
---|
7727 | |
---|
7728 | if test "$with_xptr" = "no" ; then |
---|
7729 | echo Disabling XPointer support |
---|
7730 | WITH_XPTR=0 |
---|
7731 | XPTR_OBJ= |
---|
7732 | else |
---|
7733 | WITH_XPTR=1 |
---|
7734 | XPTR_OBJ=xpointer.o |
---|
7735 | fi |
---|
7736 | |
---|
7737 | |
---|
7738 | |
---|
7739 | # Check whether --with-xinclude or --without-xinclude was given. |
---|
7740 | if test "${with_xinclude+set}" = set; then |
---|
7741 | withval="$with_xinclude" |
---|
7742 | : |
---|
7743 | fi |
---|
7744 | |
---|
7745 | if test "$with_xinclude" = "no" ; then |
---|
7746 | echo Disabling XInclude support |
---|
7747 | WITH_XINCLUDE=0 |
---|
7748 | XINCLUDE_OBJ= |
---|
7749 | with_xinclude="no" |
---|
7750 | else |
---|
7751 | WITH_XINCLUDE=1 |
---|
7752 | XINCLUDE_OBJ=xinclude.o |
---|
7753 | fi |
---|
7754 | |
---|
7755 | |
---|
7756 | |
---|
7757 | WITH_ICONV=0 |
---|
7758 | # Check whether --with-iconv or --without-iconv was given. |
---|
7759 | if test "${with_iconv+set}" = set; then |
---|
7760 | withval="$with_iconv" |
---|
7761 | : |
---|
7762 | fi |
---|
7763 | |
---|
7764 | if test "$with_iconv" = "no" ; then |
---|
7765 | echo Disabling ICONV support |
---|
7766 | else |
---|
7767 | if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then |
---|
7768 | CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" |
---|
7769 | # Export this since our headers include iconv.h |
---|
7770 | XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" |
---|
7771 | ICONV_LIBS="-L$with_iconv/lib" |
---|
7772 | fi |
---|
7773 | |
---|
7774 | ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` |
---|
7775 | echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 |
---|
7776 | echo "configure:7777: checking for iconv.h" >&5 |
---|
7777 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
7778 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7779 | else |
---|
7780 | cat > conftest.$ac_ext <<EOF |
---|
7781 | #line 7782 "configure" |
---|
7782 | #include "confdefs.h" |
---|
7783 | #include <iconv.h> |
---|
7784 | EOF |
---|
7785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
7786 | { (eval echo configure:7787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
7787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
7788 | if test -z "$ac_err"; then |
---|
7789 | rm -rf conftest* |
---|
7790 | eval "ac_cv_header_$ac_safe=yes" |
---|
7791 | else |
---|
7792 | echo "$ac_err" >&5 |
---|
7793 | echo "configure: failed program was:" >&5 |
---|
7794 | cat conftest.$ac_ext >&5 |
---|
7795 | rm -rf conftest* |
---|
7796 | eval "ac_cv_header_$ac_safe=no" |
---|
7797 | fi |
---|
7798 | rm -f conftest* |
---|
7799 | fi |
---|
7800 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
7801 | echo "$ac_t""yes" 1>&6 |
---|
7802 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
---|
7803 | echo "configure:7804: checking for iconv" >&5 |
---|
7804 | cat > conftest.$ac_ext <<EOF |
---|
7805 | #line 7806 "configure" |
---|
7806 | #include "confdefs.h" |
---|
7807 | #include <stdlib.h> |
---|
7808 | #include <iconv.h> |
---|
7809 | int main() { |
---|
7810 | |
---|
7811 | iconv_t cd = iconv_open ("",""); |
---|
7812 | iconv (cd, NULL, NULL, NULL, NULL); |
---|
7813 | ; return 0; } |
---|
7814 | EOF |
---|
7815 | if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7816 | rm -rf conftest* |
---|
7817 | |
---|
7818 | echo "$ac_t""yes" 1>&6 |
---|
7819 | WITH_ICONV=1 |
---|
7820 | else |
---|
7821 | echo "configure: failed program was:" >&5 |
---|
7822 | cat conftest.$ac_ext >&5 |
---|
7823 | rm -rf conftest* |
---|
7824 | |
---|
7825 | echo "$ac_t""no" 1>&6 |
---|
7826 | echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 |
---|
7827 | echo "configure:7828: checking for iconv in -liconv" >&5 |
---|
7828 | |
---|
7829 | _ldflags="${LDFLAGS}" |
---|
7830 | _libs="${LIBS}" |
---|
7831 | LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" |
---|
7832 | LIBS="${LIBS} -liconv" |
---|
7833 | |
---|
7834 | cat > conftest.$ac_ext <<EOF |
---|
7835 | #line 7836 "configure" |
---|
7836 | #include "confdefs.h" |
---|
7837 | #include <stdlib.h> |
---|
7838 | #include <iconv.h> |
---|
7839 | int main() { |
---|
7840 | |
---|
7841 | iconv_t cd = iconv_open ("",""); |
---|
7842 | iconv (cd, NULL, NULL, NULL, NULL); |
---|
7843 | ; return 0; } |
---|
7844 | EOF |
---|
7845 | if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7846 | rm -rf conftest* |
---|
7847 | |
---|
7848 | echo "$ac_t""yes" 1>&6 |
---|
7849 | WITH_ICONV=1 |
---|
7850 | ICONV_LIBS="${ICONV_LIBS} -liconv" |
---|
7851 | LIBS="${_libs}" |
---|
7852 | LDFLAGS="${_ldflags}" |
---|
7853 | else |
---|
7854 | echo "configure: failed program was:" >&5 |
---|
7855 | cat conftest.$ac_ext >&5 |
---|
7856 | rm -rf conftest* |
---|
7857 | |
---|
7858 | echo "$ac_t""no" 1>&6 |
---|
7859 | LIBS="${_libs}" |
---|
7860 | LDFLAGS="${_ldflags}" |
---|
7861 | fi |
---|
7862 | rm -f conftest* |
---|
7863 | fi |
---|
7864 | rm -f conftest* |
---|
7865 | else |
---|
7866 | echo "$ac_t""no" 1>&6 |
---|
7867 | fi |
---|
7868 | |
---|
7869 | fi |
---|
7870 | M_LIBS="-lm" |
---|
7871 | XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS" |
---|
7872 | |
---|
7873 | |
---|
7874 | # Check whether --with-debug or --without-debug was given. |
---|
7875 | if test "${with_debug+set}" = set; then |
---|
7876 | withval="$with_debug" |
---|
7877 | : |
---|
7878 | fi |
---|
7879 | |
---|
7880 | if test "$with_debug" = "no" ; then |
---|
7881 | echo Disabling DEBUG support |
---|
7882 | WITH_DEBUG=0 |
---|
7883 | DEBUG_OBJ= |
---|
7884 | else |
---|
7885 | WITH_DEBUG=1 |
---|
7886 | DEBUG_OBJ=debugXML.o |
---|
7887 | fi |
---|
7888 | |
---|
7889 | |
---|
7890 | |
---|
7891 | # Check whether --with-mem_debug or --without-mem_debug was given. |
---|
7892 | if test "${with_mem_debug+set}" = set; then |
---|
7893 | withval="$with_mem_debug" |
---|
7894 | : |
---|
7895 | fi |
---|
7896 | |
---|
7897 | if test "$with_mem_debug" = "yes" ; then |
---|
7898 | echo Enabling memory debug support |
---|
7899 | WITH_MEM_DEBUG=1 |
---|
7900 | else |
---|
7901 | WITH_MEM_DEBUG=0 |
---|
7902 | fi |
---|
7903 | |
---|
7904 | |
---|
7905 | |
---|
7906 | |
---|
7907 | |
---|
7908 | |
---|
7909 | |
---|
7910 | |
---|
7911 | |
---|
7912 | |
---|
7913 | |
---|
7914 | |
---|
7915 | |
---|
7916 | |
---|
7917 | |
---|
7918 | |
---|
7919 | |
---|
7920 | |
---|
7921 | |
---|
7922 | |
---|
7923 | rm -f rm COPYING.LIB COPYING |
---|
7924 | ln -s Copyright COPYING |
---|
7925 | |
---|
7926 | trap '' 1 2 15 |
---|
7927 | cat > confcache <<\EOF |
---|
7928 | # This file is a shell script that caches the results of configure |
---|
7929 | # tests run on this system so they can be shared between configure |
---|
7930 | # scripts and configure runs. It is not useful on other systems. |
---|
7931 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
7932 | # |
---|
7933 | # By default, configure uses ./config.cache as the cache file, |
---|
7934 | # creating it if it does not exist already. You can give configure |
---|
7935 | # the --cache-file=FILE option to use a different cache file; that is |
---|
7936 | # what configure does when it calls configure scripts in |
---|
7937 | # subdirectories, so they share the cache. |
---|
7938 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
7939 | # config.status only pays attention to the cache file if you give it the |
---|
7940 | # --recheck option to rerun configure. |
---|
7941 | # |
---|
7942 | EOF |
---|
7943 | # The following way of writing the cache mishandles newlines in values, |
---|
7944 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7945 | # So, don't put newlines in cache variables' values. |
---|
7946 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7947 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7948 | (set) 2>&1 | |
---|
7949 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7950 | *ac_space=\ *) |
---|
7951 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
7952 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
7953 | sed -n \ |
---|
7954 | -e "s/'/'\\\\''/g" \ |
---|
7955 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
7956 | ;; |
---|
7957 | *) |
---|
7958 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7959 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
7960 | ;; |
---|
7961 | esac >> confcache |
---|
7962 | if cmp -s $cache_file confcache; then |
---|
7963 | : |
---|
7964 | else |
---|
7965 | if test -w $cache_file; then |
---|
7966 | echo "updating cache $cache_file" |
---|
7967 | cat confcache > $cache_file |
---|
7968 | else |
---|
7969 | echo "not updating unwritable cache $cache_file" |
---|
7970 | fi |
---|
7971 | fi |
---|
7972 | rm -f confcache |
---|
7973 | |
---|
7974 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
7975 | |
---|
7976 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7977 | # Let make expand exec_prefix. |
---|
7978 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7979 | |
---|
7980 | # Any assignment to VPATH causes Sun make to only execute |
---|
7981 | # the first set of double-colon rules, so remove it if not needed. |
---|
7982 | # If there is a colon in the path, we need to keep it. |
---|
7983 | if test "x$srcdir" = x.; then |
---|
7984 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
7985 | fi |
---|
7986 | |
---|
7987 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
7988 | |
---|
7989 | DEFS=-DHAVE_CONFIG_H |
---|
7990 | |
---|
7991 | # Without the "./", some shells look in PATH for config.status. |
---|
7992 | : ${CONFIG_STATUS=./config.status} |
---|
7993 | |
---|
7994 | echo creating $CONFIG_STATUS |
---|
7995 | rm -f $CONFIG_STATUS |
---|
7996 | cat > $CONFIG_STATUS <<EOF |
---|
7997 | #! /bin/sh |
---|
7998 | # Generated automatically by configure. |
---|
7999 | # Run this file to recreate the current configuration. |
---|
8000 | # This directory was configured as follows, |
---|
8001 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
8002 | # |
---|
8003 | # $0 $ac_configure_args |
---|
8004 | # |
---|
8005 | # Compiler output produced by configure, useful for debugging |
---|
8006 | # configure, is in ./config.log if it exists. |
---|
8007 | |
---|
8008 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
8009 | for ac_option |
---|
8010 | do |
---|
8011 | case "\$ac_option" in |
---|
8012 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8013 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
8014 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
8015 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
8016 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
8017 | exit 0 ;; |
---|
8018 | -help | --help | --hel | --he | --h) |
---|
8019 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
8020 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
8021 | esac |
---|
8022 | done |
---|
8023 | |
---|
8024 | ac_given_srcdir=$srcdir |
---|
8025 | ac_given_INSTALL="$INSTALL" |
---|
8026 | |
---|
8027 | trap 'rm -fr `echo "libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
8028 | EOF |
---|
8029 | cat >> $CONFIG_STATUS <<EOF |
---|
8030 | |
---|
8031 | # Protect against being on the right side of a sed subst in config.status. |
---|
8032 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
8033 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
8034 | $ac_vpsub |
---|
8035 | $extrasub |
---|
8036 | s%@SHELL@%$SHELL%g |
---|
8037 | s%@CFLAGS@%$CFLAGS%g |
---|
8038 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
8039 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
8040 | s%@FFLAGS@%$FFLAGS%g |
---|
8041 | s%@DEFS@%$DEFS%g |
---|
8042 | s%@LDFLAGS@%$LDFLAGS%g |
---|
8043 | s%@LIBS@%$LIBS%g |
---|
8044 | s%@exec_prefix@%$exec_prefix%g |
---|
8045 | s%@prefix@%$prefix%g |
---|
8046 | s%@program_transform_name@%$program_transform_name%g |
---|
8047 | s%@bindir@%$bindir%g |
---|
8048 | s%@sbindir@%$sbindir%g |
---|
8049 | s%@libexecdir@%$libexecdir%g |
---|
8050 | s%@datadir@%$datadir%g |
---|
8051 | s%@sysconfdir@%$sysconfdir%g |
---|
8052 | s%@sharedstatedir@%$sharedstatedir%g |
---|
8053 | s%@localstatedir@%$localstatedir%g |
---|
8054 | s%@libdir@%$libdir%g |
---|
8055 | s%@includedir@%$includedir%g |
---|
8056 | s%@oldincludedir@%$oldincludedir%g |
---|
8057 | s%@infodir@%$infodir%g |
---|
8058 | s%@mandir@%$mandir%g |
---|
8059 | s%@host@%$host%g |
---|
8060 | s%@host_alias@%$host_alias%g |
---|
8061 | s%@host_cpu@%$host_cpu%g |
---|
8062 | s%@host_vendor@%$host_vendor%g |
---|
8063 | s%@host_os@%$host_os%g |
---|
8064 | s%@LIBXML_MAJOR_VERSION@%$LIBXML_MAJOR_VERSION%g |
---|
8065 | s%@LIBXML_MINOR_VERSION@%$LIBXML_MINOR_VERSION%g |
---|
8066 | s%@LIBXML_MICRO_VERSION@%$LIBXML_MICRO_VERSION%g |
---|
8067 | s%@LIBXML_VERSION@%$LIBXML_VERSION%g |
---|
8068 | s%@LIBXML_VERSION_INFO@%$LIBXML_VERSION_INFO%g |
---|
8069 | s%@LIBXML_VERSION_NUMBER@%$LIBXML_VERSION_NUMBER%g |
---|
8070 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
8071 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
8072 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
8073 | s%@PACKAGE@%$PACKAGE%g |
---|
8074 | s%@VERSION@%$VERSION%g |
---|
8075 | s%@ACLOCAL@%$ACLOCAL%g |
---|
8076 | s%@AUTOCONF@%$AUTOCONF%g |
---|
8077 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
8078 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
8079 | s%@MAKEINFO@%$MAKEINFO%g |
---|
8080 | s%@SET_MAKE@%$SET_MAKE%g |
---|
8081 | s%@CC@%$CC%g |
---|
8082 | s%@CPP@%$CPP%g |
---|
8083 | s%@RM@%$RM%g |
---|
8084 | s%@MV@%$MV%g |
---|
8085 | s%@TAR@%$TAR%g |
---|
8086 | s%@U@%$U%g |
---|
8087 | s%@ANSI2KNR@%$ANSI2KNR%g |
---|
8088 | s%@build@%$build%g |
---|
8089 | s%@build_alias@%$build_alias%g |
---|
8090 | s%@build_cpu@%$build_cpu%g |
---|
8091 | s%@build_vendor@%$build_vendor%g |
---|
8092 | s%@build_os@%$build_os%g |
---|
8093 | s%@LN_S@%$LN_S%g |
---|
8094 | s%@OBJEXT@%$OBJEXT%g |
---|
8095 | s%@EXEEXT@%$EXEEXT%g |
---|
8096 | s%@ECHO@%$ECHO%g |
---|
8097 | s%@RANLIB@%$RANLIB%g |
---|
8098 | s%@STRIP@%$STRIP%g |
---|
8099 | s%@LIBTOOL@%$LIBTOOL%g |
---|
8100 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
8101 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
8102 | s%@MAINT@%$MAINT%g |
---|
8103 | s%@Z_CFLAGS@%$Z_CFLAGS%g |
---|
8104 | s%@Z_LIBS@%$Z_LIBS%g |
---|
8105 | s%@HTML_DIR@%$HTML_DIR%g |
---|
8106 | s%@PYTHON@%$PYTHON%g |
---|
8107 | s%@WITH_PYTHON_TRUE@%$WITH_PYTHON_TRUE%g |
---|
8108 | s%@WITH_PYTHON_FALSE@%$WITH_PYTHON_FALSE%g |
---|
8109 | s%@WITH_TRIO_SOURCES_TRUE@%$WITH_TRIO_SOURCES_TRUE%g |
---|
8110 | s%@WITH_TRIO_SOURCES_FALSE@%$WITH_TRIO_SOURCES_FALSE%g |
---|
8111 | s%@WITH_TRIO@%$WITH_TRIO%g |
---|
8112 | s%@THREAD_LIBS@%$THREAD_LIBS%g |
---|
8113 | s%@WITH_THREADS@%$WITH_THREADS%g |
---|
8114 | s%@THREAD_CFLAGS@%$THREAD_CFLAGS%g |
---|
8115 | s%@TEST_THREADS@%$TEST_THREADS%g |
---|
8116 | s%@WITH_FTP@%$WITH_FTP%g |
---|
8117 | s%@FTP_OBJ@%$FTP_OBJ%g |
---|
8118 | s%@WITH_HTTP@%$WITH_HTTP%g |
---|
8119 | s%@HTTP_OBJ@%$HTTP_OBJ%g |
---|
8120 | s%@WITH_HTML@%$WITH_HTML%g |
---|
8121 | s%@HTML_OBJ@%$HTML_OBJ%g |
---|
8122 | s%@WITH_CATALOG@%$WITH_CATALOG%g |
---|
8123 | s%@CATALOG_OBJ@%$CATALOG_OBJ%g |
---|
8124 | s%@WITH_DOCB@%$WITH_DOCB%g |
---|
8125 | s%@DOCB_OBJ@%$DOCB_OBJ%g |
---|
8126 | s%@WITH_XPATH@%$WITH_XPATH%g |
---|
8127 | s%@XPATH_OBJ@%$XPATH_OBJ%g |
---|
8128 | s%@WITH_XPTR@%$WITH_XPTR%g |
---|
8129 | s%@XPTR_OBJ@%$XPTR_OBJ%g |
---|
8130 | s%@WITH_XINCLUDE@%$WITH_XINCLUDE%g |
---|
8131 | s%@XINCLUDE_OBJ@%$XINCLUDE_OBJ%g |
---|
8132 | s%@WITH_ICONV@%$WITH_ICONV%g |
---|
8133 | s%@WITH_DEBUG@%$WITH_DEBUG%g |
---|
8134 | s%@DEBUG_OBJ@%$DEBUG_OBJ%g |
---|
8135 | s%@WITH_MEM_DEBUG@%$WITH_MEM_DEBUG%g |
---|
8136 | s%@XML_CFLAGS@%$XML_CFLAGS%g |
---|
8137 | s%@XML_LIBDIR@%$XML_LIBDIR%g |
---|
8138 | s%@XML_LIBS@%$XML_LIBS%g |
---|
8139 | s%@ICONV_LIBS@%$ICONV_LIBS%g |
---|
8140 | s%@XML_INCLUDEDIR@%$XML_INCLUDEDIR%g |
---|
8141 | s%@HAVE_ISNAN@%$HAVE_ISNAN%g |
---|
8142 | s%@HAVE_ISINF@%$HAVE_ISINF%g |
---|
8143 | s%@PYTHON_VERSION@%$PYTHON_VERSION%g |
---|
8144 | s%@PYTHON_INCLUDES@%$PYTHON_INCLUDES%g |
---|
8145 | s%@PYTHON_SITE_PACKAGES@%$PYTHON_SITE_PACKAGES%g |
---|
8146 | s%@M_LIBS@%$M_LIBS%g |
---|
8147 | s%@RDL_LIBS@%$RDL_LIBS%g |
---|
8148 | |
---|
8149 | CEOF |
---|
8150 | EOF |
---|
8151 | |
---|
8152 | cat >> $CONFIG_STATUS <<\EOF |
---|
8153 | |
---|
8154 | # Split the substitutions into bite-sized pieces for seds with |
---|
8155 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8156 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
8157 | ac_file=1 # Number of current file. |
---|
8158 | ac_beg=1 # First line for current file. |
---|
8159 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
8160 | ac_more_lines=: |
---|
8161 | ac_sed_cmds="" |
---|
8162 | while $ac_more_lines; do |
---|
8163 | if test $ac_beg -gt 1; then |
---|
8164 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
8165 | else |
---|
8166 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
8167 | fi |
---|
8168 | if test ! -s conftest.s$ac_file; then |
---|
8169 | ac_more_lines=false |
---|
8170 | rm -f conftest.s$ac_file |
---|
8171 | else |
---|
8172 | if test -z "$ac_sed_cmds"; then |
---|
8173 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
8174 | else |
---|
8175 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
8176 | fi |
---|
8177 | ac_file=`expr $ac_file + 1` |
---|
8178 | ac_beg=$ac_end |
---|
8179 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
8180 | fi |
---|
8181 | done |
---|
8182 | if test -z "$ac_sed_cmds"; then |
---|
8183 | ac_sed_cmds=cat |
---|
8184 | fi |
---|
8185 | EOF |
---|
8186 | |
---|
8187 | cat >> $CONFIG_STATUS <<EOF |
---|
8188 | |
---|
8189 | CONFIG_FILES=\${CONFIG_FILES-"libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh"} |
---|
8190 | EOF |
---|
8191 | cat >> $CONFIG_STATUS <<\EOF |
---|
8192 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
8193 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8194 | case "$ac_file" in |
---|
8195 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
8196 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
8197 | *) ac_file_in="${ac_file}.in" ;; |
---|
8198 | esac |
---|
8199 | |
---|
8200 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
8201 | |
---|
8202 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
8203 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
8204 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
8205 | # The file is in a subdirectory. |
---|
8206 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
8207 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
8208 | # A "../" for each directory in $ac_dir_suffix. |
---|
8209 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
8210 | else |
---|
8211 | ac_dir_suffix= ac_dots= |
---|
8212 | fi |
---|
8213 | |
---|
8214 | case "$ac_given_srcdir" in |
---|
8215 | .) srcdir=. |
---|
8216 | if test -z "$ac_dots"; then top_srcdir=. |
---|
8217 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
8218 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
8219 | *) # Relative path. |
---|
8220 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
8221 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
8222 | esac |
---|
8223 | |
---|
8224 | case "$ac_given_INSTALL" in |
---|
8225 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
8226 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
8227 | esac |
---|
8228 | |
---|
8229 | echo creating "$ac_file" |
---|
8230 | rm -f "$ac_file" |
---|
8231 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
8232 | case "$ac_file" in |
---|
8233 | *Makefile*) ac_comsub="1i\\ |
---|
8234 | # $configure_input" ;; |
---|
8235 | *) ac_comsub= ;; |
---|
8236 | esac |
---|
8237 | |
---|
8238 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
8239 | sed -e "$ac_comsub |
---|
8240 | s%@configure_input@%$configure_input%g |
---|
8241 | s%@srcdir@%$srcdir%g |
---|
8242 | s%@top_srcdir@%$top_srcdir%g |
---|
8243 | s%@INSTALL@%$INSTALL%g |
---|
8244 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
8245 | fi; done |
---|
8246 | rm -f conftest.s* |
---|
8247 | |
---|
8248 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8249 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8250 | # |
---|
8251 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8252 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8253 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
8254 | ac_dC='\3' |
---|
8255 | ac_dD='%g' |
---|
8256 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
8257 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8258 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
8259 | ac_uC=' ' |
---|
8260 | ac_uD='\4%g' |
---|
8261 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8262 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8263 | ac_eB='$%\1#\2define\3' |
---|
8264 | ac_eC=' ' |
---|
8265 | ac_eD='%g' |
---|
8266 | |
---|
8267 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
8268 | EOF |
---|
8269 | cat >> $CONFIG_STATUS <<EOF |
---|
8270 | CONFIG_HEADERS="config.h" |
---|
8271 | EOF |
---|
8272 | cat >> $CONFIG_STATUS <<\EOF |
---|
8273 | fi |
---|
8274 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
8275 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8276 | case "$ac_file" in |
---|
8277 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
8278 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
8279 | *) ac_file_in="${ac_file}.in" ;; |
---|
8280 | esac |
---|
8281 | |
---|
8282 | echo creating $ac_file |
---|
8283 | |
---|
8284 | rm -f conftest.frag conftest.in conftest.out |
---|
8285 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
8286 | cat $ac_file_inputs > conftest.in |
---|
8287 | |
---|
8288 | EOF |
---|
8289 | |
---|
8290 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
8291 | # the proper values into config.h.in to produce config.h. And first: |
---|
8292 | # Protect against being on the right side of a sed subst in config.status. |
---|
8293 | # Protect against being in an unquoted here document in config.status. |
---|
8294 | rm -f conftest.vals |
---|
8295 | cat > conftest.hdr <<\EOF |
---|
8296 | s/[\\&%]/\\&/g |
---|
8297 | s%[\\$`]%\\&%g |
---|
8298 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
8299 | s%ac_d%ac_u%gp |
---|
8300 | s%ac_u%ac_e%gp |
---|
8301 | EOF |
---|
8302 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
8303 | rm -f conftest.hdr |
---|
8304 | |
---|
8305 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8306 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8307 | # on some systems where configure will not decide to define it. |
---|
8308 | cat >> conftest.vals <<\EOF |
---|
8309 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
8310 | EOF |
---|
8311 | |
---|
8312 | # Break up conftest.vals because some shells have a limit on |
---|
8313 | # the size of here documents, and old seds have small limits too. |
---|
8314 | |
---|
8315 | rm -f conftest.tail |
---|
8316 | while : |
---|
8317 | do |
---|
8318 | ac_lines=`grep -c . conftest.vals` |
---|
8319 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
8320 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
8321 | # Write a limited-size here document to conftest.frag. |
---|
8322 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
8323 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
8324 | echo 'CEOF |
---|
8325 | sed -f conftest.frag conftest.in > conftest.out |
---|
8326 | rm -f conftest.in |
---|
8327 | mv conftest.out conftest.in |
---|
8328 | ' >> $CONFIG_STATUS |
---|
8329 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
8330 | rm -f conftest.vals |
---|
8331 | mv conftest.tail conftest.vals |
---|
8332 | done |
---|
8333 | rm -f conftest.vals |
---|
8334 | |
---|
8335 | cat >> $CONFIG_STATUS <<\EOF |
---|
8336 | rm -f conftest.frag conftest.h |
---|
8337 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
8338 | cat conftest.in >> conftest.h |
---|
8339 | rm -f conftest.in |
---|
8340 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
8341 | echo "$ac_file is unchanged" |
---|
8342 | rm -f conftest.h |
---|
8343 | else |
---|
8344 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
8345 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
8346 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
8347 | # The file is in a subdirectory. |
---|
8348 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
8349 | fi |
---|
8350 | rm -f $ac_file |
---|
8351 | mv conftest.h $ac_file |
---|
8352 | fi |
---|
8353 | fi; done |
---|
8354 | |
---|
8355 | EOF |
---|
8356 | cat >> $CONFIG_STATUS <<EOF |
---|
8357 | |
---|
8358 | |
---|
8359 | EOF |
---|
8360 | cat >> $CONFIG_STATUS <<\EOF |
---|
8361 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
8362 | |
---|
8363 | exit 0 |
---|
8364 | EOF |
---|
8365 | chmod +x $CONFIG_STATUS |
---|
8366 | rm -fr confdefs* $ac_clean_files |
---|
8367 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
8368 | |
---|
8369 | |
---|