1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by Autoconf 2.52d. |
---|
4 | # |
---|
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
6 | # Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Find the correct PATH separator. Usually this is `:', but |
---|
11 | # DJGPP uses `;' like DOS. |
---|
12 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
---|
13 | UNAME=${UNAME-`uname 2>/dev/null`} |
---|
14 | case X$UNAME in |
---|
15 | *-DOS) lt_cv_sys_path_separator=';' ;; |
---|
16 | *) lt_cv_sys_path_separator=':' ;; |
---|
17 | esac |
---|
18 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
---|
19 | fi |
---|
20 | |
---|
21 | # Check that we are running under the correct shell. |
---|
22 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
23 | |
---|
24 | case X$ECHO in |
---|
25 | X*--fallback-echo) |
---|
26 | # Remove one level of quotation (which was required for Make). |
---|
27 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
28 | ;; |
---|
29 | esac |
---|
30 | |
---|
31 | echo=${ECHO-echo} |
---|
32 | if test "X$1" = X--no-reexec; then |
---|
33 | # Discard the --no-reexec flag, and continue. |
---|
34 | shift |
---|
35 | elif test "X$1" = X--fallback-echo; then |
---|
36 | # Avoid inline document here, it may be left over |
---|
37 | : |
---|
38 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
---|
39 | # Yippee, $echo works! |
---|
40 | : |
---|
41 | else |
---|
42 | # Restart under the correct shell. |
---|
43 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
44 | fi |
---|
45 | |
---|
46 | if test "X$1" = X--fallback-echo; then |
---|
47 | # used as fallback echo |
---|
48 | shift |
---|
49 | cat <<EOF |
---|
50 | |
---|
51 | EOF |
---|
52 | exit 0 |
---|
53 | fi |
---|
54 | |
---|
55 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
56 | # if CDPATH is set. |
---|
57 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
58 | |
---|
59 | if test -z "$ECHO"; then |
---|
60 | if test "X${echo_test_string+set}" != Xset; then |
---|
61 | # find a string as large as possible, as long as the shell can cope with it |
---|
62 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
63 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
64 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
---|
65 | echo_test_string="`eval $cmd`" && |
---|
66 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
67 | then |
---|
68 | break |
---|
69 | fi |
---|
70 | done |
---|
71 | fi |
---|
72 | |
---|
73 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
74 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
75 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
76 | : |
---|
77 | else |
---|
78 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
79 | # backslashes. This makes it impossible to quote backslashes using |
---|
80 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
81 | # |
---|
82 | # So, first we look for a working echo in the user's PATH. |
---|
83 | |
---|
84 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
85 | for dir in $PATH /usr/ucb; do |
---|
86 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
87 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
88 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
89 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
90 | echo="$dir/echo" |
---|
91 | break |
---|
92 | fi |
---|
93 | done |
---|
94 | IFS="$save_ifs" |
---|
95 | |
---|
96 | if test "X$echo" = Xecho; then |
---|
97 | # We didn't find a better echo, so look for alternatives. |
---|
98 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
99 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
100 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
101 | # This shell has a builtin print -r that does the trick. |
---|
102 | echo='print -r' |
---|
103 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
104 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
105 | # If we have ksh, try running configure again with it. |
---|
106 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
107 | export ORIGINAL_CONFIG_SHELL |
---|
108 | CONFIG_SHELL=/bin/ksh |
---|
109 | export CONFIG_SHELL |
---|
110 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
111 | else |
---|
112 | # Try using printf. |
---|
113 | echo='printf %s\n' |
---|
114 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
115 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
116 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
117 | # Cool, printf works |
---|
118 | : |
---|
119 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
120 | test "X$echo_testing_string" = 'X\t' && |
---|
121 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
122 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
123 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
124 | export CONFIG_SHELL |
---|
125 | SHELL="$CONFIG_SHELL" |
---|
126 | export SHELL |
---|
127 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
128 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
129 | test "X$echo_testing_string" = 'X\t' && |
---|
130 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
131 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
132 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
133 | else |
---|
134 | # maybe with a smaller string... |
---|
135 | prev=: |
---|
136 | |
---|
137 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
138 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
139 | then |
---|
140 | break |
---|
141 | fi |
---|
142 | prev="$cmd" |
---|
143 | done |
---|
144 | |
---|
145 | if test "$prev" != 'sed 50q "$0"'; then |
---|
146 | echo_test_string=`eval $prev` |
---|
147 | export echo_test_string |
---|
148 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
149 | else |
---|
150 | # Oops. We lost completely, so just stick with echo. |
---|
151 | echo=echo |
---|
152 | fi |
---|
153 | fi |
---|
154 | fi |
---|
155 | fi |
---|
156 | fi |
---|
157 | fi |
---|
158 | |
---|
159 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
160 | # the Makefile, instead of quoting the original, which is used later. |
---|
161 | ECHO=$echo |
---|
162 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
163 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
164 | fi |
---|
165 | |
---|
166 | # Avoid depending upon Character Ranges. |
---|
167 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
168 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
169 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
170 | as_cr_digits='0123456789' |
---|
171 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
172 | |
---|
173 | # Sed expression to map a string onto a valid variable name. |
---|
174 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
175 | |
---|
176 | # Sed expression to map a string onto a valid CPP name. |
---|
177 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
178 | |
---|
179 | ## --------------------- ## |
---|
180 | ## M4sh Initialization. ## |
---|
181 | ## --------------------- ## |
---|
182 | |
---|
183 | # Be Bourne compatible |
---|
184 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
185 | emulate sh |
---|
186 | NULLCMD=: |
---|
187 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
188 | set -o posix |
---|
189 | fi |
---|
190 | |
---|
191 | # Name of the executable. |
---|
192 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
---|
193 | |
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
195 | as_expr=expr |
---|
196 | else |
---|
197 | as_expr=false |
---|
198 | fi |
---|
199 | |
---|
200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
201 | echo >conf$$.file |
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
205 | if test -f conf$$.exe; then |
---|
206 | # Don't use ln at all; we don't have any links |
---|
207 | as_ln_s='cp -p' |
---|
208 | else |
---|
209 | as_ln_s='ln -s' |
---|
210 | fi |
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
212 | as_ln_s=ln |
---|
213 | else |
---|
214 | as_ln_s='cp -p' |
---|
215 | fi |
---|
216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
217 | |
---|
218 | as_executable_p="test -f" |
---|
219 | |
---|
220 | # Support unset when possible. |
---|
221 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
222 | as_unset=unset |
---|
223 | else |
---|
224 | as_unset=false |
---|
225 | fi |
---|
226 | |
---|
227 | # NLS nuisances. |
---|
228 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
---|
229 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
---|
230 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
---|
231 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
---|
232 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
---|
233 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
---|
234 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
---|
235 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
---|
236 | |
---|
237 | # IFS |
---|
238 | # We need space, tab and new line, in precisely that order. |
---|
239 | as_nl=' |
---|
240 | ' |
---|
241 | IFS=" $as_nl" |
---|
242 | |
---|
243 | # CDPATH. |
---|
244 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | cross_compiling=no |
---|
258 | subdirs= |
---|
259 | MFLAGS= MAKEFLAGS= |
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
261 | |
---|
262 | # Maximum number of lines to put in a shell here document. |
---|
263 | # This variable seems obsolete. It should probably be removed, and |
---|
264 | # only ac_max_sed_lines should be used. |
---|
265 | : ${ac_max_here_lines=38} |
---|
266 | |
---|
267 | ac_unique_file="README" |
---|
268 | # Factoring default headers for most tests. |
---|
269 | ac_includes_default="\ |
---|
270 | #include <stdio.h> |
---|
271 | #if HAVE_SYS_TYPES_H |
---|
272 | # include <sys/types.h> |
---|
273 | #endif |
---|
274 | #if HAVE_SYS_STAT_H |
---|
275 | # include <sys/stat.h> |
---|
276 | #endif |
---|
277 | #if STDC_HEADERS |
---|
278 | # include <stdlib.h> |
---|
279 | # include <stddef.h> |
---|
280 | #else |
---|
281 | # if HAVE_STDLIB_H |
---|
282 | # include <stdlib.h> |
---|
283 | # endif |
---|
284 | #endif |
---|
285 | #if HAVE_STRING_H |
---|
286 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
287 | # include <memory.h> |
---|
288 | # endif |
---|
289 | # include <string.h> |
---|
290 | #endif |
---|
291 | #if HAVE_STRINGS_H |
---|
292 | # include <strings.h> |
---|
293 | #endif |
---|
294 | #if HAVE_INTTYPES_H |
---|
295 | # include <inttypes.h> |
---|
296 | #else |
---|
297 | # if HAVE_STDINT_H |
---|
298 | # include <stdint.h> |
---|
299 | # endif |
---|
300 | #endif |
---|
301 | #if HAVE_UNISTD_H |
---|
302 | # include <unistd.h> |
---|
303 | #endif" |
---|
304 | |
---|
305 | # Initialize some variables set by options. |
---|
306 | ac_init_help= |
---|
307 | ac_init_version=false |
---|
308 | # The variables have the same names as the options, with |
---|
309 | # dashes changed to underlines. |
---|
310 | cache_file=/dev/null |
---|
311 | exec_prefix=NONE |
---|
312 | no_create= |
---|
313 | no_recursion= |
---|
314 | prefix=NONE |
---|
315 | program_prefix=NONE |
---|
316 | program_suffix=NONE |
---|
317 | program_transform_name=s,x,x, |
---|
318 | silent= |
---|
319 | site= |
---|
320 | srcdir= |
---|
321 | verbose= |
---|
322 | x_includes=NONE |
---|
323 | x_libraries=NONE |
---|
324 | |
---|
325 | # Installation directory options. |
---|
326 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
327 | # and all the variables that are supposed to be based on exec_prefix |
---|
328 | # by default will actually change. |
---|
329 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
330 | bindir='${exec_prefix}/bin' |
---|
331 | sbindir='${exec_prefix}/sbin' |
---|
332 | libexecdir='${exec_prefix}/libexec' |
---|
333 | datadir='${prefix}/share' |
---|
334 | sysconfdir='${prefix}/etc' |
---|
335 | sharedstatedir='${prefix}/com' |
---|
336 | localstatedir='${prefix}/var' |
---|
337 | libdir='${exec_prefix}/lib' |
---|
338 | includedir='${prefix}/include' |
---|
339 | oldincludedir='/usr/include' |
---|
340 | infodir='${prefix}/info' |
---|
341 | mandir='${prefix}/man' |
---|
342 | |
---|
343 | # Identity of this package. |
---|
344 | PACKAGE_NAME= |
---|
345 | PACKAGE_TARNAME= |
---|
346 | PACKAGE_VERSION= |
---|
347 | PACKAGE_STRING= |
---|
348 | PACKAGE_BUGREPORT= |
---|
349 | |
---|
350 | ac_prev= |
---|
351 | for ac_option |
---|
352 | do |
---|
353 | # If the previous option needs an argument, assign it. |
---|
354 | if test -n "$ac_prev"; then |
---|
355 | eval "$ac_prev=\$ac_option" |
---|
356 | ac_prev= |
---|
357 | continue |
---|
358 | fi |
---|
359 | |
---|
360 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
361 | |
---|
362 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
363 | |
---|
364 | case $ac_option in |
---|
365 | |
---|
366 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
367 | ac_prev=bindir ;; |
---|
368 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
369 | bindir=$ac_optarg ;; |
---|
370 | |
---|
371 | -build | --build | --buil | --bui | --bu) |
---|
372 | ac_prev=build_alias ;; |
---|
373 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
374 | build_alias=$ac_optarg ;; |
---|
375 | |
---|
376 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
377 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
378 | ac_prev=cache_file ;; |
---|
379 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
380 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
381 | cache_file=$ac_optarg ;; |
---|
382 | |
---|
383 | --config-cache | -C) |
---|
384 | cache_file=config.cache ;; |
---|
385 | |
---|
386 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
387 | ac_prev=datadir ;; |
---|
388 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
389 | | --da=*) |
---|
390 | datadir=$ac_optarg ;; |
---|
391 | |
---|
392 | -disable-* | --disable-*) |
---|
393 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
394 | # Reject names that are not valid shell variable names. |
---|
395 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
396 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
397 | { (exit 1); exit 1; }; } |
---|
398 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
399 | eval "enable_$ac_feature=no" ;; |
---|
400 | |
---|
401 | -enable-* | --enable-*) |
---|
402 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
403 | # Reject names that are not valid shell variable names. |
---|
404 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
405 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
406 | { (exit 1); exit 1; }; } |
---|
407 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
408 | case $ac_option in |
---|
409 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
410 | *) ac_optarg=yes ;; |
---|
411 | esac |
---|
412 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
413 | |
---|
414 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
415 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
416 | | --exec | --exe | --ex) |
---|
417 | ac_prev=exec_prefix ;; |
---|
418 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
419 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
420 | | --exec=* | --exe=* | --ex=*) |
---|
421 | exec_prefix=$ac_optarg ;; |
---|
422 | |
---|
423 | -gas | --gas | --ga | --g) |
---|
424 | # Obsolete; use --with-gas. |
---|
425 | with_gas=yes ;; |
---|
426 | |
---|
427 | -help | --help | --hel | --he | -h) |
---|
428 | ac_init_help=long ;; |
---|
429 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
430 | ac_init_help=recursive ;; |
---|
431 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
432 | ac_init_help=short ;; |
---|
433 | |
---|
434 | -host | --host | --hos | --ho) |
---|
435 | ac_prev=host_alias ;; |
---|
436 | -host=* | --host=* | --hos=* | --ho=*) |
---|
437 | host_alias=$ac_optarg ;; |
---|
438 | |
---|
439 | -includedir | --includedir | --includedi | --included | --include \ |
---|
440 | | --includ | --inclu | --incl | --inc) |
---|
441 | ac_prev=includedir ;; |
---|
442 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
443 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
444 | includedir=$ac_optarg ;; |
---|
445 | |
---|
446 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
447 | ac_prev=infodir ;; |
---|
448 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
449 | infodir=$ac_optarg ;; |
---|
450 | |
---|
451 | -libdir | --libdir | --libdi | --libd) |
---|
452 | ac_prev=libdir ;; |
---|
453 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
454 | libdir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
457 | | --libexe | --libex | --libe) |
---|
458 | ac_prev=libexecdir ;; |
---|
459 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
460 | | --libexe=* | --libex=* | --libe=*) |
---|
461 | libexecdir=$ac_optarg ;; |
---|
462 | |
---|
463 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
464 | | --localstate | --localstat | --localsta | --localst \ |
---|
465 | | --locals | --local | --loca | --loc | --lo) |
---|
466 | ac_prev=localstatedir ;; |
---|
467 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
468 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
469 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
470 | localstatedir=$ac_optarg ;; |
---|
471 | |
---|
472 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
473 | ac_prev=mandir ;; |
---|
474 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
475 | mandir=$ac_optarg ;; |
---|
476 | |
---|
477 | -nfp | --nfp | --nf) |
---|
478 | # Obsolete; use --without-fp. |
---|
479 | with_fp=no ;; |
---|
480 | |
---|
481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
482 | | --no-cr | --no-c) |
---|
483 | no_create=yes ;; |
---|
484 | |
---|
485 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
486 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
487 | no_recursion=yes ;; |
---|
488 | |
---|
489 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
490 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
491 | | --oldin | --oldi | --old | --ol | --o) |
---|
492 | ac_prev=oldincludedir ;; |
---|
493 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
494 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
495 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
496 | oldincludedir=$ac_optarg ;; |
---|
497 | |
---|
498 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
499 | ac_prev=prefix ;; |
---|
500 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
501 | prefix=$ac_optarg ;; |
---|
502 | |
---|
503 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
504 | | --program-pre | --program-pr | --program-p) |
---|
505 | ac_prev=program_prefix ;; |
---|
506 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
507 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
508 | program_prefix=$ac_optarg ;; |
---|
509 | |
---|
510 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
511 | | --program-suf | --program-su | --program-s) |
---|
512 | ac_prev=program_suffix ;; |
---|
513 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
514 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
515 | program_suffix=$ac_optarg ;; |
---|
516 | |
---|
517 | -program-transform-name | --program-transform-name \ |
---|
518 | | --program-transform-nam | --program-transform-na \ |
---|
519 | | --program-transform-n | --program-transform- \ |
---|
520 | | --program-transform | --program-transfor \ |
---|
521 | | --program-transfo | --program-transf \ |
---|
522 | | --program-trans | --program-tran \ |
---|
523 | | --progr-tra | --program-tr | --program-t) |
---|
524 | ac_prev=program_transform_name ;; |
---|
525 | -program-transform-name=* | --program-transform-name=* \ |
---|
526 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
527 | | --program-transform-n=* | --program-transform-=* \ |
---|
528 | | --program-transform=* | --program-transfor=* \ |
---|
529 | | --program-transfo=* | --program-transf=* \ |
---|
530 | | --program-trans=* | --program-tran=* \ |
---|
531 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
532 | program_transform_name=$ac_optarg ;; |
---|
533 | |
---|
534 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
535 | | -silent | --silent | --silen | --sile | --sil) |
---|
536 | silent=yes ;; |
---|
537 | |
---|
538 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
539 | ac_prev=sbindir ;; |
---|
540 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
541 | | --sbi=* | --sb=*) |
---|
542 | sbindir=$ac_optarg ;; |
---|
543 | |
---|
544 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
545 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
546 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
547 | | --sha | --sh) |
---|
548 | ac_prev=sharedstatedir ;; |
---|
549 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
550 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
551 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
552 | | --sha=* | --sh=*) |
---|
553 | sharedstatedir=$ac_optarg ;; |
---|
554 | |
---|
555 | -site | --site | --sit) |
---|
556 | ac_prev=site ;; |
---|
557 | -site=* | --site=* | --sit=*) |
---|
558 | site=$ac_optarg ;; |
---|
559 | |
---|
560 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
561 | ac_prev=srcdir ;; |
---|
562 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
563 | srcdir=$ac_optarg ;; |
---|
564 | |
---|
565 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
566 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
567 | ac_prev=sysconfdir ;; |
---|
568 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
569 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
570 | sysconfdir=$ac_optarg ;; |
---|
571 | |
---|
572 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
573 | ac_prev=target_alias ;; |
---|
574 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
575 | target_alias=$ac_optarg ;; |
---|
576 | |
---|
577 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
578 | verbose=yes ;; |
---|
579 | |
---|
580 | -version | --version | --versio | --versi | --vers | -V) |
---|
581 | ac_init_version=: ;; |
---|
582 | |
---|
583 | -with-* | --with-*) |
---|
584 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
585 | # Reject names that are not valid shell variable names. |
---|
586 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
587 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
588 | { (exit 1); exit 1; }; } |
---|
589 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
590 | case $ac_option in |
---|
591 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
592 | *) ac_optarg=yes ;; |
---|
593 | esac |
---|
594 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
595 | |
---|
596 | -without-* | --without-*) |
---|
597 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
598 | # Reject names that are not valid shell variable names. |
---|
599 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
600 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
601 | { (exit 1); exit 1; }; } |
---|
602 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
603 | eval "with_$ac_package=no" ;; |
---|
604 | |
---|
605 | --x) |
---|
606 | # Obsolete; use --with-x. |
---|
607 | with_x=yes ;; |
---|
608 | |
---|
609 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
610 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
611 | ac_prev=x_includes ;; |
---|
612 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
613 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
614 | x_includes=$ac_optarg ;; |
---|
615 | |
---|
616 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
617 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
618 | ac_prev=x_libraries ;; |
---|
619 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
620 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
621 | x_libraries=$ac_optarg ;; |
---|
622 | |
---|
623 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
624 | Try \`$0 --help' for more information." >&2 |
---|
625 | { (exit 1); exit 1; }; } |
---|
626 | ;; |
---|
627 | |
---|
628 | *=*) |
---|
629 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
630 | # Reject names that are not valid shell variable names. |
---|
631 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
632 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
633 | { (exit 1); exit 1; }; } |
---|
634 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
635 | eval "$ac_envvar='$ac_optarg'" |
---|
636 | export $ac_envvar ;; |
---|
637 | |
---|
638 | *) |
---|
639 | # FIXME: should be removed in autoconf 3.0. |
---|
640 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
641 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
642 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
643 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
644 | ;; |
---|
645 | |
---|
646 | esac |
---|
647 | done |
---|
648 | |
---|
649 | if test -n "$ac_prev"; then |
---|
650 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
651 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
652 | { (exit 1); exit 1; }; } |
---|
653 | fi |
---|
654 | |
---|
655 | # Be sure to have absolute paths. |
---|
656 | for ac_var in exec_prefix prefix |
---|
657 | do |
---|
658 | eval ac_val=$`echo $ac_var` |
---|
659 | case $ac_val in |
---|
660 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
661 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
---|
662 | { (exit 1); exit 1; }; };; |
---|
663 | esac |
---|
664 | done |
---|
665 | |
---|
666 | # Be sure to have absolute paths. |
---|
667 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
668 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
669 | do |
---|
670 | eval ac_val=$`echo $ac_var` |
---|
671 | case $ac_val in |
---|
672 | [\\/$]* | ?:[\\/]* ) ;; |
---|
673 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
---|
674 | { (exit 1); exit 1; }; };; |
---|
675 | esac |
---|
676 | done |
---|
677 | |
---|
678 | # There might be people who depend on the old broken behavior: `$host' |
---|
679 | # used to hold the argument of --host etc. |
---|
680 | build=$build_alias |
---|
681 | host=$host_alias |
---|
682 | target=$target_alias |
---|
683 | |
---|
684 | # FIXME: should be removed in autoconf 3.0. |
---|
685 | if test "x$host_alias" != x; then |
---|
686 | if test "x$build_alias" = x; then |
---|
687 | cross_compiling=maybe |
---|
688 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
689 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
690 | elif test "x$build_alias" != "x$host_alias"; then |
---|
691 | cross_compiling=yes |
---|
692 | fi |
---|
693 | fi |
---|
694 | |
---|
695 | ac_tool_prefix= |
---|
696 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
697 | |
---|
698 | test "$silent" = yes && exec 6>/dev/null |
---|
699 | |
---|
700 | # Find the source files, if location was not specified. |
---|
701 | if test -z "$srcdir"; then |
---|
702 | ac_srcdir_defaulted=yes |
---|
703 | # Try the directory containing this script, then its parent. |
---|
704 | ac_prog=$0 |
---|
705 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
---|
706 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
707 | srcdir=$ac_confdir |
---|
708 | if test ! -r $srcdir/$ac_unique_file; then |
---|
709 | srcdir=.. |
---|
710 | fi |
---|
711 | else |
---|
712 | ac_srcdir_defaulted=no |
---|
713 | fi |
---|
714 | if test ! -r $srcdir/$ac_unique_file; then |
---|
715 | if test "$ac_srcdir_defaulted" = yes; then |
---|
716 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
717 | { (exit 1); exit 1; }; } |
---|
718 | else |
---|
719 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
720 | { (exit 1); exit 1; }; } |
---|
721 | fi |
---|
722 | fi |
---|
723 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
724 | ac_env_build_alias_set=${build_alias+set} |
---|
725 | ac_env_build_alias_value=$build_alias |
---|
726 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
727 | ac_cv_env_build_alias_value=$build_alias |
---|
728 | ac_env_host_alias_set=${host_alias+set} |
---|
729 | ac_env_host_alias_value=$host_alias |
---|
730 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
731 | ac_cv_env_host_alias_value=$host_alias |
---|
732 | ac_env_target_alias_set=${target_alias+set} |
---|
733 | ac_env_target_alias_value=$target_alias |
---|
734 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
735 | ac_cv_env_target_alias_value=$target_alias |
---|
736 | ac_env_CC_set=${CC+set} |
---|
737 | ac_env_CC_value=$CC |
---|
738 | ac_cv_env_CC_set=${CC+set} |
---|
739 | ac_cv_env_CC_value=$CC |
---|
740 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
741 | ac_env_CFLAGS_value=$CFLAGS |
---|
742 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
743 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
744 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
745 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
746 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
747 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
748 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
749 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
750 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
751 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
752 | ac_env_CPP_set=${CPP+set} |
---|
753 | ac_env_CPP_value=$CPP |
---|
754 | ac_cv_env_CPP_set=${CPP+set} |
---|
755 | ac_cv_env_CPP_value=$CPP |
---|
756 | |
---|
757 | # |
---|
758 | # Report the --help message. |
---|
759 | # |
---|
760 | if test "$ac_init_help" = "long"; then |
---|
761 | # Omit some internal or obsolete options to make the list less imposing. |
---|
762 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
763 | cat <<_ACEOF |
---|
764 | \`configure' configures this package to adapt to many kinds of systems. |
---|
765 | |
---|
766 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
767 | |
---|
768 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
769 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
770 | |
---|
771 | Defaults for the options are specified in brackets. |
---|
772 | |
---|
773 | Configuration: |
---|
774 | -h, --help display this help and exit |
---|
775 | --help=short display options specific to this package |
---|
776 | --help=recursive display the short help of all the included packages |
---|
777 | -V, --version display version information and exit |
---|
778 | -q, --quiet, --silent do not print \`checking...' messages |
---|
779 | --cache-file=FILE cache test results in FILE [disabled] |
---|
780 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
781 | -n, --no-create do not create output files |
---|
782 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
783 | |
---|
784 | _ACEOF |
---|
785 | |
---|
786 | cat <<_ACEOF |
---|
787 | Installation directories: |
---|
788 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
789 | [$ac_default_prefix] |
---|
790 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
791 | [PREFIX] |
---|
792 | |
---|
793 | By default, \`make install' will install all the files in |
---|
794 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
795 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
796 | for instance \`--prefix=\$HOME'. |
---|
797 | |
---|
798 | For better control, use the options below. |
---|
799 | |
---|
800 | Fine tuning of the installation directories: |
---|
801 | --bindir=DIR user executables [EPREFIX/bin] |
---|
802 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
803 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
804 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
805 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
806 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
807 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
808 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
809 | --includedir=DIR C header files [PREFIX/include] |
---|
810 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
811 | --infodir=DIR info documentation [PREFIX/info] |
---|
812 | --mandir=DIR man documentation [PREFIX/man] |
---|
813 | _ACEOF |
---|
814 | |
---|
815 | cat <<\_ACEOF |
---|
816 | |
---|
817 | Program names: |
---|
818 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
819 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
820 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
821 | |
---|
822 | System types: |
---|
823 | --build=BUILD configure for building on BUILD [guessed] |
---|
824 | --host=HOST build programs to run on HOST [BUILD] |
---|
825 | _ACEOF |
---|
826 | fi |
---|
827 | |
---|
828 | if test -n "$ac_init_help"; then |
---|
829 | |
---|
830 | cat <<\_ACEOF |
---|
831 | |
---|
832 | Optional Features: |
---|
833 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
834 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
835 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
836 | (and sometimes confusing) to the casual installer |
---|
837 | --enable-static=PKGS build static libraries default=no |
---|
838 | --enable-shared=PKGS build shared libraries default=yes |
---|
839 | --enable-fast-install=PKGS optimize for fast installation default=yes |
---|
840 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
841 | |
---|
842 | Optional Packages: |
---|
843 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
844 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
845 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
---|
846 | --with-pic try to use only PIC/non-PIC objects default=use both |
---|
847 | |
---|
848 | Some influential environment variables: |
---|
849 | CC C compiler command |
---|
850 | CFLAGS C compiler flags |
---|
851 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
852 | nonstandard directory <lib dir> |
---|
853 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
854 | headers in a nonstandard directory <include dir> |
---|
855 | CPP C preprocessor |
---|
856 | |
---|
857 | Use these variables to override the choices made by `configure' or to help |
---|
858 | it to find libraries and programs with nonstandard names/locations. |
---|
859 | |
---|
860 | _ACEOF |
---|
861 | fi |
---|
862 | |
---|
863 | if test "$ac_init_help" = "recursive"; then |
---|
864 | # If there are subdirs, report their specific --help. |
---|
865 | ac_popdir=`pwd` |
---|
866 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
867 | cd $ac_dir |
---|
868 | if test "$ac_dir" != .; then |
---|
869 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` |
---|
870 | # A "../" for each directory in $ac_dir_suffix. |
---|
871 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
---|
872 | else |
---|
873 | ac_dir_suffix= ac_top_builddir= |
---|
874 | fi |
---|
875 | |
---|
876 | case $srcdir in |
---|
877 | .) # No --srcdir option. We are building in place. |
---|
878 | ac_srcdir=. |
---|
879 | if test -z "$ac_top_builddir"; then |
---|
880 | ac_top_srcdir=. |
---|
881 | else |
---|
882 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
883 | fi ;; |
---|
884 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
885 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
886 | ac_top_srcdir=$srcdir ;; |
---|
887 | *) # Relative path. |
---|
888 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
889 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
890 | esac |
---|
891 | |
---|
892 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
893 | if test -f $ac_srcdir/configure.gnu; then |
---|
894 | echo |
---|
895 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
896 | elif test -f $ac_srcdir/configure; then |
---|
897 | echo |
---|
898 | $SHELL $ac_srcdir/configure --help=recursive |
---|
899 | elif test -f $ac_srcdir/configure.ac || |
---|
900 | test -f $ac_srcdir/configure.in; then |
---|
901 | echo |
---|
902 | $ac_configure --help |
---|
903 | else |
---|
904 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
905 | fi |
---|
906 | cd $ac_popdir |
---|
907 | done |
---|
908 | fi |
---|
909 | |
---|
910 | test -n "$ac_init_help" && exit 0 |
---|
911 | if $ac_init_version; then |
---|
912 | cat <<\_ACEOF |
---|
913 | |
---|
914 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
915 | Free Software Foundation, Inc. |
---|
916 | This configure script is free software; the Free Software Foundation |
---|
917 | gives unlimited permission to copy, distribute and modify it. |
---|
918 | _ACEOF |
---|
919 | exit 0 |
---|
920 | fi |
---|
921 | exec 5>config.log |
---|
922 | cat >&5 <<_ACEOF |
---|
923 | This file contains any messages produced by compilers while |
---|
924 | running configure, to aid debugging if configure makes a mistake. |
---|
925 | |
---|
926 | It was created by $as_me, which was |
---|
927 | generated by GNU Autoconf 2.52d. Invocation command line was |
---|
928 | |
---|
929 | $ $0 $@ |
---|
930 | |
---|
931 | _ACEOF |
---|
932 | { |
---|
933 | cat <<_ASUNAME |
---|
934 | ## --------- ## |
---|
935 | ## Platform. ## |
---|
936 | ## --------- ## |
---|
937 | |
---|
938 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
939 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
940 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
941 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
942 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
943 | |
---|
944 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
945 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
946 | |
---|
947 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
948 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
949 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
950 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
951 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
952 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
953 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
954 | |
---|
955 | PATH = $PATH |
---|
956 | |
---|
957 | _ASUNAME |
---|
958 | } >&5 |
---|
959 | |
---|
960 | cat >&5 <<_ACEOF |
---|
961 | ## ----------- ## |
---|
962 | ## Core tests. ## |
---|
963 | ## ----------- ## |
---|
964 | |
---|
965 | _ACEOF |
---|
966 | |
---|
967 | # Keep a trace of the command line. |
---|
968 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
969 | # Also quote any args containing shell meta-characters. |
---|
970 | ac_configure_args= |
---|
971 | ac_sep= |
---|
972 | for ac_arg |
---|
973 | do |
---|
974 | case $ac_arg in |
---|
975 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
976 | | --no-cr | --no-c) ;; |
---|
977 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
978 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
979 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
980 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
---|
981 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
982 | ac_sep=" " ;; |
---|
983 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
---|
984 | ac_sep=" " ;; |
---|
985 | esac |
---|
986 | # Get rid of the leading space. |
---|
987 | done |
---|
988 | |
---|
989 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
990 | # config.log. We remove comments because anyway the quotes in there |
---|
991 | # would cause problems or look ugly. |
---|
992 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
993 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
994 | trap 'exit_status=$? |
---|
995 | # Save into config.log some information that might help in debugging. |
---|
996 | { |
---|
997 | echo |
---|
998 | cat <<\_ASBOX |
---|
999 | ## ---------------- ## |
---|
1000 | ## Cache variables. ## |
---|
1001 | ## ---------------- ## |
---|
1002 | _ASBOX |
---|
1003 | echo |
---|
1004 | # The following way of writing the cache mishandles newlines in values, |
---|
1005 | { |
---|
1006 | (set) 2>&1 | |
---|
1007 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1008 | *ac_space=\ *) |
---|
1009 | sed -n \ |
---|
1010 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1011 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1012 | ;; |
---|
1013 | *) |
---|
1014 | sed -n \ |
---|
1015 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1016 | ;; |
---|
1017 | esac; |
---|
1018 | } |
---|
1019 | echo |
---|
1020 | if test -s confdefs.h; then |
---|
1021 | cat <<\_ASBOX |
---|
1022 | ## ----------- ## |
---|
1023 | ## confdefs.h. ## |
---|
1024 | ## ----------- ## |
---|
1025 | _ASBOX |
---|
1026 | echo |
---|
1027 | sed "/^$/d" confdefs.h |
---|
1028 | echo |
---|
1029 | fi |
---|
1030 | test "$ac_signal" != 0 && |
---|
1031 | echo "$as_me: caught signal $ac_signal" |
---|
1032 | echo "$as_me: exit $exit_status" |
---|
1033 | } >&5 |
---|
1034 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
---|
1035 | exit $exit_status |
---|
1036 | ' 0 |
---|
1037 | for ac_signal in 1 2 13 15; do |
---|
1038 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1039 | done |
---|
1040 | ac_signal=0 |
---|
1041 | |
---|
1042 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1043 | rm -rf conftest* confdefs.h |
---|
1044 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1045 | echo >confdefs.h |
---|
1046 | |
---|
1047 | # Let the site file select an alternate cache file if it wants to. |
---|
1048 | # Prefer explicitly selected file to automatically selected ones. |
---|
1049 | if test -z "$CONFIG_SITE"; then |
---|
1050 | if test "x$prefix" != xNONE; then |
---|
1051 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1052 | else |
---|
1053 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1054 | fi |
---|
1055 | fi |
---|
1056 | for ac_site_file in $CONFIG_SITE; do |
---|
1057 | if test -r "$ac_site_file"; then |
---|
1058 | { echo "$as_me:1058: loading site script $ac_site_file" >&5 |
---|
1059 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1060 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1061 | . "$ac_site_file" |
---|
1062 | fi |
---|
1063 | done |
---|
1064 | |
---|
1065 | if test -r "$cache_file"; then |
---|
1066 | # Some versions of bash will fail to source /dev/null (special |
---|
1067 | # files actually), so we avoid doing that. |
---|
1068 | if test -f "$cache_file"; then |
---|
1069 | { echo "$as_me:1069: loading cache $cache_file" >&5 |
---|
1070 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1071 | case $cache_file in |
---|
1072 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1073 | *) . ./$cache_file;; |
---|
1074 | esac |
---|
1075 | fi |
---|
1076 | else |
---|
1077 | { echo "$as_me:1077: creating cache $cache_file" >&5 |
---|
1078 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1079 | >$cache_file |
---|
1080 | fi |
---|
1081 | |
---|
1082 | # Check that the precious variables saved in the cache have kept the same |
---|
1083 | # value. |
---|
1084 | ac_cache_corrupted=false |
---|
1085 | for ac_var in `(set) 2>&1 | |
---|
1086 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1087 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1088 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1089 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1090 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1091 | case $ac_old_set,$ac_new_set in |
---|
1092 | set,) |
---|
1093 | { echo "$as_me:1093: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1094 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1095 | ac_cache_corrupted=: ;; |
---|
1096 | ,set) |
---|
1097 | { echo "$as_me:1097: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1098 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1099 | ac_cache_corrupted=: ;; |
---|
1100 | ,);; |
---|
1101 | *) |
---|
1102 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1103 | { echo "$as_me:1103: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1104 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1105 | { echo "$as_me:1105: former value: $ac_old_val" >&5 |
---|
1106 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1107 | { echo "$as_me:1107: current value: $ac_new_val" >&5 |
---|
1108 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1109 | ac_cache_corrupted=: |
---|
1110 | fi;; |
---|
1111 | esac |
---|
1112 | # Pass precious variables to config.status. It doesn't matter if |
---|
1113 | # we pass some twice (in addition to the command line arguments). |
---|
1114 | if test "$ac_new_set" = set; then |
---|
1115 | case $ac_new_val in |
---|
1116 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1117 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
---|
1118 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1119 | ;; |
---|
1120 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
---|
1121 | ;; |
---|
1122 | esac |
---|
1123 | fi |
---|
1124 | done |
---|
1125 | if $ac_cache_corrupted; then |
---|
1126 | { echo "$as_me:1126: error: changes in the environment can compromise the build" >&5 |
---|
1127 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1128 | { { echo "$as_me:1128: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1129 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1130 | { (exit 1); exit 1; }; } |
---|
1131 | fi |
---|
1132 | |
---|
1133 | ac_ext=c |
---|
1134 | ac_cpp='$CPP $CPPFLAGS' |
---|
1135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1138 | |
---|
1139 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
1140 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
1141 | ' ECHO_T=' ' ;; |
---|
1142 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
1143 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
1144 | esac |
---|
1145 | echo "#! $SHELL" >conftest.sh |
---|
1146 | echo "exit 0" >>conftest.sh |
---|
1147 | chmod +x conftest.sh |
---|
1148 | if { (echo "$as_me:1148: PATH=\".;.\"; conftest.sh") >&5 |
---|
1149 | (PATH=".;."; conftest.sh) 2>&5 |
---|
1150 | ac_status=$? |
---|
1151 | echo "$as_me:1151: \$? = $ac_status" >&5 |
---|
1152 | (exit $ac_status); }; then |
---|
1153 | ac_path_separator=';' |
---|
1154 | else |
---|
1155 | ac_path_separator=: |
---|
1156 | fi |
---|
1157 | PATH_SEPARATOR="$ac_path_separator" |
---|
1158 | rm -f conftest.sh |
---|
1159 | |
---|
1160 | # Save this value here, since automake will set cflags later |
---|
1161 | cflags_set=${CFLAGS+set} |
---|
1162 | |
---|
1163 | ac_aux_dir= |
---|
1164 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1165 | if test -f $ac_dir/install-sh; then |
---|
1166 | ac_aux_dir=$ac_dir |
---|
1167 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1168 | break |
---|
1169 | elif test -f $ac_dir/install.sh; then |
---|
1170 | ac_aux_dir=$ac_dir |
---|
1171 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1172 | break |
---|
1173 | elif test -f $ac_dir/shtool; then |
---|
1174 | ac_aux_dir=$ac_dir |
---|
1175 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1176 | break |
---|
1177 | fi |
---|
1178 | done |
---|
1179 | if test -z "$ac_aux_dir"; then |
---|
1180 | { { echo "$as_me:1180: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1181 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1182 | { (exit 1); exit 1; }; } |
---|
1183 | fi |
---|
1184 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1185 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1186 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1187 | |
---|
1188 | # Find a good install program. We prefer a C program (faster), |
---|
1189 | # so one script is as good as another. But avoid the broken or |
---|
1190 | # incompatible versions: |
---|
1191 | # SysV /etc/install, /usr/sbin/install |
---|
1192 | # SunOS /usr/etc/install |
---|
1193 | # IRIX /sbin/install |
---|
1194 | # AIX /bin/install |
---|
1195 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1196 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1197 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1198 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1199 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1200 | echo "$as_me:1200: checking for a BSD compatible install" >&5 |
---|
1201 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
---|
1202 | if test -z "$INSTALL"; then |
---|
1203 | if test "${ac_cv_path_install+set}" = set; then |
---|
1204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1205 | else |
---|
1206 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1207 | for ac_dir in $PATH; do |
---|
1208 | IFS=$ac_save_IFS |
---|
1209 | # Account for people who put trailing slashes in PATH elements. |
---|
1210 | case $ac_dir/ in |
---|
1211 | / | ./ | .// | /cC/* \ |
---|
1212 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
---|
1213 | | /usr/ucb/* ) ;; |
---|
1214 | *) |
---|
1215 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1216 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1217 | # by default. |
---|
1218 | for ac_prog in ginstall scoinst install; do |
---|
1219 | if $as_executable_p "$ac_dir/$ac_prog"; then |
---|
1220 | if test $ac_prog = install && |
---|
1221 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
---|
1222 | # AIX install. It has an incompatible calling convention. |
---|
1223 | : |
---|
1224 | elif test $ac_prog = install && |
---|
1225 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
---|
1226 | # program-specific install script used by HP pwplus--don't use. |
---|
1227 | : |
---|
1228 | else |
---|
1229 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1230 | break 2 |
---|
1231 | fi |
---|
1232 | fi |
---|
1233 | done |
---|
1234 | ;; |
---|
1235 | esac |
---|
1236 | done |
---|
1237 | |
---|
1238 | fi |
---|
1239 | if test "${ac_cv_path_install+set}" = set; then |
---|
1240 | INSTALL=$ac_cv_path_install |
---|
1241 | else |
---|
1242 | # As a last resort, use the slow shell script. We don't cache a |
---|
1243 | # path for INSTALL within a source directory, because that will |
---|
1244 | # break other packages using the cache if that directory is |
---|
1245 | # removed, or if the path is relative. |
---|
1246 | INSTALL=$ac_install_sh |
---|
1247 | fi |
---|
1248 | fi |
---|
1249 | echo "$as_me:1249: result: $INSTALL" >&5 |
---|
1250 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1251 | |
---|
1252 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1253 | # It thinks the first close brace ends the variable substitution. |
---|
1254 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1255 | |
---|
1256 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1257 | |
---|
1258 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1259 | |
---|
1260 | echo "$as_me:1260: checking whether build environment is sane" >&5 |
---|
1261 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1262 | # Just in case |
---|
1263 | sleep 1 |
---|
1264 | echo timestamp > conftestfile |
---|
1265 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1266 | # arguments. Must try -L first in case configure is actually a |
---|
1267 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1268 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1269 | # directory). |
---|
1270 | if ( |
---|
1271 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
1272 | if test "$*" = "X"; then |
---|
1273 | # -L didn't work. |
---|
1274 | set X `ls -t $srcdir/configure conftestfile` |
---|
1275 | fi |
---|
1276 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
1277 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
1278 | |
---|
1279 | # If neither matched, then we have a broken ls. This can happen |
---|
1280 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1281 | # broken ls alias from the environment. This has actually |
---|
1282 | # happened. Such a system could not be considered "sane". |
---|
1283 | { { echo "$as_me:1283: error: ls -t appears to fail. Make sure there is not a broken |
---|
1284 | alias in your environment" >&5 |
---|
1285 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1286 | alias in your environment" >&2;} |
---|
1287 | { (exit 1); exit 1; }; } |
---|
1288 | fi |
---|
1289 | |
---|
1290 | test "$2" = conftestfile |
---|
1291 | ) |
---|
1292 | then |
---|
1293 | # Ok. |
---|
1294 | : |
---|
1295 | else |
---|
1296 | { { echo "$as_me:1296: error: newly created file is older than distributed files! |
---|
1297 | Check your system clock" >&5 |
---|
1298 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1299 | Check your system clock" >&2;} |
---|
1300 | { (exit 1); exit 1; }; } |
---|
1301 | fi |
---|
1302 | rm -f conftest* |
---|
1303 | echo "$as_me:1303: result: yes" >&5 |
---|
1304 | echo "${ECHO_T}yes" >&6 |
---|
1305 | test "$program_prefix" != NONE && |
---|
1306 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1307 | # Use a double $ so make ignores it. |
---|
1308 | test "$program_suffix" != NONE && |
---|
1309 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1310 | # Double any \ or $. echo might interpret backslashes. |
---|
1311 | # By default was `s,x,x', remove it if useless. |
---|
1312 | cat <<\_ACEOF >conftest.sed |
---|
1313 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1314 | _ACEOF |
---|
1315 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1316 | rm conftest.sed |
---|
1317 | |
---|
1318 | echo "$as_me:1318: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1319 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
---|
1320 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
1321 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1323 | else |
---|
1324 | cat >conftest.make <<\_ACEOF |
---|
1325 | all: |
---|
1326 | @echo 'ac_maketemp="${MAKE}"' |
---|
1327 | _ACEOF |
---|
1328 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1329 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1330 | if test -n "$ac_maketemp"; then |
---|
1331 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1332 | else |
---|
1333 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1334 | fi |
---|
1335 | rm -f conftest.make |
---|
1336 | fi |
---|
1337 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1338 | echo "$as_me:1338: result: yes" >&5 |
---|
1339 | echo "${ECHO_T}yes" >&6 |
---|
1340 | SET_MAKE= |
---|
1341 | else |
---|
1342 | echo "$as_me:1342: result: no" >&5 |
---|
1343 | echo "${ECHO_T}no" >&6 |
---|
1344 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1345 | fi |
---|
1346 | |
---|
1347 | PACKAGE=gtk-engines |
---|
1348 | |
---|
1349 | VERSION=1.9.0 |
---|
1350 | |
---|
1351 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
1352 | { { echo "$as_me:1352: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1353 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1354 | { (exit 1); exit 1; }; } |
---|
1355 | fi |
---|
1356 | |
---|
1357 | cat >>confdefs.h <<_ACEOF |
---|
1358 | #define PACKAGE "$PACKAGE" |
---|
1359 | _ACEOF |
---|
1360 | |
---|
1361 | cat >>confdefs.h <<_ACEOF |
---|
1362 | #define VERSION "$VERSION" |
---|
1363 | _ACEOF |
---|
1364 | |
---|
1365 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
1366 | echo "$as_me:1366: checking for working aclocal" >&5 |
---|
1367 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
---|
1368 | # Run test in a subshell; some versions of sh will print an error if |
---|
1369 | # an executable is not found, even if stderr is redirected. |
---|
1370 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1371 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
1372 | ACLOCAL=aclocal |
---|
1373 | echo "$as_me:1373: result: found" >&5 |
---|
1374 | echo "${ECHO_T}found" >&6 |
---|
1375 | else |
---|
1376 | ACLOCAL="$missing_dir/missing aclocal" |
---|
1377 | echo "$as_me:1377: result: missing" >&5 |
---|
1378 | echo "${ECHO_T}missing" >&6 |
---|
1379 | fi |
---|
1380 | |
---|
1381 | echo "$as_me:1381: checking for working autoconf" >&5 |
---|
1382 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
---|
1383 | # Run test in a subshell; some versions of sh will print an error if |
---|
1384 | # an executable is not found, even if stderr is redirected. |
---|
1385 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1386 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
1387 | AUTOCONF=autoconf |
---|
1388 | echo "$as_me:1388: result: found" >&5 |
---|
1389 | echo "${ECHO_T}found" >&6 |
---|
1390 | else |
---|
1391 | AUTOCONF="$missing_dir/missing autoconf" |
---|
1392 | echo "$as_me:1392: result: missing" >&5 |
---|
1393 | echo "${ECHO_T}missing" >&6 |
---|
1394 | fi |
---|
1395 | |
---|
1396 | echo "$as_me:1396: checking for working automake" >&5 |
---|
1397 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
---|
1398 | # Run test in a subshell; some versions of sh will print an error if |
---|
1399 | # an executable is not found, even if stderr is redirected. |
---|
1400 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1401 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
1402 | AUTOMAKE=automake |
---|
1403 | echo "$as_me:1403: result: found" >&5 |
---|
1404 | echo "${ECHO_T}found" >&6 |
---|
1405 | else |
---|
1406 | AUTOMAKE="$missing_dir/missing automake" |
---|
1407 | echo "$as_me:1407: result: missing" >&5 |
---|
1408 | echo "${ECHO_T}missing" >&6 |
---|
1409 | fi |
---|
1410 | |
---|
1411 | echo "$as_me:1411: checking for working autoheader" >&5 |
---|
1412 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
---|
1413 | # Run test in a subshell; some versions of sh will print an error if |
---|
1414 | # an executable is not found, even if stderr is redirected. |
---|
1415 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1416 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
1417 | AUTOHEADER=autoheader |
---|
1418 | echo "$as_me:1418: result: found" >&5 |
---|
1419 | echo "${ECHO_T}found" >&6 |
---|
1420 | else |
---|
1421 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
1422 | echo "$as_me:1422: result: missing" >&5 |
---|
1423 | echo "${ECHO_T}missing" >&6 |
---|
1424 | fi |
---|
1425 | |
---|
1426 | echo "$as_me:1426: checking for working makeinfo" >&5 |
---|
1427 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
---|
1428 | # Run test in a subshell; some versions of sh will print an error if |
---|
1429 | # an executable is not found, even if stderr is redirected. |
---|
1430 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1431 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
1432 | MAKEINFO=makeinfo |
---|
1433 | echo "$as_me:1433: result: found" >&5 |
---|
1434 | echo "${ECHO_T}found" >&6 |
---|
1435 | else |
---|
1436 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
1437 | echo "$as_me:1437: result: missing" >&5 |
---|
1438 | echo "${ECHO_T}missing" >&6 |
---|
1439 | fi |
---|
1440 | |
---|
1441 | echo "$as_me:1441: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
1442 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
1443 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
1444 | if test "${enable_maintainer_mode+set}" = set; then |
---|
1445 | enableval="$enable_maintainer_mode" |
---|
1446 | USE_MAINTAINER_MODE=$enableval |
---|
1447 | else |
---|
1448 | USE_MAINTAINER_MODE=no |
---|
1449 | fi; |
---|
1450 | echo "$as_me:1450: result: $USE_MAINTAINER_MODE" >&5 |
---|
1451 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
1452 | |
---|
1453 | if test $USE_MAINTAINER_MODE = yes; then |
---|
1454 | MAINTAINER_MODE_TRUE= |
---|
1455 | MAINTAINER_MODE_FALSE='#' |
---|
1456 | else |
---|
1457 | MAINTAINER_MODE_TRUE='#' |
---|
1458 | MAINTAINER_MODE_FALSE= |
---|
1459 | fi |
---|
1460 | MAINT=$MAINTAINER_MODE_TRUE |
---|
1461 | |
---|
1462 | ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
1463 | |
---|
1464 | # Make sure we can run config.sub. |
---|
1465 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1466 | { { echo "$as_me:1466: error: cannot run $ac_config_sub" >&5 |
---|
1467 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1468 | { (exit 1); exit 1; }; } |
---|
1469 | |
---|
1470 | echo "$as_me:1470: checking build system type" >&5 |
---|
1471 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1472 | if test "${ac_cv_build+set}" = set; then |
---|
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1474 | else |
---|
1475 | ac_cv_build_alias=$build_alias |
---|
1476 | test -z "$ac_cv_build_alias" && |
---|
1477 | ac_cv_build_alias=`$ac_config_guess` |
---|
1478 | test -z "$ac_cv_build_alias" && |
---|
1479 | { { echo "$as_me:1479: error: cannot guess build type; you must specify one" >&5 |
---|
1480 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1481 | { (exit 1); exit 1; }; } |
---|
1482 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1483 | { { echo "$as_me:1483: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
---|
1484 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
---|
1485 | { (exit 1); exit 1; }; } |
---|
1486 | |
---|
1487 | fi |
---|
1488 | echo "$as_me:1488: result: $ac_cv_build" >&5 |
---|
1489 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1490 | build=$ac_cv_build |
---|
1491 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1492 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1493 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1494 | |
---|
1495 | echo "$as_me:1495: checking host system type" >&5 |
---|
1496 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1497 | if test "${ac_cv_host+set}" = set; then |
---|
1498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1499 | else |
---|
1500 | ac_cv_host_alias=$host_alias |
---|
1501 | test -z "$ac_cv_host_alias" && |
---|
1502 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1503 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1504 | { { echo "$as_me:1504: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1505 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1506 | { (exit 1); exit 1; }; } |
---|
1507 | |
---|
1508 | fi |
---|
1509 | echo "$as_me:1509: result: $ac_cv_host" >&5 |
---|
1510 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1511 | host=$ac_cv_host |
---|
1512 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1513 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1514 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1515 | |
---|
1516 | ac_ext=c |
---|
1517 | ac_cpp='$CPP $CPPFLAGS' |
---|
1518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1521 | if test -n "$ac_tool_prefix"; then |
---|
1522 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1523 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1524 | echo "$as_me:1524: checking for $ac_word" >&5 |
---|
1525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1526 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1528 | else |
---|
1529 | if test -n "$CC"; then |
---|
1530 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1531 | else |
---|
1532 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1533 | ac_dummy="$PATH" |
---|
1534 | for ac_dir in $ac_dummy; do |
---|
1535 | IFS=$ac_save_IFS |
---|
1536 | test -z "$ac_dir" && ac_dir=. |
---|
1537 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1538 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1539 | echo "$as_me:1539: found $ac_dir/$ac_word" >&5 |
---|
1540 | break |
---|
1541 | done |
---|
1542 | |
---|
1543 | fi |
---|
1544 | fi |
---|
1545 | CC=$ac_cv_prog_CC |
---|
1546 | if test -n "$CC"; then |
---|
1547 | echo "$as_me:1547: result: $CC" >&5 |
---|
1548 | echo "${ECHO_T}$CC" >&6 |
---|
1549 | else |
---|
1550 | echo "$as_me:1550: result: no" >&5 |
---|
1551 | echo "${ECHO_T}no" >&6 |
---|
1552 | fi |
---|
1553 | |
---|
1554 | fi |
---|
1555 | if test -z "$ac_cv_prog_CC"; then |
---|
1556 | ac_ct_CC=$CC |
---|
1557 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1558 | set dummy gcc; ac_word=$2 |
---|
1559 | echo "$as_me:1559: checking for $ac_word" >&5 |
---|
1560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1561 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1563 | else |
---|
1564 | if test -n "$ac_ct_CC"; then |
---|
1565 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1566 | else |
---|
1567 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1568 | ac_dummy="$PATH" |
---|
1569 | for ac_dir in $ac_dummy; do |
---|
1570 | IFS=$ac_save_IFS |
---|
1571 | test -z "$ac_dir" && ac_dir=. |
---|
1572 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1573 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1574 | echo "$as_me:1574: found $ac_dir/$ac_word" >&5 |
---|
1575 | break |
---|
1576 | done |
---|
1577 | |
---|
1578 | fi |
---|
1579 | fi |
---|
1580 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1581 | if test -n "$ac_ct_CC"; then |
---|
1582 | echo "$as_me:1582: result: $ac_ct_CC" >&5 |
---|
1583 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1584 | else |
---|
1585 | echo "$as_me:1585: result: no" >&5 |
---|
1586 | echo "${ECHO_T}no" >&6 |
---|
1587 | fi |
---|
1588 | |
---|
1589 | CC=$ac_ct_CC |
---|
1590 | else |
---|
1591 | CC="$ac_cv_prog_CC" |
---|
1592 | fi |
---|
1593 | |
---|
1594 | if test -z "$CC"; then |
---|
1595 | if test -n "$ac_tool_prefix"; then |
---|
1596 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1597 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1598 | echo "$as_me:1598: checking for $ac_word" >&5 |
---|
1599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1600 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1602 | else |
---|
1603 | if test -n "$CC"; then |
---|
1604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1605 | else |
---|
1606 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1607 | ac_dummy="$PATH" |
---|
1608 | for ac_dir in $ac_dummy; do |
---|
1609 | IFS=$ac_save_IFS |
---|
1610 | test -z "$ac_dir" && ac_dir=. |
---|
1611 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1612 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1613 | echo "$as_me:1613: found $ac_dir/$ac_word" >&5 |
---|
1614 | break |
---|
1615 | done |
---|
1616 | |
---|
1617 | fi |
---|
1618 | fi |
---|
1619 | CC=$ac_cv_prog_CC |
---|
1620 | if test -n "$CC"; then |
---|
1621 | echo "$as_me:1621: result: $CC" >&5 |
---|
1622 | echo "${ECHO_T}$CC" >&6 |
---|
1623 | else |
---|
1624 | echo "$as_me:1624: result: no" >&5 |
---|
1625 | echo "${ECHO_T}no" >&6 |
---|
1626 | fi |
---|
1627 | |
---|
1628 | fi |
---|
1629 | if test -z "$ac_cv_prog_CC"; then |
---|
1630 | ac_ct_CC=$CC |
---|
1631 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1632 | set dummy cc; ac_word=$2 |
---|
1633 | echo "$as_me:1633: checking for $ac_word" >&5 |
---|
1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1637 | else |
---|
1638 | if test -n "$ac_ct_CC"; then |
---|
1639 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1640 | else |
---|
1641 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1642 | ac_dummy="$PATH" |
---|
1643 | for ac_dir in $ac_dummy; do |
---|
1644 | IFS=$ac_save_IFS |
---|
1645 | test -z "$ac_dir" && ac_dir=. |
---|
1646 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1647 | ac_cv_prog_ac_ct_CC="cc" |
---|
1648 | echo "$as_me:1648: found $ac_dir/$ac_word" >&5 |
---|
1649 | break |
---|
1650 | done |
---|
1651 | |
---|
1652 | fi |
---|
1653 | fi |
---|
1654 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1655 | if test -n "$ac_ct_CC"; then |
---|
1656 | echo "$as_me:1656: result: $ac_ct_CC" >&5 |
---|
1657 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1658 | else |
---|
1659 | echo "$as_me:1659: result: no" >&5 |
---|
1660 | echo "${ECHO_T}no" >&6 |
---|
1661 | fi |
---|
1662 | |
---|
1663 | CC=$ac_ct_CC |
---|
1664 | else |
---|
1665 | CC="$ac_cv_prog_CC" |
---|
1666 | fi |
---|
1667 | |
---|
1668 | fi |
---|
1669 | if test -z "$CC"; then |
---|
1670 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1671 | set dummy cc; ac_word=$2 |
---|
1672 | echo "$as_me:1672: checking for $ac_word" >&5 |
---|
1673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1674 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1676 | else |
---|
1677 | if test -n "$CC"; then |
---|
1678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1679 | else |
---|
1680 | ac_prog_rejected=no |
---|
1681 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1682 | ac_dummy="$PATH" |
---|
1683 | for ac_dir in $ac_dummy; do |
---|
1684 | IFS=$ac_save_IFS |
---|
1685 | test -z "$ac_dir" && ac_dir=. |
---|
1686 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1687 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1688 | ac_prog_rejected=yes |
---|
1689 | continue |
---|
1690 | fi |
---|
1691 | ac_cv_prog_CC="cc" |
---|
1692 | echo "$as_me:1692: found $ac_dir/$ac_word" >&5 |
---|
1693 | break |
---|
1694 | done |
---|
1695 | |
---|
1696 | if test $ac_prog_rejected = yes; then |
---|
1697 | # We found a bogon in the path, so make sure we never use it. |
---|
1698 | set dummy $ac_cv_prog_CC |
---|
1699 | shift |
---|
1700 | if test $# != 0; then |
---|
1701 | # We chose a different compiler from the bogus one. |
---|
1702 | # However, it has the same basename, so the bogon will be chosen |
---|
1703 | # first if we set CC to just the basename; use the full file name. |
---|
1704 | shift |
---|
1705 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
---|
1706 | shift |
---|
1707 | ac_cv_prog_CC="$@" |
---|
1708 | fi |
---|
1709 | fi |
---|
1710 | fi |
---|
1711 | fi |
---|
1712 | CC=$ac_cv_prog_CC |
---|
1713 | if test -n "$CC"; then |
---|
1714 | echo "$as_me:1714: result: $CC" >&5 |
---|
1715 | echo "${ECHO_T}$CC" >&6 |
---|
1716 | else |
---|
1717 | echo "$as_me:1717: result: no" >&5 |
---|
1718 | echo "${ECHO_T}no" >&6 |
---|
1719 | fi |
---|
1720 | |
---|
1721 | fi |
---|
1722 | if test -z "$CC"; then |
---|
1723 | if test -n "$ac_tool_prefix"; then |
---|
1724 | for ac_prog in cl |
---|
1725 | do |
---|
1726 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1728 | echo "$as_me:1728: checking for $ac_word" >&5 |
---|
1729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1730 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1732 | else |
---|
1733 | if test -n "$CC"; then |
---|
1734 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1735 | else |
---|
1736 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1737 | ac_dummy="$PATH" |
---|
1738 | for ac_dir in $ac_dummy; do |
---|
1739 | IFS=$ac_save_IFS |
---|
1740 | test -z "$ac_dir" && ac_dir=. |
---|
1741 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1742 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1743 | echo "$as_me:1743: found $ac_dir/$ac_word" >&5 |
---|
1744 | break |
---|
1745 | done |
---|
1746 | |
---|
1747 | fi |
---|
1748 | fi |
---|
1749 | CC=$ac_cv_prog_CC |
---|
1750 | if test -n "$CC"; then |
---|
1751 | echo "$as_me:1751: result: $CC" >&5 |
---|
1752 | echo "${ECHO_T}$CC" >&6 |
---|
1753 | else |
---|
1754 | echo "$as_me:1754: result: no" >&5 |
---|
1755 | echo "${ECHO_T}no" >&6 |
---|
1756 | fi |
---|
1757 | |
---|
1758 | test -n "$CC" && break |
---|
1759 | done |
---|
1760 | fi |
---|
1761 | if test -z "$CC"; then |
---|
1762 | ac_ct_CC=$CC |
---|
1763 | for ac_prog in cl |
---|
1764 | do |
---|
1765 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1766 | set dummy $ac_prog; ac_word=$2 |
---|
1767 | echo "$as_me:1767: checking for $ac_word" >&5 |
---|
1768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1769 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1771 | else |
---|
1772 | if test -n "$ac_ct_CC"; then |
---|
1773 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1774 | else |
---|
1775 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
1776 | ac_dummy="$PATH" |
---|
1777 | for ac_dir in $ac_dummy; do |
---|
1778 | IFS=$ac_save_IFS |
---|
1779 | test -z "$ac_dir" && ac_dir=. |
---|
1780 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
1781 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1782 | echo "$as_me:1782: found $ac_dir/$ac_word" >&5 |
---|
1783 | break |
---|
1784 | done |
---|
1785 | |
---|
1786 | fi |
---|
1787 | fi |
---|
1788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1789 | if test -n "$ac_ct_CC"; then |
---|
1790 | echo "$as_me:1790: result: $ac_ct_CC" >&5 |
---|
1791 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1792 | else |
---|
1793 | echo "$as_me:1793: result: no" >&5 |
---|
1794 | echo "${ECHO_T}no" >&6 |
---|
1795 | fi |
---|
1796 | |
---|
1797 | test -n "$ac_ct_CC" && break |
---|
1798 | done |
---|
1799 | |
---|
1800 | CC=$ac_ct_CC |
---|
1801 | fi |
---|
1802 | |
---|
1803 | fi |
---|
1804 | |
---|
1805 | test -z "$CC" && { { echo "$as_me:1805: error: no acceptable cc found in \$PATH" >&5 |
---|
1806 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
---|
1807 | { (exit 1); exit 1; }; } |
---|
1808 | |
---|
1809 | # Provide some information about the compiler. |
---|
1810 | echo "$as_me:1810:" \ |
---|
1811 | "checking for C compiler version" >&5 |
---|
1812 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1813 | { (eval echo "$as_me:1813: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1814 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1815 | ac_status=$? |
---|
1816 | echo "$as_me:1816: \$? = $ac_status" >&5 |
---|
1817 | (exit $ac_status); } |
---|
1818 | { (eval echo "$as_me:1818: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1819 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1820 | ac_status=$? |
---|
1821 | echo "$as_me:1821: \$? = $ac_status" >&5 |
---|
1822 | (exit $ac_status); } |
---|
1823 | { (eval echo "$as_me:1823: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1824 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1825 | ac_status=$? |
---|
1826 | echo "$as_me:1826: \$? = $ac_status" >&5 |
---|
1827 | (exit $ac_status); } |
---|
1828 | |
---|
1829 | cat >conftest.$ac_ext <<_ACEOF |
---|
1830 | #line 1830 "configure" |
---|
1831 | #include "confdefs.h" |
---|
1832 | |
---|
1833 | #ifdef F77_DUMMY_MAIN |
---|
1834 | # ifdef __cplusplus |
---|
1835 | extern "C" |
---|
1836 | # endif |
---|
1837 | int F77_DUMMY_MAIN() { return 1; } |
---|
1838 | #endif |
---|
1839 | int |
---|
1840 | main () |
---|
1841 | { |
---|
1842 | |
---|
1843 | ; |
---|
1844 | return 0; |
---|
1845 | } |
---|
1846 | _ACEOF |
---|
1847 | ac_clean_files_save=$ac_clean_files |
---|
1848 | ac_clean_files="$ac_clean_files a.out a.exe" |
---|
1849 | # Try to create an executable without -o first, disregard a.out. |
---|
1850 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1851 | # of exeext. |
---|
1852 | echo "$as_me:1852: checking for C compiler default output" >&5 |
---|
1853 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
1854 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1855 | if { (eval echo "$as_me:1855: \"$ac_link_default\"") >&5 |
---|
1856 | (eval $ac_link_default) 2>&5 |
---|
1857 | ac_status=$? |
---|
1858 | echo "$as_me:1858: \$? = $ac_status" >&5 |
---|
1859 | (exit $ac_status); }; then |
---|
1860 | # Find the output, starting from the most likely. This scheme is |
---|
1861 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1862 | # resort. |
---|
1863 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
---|
1864 | ls a.out conftest 2>/dev/null; |
---|
1865 | ls a.* conftest.* 2>/dev/null`; do |
---|
1866 | case $ac_file in |
---|
1867 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
---|
1868 | a.out ) # We found the default executable, but exeext='' is most |
---|
1869 | # certainly right. |
---|
1870 | break;; |
---|
1871 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1872 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
---|
1873 | export ac_cv_exeext |
---|
1874 | break;; |
---|
1875 | * ) break;; |
---|
1876 | esac |
---|
1877 | done |
---|
1878 | else |
---|
1879 | echo "$as_me: failed program was:" >&5 |
---|
1880 | cat conftest.$ac_ext >&5 |
---|
1881 | { { echo "$as_me:1881: error: C compiler cannot create executables" >&5 |
---|
1882 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
---|
1883 | { (exit 77); exit 77; }; } |
---|
1884 | fi |
---|
1885 | |
---|
1886 | ac_exeext=$ac_cv_exeext |
---|
1887 | echo "$as_me:1887: result: $ac_file" >&5 |
---|
1888 | echo "${ECHO_T}$ac_file" >&6 |
---|
1889 | |
---|
1890 | # Check the compiler produces executables we can run. If not, either |
---|
1891 | # the compiler is broken, or we cross compile. |
---|
1892 | echo "$as_me:1892: checking whether the C compiler works" >&5 |
---|
1893 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
1894 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1895 | # If not cross compiling, check that we can run a simple program. |
---|
1896 | if test "$cross_compiling" != yes; then |
---|
1897 | if { ac_try='./$ac_file' |
---|
1898 | { (eval echo "$as_me:1898: \"$ac_try\"") >&5 |
---|
1899 | (eval $ac_try) 2>&5 |
---|
1900 | ac_status=$? |
---|
1901 | echo "$as_me:1901: \$? = $ac_status" >&5 |
---|
1902 | (exit $ac_status); }; }; then |
---|
1903 | cross_compiling=no |
---|
1904 | else |
---|
1905 | if test "$cross_compiling" = maybe; then |
---|
1906 | cross_compiling=yes |
---|
1907 | else |
---|
1908 | { { echo "$as_me:1908: error: cannot run C compiled programs. |
---|
1909 | If you meant to cross compile, use \`--host'." >&5 |
---|
1910 | echo "$as_me: error: cannot run C compiled programs. |
---|
1911 | If you meant to cross compile, use \`--host'." >&2;} |
---|
1912 | { (exit 1); exit 1; }; } |
---|
1913 | fi |
---|
1914 | fi |
---|
1915 | fi |
---|
1916 | echo "$as_me:1916: result: yes" >&5 |
---|
1917 | echo "${ECHO_T}yes" >&6 |
---|
1918 | |
---|
1919 | rm -f a.out a.exe conftest$ac_cv_exeext |
---|
1920 | ac_clean_files=$ac_clean_files_save |
---|
1921 | # Check the compiler produces executables we can run. If not, either |
---|
1922 | # the compiler is broken, or we cross compile. |
---|
1923 | echo "$as_me:1923: checking whether we are cross compiling" >&5 |
---|
1924 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1925 | echo "$as_me:1925: result: $cross_compiling" >&5 |
---|
1926 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1927 | |
---|
1928 | echo "$as_me:1928: checking for executable suffix" >&5 |
---|
1929 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
---|
1930 | if { (eval echo "$as_me:1930: \"$ac_link\"") >&5 |
---|
1931 | (eval $ac_link) 2>&5 |
---|
1932 | ac_status=$? |
---|
1933 | echo "$as_me:1933: \$? = $ac_status" >&5 |
---|
1934 | (exit $ac_status); }; then |
---|
1935 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1936 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1937 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1938 | # `rm'. |
---|
1939 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
---|
1940 | case $ac_file in |
---|
1941 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
---|
1942 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1943 | export ac_cv_exeext |
---|
1944 | break;; |
---|
1945 | * ) break;; |
---|
1946 | esac |
---|
1947 | done |
---|
1948 | else |
---|
1949 | { { echo "$as_me:1949: error: cannot compute EXEEXT: cannot compile and link" >&5 |
---|
1950 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
---|
1951 | { (exit 1); exit 1; }; } |
---|
1952 | fi |
---|
1953 | |
---|
1954 | rm -f conftest$ac_cv_exeext |
---|
1955 | echo "$as_me:1955: result: $ac_cv_exeext" >&5 |
---|
1956 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
1957 | |
---|
1958 | rm -f conftest.$ac_ext |
---|
1959 | EXEEXT=$ac_cv_exeext |
---|
1960 | ac_exeext=$EXEEXT |
---|
1961 | echo "$as_me:1961: checking for object suffix" >&5 |
---|
1962 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
---|
1963 | if test "${ac_cv_objext+set}" = set; then |
---|
1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1965 | else |
---|
1966 | cat >conftest.$ac_ext <<_ACEOF |
---|
1967 | #line 1967 "configure" |
---|
1968 | #include "confdefs.h" |
---|
1969 | |
---|
1970 | #ifdef F77_DUMMY_MAIN |
---|
1971 | # ifdef __cplusplus |
---|
1972 | extern "C" |
---|
1973 | # endif |
---|
1974 | int F77_DUMMY_MAIN() { return 1; } |
---|
1975 | #endif |
---|
1976 | int |
---|
1977 | main () |
---|
1978 | { |
---|
1979 | |
---|
1980 | ; |
---|
1981 | return 0; |
---|
1982 | } |
---|
1983 | _ACEOF |
---|
1984 | rm -f conftest.o conftest.obj |
---|
1985 | if { (eval echo "$as_me:1985: \"$ac_compile\"") >&5 |
---|
1986 | (eval $ac_compile) 2>&5 |
---|
1987 | ac_status=$? |
---|
1988 | echo "$as_me:1988: \$? = $ac_status" >&5 |
---|
1989 | (exit $ac_status); }; then |
---|
1990 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
1991 | case $ac_file in |
---|
1992 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
---|
1993 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
1994 | break;; |
---|
1995 | esac |
---|
1996 | done |
---|
1997 | else |
---|
1998 | echo "$as_me: failed program was:" >&5 |
---|
1999 | cat conftest.$ac_ext >&5 |
---|
2000 | { { echo "$as_me:2000: error: cannot compute OBJEXT: cannot compile" >&5 |
---|
2001 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
---|
2002 | { (exit 1); exit 1; }; } |
---|
2003 | fi |
---|
2004 | |
---|
2005 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2006 | fi |
---|
2007 | echo "$as_me:2007: result: $ac_cv_objext" >&5 |
---|
2008 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2009 | OBJEXT=$ac_cv_objext |
---|
2010 | ac_objext=$OBJEXT |
---|
2011 | echo "$as_me:2011: checking whether we are using the GNU C compiler" >&5 |
---|
2012 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2013 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2015 | else |
---|
2016 | cat >conftest.$ac_ext <<_ACEOF |
---|
2017 | #line 2017 "configure" |
---|
2018 | #include "confdefs.h" |
---|
2019 | |
---|
2020 | #ifdef F77_DUMMY_MAIN |
---|
2021 | # ifdef __cplusplus |
---|
2022 | extern "C" |
---|
2023 | # endif |
---|
2024 | int F77_DUMMY_MAIN() { return 1; } |
---|
2025 | #endif |
---|
2026 | int |
---|
2027 | main () |
---|
2028 | { |
---|
2029 | #ifndef __GNUC__ |
---|
2030 | choke me |
---|
2031 | #endif |
---|
2032 | |
---|
2033 | ; |
---|
2034 | return 0; |
---|
2035 | } |
---|
2036 | _ACEOF |
---|
2037 | rm -f conftest.$ac_objext |
---|
2038 | if { (eval echo "$as_me:2038: \"$ac_compile\"") >&5 |
---|
2039 | (eval $ac_compile) 2>&5 |
---|
2040 | ac_status=$? |
---|
2041 | echo "$as_me:2041: \$? = $ac_status" >&5 |
---|
2042 | (exit $ac_status); } && |
---|
2043 | { ac_try='test -s conftest.$ac_objext' |
---|
2044 | { (eval echo "$as_me:2044: \"$ac_try\"") >&5 |
---|
2045 | (eval $ac_try) 2>&5 |
---|
2046 | ac_status=$? |
---|
2047 | echo "$as_me:2047: \$? = $ac_status" >&5 |
---|
2048 | (exit $ac_status); }; }; then |
---|
2049 | ac_compiler_gnu=yes |
---|
2050 | else |
---|
2051 | echo "$as_me: failed program was:" >&5 |
---|
2052 | cat conftest.$ac_ext >&5 |
---|
2053 | ac_compiler_gnu=no |
---|
2054 | fi |
---|
2055 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2056 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2057 | |
---|
2058 | fi |
---|
2059 | echo "$as_me:2059: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2060 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2061 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2062 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2063 | ac_save_CFLAGS=$CFLAGS |
---|
2064 | CFLAGS="-g" |
---|
2065 | echo "$as_me:2065: checking whether $CC accepts -g" >&5 |
---|
2066 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2067 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2069 | else |
---|
2070 | cat >conftest.$ac_ext <<_ACEOF |
---|
2071 | #line 2071 "configure" |
---|
2072 | #include "confdefs.h" |
---|
2073 | |
---|
2074 | #ifdef F77_DUMMY_MAIN |
---|
2075 | # ifdef __cplusplus |
---|
2076 | extern "C" |
---|
2077 | # endif |
---|
2078 | int F77_DUMMY_MAIN() { return 1; } |
---|
2079 | #endif |
---|
2080 | int |
---|
2081 | main () |
---|
2082 | { |
---|
2083 | |
---|
2084 | ; |
---|
2085 | return 0; |
---|
2086 | } |
---|
2087 | _ACEOF |
---|
2088 | rm -f conftest.$ac_objext |
---|
2089 | if { (eval echo "$as_me:2089: \"$ac_compile\"") >&5 |
---|
2090 | (eval $ac_compile) 2>&5 |
---|
2091 | ac_status=$? |
---|
2092 | echo "$as_me:2092: \$? = $ac_status" >&5 |
---|
2093 | (exit $ac_status); } && |
---|
2094 | { ac_try='test -s conftest.$ac_objext' |
---|
2095 | { (eval echo "$as_me:2095: \"$ac_try\"") >&5 |
---|
2096 | (eval $ac_try) 2>&5 |
---|
2097 | ac_status=$? |
---|
2098 | echo "$as_me:2098: \$? = $ac_status" >&5 |
---|
2099 | (exit $ac_status); }; }; then |
---|
2100 | ac_cv_prog_cc_g=yes |
---|
2101 | else |
---|
2102 | echo "$as_me: failed program was:" >&5 |
---|
2103 | cat conftest.$ac_ext >&5 |
---|
2104 | ac_cv_prog_cc_g=no |
---|
2105 | fi |
---|
2106 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2107 | fi |
---|
2108 | echo "$as_me:2108: result: $ac_cv_prog_cc_g" >&5 |
---|
2109 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2110 | if test "$ac_test_CFLAGS" = set; then |
---|
2111 | CFLAGS=$ac_save_CFLAGS |
---|
2112 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2113 | if test "$GCC" = yes; then |
---|
2114 | CFLAGS="-g -O2" |
---|
2115 | else |
---|
2116 | CFLAGS="-g" |
---|
2117 | fi |
---|
2118 | else |
---|
2119 | if test "$GCC" = yes; then |
---|
2120 | CFLAGS="-O2" |
---|
2121 | else |
---|
2122 | CFLAGS= |
---|
2123 | fi |
---|
2124 | fi |
---|
2125 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2126 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2127 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2128 | # the declaration of exit, since it's the most demanding environment. |
---|
2129 | cat >conftest.$ac_ext <<_ACEOF |
---|
2130 | #ifndef __cplusplus |
---|
2131 | choke me |
---|
2132 | #endif |
---|
2133 | _ACEOF |
---|
2134 | rm -f conftest.$ac_objext |
---|
2135 | if { (eval echo "$as_me:2135: \"$ac_compile\"") >&5 |
---|
2136 | (eval $ac_compile) 2>&5 |
---|
2137 | ac_status=$? |
---|
2138 | echo "$as_me:2138: \$? = $ac_status" >&5 |
---|
2139 | (exit $ac_status); } && |
---|
2140 | { ac_try='test -s conftest.$ac_objext' |
---|
2141 | { (eval echo "$as_me:2141: \"$ac_try\"") >&5 |
---|
2142 | (eval $ac_try) 2>&5 |
---|
2143 | ac_status=$? |
---|
2144 | echo "$as_me:2144: \$? = $ac_status" >&5 |
---|
2145 | (exit $ac_status); }; }; then |
---|
2146 | for ac_declaration in \ |
---|
2147 | ''\ |
---|
2148 | '#include <stdlib.h>' \ |
---|
2149 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2150 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2151 | 'extern "C" void exit (int) throw ();' \ |
---|
2152 | 'extern "C" void exit (int);' \ |
---|
2153 | 'void exit (int);' |
---|
2154 | do |
---|
2155 | cat >conftest.$ac_ext <<_ACEOF |
---|
2156 | #line 2156 "configure" |
---|
2157 | #include "confdefs.h" |
---|
2158 | #include <stdlib.h> |
---|
2159 | $ac_declaration |
---|
2160 | #ifdef F77_DUMMY_MAIN |
---|
2161 | # ifdef __cplusplus |
---|
2162 | extern "C" |
---|
2163 | # endif |
---|
2164 | int F77_DUMMY_MAIN() { return 1; } |
---|
2165 | #endif |
---|
2166 | int |
---|
2167 | main () |
---|
2168 | { |
---|
2169 | exit (42); |
---|
2170 | ; |
---|
2171 | return 0; |
---|
2172 | } |
---|
2173 | _ACEOF |
---|
2174 | rm -f conftest.$ac_objext |
---|
2175 | if { (eval echo "$as_me:2175: \"$ac_compile\"") >&5 |
---|
2176 | (eval $ac_compile) 2>&5 |
---|
2177 | ac_status=$? |
---|
2178 | echo "$as_me:2178: \$? = $ac_status" >&5 |
---|
2179 | (exit $ac_status); } && |
---|
2180 | { ac_try='test -s conftest.$ac_objext' |
---|
2181 | { (eval echo "$as_me:2181: \"$ac_try\"") >&5 |
---|
2182 | (eval $ac_try) 2>&5 |
---|
2183 | ac_status=$? |
---|
2184 | echo "$as_me:2184: \$? = $ac_status" >&5 |
---|
2185 | (exit $ac_status); }; }; then |
---|
2186 | : |
---|
2187 | else |
---|
2188 | echo "$as_me: failed program was:" >&5 |
---|
2189 | cat conftest.$ac_ext >&5 |
---|
2190 | continue |
---|
2191 | fi |
---|
2192 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2193 | cat >conftest.$ac_ext <<_ACEOF |
---|
2194 | #line 2194 "configure" |
---|
2195 | #include "confdefs.h" |
---|
2196 | $ac_declaration |
---|
2197 | #ifdef F77_DUMMY_MAIN |
---|
2198 | # ifdef __cplusplus |
---|
2199 | extern "C" |
---|
2200 | # endif |
---|
2201 | int F77_DUMMY_MAIN() { return 1; } |
---|
2202 | #endif |
---|
2203 | int |
---|
2204 | main () |
---|
2205 | { |
---|
2206 | exit (42); |
---|
2207 | ; |
---|
2208 | return 0; |
---|
2209 | } |
---|
2210 | _ACEOF |
---|
2211 | rm -f conftest.$ac_objext |
---|
2212 | if { (eval echo "$as_me:2212: \"$ac_compile\"") >&5 |
---|
2213 | (eval $ac_compile) 2>&5 |
---|
2214 | ac_status=$? |
---|
2215 | echo "$as_me:2215: \$? = $ac_status" >&5 |
---|
2216 | (exit $ac_status); } && |
---|
2217 | { ac_try='test -s conftest.$ac_objext' |
---|
2218 | { (eval echo "$as_me:2218: \"$ac_try\"") >&5 |
---|
2219 | (eval $ac_try) 2>&5 |
---|
2220 | ac_status=$? |
---|
2221 | echo "$as_me:2221: \$? = $ac_status" >&5 |
---|
2222 | (exit $ac_status); }; }; then |
---|
2223 | break |
---|
2224 | else |
---|
2225 | echo "$as_me: failed program was:" >&5 |
---|
2226 | cat conftest.$ac_ext >&5 |
---|
2227 | fi |
---|
2228 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2229 | done |
---|
2230 | rm -f conftest* |
---|
2231 | if test -n "$ac_declaration"; then |
---|
2232 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2233 | echo $ac_declaration >>confdefs.h |
---|
2234 | echo '#endif' >>confdefs.h |
---|
2235 | fi |
---|
2236 | |
---|
2237 | else |
---|
2238 | echo "$as_me: failed program was:" >&5 |
---|
2239 | cat conftest.$ac_ext >&5 |
---|
2240 | fi |
---|
2241 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2242 | ac_ext=c |
---|
2243 | ac_cpp='$CPP $CPPFLAGS' |
---|
2244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2247 | |
---|
2248 | echo "$as_me:2248: checking for ${CC-cc} option to accept ANSI C" >&5 |
---|
2249 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
---|
2250 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
---|
2251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2252 | else |
---|
2253 | am_cv_prog_cc_stdc=no |
---|
2254 | ac_save_CC="$CC" |
---|
2255 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2256 | # breaks some systems' header files. |
---|
2257 | # AIX -qlanglvl=ansi |
---|
2258 | # Ultrix and OSF/1 -std1 |
---|
2259 | # HP-UX -Aa -D_HPUX_SOURCE |
---|
2260 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2261 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2262 | do |
---|
2263 | CC="$ac_save_CC $ac_arg" |
---|
2264 | cat >conftest.$ac_ext <<_ACEOF |
---|
2265 | #line 2265 "configure" |
---|
2266 | #include "confdefs.h" |
---|
2267 | #include <stdarg.h> |
---|
2268 | #include <stdio.h> |
---|
2269 | #include <sys/types.h> |
---|
2270 | #include <sys/stat.h> |
---|
2271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2272 | struct buf { int x; }; |
---|
2273 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2274 | static char *e (p, i) |
---|
2275 | char **p; |
---|
2276 | int i; |
---|
2277 | { |
---|
2278 | return p[i]; |
---|
2279 | } |
---|
2280 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2281 | { |
---|
2282 | char *s; |
---|
2283 | va_list v; |
---|
2284 | va_start (v,p); |
---|
2285 | s = g (p, va_arg (v,int)); |
---|
2286 | va_end (v); |
---|
2287 | return s; |
---|
2288 | } |
---|
2289 | int test (int i, double x); |
---|
2290 | struct s1 {int (*f) (int a);}; |
---|
2291 | struct s2 {int (*f) (double a);}; |
---|
2292 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2293 | int argc; |
---|
2294 | char **argv; |
---|
2295 | |
---|
2296 | #ifdef F77_DUMMY_MAIN |
---|
2297 | # ifdef __cplusplus |
---|
2298 | extern "C" |
---|
2299 | # endif |
---|
2300 | int F77_DUMMY_MAIN() { return 1; } |
---|
2301 | #endif |
---|
2302 | int |
---|
2303 | main () |
---|
2304 | { |
---|
2305 | |
---|
2306 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2307 | |
---|
2308 | ; |
---|
2309 | return 0; |
---|
2310 | } |
---|
2311 | _ACEOF |
---|
2312 | rm -f conftest.$ac_objext |
---|
2313 | if { (eval echo "$as_me:2313: \"$ac_compile\"") >&5 |
---|
2314 | (eval $ac_compile) 2>&5 |
---|
2315 | ac_status=$? |
---|
2316 | echo "$as_me:2316: \$? = $ac_status" >&5 |
---|
2317 | (exit $ac_status); } && |
---|
2318 | { ac_try='test -s conftest.$ac_objext' |
---|
2319 | { (eval echo "$as_me:2319: \"$ac_try\"") >&5 |
---|
2320 | (eval $ac_try) 2>&5 |
---|
2321 | ac_status=$? |
---|
2322 | echo "$as_me:2322: \$? = $ac_status" >&5 |
---|
2323 | (exit $ac_status); }; }; then |
---|
2324 | am_cv_prog_cc_stdc="$ac_arg"; break |
---|
2325 | else |
---|
2326 | echo "$as_me: failed program was:" >&5 |
---|
2327 | cat conftest.$ac_ext >&5 |
---|
2328 | fi |
---|
2329 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2330 | done |
---|
2331 | CC="$ac_save_CC" |
---|
2332 | |
---|
2333 | fi |
---|
2334 | |
---|
2335 | if test -z "$am_cv_prog_cc_stdc"; then |
---|
2336 | echo "$as_me:2336: result: none needed" >&5 |
---|
2337 | echo "${ECHO_T}none needed" >&6 |
---|
2338 | else |
---|
2339 | echo "$as_me:2339: result: $am_cv_prog_cc_stdc" >&5 |
---|
2340 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
---|
2341 | fi |
---|
2342 | case "x$am_cv_prog_cc_stdc" in |
---|
2343 | x|xno) ;; |
---|
2344 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
---|
2345 | esac |
---|
2346 | |
---|
2347 | # Find a good install program. We prefer a C program (faster), |
---|
2348 | # so one script is as good as another. But avoid the broken or |
---|
2349 | # incompatible versions: |
---|
2350 | # SysV /etc/install, /usr/sbin/install |
---|
2351 | # SunOS /usr/etc/install |
---|
2352 | # IRIX /sbin/install |
---|
2353 | # AIX /bin/install |
---|
2354 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2355 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2356 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2357 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2358 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2359 | echo "$as_me:2359: checking for a BSD compatible install" >&5 |
---|
2360 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
---|
2361 | if test -z "$INSTALL"; then |
---|
2362 | if test "${ac_cv_path_install+set}" = set; then |
---|
2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2364 | else |
---|
2365 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
2366 | for ac_dir in $PATH; do |
---|
2367 | IFS=$ac_save_IFS |
---|
2368 | # Account for people who put trailing slashes in PATH elements. |
---|
2369 | case $ac_dir/ in |
---|
2370 | / | ./ | .// | /cC/* \ |
---|
2371 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
---|
2372 | | /usr/ucb/* ) ;; |
---|
2373 | *) |
---|
2374 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2375 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2376 | # by default. |
---|
2377 | for ac_prog in ginstall scoinst install; do |
---|
2378 | if $as_executable_p "$ac_dir/$ac_prog"; then |
---|
2379 | if test $ac_prog = install && |
---|
2380 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
---|
2381 | # AIX install. It has an incompatible calling convention. |
---|
2382 | : |
---|
2383 | elif test $ac_prog = install && |
---|
2384 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
---|
2385 | # program-specific install script used by HP pwplus--don't use. |
---|
2386 | : |
---|
2387 | else |
---|
2388 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
2389 | break 2 |
---|
2390 | fi |
---|
2391 | fi |
---|
2392 | done |
---|
2393 | ;; |
---|
2394 | esac |
---|
2395 | done |
---|
2396 | |
---|
2397 | fi |
---|
2398 | if test "${ac_cv_path_install+set}" = set; then |
---|
2399 | INSTALL=$ac_cv_path_install |
---|
2400 | else |
---|
2401 | # As a last resort, use the slow shell script. We don't cache a |
---|
2402 | # path for INSTALL within a source directory, because that will |
---|
2403 | # break other packages using the cache if that directory is |
---|
2404 | # removed, or if the path is relative. |
---|
2405 | INSTALL=$ac_install_sh |
---|
2406 | fi |
---|
2407 | fi |
---|
2408 | echo "$as_me:2408: result: $INSTALL" >&5 |
---|
2409 | echo "${ECHO_T}$INSTALL" >&6 |
---|
2410 | |
---|
2411 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2412 | # It thinks the first close brace ends the variable substitution. |
---|
2413 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2414 | |
---|
2415 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2416 | |
---|
2417 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2418 | |
---|
2419 | echo "$as_me:2419: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
2420 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
---|
2421 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
2422 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
2423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2424 | else |
---|
2425 | cat >conftest.make <<\_ACEOF |
---|
2426 | all: |
---|
2427 | @echo 'ac_maketemp="${MAKE}"' |
---|
2428 | _ACEOF |
---|
2429 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
2430 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
2431 | if test -n "$ac_maketemp"; then |
---|
2432 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
2433 | else |
---|
2434 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
2435 | fi |
---|
2436 | rm -f conftest.make |
---|
2437 | fi |
---|
2438 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
2439 | echo "$as_me:2439: result: yes" >&5 |
---|
2440 | echo "${ECHO_T}yes" >&6 |
---|
2441 | SET_MAKE= |
---|
2442 | else |
---|
2443 | echo "$as_me:2443: result: no" >&5 |
---|
2444 | echo "${ECHO_T}no" >&6 |
---|
2445 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2446 | fi |
---|
2447 | |
---|
2448 | if test "x$GCC" = "xyes"; then |
---|
2449 | case " $CFLAGS " in |
---|
2450 | *[\ \ ]-Wall[\ \ ]*) ;; |
---|
2451 | *) CFLAGS="$CFLAGS -Wall" ;; |
---|
2452 | esac |
---|
2453 | fi |
---|
2454 | |
---|
2455 | # Check whether --enable-static or --disable-static was given. |
---|
2456 | if test "${enable_static+set}" = set; then |
---|
2457 | enableval="$enable_static" |
---|
2458 | p=${PACKAGE-default} |
---|
2459 | case $enableval in |
---|
2460 | yes) enable_static=yes ;; |
---|
2461 | no) enable_static=no ;; |
---|
2462 | *) |
---|
2463 | enable_static=no |
---|
2464 | # Look at the argument we got. We use all the common list separators. |
---|
2465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
2466 | for pkg in $enableval; do |
---|
2467 | if test "X$pkg" = "X$p"; then |
---|
2468 | enable_static=yes |
---|
2469 | fi |
---|
2470 | done |
---|
2471 | IFS="$ac_save_ifs" |
---|
2472 | ;; |
---|
2473 | esac |
---|
2474 | else |
---|
2475 | enable_static=no |
---|
2476 | fi; |
---|
2477 | # Check whether --enable-shared or --disable-shared was given. |
---|
2478 | if test "${enable_shared+set}" = set; then |
---|
2479 | enableval="$enable_shared" |
---|
2480 | p=${PACKAGE-default} |
---|
2481 | case $enableval in |
---|
2482 | yes) enable_shared=yes ;; |
---|
2483 | no) enable_shared=no ;; |
---|
2484 | *) |
---|
2485 | enable_shared=no |
---|
2486 | # Look at the argument we got. We use all the common list separators. |
---|
2487 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
2488 | for pkg in $enableval; do |
---|
2489 | if test "X$pkg" = "X$p"; then |
---|
2490 | enable_shared=yes |
---|
2491 | fi |
---|
2492 | done |
---|
2493 | IFS="$ac_save_ifs" |
---|
2494 | ;; |
---|
2495 | esac |
---|
2496 | else |
---|
2497 | enable_shared=yes |
---|
2498 | fi; |
---|
2499 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
2500 | if test "${enable_fast_install+set}" = set; then |
---|
2501 | enableval="$enable_fast_install" |
---|
2502 | p=${PACKAGE-default} |
---|
2503 | case $enableval in |
---|
2504 | yes) enable_fast_install=yes ;; |
---|
2505 | no) enable_fast_install=no ;; |
---|
2506 | *) |
---|
2507 | enable_fast_install=no |
---|
2508 | # Look at the argument we got. We use all the common list separators. |
---|
2509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
2510 | for pkg in $enableval; do |
---|
2511 | if test "X$pkg" = "X$p"; then |
---|
2512 | enable_fast_install=yes |
---|
2513 | fi |
---|
2514 | done |
---|
2515 | IFS="$ac_save_ifs" |
---|
2516 | ;; |
---|
2517 | esac |
---|
2518 | else |
---|
2519 | enable_fast_install=yes |
---|
2520 | fi; |
---|
2521 | # Find the correct PATH separator. Usually this is `:', but |
---|
2522 | # DJGPP uses `;' like DOS. |
---|
2523 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
---|
2524 | UNAME=${UNAME-`uname 2>/dev/null`} |
---|
2525 | case X$UNAME in |
---|
2526 | *-DOS) lt_cv_sys_path_separator=';' ;; |
---|
2527 | *) lt_cv_sys_path_separator=':' ;; |
---|
2528 | esac |
---|
2529 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
---|
2530 | fi |
---|
2531 | |
---|
2532 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
2533 | if test "${with_gnu_ld+set}" = set; then |
---|
2534 | withval="$with_gnu_ld" |
---|
2535 | test "$withval" = no || with_gnu_ld=yes |
---|
2536 | else |
---|
2537 | with_gnu_ld=no |
---|
2538 | fi; |
---|
2539 | ac_prog=ld |
---|
2540 | if test "$GCC" = yes; then |
---|
2541 | # Check if gcc -print-prog-name=ld gives a path. |
---|
2542 | echo "$as_me:2542: checking for ld used by GCC" >&5 |
---|
2543 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
---|
2544 | case $host in |
---|
2545 | *-*-mingw*) |
---|
2546 | # gcc leaves a trailing carriage return which upsets mingw |
---|
2547 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
2548 | *) |
---|
2549 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
2550 | esac |
---|
2551 | case $ac_prog in |
---|
2552 | # Accept absolute paths. |
---|
2553 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
2554 | re_direlt='/[^/][^/]*/\.\./' |
---|
2555 | # Canonicalize the path of ld |
---|
2556 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
2557 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
2558 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
2559 | done |
---|
2560 | test -z "$LD" && LD="$ac_prog" |
---|
2561 | ;; |
---|
2562 | "") |
---|
2563 | # If it fails, then pretend we aren't using GCC. |
---|
2564 | ac_prog=ld |
---|
2565 | ;; |
---|
2566 | *) |
---|
2567 | # If it is relative, then search for the first ld in PATH. |
---|
2568 | with_gnu_ld=unknown |
---|
2569 | ;; |
---|
2570 | esac |
---|
2571 | elif test "$with_gnu_ld" = yes; then |
---|
2572 | echo "$as_me:2572: checking for GNU ld" >&5 |
---|
2573 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
2574 | else |
---|
2575 | echo "$as_me:2575: checking for non-GNU ld" >&5 |
---|
2576 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
2577 | fi |
---|
2578 | if test "${lt_cv_path_LD+set}" = set; then |
---|
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2580 | else |
---|
2581 | if test -z "$LD"; then |
---|
2582 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
2583 | for ac_dir in $PATH; do |
---|
2584 | test -z "$ac_dir" && ac_dir=. |
---|
2585 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
2586 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
2587 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
2588 | # but apparently some GNU ld's only accept -v. |
---|
2589 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
2590 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
2591 | test "$with_gnu_ld" != no && break |
---|
2592 | else |
---|
2593 | test "$with_gnu_ld" != yes && break |
---|
2594 | fi |
---|
2595 | fi |
---|
2596 | done |
---|
2597 | IFS="$ac_save_ifs" |
---|
2598 | else |
---|
2599 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
2600 | fi |
---|
2601 | fi |
---|
2602 | |
---|
2603 | LD="$lt_cv_path_LD" |
---|
2604 | if test -n "$LD"; then |
---|
2605 | echo "$as_me:2605: result: $LD" >&5 |
---|
2606 | echo "${ECHO_T}$LD" >&6 |
---|
2607 | else |
---|
2608 | echo "$as_me:2608: result: no" >&5 |
---|
2609 | echo "${ECHO_T}no" >&6 |
---|
2610 | fi |
---|
2611 | test -z "$LD" && { { echo "$as_me:2611: error: no acceptable ld found in \$PATH" >&5 |
---|
2612 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
2613 | { (exit 1); exit 1; }; } |
---|
2614 | echo "$as_me:2614: checking if the linker ($LD) is GNU ld" >&5 |
---|
2615 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
2616 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2618 | else |
---|
2619 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
2620 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
2621 | lt_cv_prog_gnu_ld=yes |
---|
2622 | else |
---|
2623 | lt_cv_prog_gnu_ld=no |
---|
2624 | fi |
---|
2625 | fi |
---|
2626 | echo "$as_me:2626: result: $lt_cv_prog_gnu_ld" >&5 |
---|
2627 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
2628 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
2629 | |
---|
2630 | echo "$as_me:2630: checking for $LD option to reload object files" >&5 |
---|
2631 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
2632 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
2633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2634 | else |
---|
2635 | lt_cv_ld_reload_flag='-r' |
---|
2636 | fi |
---|
2637 | echo "$as_me:2637: result: $lt_cv_ld_reload_flag" >&5 |
---|
2638 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
2639 | reload_flag=$lt_cv_ld_reload_flag |
---|
2640 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
---|
2641 | |
---|
2642 | echo "$as_me:2642: checking for BSD-compatible nm" >&5 |
---|
2643 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
2644 | if test "${lt_cv_path_NM+set}" = set; then |
---|
2645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2646 | else |
---|
2647 | if test -n "$NM"; then |
---|
2648 | # Let the user override the test. |
---|
2649 | lt_cv_path_NM="$NM" |
---|
2650 | else |
---|
2651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
2652 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
2653 | test -z "$ac_dir" && ac_dir=. |
---|
2654 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
---|
2655 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
---|
2656 | # Check to see if the nm accepts a BSD-compat flag. |
---|
2657 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
2658 | # nm: unknown option "B" ignored |
---|
2659 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
2660 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
---|
2661 | lt_cv_path_NM="$tmp_nm -B" |
---|
2662 | break |
---|
2663 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2664 | lt_cv_path_NM="$tmp_nm -p" |
---|
2665 | break |
---|
2666 | else |
---|
2667 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
2668 | continue # so that we can try to find one that supports BSD flags |
---|
2669 | fi |
---|
2670 | fi |
---|
2671 | done |
---|
2672 | IFS="$ac_save_ifs" |
---|
2673 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
2674 | fi |
---|
2675 | fi |
---|
2676 | |
---|
2677 | NM="$lt_cv_path_NM" |
---|
2678 | echo "$as_me:2678: result: $NM" >&5 |
---|
2679 | echo "${ECHO_T}$NM" >&6 |
---|
2680 | |
---|
2681 | echo "$as_me:2681: checking whether ln -s works" >&5 |
---|
2682 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
2683 | LN_S=$as_ln_s |
---|
2684 | if test "$LN_S" = "ln -s"; then |
---|
2685 | echo "$as_me:2685: result: yes" >&5 |
---|
2686 | echo "${ECHO_T}yes" >&6 |
---|
2687 | else |
---|
2688 | echo "$as_me:2688: result: no, using $LN_S" >&5 |
---|
2689 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
2690 | fi |
---|
2691 | |
---|
2692 | echo "$as_me:2692: checking how to recognise dependant libraries" >&5 |
---|
2693 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
---|
2694 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2696 | else |
---|
2697 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
2698 | lt_cv_file_magic_test_file= |
---|
2699 | lt_cv_deplibs_check_method='unknown' |
---|
2700 | # Need to set the preceding variable on all platforms that support |
---|
2701 | # interlibrary dependencies. |
---|
2702 | # 'none' -- dependencies not supported. |
---|
2703 | # `unknown' -- same as none, but documents that we really don't know. |
---|
2704 | # 'pass_all' -- all dependencies passed with no checks. |
---|
2705 | # 'test_compile' -- check by making test program. |
---|
2706 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
2707 | # which responds to the $file_magic_cmd with a given egrep regex. |
---|
2708 | # If you have `file' or equivalent on your system and you're not sure |
---|
2709 | # whether `pass_all' will *always* work, you probably want this one. |
---|
2710 | |
---|
2711 | case $host_os in |
---|
2712 | aix4* | aix5*) |
---|
2713 | lt_cv_deplibs_check_method=pass_all |
---|
2714 | ;; |
---|
2715 | |
---|
2716 | beos*) |
---|
2717 | lt_cv_deplibs_check_method=pass_all |
---|
2718 | ;; |
---|
2719 | |
---|
2720 | bsdi4*) |
---|
2721 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
2722 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
2723 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
2724 | ;; |
---|
2725 | |
---|
2726 | cygwin* | mingw* | pw32*) |
---|
2727 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
2728 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
2729 | ;; |
---|
2730 | |
---|
2731 | darwin* | rhapsody*) |
---|
2732 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
---|
2733 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
2734 | case "$host_os" in |
---|
2735 | rhapsody* | darwin1.[012]) |
---|
2736 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
---|
2737 | ;; |
---|
2738 | *) # Darwin 1.3 on |
---|
2739 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
---|
2740 | ;; |
---|
2741 | esac |
---|
2742 | ;; |
---|
2743 | |
---|
2744 | freebsd*) |
---|
2745 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
2746 | case $host_cpu in |
---|
2747 | i*86 ) |
---|
2748 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
2749 | # Let's accept both of them until this is cleared up. |
---|
2750 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
---|
2751 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2752 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
2753 | ;; |
---|
2754 | esac |
---|
2755 | else |
---|
2756 | lt_cv_deplibs_check_method=pass_all |
---|
2757 | fi |
---|
2758 | ;; |
---|
2759 | |
---|
2760 | gnu*) |
---|
2761 | lt_cv_deplibs_check_method=pass_all |
---|
2762 | ;; |
---|
2763 | |
---|
2764 | hpux10.20*|hpux11*) |
---|
2765 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
2766 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2767 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
2768 | ;; |
---|
2769 | |
---|
2770 | irix5* | irix6*) |
---|
2771 | case $host_os in |
---|
2772 | irix5*) |
---|
2773 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2774 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
---|
2775 | ;; |
---|
2776 | *) |
---|
2777 | case $LD in |
---|
2778 | *-32|*"-32 ") libmagic=32-bit;; |
---|
2779 | *-n32|*"-n32 ") libmagic=N32;; |
---|
2780 | *-64|*"-64 ") libmagic=64-bit;; |
---|
2781 | *) libmagic=never-match;; |
---|
2782 | esac |
---|
2783 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2784 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
---|
2785 | ;; |
---|
2786 | esac |
---|
2787 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
---|
2788 | lt_cv_deplibs_check_method=pass_all |
---|
2789 | ;; |
---|
2790 | |
---|
2791 | # This must be Linux ELF. |
---|
2792 | linux-gnu*) |
---|
2793 | case $host_cpu in |
---|
2794 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) |
---|
2795 | lt_cv_deplibs_check_method=pass_all ;; |
---|
2796 | *) |
---|
2797 | # glibc up to 2.1.1 does not perform some relocations on ARM |
---|
2798 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
---|
2799 | esac |
---|
2800 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
---|
2801 | ;; |
---|
2802 | |
---|
2803 | netbsd*) |
---|
2804 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
2805 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
---|
2806 | else |
---|
2807 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
---|
2808 | fi |
---|
2809 | ;; |
---|
2810 | |
---|
2811 | newos6*) |
---|
2812 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
2813 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2814 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
2815 | ;; |
---|
2816 | |
---|
2817 | openbsd*) |
---|
2818 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
2819 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
2820 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
2821 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
---|
2822 | else |
---|
2823 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
---|
2824 | fi |
---|
2825 | ;; |
---|
2826 | |
---|
2827 | osf3* | osf4* | osf5*) |
---|
2828 | # this will be overridden with pass_all, but let us keep it just in case |
---|
2829 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
---|
2830 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
2831 | lt_cv_deplibs_check_method=pass_all |
---|
2832 | ;; |
---|
2833 | |
---|
2834 | sco3.2v5*) |
---|
2835 | lt_cv_deplibs_check_method=pass_all |
---|
2836 | ;; |
---|
2837 | |
---|
2838 | solaris*) |
---|
2839 | lt_cv_deplibs_check_method=pass_all |
---|
2840 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
2841 | ;; |
---|
2842 | |
---|
2843 | sysv5uw[78]* | sysv4*uw2*) |
---|
2844 | lt_cv_deplibs_check_method=pass_all |
---|
2845 | ;; |
---|
2846 | |
---|
2847 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
2848 | case $host_vendor in |
---|
2849 | motorola) |
---|
2850 | 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]' |
---|
2851 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
2852 | ;; |
---|
2853 | ncr) |
---|
2854 | lt_cv_deplibs_check_method=pass_all |
---|
2855 | ;; |
---|
2856 | sequent) |
---|
2857 | lt_cv_file_magic_cmd='/bin/file' |
---|
2858 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
2859 | ;; |
---|
2860 | sni) |
---|
2861 | lt_cv_file_magic_cmd='/bin/file' |
---|
2862 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
2863 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
2864 | ;; |
---|
2865 | esac |
---|
2866 | ;; |
---|
2867 | esac |
---|
2868 | |
---|
2869 | fi |
---|
2870 | echo "$as_me:2870: result: $lt_cv_deplibs_check_method" >&5 |
---|
2871 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
2872 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
2873 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
2874 | |
---|
2875 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
2876 | echo "$as_me:2876: checking command to parse $NM output" >&5 |
---|
2877 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
---|
2878 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2880 | else |
---|
2881 | |
---|
2882 | # These are sane defaults that work on at least a few old systems. |
---|
2883 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
2884 | |
---|
2885 | # Character class describing NM global symbol codes. |
---|
2886 | symcode='[BCDEGRST]' |
---|
2887 | |
---|
2888 | # Regexp to match symbols that can be accessed directly from C. |
---|
2889 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
2890 | |
---|
2891 | # Transform the above into a raw symbol and a C symbol. |
---|
2892 | symxfrm='\1 \2\3 \3' |
---|
2893 | |
---|
2894 | # Transform an extracted symbol line into a proper C declaration |
---|
2895 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
---|
2896 | |
---|
2897 | # Transform an extracted symbol line into symbol name and symbol address |
---|
2898 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
2899 | |
---|
2900 | # Define system-specific variables. |
---|
2901 | case $host_os in |
---|
2902 | aix*) |
---|
2903 | symcode='[BCDT]' |
---|
2904 | ;; |
---|
2905 | cygwin* | mingw* | pw32*) |
---|
2906 | symcode='[ABCDGISTW]' |
---|
2907 | ;; |
---|
2908 | hpux*) # Its linker distinguishes data from code symbols |
---|
2909 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
2910 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
2911 | ;; |
---|
2912 | irix*) |
---|
2913 | symcode='[BCDEGRST]' |
---|
2914 | ;; |
---|
2915 | solaris* | sysv5*) |
---|
2916 | symcode='[BDT]' |
---|
2917 | ;; |
---|
2918 | sysv4) |
---|
2919 | symcode='[DFNSTU]' |
---|
2920 | ;; |
---|
2921 | esac |
---|
2922 | |
---|
2923 | # Handle CRLF in mingw tool chain |
---|
2924 | opt_cr= |
---|
2925 | case $host_os in |
---|
2926 | mingw*) |
---|
2927 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
2928 | ;; |
---|
2929 | esac |
---|
2930 | |
---|
2931 | # If we're using GNU nm, then use its standard symbol codes. |
---|
2932 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
---|
2933 | symcode='[ABCDGISTW]' |
---|
2934 | fi |
---|
2935 | |
---|
2936 | # Try without a prefix undercore, then with it. |
---|
2937 | for ac_symprfx in "" "_"; do |
---|
2938 | |
---|
2939 | # Write the raw and C identifiers. |
---|
2940 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
---|
2941 | |
---|
2942 | # Check to see that the pipe works correctly. |
---|
2943 | pipe_works=no |
---|
2944 | rm -f conftest* |
---|
2945 | cat > conftest.$ac_ext <<EOF |
---|
2946 | #ifdef __cplusplus |
---|
2947 | extern "C" { |
---|
2948 | #endif |
---|
2949 | char nm_test_var; |
---|
2950 | void nm_test_func(){} |
---|
2951 | #ifdef __cplusplus |
---|
2952 | } |
---|
2953 | #endif |
---|
2954 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
2955 | EOF |
---|
2956 | |
---|
2957 | if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5 |
---|
2958 | (eval $ac_compile) 2>&5 |
---|
2959 | ac_status=$? |
---|
2960 | echo "$as_me:2960: \$? = $ac_status" >&5 |
---|
2961 | (exit $ac_status); }; then |
---|
2962 | # Now try to grab the symbols. |
---|
2963 | nlist=conftest.nm |
---|
2964 | if { (eval echo "$as_me:2964: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
2965 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
2966 | ac_status=$? |
---|
2967 | echo "$as_me:2967: \$? = $ac_status" >&5 |
---|
2968 | (exit $ac_status); } && test -s "$nlist"; then |
---|
2969 | # Try sorting and uniquifying the output. |
---|
2970 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
2971 | mv -f "$nlist"T "$nlist" |
---|
2972 | else |
---|
2973 | rm -f "$nlist"T |
---|
2974 | fi |
---|
2975 | |
---|
2976 | # Make sure that we snagged all the symbols we need. |
---|
2977 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
2978 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
2979 | cat <<EOF > conftest.$ac_ext |
---|
2980 | #ifdef __cplusplus |
---|
2981 | extern "C" { |
---|
2982 | #endif |
---|
2983 | |
---|
2984 | EOF |
---|
2985 | # Now generate the symbol file. |
---|
2986 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
---|
2987 | |
---|
2988 | cat <<EOF >> conftest.$ac_ext |
---|
2989 | #if defined (__STDC__) && __STDC__ |
---|
2990 | # define lt_ptr void * |
---|
2991 | #else |
---|
2992 | # define lt_ptr char * |
---|
2993 | # define const |
---|
2994 | #endif |
---|
2995 | |
---|
2996 | /* The mapping between symbol names and symbols. */ |
---|
2997 | const struct { |
---|
2998 | const char *name; |
---|
2999 | lt_ptr address; |
---|
3000 | } |
---|
3001 | lt_preloaded_symbols[] = |
---|
3002 | { |
---|
3003 | EOF |
---|
3004 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
---|
3005 | cat <<\EOF >> conftest.$ac_ext |
---|
3006 | {0, (lt_ptr) 0} |
---|
3007 | }; |
---|
3008 | |
---|
3009 | #ifdef __cplusplus |
---|
3010 | } |
---|
3011 | #endif |
---|
3012 | EOF |
---|
3013 | # Now try linking the two files. |
---|
3014 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
3015 | save_LIBS="$LIBS" |
---|
3016 | save_CFLAGS="$CFLAGS" |
---|
3017 | LIBS="conftstm.$ac_objext" |
---|
3018 | CFLAGS="$CFLAGS$no_builtin_flag" |
---|
3019 | if { (eval echo "$as_me:3019: \"$ac_link\"") >&5 |
---|
3020 | (eval $ac_link) 2>&5 |
---|
3021 | ac_status=$? |
---|
3022 | echo "$as_me:3022: \$? = $ac_status" >&5 |
---|
3023 | (exit $ac_status); } && test -s conftest; then |
---|
3024 | pipe_works=yes |
---|
3025 | fi |
---|
3026 | LIBS="$save_LIBS" |
---|
3027 | CFLAGS="$save_CFLAGS" |
---|
3028 | else |
---|
3029 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
3030 | fi |
---|
3031 | else |
---|
3032 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
3033 | fi |
---|
3034 | else |
---|
3035 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
3036 | fi |
---|
3037 | else |
---|
3038 | echo "$progname: failed program was:" >&5 |
---|
3039 | cat conftest.$ac_ext >&5 |
---|
3040 | fi |
---|
3041 | rm -f conftest* conftst* |
---|
3042 | |
---|
3043 | # Do not use the global_symbol_pipe unless it works. |
---|
3044 | if test "$pipe_works" = yes; then |
---|
3045 | break |
---|
3046 | else |
---|
3047 | lt_cv_sys_global_symbol_pipe= |
---|
3048 | fi |
---|
3049 | done |
---|
3050 | |
---|
3051 | fi |
---|
3052 | |
---|
3053 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
---|
3054 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
3055 | global_symbol_to_cdecl= |
---|
3056 | global_symbol_to_c_name_address= |
---|
3057 | else |
---|
3058 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
---|
3059 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
---|
3060 | fi |
---|
3061 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
---|
3062 | then |
---|
3063 | echo "$as_me:3063: result: failed" >&5 |
---|
3064 | echo "${ECHO_T}failed" >&6 |
---|
3065 | else |
---|
3066 | echo "$as_me:3066: result: ok" >&5 |
---|
3067 | echo "${ECHO_T}ok" >&6 |
---|
3068 | fi |
---|
3069 | |
---|
3070 | ac_ext=c |
---|
3071 | ac_cpp='$CPP $CPPFLAGS' |
---|
3072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3075 | echo "$as_me:3075: checking how to run the C preprocessor" >&5 |
---|
3076 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3077 | # On Suns, sometimes $CPP names a directory. |
---|
3078 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3079 | CPP= |
---|
3080 | fi |
---|
3081 | if test -z "$CPP"; then |
---|
3082 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3084 | else |
---|
3085 | # Double quotes because CPP needs to be expanded |
---|
3086 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3087 | do |
---|
3088 | ac_preproc_ok=false |
---|
3089 | for ac_c_preproc_warn_flag in '' yes |
---|
3090 | do |
---|
3091 | # Use a header file that comes with gcc, so configuring glibc |
---|
3092 | # with a fresh cross-compiler works. |
---|
3093 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3094 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3095 | cat >conftest.$ac_ext <<_ACEOF |
---|
3096 | #line 3096 "configure" |
---|
3097 | #include "confdefs.h" |
---|
3098 | #include <assert.h> |
---|
3099 | Syntax error |
---|
3100 | _ACEOF |
---|
3101 | if { (eval echo "$as_me:3101: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3103 | ac_status=$? |
---|
3104 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3105 | rm -f conftest.er1 |
---|
3106 | cat conftest.err >&5 |
---|
3107 | echo "$as_me:3107: \$? = $ac_status" >&5 |
---|
3108 | (exit $ac_status); } >/dev/null; then |
---|
3109 | if test -s conftest.err; then |
---|
3110 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3111 | else |
---|
3112 | ac_cpp_err= |
---|
3113 | fi |
---|
3114 | else |
---|
3115 | ac_cpp_err=yes |
---|
3116 | fi |
---|
3117 | if test -z "$ac_cpp_err"; then |
---|
3118 | : |
---|
3119 | else |
---|
3120 | echo "$as_me: failed program was:" >&5 |
---|
3121 | cat conftest.$ac_ext >&5 |
---|
3122 | # Broken: fails on valid input. |
---|
3123 | continue |
---|
3124 | fi |
---|
3125 | rm -f conftest.err conftest.$ac_ext |
---|
3126 | |
---|
3127 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3128 | # can be detected and how. |
---|
3129 | cat >conftest.$ac_ext <<_ACEOF |
---|
3130 | #line 3130 "configure" |
---|
3131 | #include "confdefs.h" |
---|
3132 | #include <ac_nonexistent.h> |
---|
3133 | _ACEOF |
---|
3134 | if { (eval echo "$as_me:3134: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3136 | ac_status=$? |
---|
3137 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3138 | rm -f conftest.er1 |
---|
3139 | cat conftest.err >&5 |
---|
3140 | echo "$as_me:3140: \$? = $ac_status" >&5 |
---|
3141 | (exit $ac_status); } >/dev/null; then |
---|
3142 | if test -s conftest.err; then |
---|
3143 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3144 | else |
---|
3145 | ac_cpp_err= |
---|
3146 | fi |
---|
3147 | else |
---|
3148 | ac_cpp_err=yes |
---|
3149 | fi |
---|
3150 | if test -z "$ac_cpp_err"; then |
---|
3151 | # Broken: success on invalid input. |
---|
3152 | continue |
---|
3153 | else |
---|
3154 | echo "$as_me: failed program was:" >&5 |
---|
3155 | cat conftest.$ac_ext >&5 |
---|
3156 | # Passes both tests. |
---|
3157 | ac_preproc_ok=: |
---|
3158 | break |
---|
3159 | fi |
---|
3160 | rm -f conftest.err conftest.$ac_ext |
---|
3161 | |
---|
3162 | done |
---|
3163 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3164 | rm -f conftest.err conftest.$ac_ext |
---|
3165 | if $ac_preproc_ok; then |
---|
3166 | break |
---|
3167 | fi |
---|
3168 | |
---|
3169 | done |
---|
3170 | ac_cv_prog_CPP=$CPP |
---|
3171 | |
---|
3172 | fi |
---|
3173 | CPP=$ac_cv_prog_CPP |
---|
3174 | else |
---|
3175 | ac_cv_prog_CPP=$CPP |
---|
3176 | fi |
---|
3177 | echo "$as_me:3177: result: $CPP" >&5 |
---|
3178 | echo "${ECHO_T}$CPP" >&6 |
---|
3179 | ac_preproc_ok=false |
---|
3180 | for ac_c_preproc_warn_flag in '' yes |
---|
3181 | do |
---|
3182 | # Use a header file that comes with gcc, so configuring glibc |
---|
3183 | # with a fresh cross-compiler works. |
---|
3184 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3185 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3186 | cat >conftest.$ac_ext <<_ACEOF |
---|
3187 | #line 3187 "configure" |
---|
3188 | #include "confdefs.h" |
---|
3189 | #include <assert.h> |
---|
3190 | Syntax error |
---|
3191 | _ACEOF |
---|
3192 | if { (eval echo "$as_me:3192: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3194 | ac_status=$? |
---|
3195 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3196 | rm -f conftest.er1 |
---|
3197 | cat conftest.err >&5 |
---|
3198 | echo "$as_me:3198: \$? = $ac_status" >&5 |
---|
3199 | (exit $ac_status); } >/dev/null; then |
---|
3200 | if test -s conftest.err; then |
---|
3201 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3202 | else |
---|
3203 | ac_cpp_err= |
---|
3204 | fi |
---|
3205 | else |
---|
3206 | ac_cpp_err=yes |
---|
3207 | fi |
---|
3208 | if test -z "$ac_cpp_err"; then |
---|
3209 | : |
---|
3210 | else |
---|
3211 | echo "$as_me: failed program was:" >&5 |
---|
3212 | cat conftest.$ac_ext >&5 |
---|
3213 | # Broken: fails on valid input. |
---|
3214 | continue |
---|
3215 | fi |
---|
3216 | rm -f conftest.err conftest.$ac_ext |
---|
3217 | |
---|
3218 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3219 | # can be detected and how. |
---|
3220 | cat >conftest.$ac_ext <<_ACEOF |
---|
3221 | #line 3221 "configure" |
---|
3222 | #include "confdefs.h" |
---|
3223 | #include <ac_nonexistent.h> |
---|
3224 | _ACEOF |
---|
3225 | if { (eval echo "$as_me:3225: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3227 | ac_status=$? |
---|
3228 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3229 | rm -f conftest.er1 |
---|
3230 | cat conftest.err >&5 |
---|
3231 | echo "$as_me:3231: \$? = $ac_status" >&5 |
---|
3232 | (exit $ac_status); } >/dev/null; then |
---|
3233 | if test -s conftest.err; then |
---|
3234 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3235 | else |
---|
3236 | ac_cpp_err= |
---|
3237 | fi |
---|
3238 | else |
---|
3239 | ac_cpp_err=yes |
---|
3240 | fi |
---|
3241 | if test -z "$ac_cpp_err"; then |
---|
3242 | # Broken: success on invalid input. |
---|
3243 | continue |
---|
3244 | else |
---|
3245 | echo "$as_me: failed program was:" >&5 |
---|
3246 | cat conftest.$ac_ext >&5 |
---|
3247 | # Passes both tests. |
---|
3248 | ac_preproc_ok=: |
---|
3249 | break |
---|
3250 | fi |
---|
3251 | rm -f conftest.err conftest.$ac_ext |
---|
3252 | |
---|
3253 | done |
---|
3254 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3255 | rm -f conftest.err conftest.$ac_ext |
---|
3256 | if $ac_preproc_ok; then |
---|
3257 | : |
---|
3258 | else |
---|
3259 | { { echo "$as_me:3259: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
---|
3260 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
---|
3261 | { (exit 1); exit 1; }; } |
---|
3262 | fi |
---|
3263 | |
---|
3264 | ac_ext=c |
---|
3265 | ac_cpp='$CPP $CPPFLAGS' |
---|
3266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3269 | |
---|
3270 | echo "$as_me:3270: checking for ANSI C header files" >&5 |
---|
3271 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3272 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3274 | else |
---|
3275 | cat >conftest.$ac_ext <<_ACEOF |
---|
3276 | #line 3276 "configure" |
---|
3277 | #include "confdefs.h" |
---|
3278 | #include <stdlib.h> |
---|
3279 | #include <stdarg.h> |
---|
3280 | #include <string.h> |
---|
3281 | #include <float.h> |
---|
3282 | |
---|
3283 | _ACEOF |
---|
3284 | if { (eval echo "$as_me:3284: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3286 | ac_status=$? |
---|
3287 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3288 | rm -f conftest.er1 |
---|
3289 | cat conftest.err >&5 |
---|
3290 | echo "$as_me:3290: \$? = $ac_status" >&5 |
---|
3291 | (exit $ac_status); } >/dev/null; then |
---|
3292 | if test -s conftest.err; then |
---|
3293 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3294 | else |
---|
3295 | ac_cpp_err= |
---|
3296 | fi |
---|
3297 | else |
---|
3298 | ac_cpp_err=yes |
---|
3299 | fi |
---|
3300 | if test -z "$ac_cpp_err"; then |
---|
3301 | ac_cv_header_stdc=yes |
---|
3302 | else |
---|
3303 | echo "$as_me: failed program was:" >&5 |
---|
3304 | cat conftest.$ac_ext >&5 |
---|
3305 | ac_cv_header_stdc=no |
---|
3306 | fi |
---|
3307 | rm -f conftest.err conftest.$ac_ext |
---|
3308 | |
---|
3309 | if test $ac_cv_header_stdc = yes; then |
---|
3310 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3311 | cat >conftest.$ac_ext <<_ACEOF |
---|
3312 | #line 3312 "configure" |
---|
3313 | #include "confdefs.h" |
---|
3314 | #include <string.h> |
---|
3315 | |
---|
3316 | _ACEOF |
---|
3317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3318 | egrep "memchr" >/dev/null 2>&1; then |
---|
3319 | : |
---|
3320 | else |
---|
3321 | ac_cv_header_stdc=no |
---|
3322 | fi |
---|
3323 | rm -f conftest* |
---|
3324 | |
---|
3325 | fi |
---|
3326 | |
---|
3327 | if test $ac_cv_header_stdc = yes; then |
---|
3328 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3329 | cat >conftest.$ac_ext <<_ACEOF |
---|
3330 | #line 3330 "configure" |
---|
3331 | #include "confdefs.h" |
---|
3332 | #include <stdlib.h> |
---|
3333 | |
---|
3334 | _ACEOF |
---|
3335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3336 | egrep "free" >/dev/null 2>&1; then |
---|
3337 | : |
---|
3338 | else |
---|
3339 | ac_cv_header_stdc=no |
---|
3340 | fi |
---|
3341 | rm -f conftest* |
---|
3342 | |
---|
3343 | fi |
---|
3344 | |
---|
3345 | if test $ac_cv_header_stdc = yes; then |
---|
3346 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3347 | if test "$cross_compiling" = yes; then |
---|
3348 | : |
---|
3349 | else |
---|
3350 | cat >conftest.$ac_ext <<_ACEOF |
---|
3351 | #line 3351 "configure" |
---|
3352 | #include "confdefs.h" |
---|
3353 | #include <ctype.h> |
---|
3354 | #if ((' ' & 0x0FF) == 0x020) |
---|
3355 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3356 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3357 | #else |
---|
3358 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
---|
3359 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3360 | || ('s' <= (c) && (c) <= 'z')) |
---|
3361 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3362 | #endif |
---|
3363 | |
---|
3364 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3365 | int |
---|
3366 | main () |
---|
3367 | { |
---|
3368 | int i; |
---|
3369 | for (i = 0; i < 256; i++) |
---|
3370 | if (XOR (islower (i), ISLOWER (i)) |
---|
3371 | || toupper (i) != TOUPPER (i)) |
---|
3372 | exit(2); |
---|
3373 | exit (0); |
---|
3374 | } |
---|
3375 | _ACEOF |
---|
3376 | rm -f conftest$ac_exeext |
---|
3377 | if { (eval echo "$as_me:3377: \"$ac_link\"") >&5 |
---|
3378 | (eval $ac_link) 2>&5 |
---|
3379 | ac_status=$? |
---|
3380 | echo "$as_me:3380: \$? = $ac_status" >&5 |
---|
3381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3382 | { (eval echo "$as_me:3382: \"$ac_try\"") >&5 |
---|
3383 | (eval $ac_try) 2>&5 |
---|
3384 | ac_status=$? |
---|
3385 | echo "$as_me:3385: \$? = $ac_status" >&5 |
---|
3386 | (exit $ac_status); }; }; then |
---|
3387 | : |
---|
3388 | else |
---|
3389 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3390 | echo "$as_me: failed program was:" >&5 |
---|
3391 | cat conftest.$ac_ext >&5 |
---|
3392 | ac_cv_header_stdc=no |
---|
3393 | fi |
---|
3394 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3395 | fi |
---|
3396 | fi |
---|
3397 | fi |
---|
3398 | echo "$as_me:3398: result: $ac_cv_header_stdc" >&5 |
---|
3399 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3400 | if test $ac_cv_header_stdc = yes; then |
---|
3401 | |
---|
3402 | cat >>confdefs.h <<\_ACEOF |
---|
3403 | #define STDC_HEADERS 1 |
---|
3404 | _ACEOF |
---|
3405 | |
---|
3406 | fi |
---|
3407 | |
---|
3408 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3409 | |
---|
3410 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3411 | inttypes.h stdint.h unistd.h |
---|
3412 | do |
---|
3413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3414 | echo "$as_me:3414: checking for $ac_header" >&5 |
---|
3415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3418 | else |
---|
3419 | cat >conftest.$ac_ext <<_ACEOF |
---|
3420 | #line 3420 "configure" |
---|
3421 | #include "confdefs.h" |
---|
3422 | $ac_includes_default |
---|
3423 | |
---|
3424 | #include <$ac_header> |
---|
3425 | _ACEOF |
---|
3426 | rm -f conftest.$ac_objext |
---|
3427 | if { (eval echo "$as_me:3427: \"$ac_compile\"") >&5 |
---|
3428 | (eval $ac_compile) 2>&5 |
---|
3429 | ac_status=$? |
---|
3430 | echo "$as_me:3430: \$? = $ac_status" >&5 |
---|
3431 | (exit $ac_status); } && |
---|
3432 | { ac_try='test -s conftest.$ac_objext' |
---|
3433 | { (eval echo "$as_me:3433: \"$ac_try\"") >&5 |
---|
3434 | (eval $ac_try) 2>&5 |
---|
3435 | ac_status=$? |
---|
3436 | echo "$as_me:3436: \$? = $ac_status" >&5 |
---|
3437 | (exit $ac_status); }; }; then |
---|
3438 | eval "$as_ac_Header=yes" |
---|
3439 | else |
---|
3440 | echo "$as_me: failed program was:" >&5 |
---|
3441 | cat conftest.$ac_ext >&5 |
---|
3442 | eval "$as_ac_Header=no" |
---|
3443 | fi |
---|
3444 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3445 | fi |
---|
3446 | echo "$as_me:3446: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3449 | cat >>confdefs.h <<_ACEOF |
---|
3450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3451 | _ACEOF |
---|
3452 | |
---|
3453 | fi |
---|
3454 | |
---|
3455 | done |
---|
3456 | |
---|
3457 | for ac_header in dlfcn.h |
---|
3458 | do |
---|
3459 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3461 | echo "$as_me:3461: checking for $ac_header" >&5 |
---|
3462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3465 | fi |
---|
3466 | echo "$as_me:3466: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3468 | else |
---|
3469 | # Is the header compilable? |
---|
3470 | echo "$as_me:3470: checking $ac_header usability" >&5 |
---|
3471 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3472 | cat >conftest.$ac_ext <<_ACEOF |
---|
3473 | #line 3473 "configure" |
---|
3474 | #include "confdefs.h" |
---|
3475 | $ac_includes_default |
---|
3476 | #include <$ac_header> |
---|
3477 | _ACEOF |
---|
3478 | rm -f conftest.$ac_objext |
---|
3479 | if { (eval echo "$as_me:3479: \"$ac_compile\"") >&5 |
---|
3480 | (eval $ac_compile) 2>&5 |
---|
3481 | ac_status=$? |
---|
3482 | echo "$as_me:3482: \$? = $ac_status" >&5 |
---|
3483 | (exit $ac_status); } && |
---|
3484 | { ac_try='test -s conftest.$ac_objext' |
---|
3485 | { (eval echo "$as_me:3485: \"$ac_try\"") >&5 |
---|
3486 | (eval $ac_try) 2>&5 |
---|
3487 | ac_status=$? |
---|
3488 | echo "$as_me:3488: \$? = $ac_status" >&5 |
---|
3489 | (exit $ac_status); }; }; then |
---|
3490 | ac_header_compiler=yes |
---|
3491 | else |
---|
3492 | echo "$as_me: failed program was:" >&5 |
---|
3493 | cat conftest.$ac_ext >&5 |
---|
3494 | ac_header_compiler=no |
---|
3495 | fi |
---|
3496 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3497 | echo "$as_me:3497: result: $ac_header_compiler" >&5 |
---|
3498 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3499 | |
---|
3500 | # Is the header present? |
---|
3501 | echo "$as_me:3501: checking $ac_header presence" >&5 |
---|
3502 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3503 | cat >conftest.$ac_ext <<_ACEOF |
---|
3504 | #line 3504 "configure" |
---|
3505 | #include "confdefs.h" |
---|
3506 | #include <$ac_header> |
---|
3507 | _ACEOF |
---|
3508 | if { (eval echo "$as_me:3508: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3509 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3510 | ac_status=$? |
---|
3511 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3512 | rm -f conftest.er1 |
---|
3513 | cat conftest.err >&5 |
---|
3514 | echo "$as_me:3514: \$? = $ac_status" >&5 |
---|
3515 | (exit $ac_status); } >/dev/null; then |
---|
3516 | if test -s conftest.err; then |
---|
3517 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3518 | else |
---|
3519 | ac_cpp_err= |
---|
3520 | fi |
---|
3521 | else |
---|
3522 | ac_cpp_err=yes |
---|
3523 | fi |
---|
3524 | if test -z "$ac_cpp_err"; then |
---|
3525 | ac_header_preproc=yes |
---|
3526 | else |
---|
3527 | echo "$as_me: failed program was:" >&5 |
---|
3528 | cat conftest.$ac_ext >&5 |
---|
3529 | ac_header_preproc=no |
---|
3530 | fi |
---|
3531 | rm -f conftest.err conftest.$ac_ext |
---|
3532 | echo "$as_me:3532: result: $ac_header_preproc" >&5 |
---|
3533 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3534 | |
---|
3535 | # So? What about this header? |
---|
3536 | case $ac_header_compiler:$ac_header_preproc in |
---|
3537 | yes:no ) |
---|
3538 | { echo "$as_me:3538: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3539 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3540 | { echo "$as_me:3540: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3541 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3542 | no:yes ) |
---|
3543 | { echo "$as_me:3543: WARNING: $ac_header: present but cannot be compiled." >&5 |
---|
3544 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} |
---|
3545 | { echo "$as_me:3545: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3546 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3547 | { echo "$as_me:3547: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3548 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3549 | esac |
---|
3550 | echo "$as_me:3550: checking for $ac_header" >&5 |
---|
3551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3554 | else |
---|
3555 | eval "$as_ac_Header=$ac_header_preproc" |
---|
3556 | fi |
---|
3557 | echo "$as_me:3557: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3559 | |
---|
3560 | fi |
---|
3561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3562 | cat >>confdefs.h <<_ACEOF |
---|
3563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3564 | _ACEOF |
---|
3565 | |
---|
3566 | fi |
---|
3567 | |
---|
3568 | done |
---|
3569 | |
---|
3570 | # Only perform the check for file, if the check method requires it |
---|
3571 | case $deplibs_check_method in |
---|
3572 | file_magic*) |
---|
3573 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
3574 | echo "$as_me:3574: checking for ${ac_tool_prefix}file" >&5 |
---|
3575 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
3576 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3578 | else |
---|
3579 | case $MAGIC_CMD in |
---|
3580 | /*) |
---|
3581 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
3582 | ;; |
---|
3583 | ?:/*) |
---|
3584 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
---|
3585 | ;; |
---|
3586 | *) |
---|
3587 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
---|
3588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3589 | ac_dummy="/usr/bin:$PATH" |
---|
3590 | for ac_dir in $ac_dummy; do |
---|
3591 | test -z "$ac_dir" && ac_dir=. |
---|
3592 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
3593 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
3594 | if test -n "$file_magic_test_file"; then |
---|
3595 | case $deplibs_check_method in |
---|
3596 | "file_magic "*) |
---|
3597 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
3598 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
3599 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
3600 | egrep "$file_magic_regex" > /dev/null; then |
---|
3601 | : |
---|
3602 | else |
---|
3603 | cat <<EOF 1>&2 |
---|
3604 | |
---|
3605 | *** Warning: the command libtool uses to detect shared libraries, |
---|
3606 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
3607 | *** The result is that libtool may fail to recognize shared libraries |
---|
3608 | *** as such. This will affect the creation of libtool libraries that |
---|
3609 | *** depend on shared libraries, but programs linked with such libtool |
---|
3610 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
3611 | *** may want to report the problem to your system manager and/or to |
---|
3612 | *** bug-libtool@gnu.org |
---|
3613 | |
---|
3614 | EOF |
---|
3615 | fi ;; |
---|
3616 | esac |
---|
3617 | fi |
---|
3618 | break |
---|
3619 | fi |
---|
3620 | done |
---|
3621 | IFS="$ac_save_ifs" |
---|
3622 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
---|
3623 | ;; |
---|
3624 | esac |
---|
3625 | fi |
---|
3626 | |
---|
3627 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
3628 | if test -n "$MAGIC_CMD"; then |
---|
3629 | echo "$as_me:3629: result: $MAGIC_CMD" >&5 |
---|
3630 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
3631 | else |
---|
3632 | echo "$as_me:3632: result: no" >&5 |
---|
3633 | echo "${ECHO_T}no" >&6 |
---|
3634 | fi |
---|
3635 | |
---|
3636 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
3637 | if test -n "$ac_tool_prefix"; then |
---|
3638 | echo "$as_me:3638: checking for file" >&5 |
---|
3639 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
3640 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3642 | else |
---|
3643 | case $MAGIC_CMD in |
---|
3644 | /*) |
---|
3645 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
3646 | ;; |
---|
3647 | ?:/*) |
---|
3648 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
---|
3649 | ;; |
---|
3650 | *) |
---|
3651 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
---|
3652 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3653 | ac_dummy="/usr/bin:$PATH" |
---|
3654 | for ac_dir in $ac_dummy; do |
---|
3655 | test -z "$ac_dir" && ac_dir=. |
---|
3656 | if test -f $ac_dir/file; then |
---|
3657 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
3658 | if test -n "$file_magic_test_file"; then |
---|
3659 | case $deplibs_check_method in |
---|
3660 | "file_magic "*) |
---|
3661 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
---|
3662 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
3663 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
3664 | egrep "$file_magic_regex" > /dev/null; then |
---|
3665 | : |
---|
3666 | else |
---|
3667 | cat <<EOF 1>&2 |
---|
3668 | |
---|
3669 | *** Warning: the command libtool uses to detect shared libraries, |
---|
3670 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
3671 | *** The result is that libtool may fail to recognize shared libraries |
---|
3672 | *** as such. This will affect the creation of libtool libraries that |
---|
3673 | *** depend on shared libraries, but programs linked with such libtool |
---|
3674 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
3675 | *** may want to report the problem to your system manager and/or to |
---|
3676 | *** bug-libtool@gnu.org |
---|
3677 | |
---|
3678 | EOF |
---|
3679 | fi ;; |
---|
3680 | esac |
---|
3681 | fi |
---|
3682 | break |
---|
3683 | fi |
---|
3684 | done |
---|
3685 | IFS="$ac_save_ifs" |
---|
3686 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
---|
3687 | ;; |
---|
3688 | esac |
---|
3689 | fi |
---|
3690 | |
---|
3691 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
3692 | if test -n "$MAGIC_CMD"; then |
---|
3693 | echo "$as_me:3693: result: $MAGIC_CMD" >&5 |
---|
3694 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
3695 | else |
---|
3696 | echo "$as_me:3696: result: no" >&5 |
---|
3697 | echo "${ECHO_T}no" >&6 |
---|
3698 | fi |
---|
3699 | |
---|
3700 | else |
---|
3701 | MAGIC_CMD=: |
---|
3702 | fi |
---|
3703 | fi |
---|
3704 | |
---|
3705 | fi |
---|
3706 | ;; |
---|
3707 | esac |
---|
3708 | |
---|
3709 | if test -n "$ac_tool_prefix"; then |
---|
3710 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
3711 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
3712 | echo "$as_me:3712: checking for $ac_word" >&5 |
---|
3713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3714 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3716 | else |
---|
3717 | if test -n "$RANLIB"; then |
---|
3718 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
3719 | else |
---|
3720 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
3721 | ac_dummy="$PATH" |
---|
3722 | for ac_dir in $ac_dummy; do |
---|
3723 | IFS=$ac_save_IFS |
---|
3724 | test -z "$ac_dir" && ac_dir=. |
---|
3725 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
3726 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
3727 | echo "$as_me:3727: found $ac_dir/$ac_word" >&5 |
---|
3728 | break |
---|
3729 | done |
---|
3730 | |
---|
3731 | fi |
---|
3732 | fi |
---|
3733 | RANLIB=$ac_cv_prog_RANLIB |
---|
3734 | if test -n "$RANLIB"; then |
---|
3735 | echo "$as_me:3735: result: $RANLIB" >&5 |
---|
3736 | echo "${ECHO_T}$RANLIB" >&6 |
---|
3737 | else |
---|
3738 | echo "$as_me:3738: result: no" >&5 |
---|
3739 | echo "${ECHO_T}no" >&6 |
---|
3740 | fi |
---|
3741 | |
---|
3742 | fi |
---|
3743 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
3744 | ac_ct_RANLIB=$RANLIB |
---|
3745 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
3746 | set dummy ranlib; ac_word=$2 |
---|
3747 | echo "$as_me:3747: checking for $ac_word" >&5 |
---|
3748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3749 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3751 | else |
---|
3752 | if test -n "$ac_ct_RANLIB"; then |
---|
3753 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
3754 | else |
---|
3755 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
3756 | ac_dummy="$PATH" |
---|
3757 | for ac_dir in $ac_dummy; do |
---|
3758 | IFS=$ac_save_IFS |
---|
3759 | test -z "$ac_dir" && ac_dir=. |
---|
3760 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
3761 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
3762 | echo "$as_me:3762: found $ac_dir/$ac_word" >&5 |
---|
3763 | break |
---|
3764 | done |
---|
3765 | |
---|
3766 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
3767 | fi |
---|
3768 | fi |
---|
3769 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
3770 | if test -n "$ac_ct_RANLIB"; then |
---|
3771 | echo "$as_me:3771: result: $ac_ct_RANLIB" >&5 |
---|
3772 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
3773 | else |
---|
3774 | echo "$as_me:3774: result: no" >&5 |
---|
3775 | echo "${ECHO_T}no" >&6 |
---|
3776 | fi |
---|
3777 | |
---|
3778 | RANLIB=$ac_ct_RANLIB |
---|
3779 | else |
---|
3780 | RANLIB="$ac_cv_prog_RANLIB" |
---|
3781 | fi |
---|
3782 | |
---|
3783 | if test -n "$ac_tool_prefix"; then |
---|
3784 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
3785 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
3786 | echo "$as_me:3786: checking for $ac_word" >&5 |
---|
3787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3788 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3790 | else |
---|
3791 | if test -n "$STRIP"; then |
---|
3792 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
3793 | else |
---|
3794 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
3795 | ac_dummy="$PATH" |
---|
3796 | for ac_dir in $ac_dummy; do |
---|
3797 | IFS=$ac_save_IFS |
---|
3798 | test -z "$ac_dir" && ac_dir=. |
---|
3799 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
3800 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
3801 | echo "$as_me:3801: found $ac_dir/$ac_word" >&5 |
---|
3802 | break |
---|
3803 | done |
---|
3804 | |
---|
3805 | fi |
---|
3806 | fi |
---|
3807 | STRIP=$ac_cv_prog_STRIP |
---|
3808 | if test -n "$STRIP"; then |
---|
3809 | echo "$as_me:3809: result: $STRIP" >&5 |
---|
3810 | echo "${ECHO_T}$STRIP" >&6 |
---|
3811 | else |
---|
3812 | echo "$as_me:3812: result: no" >&5 |
---|
3813 | echo "${ECHO_T}no" >&6 |
---|
3814 | fi |
---|
3815 | |
---|
3816 | fi |
---|
3817 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3818 | ac_ct_STRIP=$STRIP |
---|
3819 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3820 | set dummy strip; ac_word=$2 |
---|
3821 | echo "$as_me:3821: checking for $ac_word" >&5 |
---|
3822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3823 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
3824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3825 | else |
---|
3826 | if test -n "$ac_ct_STRIP"; then |
---|
3827 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3828 | else |
---|
3829 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
3830 | ac_dummy="$PATH" |
---|
3831 | for ac_dir in $ac_dummy; do |
---|
3832 | IFS=$ac_save_IFS |
---|
3833 | test -z "$ac_dir" && ac_dir=. |
---|
3834 | $as_executable_p "$ac_dir/$ac_word" || continue |
---|
3835 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3836 | echo "$as_me:3836: found $ac_dir/$ac_word" >&5 |
---|
3837 | break |
---|
3838 | done |
---|
3839 | |
---|
3840 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
3841 | fi |
---|
3842 | fi |
---|
3843 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3844 | if test -n "$ac_ct_STRIP"; then |
---|
3845 | echo "$as_me:3845: result: $ac_ct_STRIP" >&5 |
---|
3846 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
3847 | else |
---|
3848 | echo "$as_me:3848: result: no" >&5 |
---|
3849 | echo "${ECHO_T}no" >&6 |
---|
3850 | fi |
---|
3851 | |
---|
3852 | STRIP=$ac_ct_STRIP |
---|
3853 | else |
---|
3854 | STRIP="$ac_cv_prog_STRIP" |
---|
3855 | fi |
---|
3856 | |
---|
3857 | enable_dlopen=no |
---|
3858 | enable_win32_dll=no |
---|
3859 | |
---|
3860 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
3861 | if test "${enable_libtool_lock+set}" = set; then |
---|
3862 | enableval="$enable_libtool_lock" |
---|
3863 | |
---|
3864 | fi; |
---|
3865 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
3866 | |
---|
3867 | # Some flags need to be propagated to the compiler or linker for good |
---|
3868 | # libtool support. |
---|
3869 | case $host in |
---|
3870 | *-*-irix6*) |
---|
3871 | # Find out which ABI we are using. |
---|
3872 | echo '#line 3872 "configure"' > conftest.$ac_ext |
---|
3873 | if { (eval echo "$as_me:3873: \"$ac_compile\"") >&5 |
---|
3874 | (eval $ac_compile) 2>&5 |
---|
3875 | ac_status=$? |
---|
3876 | echo "$as_me:3876: \$? = $ac_status" >&5 |
---|
3877 | (exit $ac_status); }; then |
---|
3878 | case `/usr/bin/file conftest.$ac_objext` in |
---|
3879 | *32-bit*) |
---|
3880 | LD="${LD-ld} -32" |
---|
3881 | ;; |
---|
3882 | *N32*) |
---|
3883 | LD="${LD-ld} -n32" |
---|
3884 | ;; |
---|
3885 | *64-bit*) |
---|
3886 | LD="${LD-ld} -64" |
---|
3887 | ;; |
---|
3888 | esac |
---|
3889 | fi |
---|
3890 | rm -rf conftest* |
---|
3891 | ;; |
---|
3892 | |
---|
3893 | *-*-sco3.2v5*) |
---|
3894 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
3895 | SAVE_CFLAGS="$CFLAGS" |
---|
3896 | CFLAGS="$CFLAGS -belf" |
---|
3897 | echo "$as_me:3897: checking whether the C compiler needs -belf" >&5 |
---|
3898 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
3899 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3901 | else |
---|
3902 | |
---|
3903 | ac_ext=c |
---|
3904 | ac_cpp='$CPP $CPPFLAGS' |
---|
3905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3908 | |
---|
3909 | cat >conftest.$ac_ext <<_ACEOF |
---|
3910 | #line 3910 "configure" |
---|
3911 | #include "confdefs.h" |
---|
3912 | |
---|
3913 | #ifdef F77_DUMMY_MAIN |
---|
3914 | # ifdef __cplusplus |
---|
3915 | extern "C" |
---|
3916 | # endif |
---|
3917 | int F77_DUMMY_MAIN() { return 1; } |
---|
3918 | #endif |
---|
3919 | int |
---|
3920 | main () |
---|
3921 | { |
---|
3922 | |
---|
3923 | ; |
---|
3924 | return 0; |
---|
3925 | } |
---|
3926 | _ACEOF |
---|
3927 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3928 | if { (eval echo "$as_me:3928: \"$ac_link\"") >&5 |
---|
3929 | (eval $ac_link) 2>&5 |
---|
3930 | ac_status=$? |
---|
3931 | echo "$as_me:3931: \$? = $ac_status" >&5 |
---|
3932 | (exit $ac_status); } && |
---|
3933 | { ac_try='test -s conftest$ac_exeext' |
---|
3934 | { (eval echo "$as_me:3934: \"$ac_try\"") >&5 |
---|
3935 | (eval $ac_try) 2>&5 |
---|
3936 | ac_status=$? |
---|
3937 | echo "$as_me:3937: \$? = $ac_status" >&5 |
---|
3938 | (exit $ac_status); }; }; then |
---|
3939 | lt_cv_cc_needs_belf=yes |
---|
3940 | else |
---|
3941 | echo "$as_me: failed program was:" >&5 |
---|
3942 | cat conftest.$ac_ext >&5 |
---|
3943 | lt_cv_cc_needs_belf=no |
---|
3944 | fi |
---|
3945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3946 | ac_ext=c |
---|
3947 | ac_cpp='$CPP $CPPFLAGS' |
---|
3948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3951 | |
---|
3952 | fi |
---|
3953 | echo "$as_me:3953: result: $lt_cv_cc_needs_belf" >&5 |
---|
3954 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
3955 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
3956 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
3957 | CFLAGS="$SAVE_CFLAGS" |
---|
3958 | fi |
---|
3959 | ;; |
---|
3960 | |
---|
3961 | esac |
---|
3962 | |
---|
3963 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
3964 | # metacharacters that are still active within double-quoted strings. |
---|
3965 | Xsed='sed -e s/^X//' |
---|
3966 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
3967 | |
---|
3968 | # Same as above, but do not quote variable references. |
---|
3969 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
3970 | |
---|
3971 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
3972 | # double_quote_subst'ed string. |
---|
3973 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
3974 | |
---|
3975 | # Constants: |
---|
3976 | rm="rm -f" |
---|
3977 | |
---|
3978 | # Global variables: |
---|
3979 | default_ofile=libtool |
---|
3980 | can_build_shared=yes |
---|
3981 | |
---|
3982 | # All known linkers require a `.a' archive for static linking (except M$VC, |
---|
3983 | # which needs '.lib'). |
---|
3984 | libext=a |
---|
3985 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
3986 | ofile="$default_ofile" |
---|
3987 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
3988 | need_locks="$enable_libtool_lock" |
---|
3989 | |
---|
3990 | old_CC="$CC" |
---|
3991 | old_CFLAGS="$CFLAGS" |
---|
3992 | |
---|
3993 | # Set sane defaults for various variables |
---|
3994 | test -z "$AR" && AR=ar |
---|
3995 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
3996 | test -z "$AS" && AS=as |
---|
3997 | test -z "$CC" && CC=cc |
---|
3998 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
3999 | test -z "$LD" && LD=ld |
---|
4000 | test -z "$LN_S" && LN_S="ln -s" |
---|
4001 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
4002 | test -z "$NM" && NM=nm |
---|
4003 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
4004 | test -z "$RANLIB" && RANLIB=: |
---|
4005 | test -z "$STRIP" && STRIP=: |
---|
4006 | test -z "$ac_objext" && ac_objext=o |
---|
4007 | |
---|
4008 | if test x"$host" != x"$build"; then |
---|
4009 | ac_tool_prefix=${host_alias}- |
---|
4010 | else |
---|
4011 | ac_tool_prefix= |
---|
4012 | fi |
---|
4013 | |
---|
4014 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
---|
4015 | case $host_os in |
---|
4016 | linux-gnu*) ;; |
---|
4017 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
---|
4018 | esac |
---|
4019 | |
---|
4020 | case $host_os in |
---|
4021 | aix3*) |
---|
4022 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
4023 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
4024 | # vanish in a puff of smoke. |
---|
4025 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
4026 | COLLECT_NAMES= |
---|
4027 | export COLLECT_NAMES |
---|
4028 | fi |
---|
4029 | ;; |
---|
4030 | esac |
---|
4031 | |
---|
4032 | # Determine commands to create old-style static archives. |
---|
4033 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
4034 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
4035 | old_postuninstall_cmds= |
---|
4036 | |
---|
4037 | if test -n "$RANLIB"; then |
---|
4038 | case $host_os in |
---|
4039 | openbsd*) |
---|
4040 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
---|
4041 | ;; |
---|
4042 | *) |
---|
4043 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
4044 | ;; |
---|
4045 | esac |
---|
4046 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
4047 | fi |
---|
4048 | |
---|
4049 | # Allow CC to be a program name with arguments. |
---|
4050 | set dummy $CC |
---|
4051 | compiler="$2" |
---|
4052 | |
---|
4053 | echo "$as_me:4053: checking for objdir" >&5 |
---|
4054 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
4055 | rm -f .libs 2>/dev/null |
---|
4056 | mkdir .libs 2>/dev/null |
---|
4057 | if test -d .libs; then |
---|
4058 | objdir=.libs |
---|
4059 | else |
---|
4060 | # MS-DOS does not allow filenames that begin with a dot. |
---|
4061 | objdir=_libs |
---|
4062 | fi |
---|
4063 | rmdir .libs 2>/dev/null |
---|
4064 | echo "$as_me:4064: result: $objdir" >&5 |
---|
4065 | echo "${ECHO_T}$objdir" >&6 |
---|
4066 | |
---|
4067 | # Check whether --with-pic or --without-pic was given. |
---|
4068 | if test "${with_pic+set}" = set; then |
---|
4069 | withval="$with_pic" |
---|
4070 | pic_mode="$withval" |
---|
4071 | else |
---|
4072 | pic_mode=default |
---|
4073 | fi; |
---|
4074 | test -z "$pic_mode" && pic_mode=default |
---|
4075 | |
---|
4076 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
---|
4077 | # in isolation, and that seeing it set (from the cache) indicates that |
---|
4078 | # the associated values are set (in the cache) correctly too. |
---|
4079 | echo "$as_me:4079: checking for $compiler option to produce PIC" >&5 |
---|
4080 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
4081 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
---|
4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4083 | else |
---|
4084 | lt_cv_prog_cc_pic= |
---|
4085 | lt_cv_prog_cc_shlib= |
---|
4086 | lt_cv_prog_cc_wl= |
---|
4087 | lt_cv_prog_cc_static= |
---|
4088 | lt_cv_prog_cc_no_builtin= |
---|
4089 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
---|
4090 | |
---|
4091 | if test "$GCC" = yes; then |
---|
4092 | lt_cv_prog_cc_wl='-Wl,' |
---|
4093 | lt_cv_prog_cc_static='-static' |
---|
4094 | |
---|
4095 | case $host_os in |
---|
4096 | aix*) |
---|
4097 | # Below there is a dirty hack to force normal static linking with -ldl |
---|
4098 | # The problem is because libdl dynamically linked with both libc and |
---|
4099 | # libC (AIX C++ library), which obviously doesn't included in libraries |
---|
4100 | # list by gcc. This cause undefined symbols with -static flags. |
---|
4101 | # This hack allows C programs to be linked with "-static -ldl", but |
---|
4102 | # not sure about C++ programs. |
---|
4103 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
---|
4104 | ;; |
---|
4105 | amigaos*) |
---|
4106 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
4107 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
4108 | # like `-m68040'. |
---|
4109 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
---|
4110 | ;; |
---|
4111 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
---|
4112 | # PIC is the default for these OSes. |
---|
4113 | ;; |
---|
4114 | darwin* | rhapsody*) |
---|
4115 | # PIC is the default on this platform |
---|
4116 | # Common symbols not allowed in MH_DYLIB files |
---|
4117 | lt_cv_prog_cc_pic='-fno-common' |
---|
4118 | ;; |
---|
4119 | cygwin* | mingw* | pw32* | os2*) |
---|
4120 | # This hack is so that the source file can tell whether it is being |
---|
4121 | # built for inclusion in a dll (and should export symbols for example). |
---|
4122 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
---|
4123 | ;; |
---|
4124 | sysv4*MP*) |
---|
4125 | if test -d /usr/nec; then |
---|
4126 | lt_cv_prog_cc_pic=-Kconform_pic |
---|
4127 | fi |
---|
4128 | ;; |
---|
4129 | *) |
---|
4130 | lt_cv_prog_cc_pic='-fPIC' |
---|
4131 | ;; |
---|
4132 | esac |
---|
4133 | else |
---|
4134 | # PORTME Check for PIC flags for the system compiler. |
---|
4135 | case $host_os in |
---|
4136 | aix3* | aix4* | aix5*) |
---|
4137 | lt_cv_prog_cc_wl='-Wl,' |
---|
4138 | # All AIX code is PIC. |
---|
4139 | if test "$host_cpu" = ia64; then |
---|
4140 | # AIX 5 now supports IA64 processor |
---|
4141 | lt_cv_prog_cc_static='-Bstatic' |
---|
4142 | else |
---|
4143 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
---|
4144 | fi |
---|
4145 | ;; |
---|
4146 | |
---|
4147 | hpux9* | hpux10* | hpux11*) |
---|
4148 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
---|
4149 | lt_cv_prog_cc_wl='-Wl,' |
---|
4150 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
---|
4151 | lt_cv_prog_cc_pic='+Z' |
---|
4152 | ;; |
---|
4153 | |
---|
4154 | irix5* | irix6*) |
---|
4155 | lt_cv_prog_cc_wl='-Wl,' |
---|
4156 | lt_cv_prog_cc_static='-non_shared' |
---|
4157 | # PIC (with -KPIC) is the default. |
---|
4158 | ;; |
---|
4159 | |
---|
4160 | cygwin* | mingw* | pw32* | os2*) |
---|
4161 | # This hack is so that the source file can tell whether it is being |
---|
4162 | # built for inclusion in a dll (and should export symbols for example). |
---|
4163 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
---|
4164 | ;; |
---|
4165 | |
---|
4166 | newsos6) |
---|
4167 | lt_cv_prog_cc_pic='-KPIC' |
---|
4168 | lt_cv_prog_cc_static='-Bstatic' |
---|
4169 | ;; |
---|
4170 | |
---|
4171 | osf3* | osf4* | osf5*) |
---|
4172 | # All OSF/1 code is PIC. |
---|
4173 | lt_cv_prog_cc_wl='-Wl,' |
---|
4174 | lt_cv_prog_cc_static='-non_shared' |
---|
4175 | ;; |
---|
4176 | |
---|
4177 | sco3.2v5*) |
---|
4178 | lt_cv_prog_cc_pic='-Kpic' |
---|
4179 | lt_cv_prog_cc_static='-dn' |
---|
4180 | lt_cv_prog_cc_shlib='-belf' |
---|
4181 | ;; |
---|
4182 | |
---|
4183 | solaris*) |
---|
4184 | lt_cv_prog_cc_pic='-KPIC' |
---|
4185 | lt_cv_prog_cc_static='-Bstatic' |
---|
4186 | lt_cv_prog_cc_wl='-Wl,' |
---|
4187 | ;; |
---|
4188 | |
---|
4189 | sunos4*) |
---|
4190 | lt_cv_prog_cc_pic='-PIC' |
---|
4191 | lt_cv_prog_cc_static='-Bstatic' |
---|
4192 | lt_cv_prog_cc_wl='-Qoption ld ' |
---|
4193 | ;; |
---|
4194 | |
---|
4195 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
4196 | lt_cv_prog_cc_pic='-KPIC' |
---|
4197 | lt_cv_prog_cc_static='-Bstatic' |
---|
4198 | if test "x$host_vendor" = xsni; then |
---|
4199 | lt_cv_prog_cc_wl='-LD' |
---|
4200 | else |
---|
4201 | lt_cv_prog_cc_wl='-Wl,' |
---|
4202 | fi |
---|
4203 | ;; |
---|
4204 | |
---|
4205 | uts4*) |
---|
4206 | lt_cv_prog_cc_pic='-pic' |
---|
4207 | lt_cv_prog_cc_static='-Bstatic' |
---|
4208 | ;; |
---|
4209 | |
---|
4210 | sysv4*MP*) |
---|
4211 | if test -d /usr/nec ;then |
---|
4212 | lt_cv_prog_cc_pic='-Kconform_pic' |
---|
4213 | lt_cv_prog_cc_static='-Bstatic' |
---|
4214 | fi |
---|
4215 | ;; |
---|
4216 | |
---|
4217 | *) |
---|
4218 | lt_cv_prog_cc_can_build_shared=no |
---|
4219 | ;; |
---|
4220 | esac |
---|
4221 | fi |
---|
4222 | |
---|
4223 | fi |
---|
4224 | |
---|
4225 | if test -z "$lt_cv_prog_cc_pic"; then |
---|
4226 | echo "$as_me:4226: result: none" >&5 |
---|
4227 | echo "${ECHO_T}none" >&6 |
---|
4228 | else |
---|
4229 | echo "$as_me:4229: result: $lt_cv_prog_cc_pic" >&5 |
---|
4230 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
---|
4231 | |
---|
4232 | # Check to make sure the pic_flag actually works. |
---|
4233 | echo "$as_me:4233: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
---|
4234 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
---|
4235 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
---|
4236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4237 | else |
---|
4238 | save_CFLAGS="$CFLAGS" |
---|
4239 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
---|
4240 | cat >conftest.$ac_ext <<_ACEOF |
---|
4241 | #line 4241 "configure" |
---|
4242 | #include "confdefs.h" |
---|
4243 | |
---|
4244 | #ifdef F77_DUMMY_MAIN |
---|
4245 | # ifdef __cplusplus |
---|
4246 | extern "C" |
---|
4247 | # endif |
---|
4248 | int F77_DUMMY_MAIN() { return 1; } |
---|
4249 | #endif |
---|
4250 | int |
---|
4251 | main () |
---|
4252 | { |
---|
4253 | |
---|
4254 | ; |
---|
4255 | return 0; |
---|
4256 | } |
---|
4257 | _ACEOF |
---|
4258 | rm -f conftest.$ac_objext |
---|
4259 | if { (eval echo "$as_me:4259: \"$ac_compile\"") >&5 |
---|
4260 | (eval $ac_compile) 2>&5 |
---|
4261 | ac_status=$? |
---|
4262 | echo "$as_me:4262: \$? = $ac_status" >&5 |
---|
4263 | (exit $ac_status); } && |
---|
4264 | { ac_try='test -s conftest.$ac_objext' |
---|
4265 | { (eval echo "$as_me:4265: \"$ac_try\"") >&5 |
---|
4266 | (eval $ac_try) 2>&5 |
---|
4267 | ac_status=$? |
---|
4268 | echo "$as_me:4268: \$? = $ac_status" >&5 |
---|
4269 | (exit $ac_status); }; }; then |
---|
4270 | case $host_os in |
---|
4271 | hpux9* | hpux10* | hpux11*) |
---|
4272 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
---|
4273 | # they create non-PIC objects. So, if there were any warnings, we |
---|
4274 | # assume that PIC is not supported. |
---|
4275 | if test -s conftest.err; then |
---|
4276 | lt_cv_prog_cc_pic_works=no |
---|
4277 | else |
---|
4278 | lt_cv_prog_cc_pic_works=yes |
---|
4279 | fi |
---|
4280 | ;; |
---|
4281 | *) |
---|
4282 | lt_cv_prog_cc_pic_works=yes |
---|
4283 | ;; |
---|
4284 | esac |
---|
4285 | |
---|
4286 | else |
---|
4287 | echo "$as_me: failed program was:" >&5 |
---|
4288 | cat conftest.$ac_ext >&5 |
---|
4289 | lt_cv_prog_cc_pic_works=no |
---|
4290 | |
---|
4291 | fi |
---|
4292 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4293 | CFLAGS="$save_CFLAGS" |
---|
4294 | |
---|
4295 | fi |
---|
4296 | |
---|
4297 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
---|
4298 | lt_cv_prog_cc_pic= |
---|
4299 | lt_cv_prog_cc_can_build_shared=no |
---|
4300 | else |
---|
4301 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
---|
4302 | fi |
---|
4303 | |
---|
4304 | echo "$as_me:4304: result: $lt_cv_prog_cc_pic_works" >&5 |
---|
4305 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
---|
4306 | fi |
---|
4307 | |
---|
4308 | # Check for any special shared library compilation flags. |
---|
4309 | if test -n "$lt_cv_prog_cc_shlib"; then |
---|
4310 | { echo "$as_me:4310: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
---|
4311 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
---|
4312 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
---|
4313 | else |
---|
4314 | { echo "$as_me:4314: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
---|
4315 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
---|
4316 | lt_cv_prog_cc_can_build_shared=no |
---|
4317 | fi |
---|
4318 | fi |
---|
4319 | |
---|
4320 | echo "$as_me:4320: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
---|
4321 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
---|
4322 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
---|
4323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4324 | else |
---|
4325 | lt_cv_prog_cc_static_works=no |
---|
4326 | save_LDFLAGS="$LDFLAGS" |
---|
4327 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
---|
4328 | cat >conftest.$ac_ext <<_ACEOF |
---|
4329 | #line 4329 "configure" |
---|
4330 | #include "confdefs.h" |
---|
4331 | |
---|
4332 | #ifdef F77_DUMMY_MAIN |
---|
4333 | # ifdef __cplusplus |
---|
4334 | extern "C" |
---|
4335 | # endif |
---|
4336 | int F77_DUMMY_MAIN() { return 1; } |
---|
4337 | #endif |
---|
4338 | int |
---|
4339 | main () |
---|
4340 | { |
---|
4341 | |
---|
4342 | ; |
---|
4343 | return 0; |
---|
4344 | } |
---|
4345 | _ACEOF |
---|
4346 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4347 | if { (eval echo "$as_me:4347: \"$ac_link\"") >&5 |
---|
4348 | (eval $ac_link) 2>&5 |
---|
4349 | ac_status=$? |
---|
4350 | echo "$as_me:4350: \$? = $ac_status" >&5 |
---|
4351 | (exit $ac_status); } && |
---|
4352 | { ac_try='test -s conftest$ac_exeext' |
---|
4353 | { (eval echo "$as_me:4353: \"$ac_try\"") >&5 |
---|
4354 | (eval $ac_try) 2>&5 |
---|
4355 | ac_status=$? |
---|
4356 | echo "$as_me:4356: \$? = $ac_status" >&5 |
---|
4357 | (exit $ac_status); }; }; then |
---|
4358 | lt_cv_prog_cc_static_works=yes |
---|
4359 | else |
---|
4360 | echo "$as_me: failed program was:" >&5 |
---|
4361 | cat conftest.$ac_ext >&5 |
---|
4362 | fi |
---|
4363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4364 | LDFLAGS="$save_LDFLAGS" |
---|
4365 | |
---|
4366 | fi |
---|
4367 | |
---|
4368 | # Belt *and* braces to stop my trousers falling down: |
---|
4369 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
---|
4370 | echo "$as_me:4370: result: $lt_cv_prog_cc_static_works" >&5 |
---|
4371 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
---|
4372 | |
---|
4373 | pic_flag="$lt_cv_prog_cc_pic" |
---|
4374 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
---|
4375 | wl="$lt_cv_prog_cc_wl" |
---|
4376 | link_static_flag="$lt_cv_prog_cc_static" |
---|
4377 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
---|
4378 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
---|
4379 | |
---|
4380 | # Check to see if options -o and -c are simultaneously supported by compiler |
---|
4381 | echo "$as_me:4381: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
4382 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
4383 | if test "${lt_cv_compiler_c_o+set}" = set; then |
---|
4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4385 | else |
---|
4386 | |
---|
4387 | $rm -r conftest 2>/dev/null |
---|
4388 | mkdir conftest |
---|
4389 | cd conftest |
---|
4390 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
4391 | mkdir out |
---|
4392 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
---|
4393 | # that will create temporary files in the current directory regardless of |
---|
4394 | # the output directory. Thus, making CWD read-only will cause this test |
---|
4395 | # to fail, enabling locking or at least warning the user not to do parallel |
---|
4396 | # builds. |
---|
4397 | chmod -w . |
---|
4398 | save_CFLAGS="$CFLAGS" |
---|
4399 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
---|
4400 | compiler_c_o=no |
---|
4401 | if { (eval echo configure:4401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
---|
4402 | # The compiler can only warn and ignore the option if not recognized |
---|
4403 | # So say no if there are warnings |
---|
4404 | if test -s out/conftest.err; then |
---|
4405 | lt_cv_compiler_c_o=no |
---|
4406 | else |
---|
4407 | lt_cv_compiler_c_o=yes |
---|
4408 | fi |
---|
4409 | else |
---|
4410 | # Append any errors to the config.log. |
---|
4411 | cat out/conftest.err 1>&5 |
---|
4412 | lt_cv_compiler_c_o=no |
---|
4413 | fi |
---|
4414 | CFLAGS="$save_CFLAGS" |
---|
4415 | chmod u+w . |
---|
4416 | $rm conftest* out/* |
---|
4417 | rmdir out |
---|
4418 | cd .. |
---|
4419 | rmdir conftest |
---|
4420 | $rm -r conftest 2>/dev/null |
---|
4421 | |
---|
4422 | fi |
---|
4423 | |
---|
4424 | compiler_c_o=$lt_cv_compiler_c_o |
---|
4425 | echo "$as_me:4425: result: $compiler_c_o" >&5 |
---|
4426 | echo "${ECHO_T}$compiler_c_o" >&6 |
---|
4427 | |
---|
4428 | if test x"$compiler_c_o" = x"yes"; then |
---|
4429 | # Check to see if we can write to a .lo |
---|
4430 | echo "$as_me:4430: checking if $compiler supports -c -o file.lo" >&5 |
---|
4431 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
---|
4432 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
---|
4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4434 | else |
---|
4435 | |
---|
4436 | lt_cv_compiler_o_lo=no |
---|
4437 | save_CFLAGS="$CFLAGS" |
---|
4438 | CFLAGS="$CFLAGS -c -o conftest.lo" |
---|
4439 | save_objext="$ac_objext" |
---|
4440 | ac_objext=lo |
---|
4441 | cat >conftest.$ac_ext <<_ACEOF |
---|
4442 | #line 4442 "configure" |
---|
4443 | #include "confdefs.h" |
---|
4444 | |
---|
4445 | #ifdef F77_DUMMY_MAIN |
---|
4446 | # ifdef __cplusplus |
---|
4447 | extern "C" |
---|
4448 | # endif |
---|
4449 | int F77_DUMMY_MAIN() { return 1; } |
---|
4450 | #endif |
---|
4451 | int |
---|
4452 | main () |
---|
4453 | { |
---|
4454 | int some_variable = 0; |
---|
4455 | ; |
---|
4456 | return 0; |
---|
4457 | } |
---|
4458 | _ACEOF |
---|
4459 | rm -f conftest.$ac_objext |
---|
4460 | if { (eval echo "$as_me:4460: \"$ac_compile\"") >&5 |
---|
4461 | (eval $ac_compile) 2>&5 |
---|
4462 | ac_status=$? |
---|
4463 | echo "$as_me:4463: \$? = $ac_status" >&5 |
---|
4464 | (exit $ac_status); } && |
---|
4465 | { ac_try='test -s conftest.$ac_objext' |
---|
4466 | { (eval echo "$as_me:4466: \"$ac_try\"") >&5 |
---|
4467 | (eval $ac_try) 2>&5 |
---|
4468 | ac_status=$? |
---|
4469 | echo "$as_me:4469: \$? = $ac_status" >&5 |
---|
4470 | (exit $ac_status); }; }; then |
---|
4471 | # The compiler can only warn and ignore the option if not recognized |
---|
4472 | # So say no if there are warnings |
---|
4473 | if test -s conftest.err; then |
---|
4474 | lt_cv_compiler_o_lo=no |
---|
4475 | else |
---|
4476 | lt_cv_compiler_o_lo=yes |
---|
4477 | fi |
---|
4478 | |
---|
4479 | else |
---|
4480 | echo "$as_me: failed program was:" >&5 |
---|
4481 | cat conftest.$ac_ext >&5 |
---|
4482 | fi |
---|
4483 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4484 | ac_objext="$save_objext" |
---|
4485 | CFLAGS="$save_CFLAGS" |
---|
4486 | |
---|
4487 | fi |
---|
4488 | |
---|
4489 | compiler_o_lo=$lt_cv_compiler_o_lo |
---|
4490 | echo "$as_me:4490: result: $compiler_o_lo" >&5 |
---|
4491 | echo "${ECHO_T}$compiler_o_lo" >&6 |
---|
4492 | else |
---|
4493 | compiler_o_lo=no |
---|
4494 | fi |
---|
4495 | |
---|
4496 | # Check to see if we can do hard links to lock some files if needed |
---|
4497 | hard_links="nottested" |
---|
4498 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
---|
4499 | # do not overwrite the value of need_locks provided by the user |
---|
4500 | echo "$as_me:4500: checking if we can lock with hard links" >&5 |
---|
4501 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
4502 | hard_links=yes |
---|
4503 | $rm conftest* |
---|
4504 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
4505 | touch conftest.a |
---|
4506 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
4507 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
4508 | echo "$as_me:4508: result: $hard_links" >&5 |
---|
4509 | echo "${ECHO_T}$hard_links" >&6 |
---|
4510 | if test "$hard_links" = no; then |
---|
4511 | { echo "$as_me:4511: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
4512 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
4513 | need_locks=warn |
---|
4514 | fi |
---|
4515 | else |
---|
4516 | need_locks=no |
---|
4517 | fi |
---|
4518 | |
---|
4519 | if test "$GCC" = yes; then |
---|
4520 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
---|
4521 | echo "$as_me:4521: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
4522 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
4523 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
4524 | save_CFLAGS="$CFLAGS" |
---|
4525 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
---|
4526 | compiler_rtti_exceptions=no |
---|
4527 | cat >conftest.$ac_ext <<_ACEOF |
---|
4528 | #line 4528 "configure" |
---|
4529 | #include "confdefs.h" |
---|
4530 | |
---|
4531 | #ifdef F77_DUMMY_MAIN |
---|
4532 | # ifdef __cplusplus |
---|
4533 | extern "C" |
---|
4534 | # endif |
---|
4535 | int F77_DUMMY_MAIN() { return 1; } |
---|
4536 | #endif |
---|
4537 | int |
---|
4538 | main () |
---|
4539 | { |
---|
4540 | int some_variable = 0; |
---|
4541 | ; |
---|
4542 | return 0; |
---|
4543 | } |
---|
4544 | _ACEOF |
---|
4545 | rm -f conftest.$ac_objext |
---|
4546 | if { (eval echo "$as_me:4546: \"$ac_compile\"") >&5 |
---|
4547 | (eval $ac_compile) 2>&5 |
---|
4548 | ac_status=$? |
---|
4549 | echo "$as_me:4549: \$? = $ac_status" >&5 |
---|
4550 | (exit $ac_status); } && |
---|
4551 | { ac_try='test -s conftest.$ac_objext' |
---|
4552 | { (eval echo "$as_me:4552: \"$ac_try\"") >&5 |
---|
4553 | (eval $ac_try) 2>&5 |
---|
4554 | ac_status=$? |
---|
4555 | echo "$as_me:4555: \$? = $ac_status" >&5 |
---|
4556 | (exit $ac_status); }; }; then |
---|
4557 | # The compiler can only warn and ignore the option if not recognized |
---|
4558 | # So say no if there are warnings |
---|
4559 | if test -s conftest.err; then |
---|
4560 | compiler_rtti_exceptions=no |
---|
4561 | else |
---|
4562 | compiler_rtti_exceptions=yes |
---|
4563 | fi |
---|
4564 | |
---|
4565 | else |
---|
4566 | echo "$as_me: failed program was:" >&5 |
---|
4567 | cat conftest.$ac_ext >&5 |
---|
4568 | fi |
---|
4569 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4570 | CFLAGS="$save_CFLAGS" |
---|
4571 | echo "$as_me:4571: result: $compiler_rtti_exceptions" >&5 |
---|
4572 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
---|
4573 | |
---|
4574 | if test "$compiler_rtti_exceptions" = "yes"; then |
---|
4575 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
---|
4576 | else |
---|
4577 | no_builtin_flag=' -fno-builtin' |
---|
4578 | fi |
---|
4579 | fi |
---|
4580 | |
---|
4581 | # See if the linker supports building shared libraries. |
---|
4582 | echo "$as_me:4582: checking whether the linker ($LD) supports shared libraries" >&5 |
---|
4583 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
4584 | |
---|
4585 | allow_undefined_flag= |
---|
4586 | no_undefined_flag= |
---|
4587 | need_lib_prefix=unknown |
---|
4588 | need_version=unknown |
---|
4589 | # when you set need_version to no, make sure it does not cause -set_version |
---|
4590 | # flags to be left without arguments |
---|
4591 | archive_cmds= |
---|
4592 | archive_expsym_cmds= |
---|
4593 | old_archive_from_new_cmds= |
---|
4594 | old_archive_from_expsyms_cmds= |
---|
4595 | export_dynamic_flag_spec= |
---|
4596 | whole_archive_flag_spec= |
---|
4597 | thread_safe_flag_spec= |
---|
4598 | hardcode_into_libs=no |
---|
4599 | hardcode_libdir_flag_spec= |
---|
4600 | hardcode_libdir_separator= |
---|
4601 | hardcode_direct=no |
---|
4602 | hardcode_minus_L=no |
---|
4603 | hardcode_shlibpath_var=unsupported |
---|
4604 | runpath_var= |
---|
4605 | link_all_deplibs=unknown |
---|
4606 | always_export_symbols=no |
---|
4607 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
4608 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
4609 | # included in the symbol list |
---|
4610 | include_expsyms= |
---|
4611 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
---|
4612 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
4613 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
4614 | # as well as any symbol that contains `d'. |
---|
4615 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
4616 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
4617 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
4618 | # the symbol is explicitly referenced. Since portable code cannot |
---|
4619 | # rely on this symbol name, it's probably fine to never include it in |
---|
4620 | # preloaded symbol tables. |
---|
4621 | extract_expsyms_cmds= |
---|
4622 | |
---|
4623 | case $host_os in |
---|
4624 | cygwin* | mingw* | pw32*) |
---|
4625 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
4626 | # When not using gcc, we currently assume that we are using |
---|
4627 | # Microsoft Visual C++. |
---|
4628 | if test "$GCC" != yes; then |
---|
4629 | with_gnu_ld=no |
---|
4630 | fi |
---|
4631 | ;; |
---|
4632 | openbsd*) |
---|
4633 | with_gnu_ld=no |
---|
4634 | ;; |
---|
4635 | esac |
---|
4636 | |
---|
4637 | ld_shlibs=yes |
---|
4638 | if test "$with_gnu_ld" = yes; then |
---|
4639 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
4640 | wlarc='${wl}' |
---|
4641 | |
---|
4642 | # See if GNU ld supports shared libraries. |
---|
4643 | case $host_os in |
---|
4644 | aix3* | aix4* | aix5*) |
---|
4645 | # On AIX, the GNU linker is very broken |
---|
4646 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
---|
4647 | ld_shlibs=no |
---|
4648 | cat <<EOF 1>&2 |
---|
4649 | |
---|
4650 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
4651 | *** to be unable to reliably create shared libraries on AIX. |
---|
4652 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
4653 | *** really care for shared libraries, you may want to modify your PATH |
---|
4654 | *** so that a non-GNU linker is found, and then restart. |
---|
4655 | |
---|
4656 | EOF |
---|
4657 | ;; |
---|
4658 | |
---|
4659 | amigaos*) |
---|
4660 | 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)' |
---|
4661 | hardcode_libdir_flag_spec='-L$libdir' |
---|
4662 | hardcode_minus_L=yes |
---|
4663 | |
---|
4664 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
4665 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
4666 | # to version 4, is to share data among multiple programs linked |
---|
4667 | # with the same dynamic library. Since this doesn't match the |
---|
4668 | # behavior of shared libraries on other platforms, we can use |
---|
4669 | # them. |
---|
4670 | ld_shlibs=no |
---|
4671 | ;; |
---|
4672 | |
---|
4673 | beos*) |
---|
4674 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
4675 | allow_undefined_flag=unsupported |
---|
4676 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
4677 | # support --undefined. This deserves some investigation. FIXME |
---|
4678 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4679 | else |
---|
4680 | ld_shlibs=no |
---|
4681 | fi |
---|
4682 | ;; |
---|
4683 | |
---|
4684 | cygwin* | mingw* | pw32*) |
---|
4685 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
4686 | # no search path for DLLs. |
---|
4687 | hardcode_libdir_flag_spec='-L$libdir' |
---|
4688 | allow_undefined_flag=unsupported |
---|
4689 | always_export_symbols=yes |
---|
4690 | |
---|
4691 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
---|
4692 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
---|
4693 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
---|
4694 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
---|
4695 | else $CC -o impgen impgen.c ; fi)~ |
---|
4696 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
---|
4697 | |
---|
4698 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
---|
4699 | |
---|
4700 | # cygwin and mingw dlls have different entry points and sets of symbols |
---|
4701 | # to exclude. |
---|
4702 | # FIXME: what about values for MSVC? |
---|
4703 | dll_entry=__cygwin_dll_entry@12 |
---|
4704 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
---|
4705 | case $host_os in |
---|
4706 | mingw*) |
---|
4707 | # mingw values |
---|
4708 | dll_entry=_DllMainCRTStartup@12 |
---|
4709 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
---|
4710 | ;; |
---|
4711 | esac |
---|
4712 | |
---|
4713 | # mingw and cygwin differ, and it's simplest to just exclude the union |
---|
4714 | # of the two symbol sets. |
---|
4715 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
---|
4716 | |
---|
4717 | # recent cygwin and mingw systems supply a stub DllMain which the user |
---|
4718 | # can override, but on older systems we have to supply one (in ltdll.c) |
---|
4719 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
---|
4720 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
---|
4721 | 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~ |
---|
4722 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
---|
4723 | else |
---|
4724 | ltdll_obj= |
---|
4725 | ltdll_cmds= |
---|
4726 | fi |
---|
4727 | |
---|
4728 | # Extract the symbol export list from an `--export-all' def file, |
---|
4729 | # then regenerate the def file from the symbol export list, so that |
---|
4730 | # the compiled dll only exports the symbol export list. |
---|
4731 | # Be careful not to strip the DATA tag left be newer dlltools. |
---|
4732 | export_symbols_cmds="$ltdll_cmds"' |
---|
4733 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
---|
4734 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
---|
4735 | |
---|
4736 | # If the export-symbols file already is a .def file (1st line |
---|
4737 | # is EXPORTS), use it as is. |
---|
4738 | # If DATA tags from a recent dlltool are present, honour them! |
---|
4739 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
---|
4740 | cp $export_symbols $output_objdir/$soname-def; |
---|
4741 | else |
---|
4742 | echo EXPORTS > $output_objdir/$soname-def; |
---|
4743 | _lt_hint=1; |
---|
4744 | cat $export_symbols | while read symbol; do |
---|
4745 | set dummy \$symbol; |
---|
4746 | case \$# in |
---|
4747 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
---|
4748 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
---|
4749 | esac; |
---|
4750 | _lt_hint=`expr 1 + \$_lt_hint`; |
---|
4751 | done; |
---|
4752 | fi~ |
---|
4753 | '"$ltdll_cmds"' |
---|
4754 | $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~ |
---|
4755 | $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~ |
---|
4756 | $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~ |
---|
4757 | $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~ |
---|
4758 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
---|
4759 | ;; |
---|
4760 | |
---|
4761 | netbsd*) |
---|
4762 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
4763 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
4764 | wlarc= |
---|
4765 | else |
---|
4766 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4767 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
4768 | fi |
---|
4769 | ;; |
---|
4770 | |
---|
4771 | solaris* | sysv5*) |
---|
4772 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
---|
4773 | ld_shlibs=no |
---|
4774 | cat <<EOF 1>&2 |
---|
4775 | |
---|
4776 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
4777 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
4778 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
4779 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
4780 | *** your PATH or compiler configuration so that the native linker is |
---|
4781 | *** used, and then restart. |
---|
4782 | |
---|
4783 | EOF |
---|
4784 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
4785 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4786 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
4787 | else |
---|
4788 | ld_shlibs=no |
---|
4789 | fi |
---|
4790 | ;; |
---|
4791 | |
---|
4792 | sunos4*) |
---|
4793 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
4794 | wlarc= |
---|
4795 | hardcode_direct=yes |
---|
4796 | hardcode_shlibpath_var=no |
---|
4797 | ;; |
---|
4798 | |
---|
4799 | *) |
---|
4800 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
---|
4801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
4802 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
4803 | else |
---|
4804 | ld_shlibs=no |
---|
4805 | fi |
---|
4806 | ;; |
---|
4807 | esac |
---|
4808 | |
---|
4809 | if test "$ld_shlibs" = yes; then |
---|
4810 | runpath_var=LD_RUN_PATH |
---|
4811 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
4812 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
4813 | case $host_os in |
---|
4814 | cygwin* | mingw* | pw32*) |
---|
4815 | # dlltool doesn't understand --whole-archive et. al. |
---|
4816 | whole_archive_flag_spec= |
---|
4817 | ;; |
---|
4818 | *) |
---|
4819 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
4820 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
---|
4821 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
4822 | else |
---|
4823 | whole_archive_flag_spec= |
---|
4824 | fi |
---|
4825 | ;; |
---|
4826 | esac |
---|
4827 | fi |
---|
4828 | else |
---|
4829 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
4830 | case $host_os in |
---|
4831 | aix3*) |
---|
4832 | allow_undefined_flag=unsupported |
---|
4833 | always_export_symbols=yes |
---|
4834 | 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' |
---|
4835 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
4836 | # are no directories specified by -L. |
---|
4837 | hardcode_minus_L=yes |
---|
4838 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
4839 | # Neither direct hardcoding nor static linking is supported with a |
---|
4840 | # broken collect2. |
---|
4841 | hardcode_direct=unsupported |
---|
4842 | fi |
---|
4843 | ;; |
---|
4844 | |
---|
4845 | aix4* | aix5*) |
---|
4846 | if test "$host_cpu" = ia64; then |
---|
4847 | # On IA64, the linker does run time linking by default, so we don't |
---|
4848 | # have to do anything special. |
---|
4849 | aix_use_runtimelinking=no |
---|
4850 | exp_sym_flag='-Bexport' |
---|
4851 | no_entry_flag="" |
---|
4852 | else |
---|
4853 | aix_use_runtimelinking=no |
---|
4854 | |
---|
4855 | # Test if we are trying to use run time linking or normal |
---|
4856 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
4857 | # need to do runtime linking. |
---|
4858 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
4859 | for ld_flag in $LDFLAGS; do |
---|
4860 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
4861 | aix_use_runtimelinking=yes |
---|
4862 | break |
---|
4863 | fi |
---|
4864 | done |
---|
4865 | esac |
---|
4866 | |
---|
4867 | exp_sym_flag='-bexport' |
---|
4868 | no_entry_flag='-bnoentry' |
---|
4869 | fi |
---|
4870 | |
---|
4871 | # When large executables or shared objects are built, AIX ld can |
---|
4872 | # have problems creating the table of contents. If linking a library |
---|
4873 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
4874 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
4875 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
4876 | |
---|
4877 | hardcode_direct=yes |
---|
4878 | archive_cmds='' |
---|
4879 | hardcode_libdir_separator=':' |
---|
4880 | if test "$GCC" = yes; then |
---|
4881 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
4882 | collect2name=`${CC} -print-prog-name=collect2` |
---|
4883 | if test -f "$collect2name" && \ |
---|
4884 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
4885 | then |
---|
4886 | # We have reworked collect2 |
---|
4887 | hardcode_direct=yes |
---|
4888 | else |
---|
4889 | # We have old collect2 |
---|
4890 | hardcode_direct=unsupported |
---|
4891 | # It fails to find uninstalled libraries when the uninstalled |
---|
4892 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
4893 | # to unsupported forces relinking |
---|
4894 | hardcode_minus_L=yes |
---|
4895 | hardcode_libdir_flag_spec='-L$libdir' |
---|
4896 | hardcode_libdir_separator= |
---|
4897 | fi |
---|
4898 | esac |
---|
4899 | |
---|
4900 | shared_flag='-shared' |
---|
4901 | else |
---|
4902 | # not using gcc |
---|
4903 | if test "$host_cpu" = ia64; then |
---|
4904 | shared_flag='${wl}-G' |
---|
4905 | else |
---|
4906 | if test "$aix_use_runtimelinking" = yes; then |
---|
4907 | shared_flag='${wl}-G' |
---|
4908 | else |
---|
4909 | shared_flag='${wl}-bM:SRE' |
---|
4910 | fi |
---|
4911 | fi |
---|
4912 | fi |
---|
4913 | |
---|
4914 | # It seems that -bexpall can do strange things, so it is better to |
---|
4915 | # generate a list of symbols to export. |
---|
4916 | always_export_symbols=yes |
---|
4917 | if test "$aix_use_runtimelinking" = yes; then |
---|
4918 | # Warning - without using the other runtime loading flags (-brtl), |
---|
4919 | # -berok will link without error, but may produce a broken library. |
---|
4920 | allow_undefined_flag='-berok' |
---|
4921 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
---|
4922 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
4923 | else |
---|
4924 | if test "$host_cpu" = ia64; then |
---|
4925 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
4926 | allow_undefined_flag="-z nodefs" |
---|
4927 | 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" |
---|
4928 | else |
---|
4929 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
---|
4930 | # Warning - without using the other run time loading flags, |
---|
4931 | # -berok will link without error, but may produce a broken library. |
---|
4932 | allow_undefined_flag='${wl}-berok' |
---|
4933 | # This is a bit strange, but is similar to how AIX traditionally builds |
---|
4934 | # it's shared libraries. |
---|
4935 | 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' |
---|
4936 | fi |
---|
4937 | fi |
---|
4938 | ;; |
---|
4939 | |
---|
4940 | amigaos*) |
---|
4941 | 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)' |
---|
4942 | hardcode_libdir_flag_spec='-L$libdir' |
---|
4943 | hardcode_minus_L=yes |
---|
4944 | # see comment about different semantics on the GNU ld section |
---|
4945 | ld_shlibs=no |
---|
4946 | ;; |
---|
4947 | |
---|
4948 | cygwin* | mingw* | pw32*) |
---|
4949 | # When not using gcc, we currently assume that we are using |
---|
4950 | # Microsoft Visual C++. |
---|
4951 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
4952 | # no search path for DLLs. |
---|
4953 | hardcode_libdir_flag_spec=' ' |
---|
4954 | allow_undefined_flag=unsupported |
---|
4955 | # Tell ltmain to make .lib files, not .a files. |
---|
4956 | libext=lib |
---|
4957 | # FIXME: Setting linknames here is a bad hack. |
---|
4958 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
4959 | # The linker will automatically build a .lib file if we build a DLL. |
---|
4960 | old_archive_from_new_cmds='true' |
---|
4961 | # FIXME: Should let the user specify the lib program. |
---|
4962 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
4963 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
4964 | ;; |
---|
4965 | |
---|
4966 | darwin* | rhapsody*) |
---|
4967 | case "$host_os" in |
---|
4968 | rhapsody* | darwin1.[012]) |
---|
4969 | allow_undefined_flag='-undefined suppress' |
---|
4970 | ;; |
---|
4971 | *) # Darwin 1.3 on |
---|
4972 | allow_undefined_flag='-flat_namespace -undefined suppress' |
---|
4973 | ;; |
---|
4974 | esac |
---|
4975 | # FIXME: Relying on posixy $() will cause problems for |
---|
4976 | # cross-compilation, but unfortunately the echo tests do not |
---|
4977 | # yet detect zsh echo's removal of \ escapes. |
---|
4978 | archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
---|
4979 | # We need to add '_' to the symbols in $export_symbols first |
---|
4980 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
---|
4981 | hardcode_direct=yes |
---|
4982 | hardcode_shlibpath_var=no |
---|
4983 | whole_archive_flag_spec='-all_load $convenience' |
---|
4984 | ;; |
---|
4985 | |
---|
4986 | freebsd1*) |
---|
4987 | ld_shlibs=no |
---|
4988 | ;; |
---|
4989 | |
---|
4990 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
4991 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
4992 | # does not break anything, and helps significantly (at the cost of a little |
---|
4993 | # extra space). |
---|
4994 | freebsd2.2*) |
---|
4995 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
4996 | hardcode_libdir_flag_spec='-R$libdir' |
---|
4997 | hardcode_direct=yes |
---|
4998 | hardcode_shlibpath_var=no |
---|
4999 | ;; |
---|
5000 | |
---|
5001 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
5002 | freebsd2*) |
---|
5003 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
5004 | hardcode_direct=yes |
---|
5005 | hardcode_minus_L=yes |
---|
5006 | hardcode_shlibpath_var=no |
---|
5007 | ;; |
---|
5008 | |
---|
5009 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
5010 | freebsd*) |
---|
5011 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
5012 | hardcode_libdir_flag_spec='-R$libdir' |
---|
5013 | hardcode_direct=yes |
---|
5014 | hardcode_shlibpath_var=no |
---|
5015 | ;; |
---|
5016 | |
---|
5017 | hpux9* | hpux10* | hpux11*) |
---|
5018 | case $host_os in |
---|
5019 | 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' ;; |
---|
5020 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
---|
5021 | esac |
---|
5022 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
5023 | hardcode_libdir_separator=: |
---|
5024 | hardcode_direct=yes |
---|
5025 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
---|
5026 | # location of the library. |
---|
5027 | export_dynamic_flag_spec='${wl}-E' |
---|
5028 | ;; |
---|
5029 | |
---|
5030 | irix5* | irix6*) |
---|
5031 | if test "$GCC" = yes; then |
---|
5032 | 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' |
---|
5033 | else |
---|
5034 | 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' |
---|
5035 | fi |
---|
5036 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
5037 | hardcode_libdir_separator=: |
---|
5038 | link_all_deplibs=yes |
---|
5039 | ;; |
---|
5040 | |
---|
5041 | netbsd*) |
---|
5042 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
5043 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
5044 | else |
---|
5045 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
5046 | fi |
---|
5047 | hardcode_libdir_flag_spec='-R$libdir' |
---|
5048 | hardcode_direct=yes |
---|
5049 | hardcode_shlibpath_var=no |
---|
5050 | ;; |
---|
5051 | |
---|
5052 | newsos6) |
---|
5053 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5054 | hardcode_direct=yes |
---|
5055 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
5056 | hardcode_libdir_separator=: |
---|
5057 | hardcode_shlibpath_var=no |
---|
5058 | ;; |
---|
5059 | |
---|
5060 | openbsd*) |
---|
5061 | hardcode_direct=yes |
---|
5062 | hardcode_shlibpath_var=no |
---|
5063 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5064 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
---|
5065 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
5066 | export_dynamic_flag_spec='${wl}-E' |
---|
5067 | else |
---|
5068 | case "$host_os" in |
---|
5069 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
5070 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
5071 | hardcode_libdir_flag_spec='-R$libdir' |
---|
5072 | ;; |
---|
5073 | *) |
---|
5074 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
---|
5075 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
5076 | ;; |
---|
5077 | esac |
---|
5078 | fi |
---|
5079 | ;; |
---|
5080 | |
---|
5081 | os2*) |
---|
5082 | hardcode_libdir_flag_spec='-L$libdir' |
---|
5083 | hardcode_minus_L=yes |
---|
5084 | allow_undefined_flag=unsupported |
---|
5085 | 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' |
---|
5086 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
5087 | ;; |
---|
5088 | |
---|
5089 | osf3*) |
---|
5090 | if test "$GCC" = yes; then |
---|
5091 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
5092 | 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' |
---|
5093 | else |
---|
5094 | allow_undefined_flag=' -expect_unresolved \*' |
---|
5095 | 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' |
---|
5096 | fi |
---|
5097 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
5098 | hardcode_libdir_separator=: |
---|
5099 | ;; |
---|
5100 | |
---|
5101 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
5102 | if test "$GCC" = yes; then |
---|
5103 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
5104 | 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' |
---|
5105 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
5106 | else |
---|
5107 | allow_undefined_flag=' -expect_unresolved \*' |
---|
5108 | 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' |
---|
5109 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
5110 | $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' |
---|
5111 | |
---|
5112 | #Both c and cxx compiler support -rpath directly |
---|
5113 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
5114 | fi |
---|
5115 | hardcode_libdir_separator=: |
---|
5116 | ;; |
---|
5117 | |
---|
5118 | sco3.2v5*) |
---|
5119 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5120 | hardcode_shlibpath_var=no |
---|
5121 | runpath_var=LD_RUN_PATH |
---|
5122 | hardcode_runpath_var=yes |
---|
5123 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
5124 | ;; |
---|
5125 | |
---|
5126 | solaris*) |
---|
5127 | # gcc --version < 3.0 without binutils cannot create self contained |
---|
5128 | # shared libraries reliably, requiring libgcc.a to resolve some of |
---|
5129 | # the object symbols generated in some cases. Libraries that use |
---|
5130 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
---|
5131 | # a copy of libgcc.a into every shared library to guarantee resolving |
---|
5132 | # such symbols causes other problems: According to Tim Van Holder |
---|
5133 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
---|
5134 | # (to the application) exception stack for one thing. |
---|
5135 | no_undefined_flag=' -z defs' |
---|
5136 | if test "$GCC" = yes; then |
---|
5137 | case `$CC --version 2>/dev/null` in |
---|
5138 | [12].*) |
---|
5139 | cat <<EOF 1>&2 |
---|
5140 | |
---|
5141 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
---|
5142 | *** create self contained shared libraries on Solaris systems, without |
---|
5143 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
---|
5144 | *** -no-undefined support, which will at least allow you to build shared |
---|
5145 | *** libraries. However, you may find that when you link such libraries |
---|
5146 | *** into an application without using GCC, you have to manually add |
---|
5147 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
---|
5148 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
---|
5149 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
---|
5150 | |
---|
5151 | EOF |
---|
5152 | no_undefined_flag= |
---|
5153 | ;; |
---|
5154 | esac |
---|
5155 | fi |
---|
5156 | # $CC -shared without GNU ld will not create a library from C++ |
---|
5157 | # object files and a static libstdc++, better avoid it by now |
---|
5158 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5159 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
5160 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
5161 | hardcode_libdir_flag_spec='-R$libdir' |
---|
5162 | hardcode_shlibpath_var=no |
---|
5163 | case $host_os in |
---|
5164 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
5165 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
5166 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
5167 | esac |
---|
5168 | link_all_deplibs=yes |
---|
5169 | ;; |
---|
5170 | |
---|
5171 | sunos4*) |
---|
5172 | if test "x$host_vendor" = xsequent; then |
---|
5173 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
5174 | # files that make .init and .fini sections work. |
---|
5175 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
5176 | else |
---|
5177 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
5178 | fi |
---|
5179 | hardcode_libdir_flag_spec='-L$libdir' |
---|
5180 | hardcode_direct=yes |
---|
5181 | hardcode_minus_L=yes |
---|
5182 | hardcode_shlibpath_var=no |
---|
5183 | ;; |
---|
5184 | |
---|
5185 | sysv4) |
---|
5186 | if test "x$host_vendor" = xsno; then |
---|
5187 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5188 | hardcode_direct=yes # is this really true??? |
---|
5189 | else |
---|
5190 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5191 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
5192 | fi |
---|
5193 | runpath_var='LD_RUN_PATH' |
---|
5194 | hardcode_shlibpath_var=no |
---|
5195 | ;; |
---|
5196 | |
---|
5197 | sysv4.3*) |
---|
5198 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5199 | hardcode_shlibpath_var=no |
---|
5200 | export_dynamic_flag_spec='-Bexport' |
---|
5201 | ;; |
---|
5202 | |
---|
5203 | sysv5*) |
---|
5204 | no_undefined_flag=' -z text' |
---|
5205 | # $CC -shared without GNU ld will not create a library from C++ |
---|
5206 | # object files and a static libstdc++, better avoid it by now |
---|
5207 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5208 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
5209 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
5210 | hardcode_libdir_flag_spec= |
---|
5211 | hardcode_shlibpath_var=no |
---|
5212 | runpath_var='LD_RUN_PATH' |
---|
5213 | ;; |
---|
5214 | |
---|
5215 | uts4*) |
---|
5216 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5217 | hardcode_libdir_flag_spec='-L$libdir' |
---|
5218 | hardcode_shlibpath_var=no |
---|
5219 | ;; |
---|
5220 | |
---|
5221 | dgux*) |
---|
5222 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5223 | hardcode_libdir_flag_spec='-L$libdir' |
---|
5224 | hardcode_shlibpath_var=no |
---|
5225 | ;; |
---|
5226 | |
---|
5227 | sysv4*MP*) |
---|
5228 | if test -d /usr/nec; then |
---|
5229 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
5230 | hardcode_shlibpath_var=no |
---|
5231 | runpath_var=LD_RUN_PATH |
---|
5232 | hardcode_runpath_var=yes |
---|
5233 | ld_shlibs=yes |
---|
5234 | fi |
---|
5235 | ;; |
---|
5236 | |
---|
5237 | sysv4.2uw2*) |
---|
5238 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
5239 | hardcode_direct=yes |
---|
5240 | hardcode_minus_L=no |
---|
5241 | hardcode_shlibpath_var=no |
---|
5242 | hardcode_runpath_var=yes |
---|
5243 | runpath_var=LD_RUN_PATH |
---|
5244 | ;; |
---|
5245 | |
---|
5246 | sysv5uw7* | unixware7*) |
---|
5247 | no_undefined_flag='${wl}-z ${wl}text' |
---|
5248 | if test "$GCC" = yes; then |
---|
5249 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
5250 | else |
---|
5251 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
5252 | fi |
---|
5253 | runpath_var='LD_RUN_PATH' |
---|
5254 | hardcode_shlibpath_var=no |
---|
5255 | ;; |
---|
5256 | |
---|
5257 | *) |
---|
5258 | ld_shlibs=no |
---|
5259 | ;; |
---|
5260 | esac |
---|
5261 | fi |
---|
5262 | echo "$as_me:5262: result: $ld_shlibs" >&5 |
---|
5263 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
5264 | test "$ld_shlibs" = no && can_build_shared=no |
---|
5265 | |
---|
5266 | # Check hardcoding attributes. |
---|
5267 | echo "$as_me:5267: checking how to hardcode library paths into programs" >&5 |
---|
5268 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
5269 | hardcode_action= |
---|
5270 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
5271 | test -n "$runpath_var"; then |
---|
5272 | |
---|
5273 | # We can hardcode non-existant directories. |
---|
5274 | if test "$hardcode_direct" != no && |
---|
5275 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
5276 | # have to relink, otherwise we might link with an installed library |
---|
5277 | # when we should be linking with a yet-to-be-installed one |
---|
5278 | ## test "$hardcode_shlibpath_var" != no && |
---|
5279 | test "$hardcode_minus_L" != no; then |
---|
5280 | # Linking always hardcodes the temporary library directory. |
---|
5281 | hardcode_action=relink |
---|
5282 | else |
---|
5283 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
5284 | hardcode_action=immediate |
---|
5285 | fi |
---|
5286 | else |
---|
5287 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
5288 | # directories. |
---|
5289 | hardcode_action=unsupported |
---|
5290 | fi |
---|
5291 | echo "$as_me:5291: result: $hardcode_action" >&5 |
---|
5292 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
5293 | |
---|
5294 | striplib= |
---|
5295 | old_striplib= |
---|
5296 | echo "$as_me:5296: checking whether stripping libraries is possible" >&5 |
---|
5297 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
5298 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
5299 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
5300 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
5301 | echo "$as_me:5301: result: yes" >&5 |
---|
5302 | echo "${ECHO_T}yes" >&6 |
---|
5303 | else |
---|
5304 | echo "$as_me:5304: result: no" >&5 |
---|
5305 | echo "${ECHO_T}no" >&6 |
---|
5306 | fi |
---|
5307 | |
---|
5308 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5309 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5310 | |
---|
5311 | # PORTME Fill in your ld.so characteristics |
---|
5312 | echo "$as_me:5312: checking dynamic linker characteristics" >&5 |
---|
5313 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
5314 | library_names_spec= |
---|
5315 | libname_spec='lib$name' |
---|
5316 | soname_spec= |
---|
5317 | postinstall_cmds= |
---|
5318 | postuninstall_cmds= |
---|
5319 | finish_cmds= |
---|
5320 | finish_eval= |
---|
5321 | shlibpath_var= |
---|
5322 | shlibpath_overrides_runpath=unknown |
---|
5323 | version_type=none |
---|
5324 | dynamic_linker="$host_os ld.so" |
---|
5325 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
5326 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
5327 | |
---|
5328 | case $host_os in |
---|
5329 | aix3*) |
---|
5330 | version_type=linux |
---|
5331 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
---|
5332 | shlibpath_var=LIBPATH |
---|
5333 | |
---|
5334 | # AIX has no versioning support, so we append a major version to the name. |
---|
5335 | soname_spec='${libname}${release}.so$major' |
---|
5336 | ;; |
---|
5337 | |
---|
5338 | aix4* | aix5*) |
---|
5339 | version_type=linux |
---|
5340 | if test "$host_cpu" = ia64; then |
---|
5341 | # AIX 5 supports IA64 |
---|
5342 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
---|
5343 | shlibpath_var=LD_LIBRARY_PATH |
---|
5344 | else |
---|
5345 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
5346 | # for dependence libraries. The import file would start with |
---|
5347 | # the line `#! .'. This would cause the generated library to |
---|
5348 | # depend on `.', always an invalid library. This was fixed in |
---|
5349 | # development snapshots of GCC prior to 3.0. |
---|
5350 | case $host_os in |
---|
5351 | aix4 | aix4.[01] | aix4.[01].*) |
---|
5352 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
5353 | echo ' yes ' |
---|
5354 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
5355 | : |
---|
5356 | else |
---|
5357 | can_build_shared=no |
---|
5358 | fi |
---|
5359 | ;; |
---|
5360 | esac |
---|
5361 | # AIX (on Power*) has no versioning support, so currently we can |
---|
5362 | # not hardcode correct soname into executable. Probably we can |
---|
5363 | # add versioning support to collect2, so additional links can |
---|
5364 | # be useful in future. |
---|
5365 | if test "$aix_use_runtimelinking" = yes; then |
---|
5366 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
5367 | # instead of lib<name>.a to let people know that these are not |
---|
5368 | # typical AIX shared libraries. |
---|
5369 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5370 | else |
---|
5371 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
5372 | # and later when we are not doing run time linking. |
---|
5373 | library_names_spec='${libname}${release}.a $libname.a' |
---|
5374 | soname_spec='${libname}${release}.so$major' |
---|
5375 | fi |
---|
5376 | shlibpath_var=LIBPATH |
---|
5377 | fi |
---|
5378 | ;; |
---|
5379 | |
---|
5380 | amigaos*) |
---|
5381 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
5382 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
5383 | 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' |
---|
5384 | ;; |
---|
5385 | |
---|
5386 | beos*) |
---|
5387 | library_names_spec='${libname}.so' |
---|
5388 | dynamic_linker="$host_os ld.so" |
---|
5389 | shlibpath_var=LIBRARY_PATH |
---|
5390 | ;; |
---|
5391 | |
---|
5392 | bsdi4*) |
---|
5393 | version_type=linux |
---|
5394 | need_version=no |
---|
5395 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5396 | soname_spec='${libname}${release}.so$major' |
---|
5397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
5398 | shlibpath_var=LD_LIBRARY_PATH |
---|
5399 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
5400 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
5401 | export_dynamic_flag_spec=-rdynamic |
---|
5402 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
5403 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
5404 | # libtool to hard-code these into programs |
---|
5405 | ;; |
---|
5406 | |
---|
5407 | cygwin* | mingw* | pw32*) |
---|
5408 | version_type=windows |
---|
5409 | need_version=no |
---|
5410 | need_lib_prefix=no |
---|
5411 | case $GCC,$host_os in |
---|
5412 | yes,cygwin*) |
---|
5413 | library_names_spec='$libname.dll.a' |
---|
5414 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
---|
5415 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
---|
5416 | dldir=$destdir/`dirname \$dlpath`~ |
---|
5417 | test -d \$dldir || mkdir -p \$dldir~ |
---|
5418 | $install_prog .libs/$dlname \$dldir/$dlname' |
---|
5419 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
5420 | dlpath=$dir/\$dldll~ |
---|
5421 | $rm \$dlpath' |
---|
5422 | ;; |
---|
5423 | yes,mingw*) |
---|
5424 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
---|
5425 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
---|
5426 | ;; |
---|
5427 | yes,pw32*) |
---|
5428 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
---|
5429 | ;; |
---|
5430 | *) |
---|
5431 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
---|
5432 | ;; |
---|
5433 | esac |
---|
5434 | dynamic_linker='Win32 ld.exe' |
---|
5435 | # FIXME: first we should search . and the directory the executable is in |
---|
5436 | shlibpath_var=PATH |
---|
5437 | ;; |
---|
5438 | |
---|
5439 | darwin* | rhapsody*) |
---|
5440 | dynamic_linker="$host_os dyld" |
---|
5441 | version_type=darwin |
---|
5442 | need_lib_prefix=no |
---|
5443 | need_version=no |
---|
5444 | # FIXME: Relying on posixy $() will cause problems for |
---|
5445 | # cross-compilation, but unfortunately the echo tests do not |
---|
5446 | # yet detect zsh echo's removal of \ escapes. |
---|
5447 | 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)' |
---|
5448 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
---|
5449 | shlibpath_overrides_runpath=yes |
---|
5450 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
5451 | ;; |
---|
5452 | |
---|
5453 | freebsd1*) |
---|
5454 | dynamic_linker=no |
---|
5455 | ;; |
---|
5456 | |
---|
5457 | freebsd*) |
---|
5458 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
---|
5459 | version_type=freebsd-$objformat |
---|
5460 | case $version_type in |
---|
5461 | freebsd-elf*) |
---|
5462 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
---|
5463 | need_version=no |
---|
5464 | need_lib_prefix=no |
---|
5465 | ;; |
---|
5466 | freebsd-*) |
---|
5467 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
---|
5468 | need_version=yes |
---|
5469 | ;; |
---|
5470 | esac |
---|
5471 | shlibpath_var=LD_LIBRARY_PATH |
---|
5472 | case $host_os in |
---|
5473 | freebsd2*) |
---|
5474 | shlibpath_overrides_runpath=yes |
---|
5475 | ;; |
---|
5476 | *) |
---|
5477 | shlibpath_overrides_runpath=no |
---|
5478 | hardcode_into_libs=yes |
---|
5479 | ;; |
---|
5480 | esac |
---|
5481 | ;; |
---|
5482 | |
---|
5483 | gnu*) |
---|
5484 | version_type=linux |
---|
5485 | need_lib_prefix=no |
---|
5486 | need_version=no |
---|
5487 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
---|
5488 | soname_spec='${libname}${release}.so$major' |
---|
5489 | shlibpath_var=LD_LIBRARY_PATH |
---|
5490 | hardcode_into_libs=yes |
---|
5491 | ;; |
---|
5492 | |
---|
5493 | hpux9* | hpux10* | hpux11*) |
---|
5494 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
5495 | # link against other versions. |
---|
5496 | dynamic_linker="$host_os dld.sl" |
---|
5497 | version_type=sunos |
---|
5498 | need_lib_prefix=no |
---|
5499 | need_version=no |
---|
5500 | shlibpath_var=SHLIB_PATH |
---|
5501 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
5502 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
---|
5503 | soname_spec='${libname}${release}.sl$major' |
---|
5504 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
5505 | postinstall_cmds='chmod 555 $lib' |
---|
5506 | ;; |
---|
5507 | |
---|
5508 | irix5* | irix6*) |
---|
5509 | version_type=irix |
---|
5510 | need_lib_prefix=no |
---|
5511 | need_version=no |
---|
5512 | soname_spec='${libname}${release}.so$major' |
---|
5513 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
---|
5514 | case $host_os in |
---|
5515 | irix5*) |
---|
5516 | libsuff= shlibsuff= |
---|
5517 | ;; |
---|
5518 | *) |
---|
5519 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
5520 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
---|
5521 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
5522 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
5523 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
5524 | esac |
---|
5525 | ;; |
---|
5526 | esac |
---|
5527 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
5528 | shlibpath_overrides_runpath=no |
---|
5529 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
5530 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
5531 | ;; |
---|
5532 | |
---|
5533 | # No shared lib support for Linux oldld, aout, or coff. |
---|
5534 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
---|
5535 | dynamic_linker=no |
---|
5536 | ;; |
---|
5537 | |
---|
5538 | # This must be Linux ELF. |
---|
5539 | linux-gnu*) |
---|
5540 | version_type=linux |
---|
5541 | need_lib_prefix=no |
---|
5542 | need_version=no |
---|
5543 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5544 | soname_spec='${libname}${release}.so$major' |
---|
5545 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
5546 | shlibpath_var=LD_LIBRARY_PATH |
---|
5547 | shlibpath_overrides_runpath=no |
---|
5548 | # This implies no fast_install, which is unacceptable. |
---|
5549 | # Some rework will be needed to allow for fast_install |
---|
5550 | # before this can be enabled. |
---|
5551 | hardcode_into_libs=yes |
---|
5552 | |
---|
5553 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
5554 | # powerpc, because MkLinux only supported shared libraries with the |
---|
5555 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
5556 | # most powerpc-linux boxes support dynamic linking these days and |
---|
5557 | # people can always --disable-shared, the test was removed, and we |
---|
5558 | # assume the GNU/Linux dynamic linker is in use. |
---|
5559 | dynamic_linker='GNU/Linux ld.so' |
---|
5560 | ;; |
---|
5561 | |
---|
5562 | netbsd*) |
---|
5563 | version_type=sunos |
---|
5564 | need_lib_prefix=no |
---|
5565 | need_version=no |
---|
5566 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
5567 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
5568 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
5569 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
5570 | else |
---|
5571 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
---|
5572 | soname_spec='${libname}${release}.so$major' |
---|
5573 | dynamic_linker='NetBSD ld.elf_so' |
---|
5574 | fi |
---|
5575 | shlibpath_var=LD_LIBRARY_PATH |
---|
5576 | shlibpath_overrides_runpath=yes |
---|
5577 | hardcode_into_libs=yes |
---|
5578 | ;; |
---|
5579 | |
---|
5580 | newsos6) |
---|
5581 | version_type=linux |
---|
5582 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5583 | shlibpath_var=LD_LIBRARY_PATH |
---|
5584 | shlibpath_overrides_runpath=yes |
---|
5585 | ;; |
---|
5586 | |
---|
5587 | openbsd*) |
---|
5588 | version_type=sunos |
---|
5589 | need_lib_prefix=no |
---|
5590 | need_version=no |
---|
5591 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5592 | case "$host_os" in |
---|
5593 | openbsd2.[89] | openbsd2.[89].*) |
---|
5594 | shlibpath_overrides_runpath=no |
---|
5595 | ;; |
---|
5596 | *) |
---|
5597 | shlibpath_overrides_runpath=yes |
---|
5598 | ;; |
---|
5599 | esac |
---|
5600 | else |
---|
5601 | shlibpath_overrides_runpath=yes |
---|
5602 | fi |
---|
5603 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
5604 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
5605 | shlibpath_var=LD_LIBRARY_PATH |
---|
5606 | ;; |
---|
5607 | |
---|
5608 | os2*) |
---|
5609 | libname_spec='$name' |
---|
5610 | need_lib_prefix=no |
---|
5611 | library_names_spec='$libname.dll $libname.a' |
---|
5612 | dynamic_linker='OS/2 ld.exe' |
---|
5613 | shlibpath_var=LIBPATH |
---|
5614 | ;; |
---|
5615 | |
---|
5616 | osf3* | osf4* | osf5*) |
---|
5617 | version_type=osf |
---|
5618 | need_version=no |
---|
5619 | soname_spec='${libname}${release}.so' |
---|
5620 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
---|
5621 | shlibpath_var=LD_LIBRARY_PATH |
---|
5622 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
5623 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
5624 | ;; |
---|
5625 | |
---|
5626 | sco3.2v5*) |
---|
5627 | version_type=osf |
---|
5628 | soname_spec='${libname}${release}.so$major' |
---|
5629 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5630 | shlibpath_var=LD_LIBRARY_PATH |
---|
5631 | ;; |
---|
5632 | |
---|
5633 | solaris*) |
---|
5634 | version_type=linux |
---|
5635 | need_lib_prefix=no |
---|
5636 | need_version=no |
---|
5637 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5638 | soname_spec='${libname}${release}.so$major' |
---|
5639 | shlibpath_var=LD_LIBRARY_PATH |
---|
5640 | shlibpath_overrides_runpath=yes |
---|
5641 | hardcode_into_libs=yes |
---|
5642 | # ldd complains unless libraries are executable |
---|
5643 | postinstall_cmds='chmod +x $lib' |
---|
5644 | ;; |
---|
5645 | |
---|
5646 | sunos4*) |
---|
5647 | version_type=sunos |
---|
5648 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
---|
5649 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
5650 | shlibpath_var=LD_LIBRARY_PATH |
---|
5651 | shlibpath_overrides_runpath=yes |
---|
5652 | if test "$with_gnu_ld" = yes; then |
---|
5653 | need_lib_prefix=no |
---|
5654 | fi |
---|
5655 | need_version=yes |
---|
5656 | ;; |
---|
5657 | |
---|
5658 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
5659 | version_type=linux |
---|
5660 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5661 | soname_spec='${libname}${release}.so$major' |
---|
5662 | shlibpath_var=LD_LIBRARY_PATH |
---|
5663 | case $host_vendor in |
---|
5664 | sni) |
---|
5665 | shlibpath_overrides_runpath=no |
---|
5666 | ;; |
---|
5667 | motorola) |
---|
5668 | need_lib_prefix=no |
---|
5669 | need_version=no |
---|
5670 | shlibpath_overrides_runpath=no |
---|
5671 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
5672 | ;; |
---|
5673 | esac |
---|
5674 | ;; |
---|
5675 | |
---|
5676 | uts4*) |
---|
5677 | version_type=linux |
---|
5678 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5679 | soname_spec='${libname}${release}.so$major' |
---|
5680 | shlibpath_var=LD_LIBRARY_PATH |
---|
5681 | ;; |
---|
5682 | |
---|
5683 | dgux*) |
---|
5684 | version_type=linux |
---|
5685 | need_lib_prefix=no |
---|
5686 | need_version=no |
---|
5687 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
---|
5688 | soname_spec='${libname}${release}.so$major' |
---|
5689 | shlibpath_var=LD_LIBRARY_PATH |
---|
5690 | ;; |
---|
5691 | |
---|
5692 | sysv4*MP*) |
---|
5693 | if test -d /usr/nec ;then |
---|
5694 | version_type=linux |
---|
5695 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
---|
5696 | soname_spec='$libname.so.$major' |
---|
5697 | shlibpath_var=LD_LIBRARY_PATH |
---|
5698 | fi |
---|
5699 | ;; |
---|
5700 | |
---|
5701 | *) |
---|
5702 | dynamic_linker=no |
---|
5703 | ;; |
---|
5704 | esac |
---|
5705 | echo "$as_me:5705: result: $dynamic_linker" >&5 |
---|
5706 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
5707 | test "$dynamic_linker" = no && can_build_shared=no |
---|
5708 | |
---|
5709 | # Report the final consequences. |
---|
5710 | echo "$as_me:5710: checking if libtool supports shared libraries" >&5 |
---|
5711 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
5712 | echo "$as_me:5712: result: $can_build_shared" >&5 |
---|
5713 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
5714 | |
---|
5715 | echo "$as_me:5715: checking whether to build shared libraries" >&5 |
---|
5716 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
5717 | test "$can_build_shared" = "no" && enable_shared=no |
---|
5718 | |
---|
5719 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
5720 | # are all built from PIC. |
---|
5721 | case "$host_os" in |
---|
5722 | aix3*) |
---|
5723 | test "$enable_shared" = yes && enable_static=no |
---|
5724 | if test -n "$RANLIB"; then |
---|
5725 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
5726 | postinstall_cmds='$RANLIB $lib' |
---|
5727 | fi |
---|
5728 | ;; |
---|
5729 | |
---|
5730 | aix4*) |
---|
5731 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
5732 | test "$enable_shared" = yes && enable_static=no |
---|
5733 | fi |
---|
5734 | ;; |
---|
5735 | esac |
---|
5736 | echo "$as_me:5736: result: $enable_shared" >&5 |
---|
5737 | echo "${ECHO_T}$enable_shared" >&6 |
---|
5738 | |
---|
5739 | echo "$as_me:5739: checking whether to build static libraries" >&5 |
---|
5740 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
5741 | # Make sure either enable_shared or enable_static is yes. |
---|
5742 | test "$enable_shared" = yes || enable_static=yes |
---|
5743 | echo "$as_me:5743: result: $enable_static" >&5 |
---|
5744 | echo "${ECHO_T}$enable_static" >&6 |
---|
5745 | |
---|
5746 | if test "$hardcode_action" = relink; then |
---|
5747 | # Fast installation is not supported |
---|
5748 | enable_fast_install=no |
---|
5749 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
5750 | test "$enable_shared" = no; then |
---|
5751 | # Fast installation is not necessary |
---|
5752 | enable_fast_install=needless |
---|
5753 | fi |
---|
5754 | |
---|
5755 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
5756 | if test "$GCC" = yes; then |
---|
5757 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
5758 | fi |
---|
5759 | |
---|
5760 | if test "x$enable_dlopen" != xyes; then |
---|
5761 | enable_dlopen=unknown |
---|
5762 | enable_dlopen_self=unknown |
---|
5763 | enable_dlopen_self_static=unknown |
---|
5764 | else |
---|
5765 | lt_cv_dlopen=no |
---|
5766 | lt_cv_dlopen_libs= |
---|
5767 | |
---|
5768 | case $host_os in |
---|
5769 | beos*) |
---|
5770 | lt_cv_dlopen="load_add_on" |
---|
5771 | lt_cv_dlopen_libs= |
---|
5772 | lt_cv_dlopen_self=yes |
---|
5773 | ;; |
---|
5774 | |
---|
5775 | cygwin* | mingw* | pw32*) |
---|
5776 | lt_cv_dlopen="LoadLibrary" |
---|
5777 | lt_cv_dlopen_libs= |
---|
5778 | ;; |
---|
5779 | |
---|
5780 | *) |
---|
5781 | echo "$as_me:5781: checking for shl_load" >&5 |
---|
5782 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
5783 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
5784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5785 | else |
---|
5786 | cat >conftest.$ac_ext <<_ACEOF |
---|
5787 | #line 5787 "configure" |
---|
5788 | #include "confdefs.h" |
---|
5789 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5790 | which can conflict with char shl_load (); below. */ |
---|
5791 | #include <assert.h> |
---|
5792 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5793 | #ifdef __cplusplus |
---|
5794 | extern "C" |
---|
5795 | #endif |
---|
5796 | /* We use char because int might match the return type of a gcc2 |
---|
5797 | builtin and then its argument prototype would still apply. */ |
---|
5798 | char shl_load (); |
---|
5799 | char (*f) (); |
---|
5800 | |
---|
5801 | #ifdef F77_DUMMY_MAIN |
---|
5802 | # ifdef __cplusplus |
---|
5803 | extern "C" |
---|
5804 | # endif |
---|
5805 | int F77_DUMMY_MAIN() { return 1; } |
---|
5806 | #endif |
---|
5807 | int |
---|
5808 | main () |
---|
5809 | { |
---|
5810 | /* The GNU C library defines this for functions which it implements |
---|
5811 | to always fail with ENOSYS. Some functions are actually named |
---|
5812 | something starting with __ and the normal name is an alias. */ |
---|
5813 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
5814 | choke me |
---|
5815 | #else |
---|
5816 | f = shl_load; |
---|
5817 | #endif |
---|
5818 | |
---|
5819 | ; |
---|
5820 | return 0; |
---|
5821 | } |
---|
5822 | _ACEOF |
---|
5823 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5824 | if { (eval echo "$as_me:5824: \"$ac_link\"") >&5 |
---|
5825 | (eval $ac_link) 2>&5 |
---|
5826 | ac_status=$? |
---|
5827 | echo "$as_me:5827: \$? = $ac_status" >&5 |
---|
5828 | (exit $ac_status); } && |
---|
5829 | { ac_try='test -s conftest$ac_exeext' |
---|
5830 | { (eval echo "$as_me:5830: \"$ac_try\"") >&5 |
---|
5831 | (eval $ac_try) 2>&5 |
---|
5832 | ac_status=$? |
---|
5833 | echo "$as_me:5833: \$? = $ac_status" >&5 |
---|
5834 | (exit $ac_status); }; }; then |
---|
5835 | ac_cv_func_shl_load=yes |
---|
5836 | else |
---|
5837 | echo "$as_me: failed program was:" >&5 |
---|
5838 | cat conftest.$ac_ext >&5 |
---|
5839 | ac_cv_func_shl_load=no |
---|
5840 | fi |
---|
5841 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5842 | fi |
---|
5843 | echo "$as_me:5843: result: $ac_cv_func_shl_load" >&5 |
---|
5844 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
5845 | if test $ac_cv_func_shl_load = yes; then |
---|
5846 | lt_cv_dlopen="shl_load" |
---|
5847 | else |
---|
5848 | echo "$as_me:5848: checking for shl_load in -ldld" >&5 |
---|
5849 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
5850 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
5851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5852 | else |
---|
5853 | ac_check_lib_save_LIBS=$LIBS |
---|
5854 | LIBS="-ldld $LIBS" |
---|
5855 | cat >conftest.$ac_ext <<_ACEOF |
---|
5856 | #line 5856 "configure" |
---|
5857 | #include "confdefs.h" |
---|
5858 | |
---|
5859 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5860 | #ifdef __cplusplus |
---|
5861 | extern "C" |
---|
5862 | #endif |
---|
5863 | /* We use char because int might match the return type of a gcc2 |
---|
5864 | builtin and then its argument prototype would still apply. */ |
---|
5865 | char shl_load (); |
---|
5866 | #ifdef F77_DUMMY_MAIN |
---|
5867 | # ifdef __cplusplus |
---|
5868 | extern "C" |
---|
5869 | # endif |
---|
5870 | int F77_DUMMY_MAIN() { return 1; } |
---|
5871 | #endif |
---|
5872 | int |
---|
5873 | main () |
---|
5874 | { |
---|
5875 | shl_load (); |
---|
5876 | ; |
---|
5877 | return 0; |
---|
5878 | } |
---|
5879 | _ACEOF |
---|
5880 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5881 | if { (eval echo "$as_me:5881: \"$ac_link\"") >&5 |
---|
5882 | (eval $ac_link) 2>&5 |
---|
5883 | ac_status=$? |
---|
5884 | echo "$as_me:5884: \$? = $ac_status" >&5 |
---|
5885 | (exit $ac_status); } && |
---|
5886 | { ac_try='test -s conftest$ac_exeext' |
---|
5887 | { (eval echo "$as_me:5887: \"$ac_try\"") >&5 |
---|
5888 | (eval $ac_try) 2>&5 |
---|
5889 | ac_status=$? |
---|
5890 | echo "$as_me:5890: \$? = $ac_status" >&5 |
---|
5891 | (exit $ac_status); }; }; then |
---|
5892 | ac_cv_lib_dld_shl_load=yes |
---|
5893 | else |
---|
5894 | echo "$as_me: failed program was:" >&5 |
---|
5895 | cat conftest.$ac_ext >&5 |
---|
5896 | ac_cv_lib_dld_shl_load=no |
---|
5897 | fi |
---|
5898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5899 | LIBS=$ac_check_lib_save_LIBS |
---|
5900 | fi |
---|
5901 | echo "$as_me:5901: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
5902 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
5903 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
5904 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
5905 | else |
---|
5906 | echo "$as_me:5906: checking for dlopen" >&5 |
---|
5907 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
5908 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
5909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5910 | else |
---|
5911 | cat >conftest.$ac_ext <<_ACEOF |
---|
5912 | #line 5912 "configure" |
---|
5913 | #include "confdefs.h" |
---|
5914 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5915 | which can conflict with char dlopen (); below. */ |
---|
5916 | #include <assert.h> |
---|
5917 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5918 | #ifdef __cplusplus |
---|
5919 | extern "C" |
---|
5920 | #endif |
---|
5921 | /* We use char because int might match the return type of a gcc2 |
---|
5922 | builtin and then its argument prototype would still apply. */ |
---|
5923 | char dlopen (); |
---|
5924 | char (*f) (); |
---|
5925 | |
---|
5926 | #ifdef F77_DUMMY_MAIN |
---|
5927 | # ifdef __cplusplus |
---|
5928 | extern "C" |
---|
5929 | # endif |
---|
5930 | int F77_DUMMY_MAIN() { return 1; } |
---|
5931 | #endif |
---|
5932 | int |
---|
5933 | main () |
---|
5934 | { |
---|
5935 | /* The GNU C library defines this for functions which it implements |
---|
5936 | to always fail with ENOSYS. Some functions are actually named |
---|
5937 | something starting with __ and the normal name is an alias. */ |
---|
5938 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
5939 | choke me |
---|
5940 | #else |
---|
5941 | f = dlopen; |
---|
5942 | #endif |
---|
5943 | |
---|
5944 | ; |
---|
5945 | return 0; |
---|
5946 | } |
---|
5947 | _ACEOF |
---|
5948 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5949 | if { (eval echo "$as_me:5949: \"$ac_link\"") >&5 |
---|
5950 | (eval $ac_link) 2>&5 |
---|
5951 | ac_status=$? |
---|
5952 | echo "$as_me:5952: \$? = $ac_status" >&5 |
---|
5953 | (exit $ac_status); } && |
---|
5954 | { ac_try='test -s conftest$ac_exeext' |
---|
5955 | { (eval echo "$as_me:5955: \"$ac_try\"") >&5 |
---|
5956 | (eval $ac_try) 2>&5 |
---|
5957 | ac_status=$? |
---|
5958 | echo "$as_me:5958: \$? = $ac_status" >&5 |
---|
5959 | (exit $ac_status); }; }; then |
---|
5960 | ac_cv_func_dlopen=yes |
---|
5961 | else |
---|
5962 | echo "$as_me: failed program was:" >&5 |
---|
5963 | cat conftest.$ac_ext >&5 |
---|
5964 | ac_cv_func_dlopen=no |
---|
5965 | fi |
---|
5966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5967 | fi |
---|
5968 | echo "$as_me:5968: result: $ac_cv_func_dlopen" >&5 |
---|
5969 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
5970 | if test $ac_cv_func_dlopen = yes; then |
---|
5971 | lt_cv_dlopen="dlopen" |
---|
5972 | else |
---|
5973 | echo "$as_me:5973: checking for dlopen in -ldl" >&5 |
---|
5974 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
5975 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
5976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5977 | else |
---|
5978 | ac_check_lib_save_LIBS=$LIBS |
---|
5979 | LIBS="-ldl $LIBS" |
---|
5980 | cat >conftest.$ac_ext <<_ACEOF |
---|
5981 | #line 5981 "configure" |
---|
5982 | #include "confdefs.h" |
---|
5983 | |
---|
5984 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5985 | #ifdef __cplusplus |
---|
5986 | extern "C" |
---|
5987 | #endif |
---|
5988 | /* We use char because int might match the return type of a gcc2 |
---|
5989 | builtin and then its argument prototype would still apply. */ |
---|
5990 | char dlopen (); |
---|
5991 | #ifdef F77_DUMMY_MAIN |
---|
5992 | # ifdef __cplusplus |
---|
5993 | extern "C" |
---|
5994 | # endif |
---|
5995 | int F77_DUMMY_MAIN() { return 1; } |
---|
5996 | #endif |
---|
5997 | int |
---|
5998 | main () |
---|
5999 | { |
---|
6000 | dlopen (); |
---|
6001 | ; |
---|
6002 | return 0; |
---|
6003 | } |
---|
6004 | _ACEOF |
---|
6005 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6006 | if { (eval echo "$as_me:6006: \"$ac_link\"") >&5 |
---|
6007 | (eval $ac_link) 2>&5 |
---|
6008 | ac_status=$? |
---|
6009 | echo "$as_me:6009: \$? = $ac_status" >&5 |
---|
6010 | (exit $ac_status); } && |
---|
6011 | { ac_try='test -s conftest$ac_exeext' |
---|
6012 | { (eval echo "$as_me:6012: \"$ac_try\"") >&5 |
---|
6013 | (eval $ac_try) 2>&5 |
---|
6014 | ac_status=$? |
---|
6015 | echo "$as_me:6015: \$? = $ac_status" >&5 |
---|
6016 | (exit $ac_status); }; }; then |
---|
6017 | ac_cv_lib_dl_dlopen=yes |
---|
6018 | else |
---|
6019 | echo "$as_me: failed program was:" >&5 |
---|
6020 | cat conftest.$ac_ext >&5 |
---|
6021 | ac_cv_lib_dl_dlopen=no |
---|
6022 | fi |
---|
6023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
6024 | LIBS=$ac_check_lib_save_LIBS |
---|
6025 | fi |
---|
6026 | echo "$as_me:6026: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
6027 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
6028 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
6029 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
6030 | else |
---|
6031 | echo "$as_me:6031: checking for dlopen in -lsvld" >&5 |
---|
6032 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
6033 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6035 | else |
---|
6036 | ac_check_lib_save_LIBS=$LIBS |
---|
6037 | LIBS="-lsvld $LIBS" |
---|
6038 | cat >conftest.$ac_ext <<_ACEOF |
---|
6039 | #line 6039 "configure" |
---|
6040 | #include "confdefs.h" |
---|
6041 | |
---|
6042 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6043 | #ifdef __cplusplus |
---|
6044 | extern "C" |
---|
6045 | #endif |
---|
6046 | /* We use char because int might match the return type of a gcc2 |
---|
6047 | builtin and then its argument prototype would still apply. */ |
---|
6048 | char dlopen (); |
---|
6049 | #ifdef F77_DUMMY_MAIN |
---|
6050 | # ifdef __cplusplus |
---|
6051 | extern "C" |
---|
6052 | # endif |
---|
6053 | int F77_DUMMY_MAIN() { return 1; } |
---|
6054 | #endif |
---|
6055 | int |
---|
6056 | main () |
---|
6057 | { |
---|
6058 | dlopen (); |
---|
6059 | ; |
---|
6060 | return 0; |
---|
6061 | } |
---|
6062 | _ACEOF |
---|
6063 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6064 | if { (eval echo "$as_me:6064: \"$ac_link\"") >&5 |
---|
6065 | (eval $ac_link) 2>&5 |
---|
6066 | ac_status=$? |
---|
6067 | echo "$as_me:6067: \$? = $ac_status" >&5 |
---|
6068 | (exit $ac_status); } && |
---|
6069 | { ac_try='test -s conftest$ac_exeext' |
---|
6070 | { (eval echo "$as_me:6070: \"$ac_try\"") >&5 |
---|
6071 | (eval $ac_try) 2>&5 |
---|
6072 | ac_status=$? |
---|
6073 | echo "$as_me:6073: \$? = $ac_status" >&5 |
---|
6074 | (exit $ac_status); }; }; then |
---|
6075 | ac_cv_lib_svld_dlopen=yes |
---|
6076 | else |
---|
6077 | echo "$as_me: failed program was:" >&5 |
---|
6078 | cat conftest.$ac_ext >&5 |
---|
6079 | ac_cv_lib_svld_dlopen=no |
---|
6080 | fi |
---|
6081 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
6082 | LIBS=$ac_check_lib_save_LIBS |
---|
6083 | fi |
---|
6084 | echo "$as_me:6084: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
6085 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
6086 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
6087 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
6088 | else |
---|
6089 | echo "$as_me:6089: checking for dld_link in -ldld" >&5 |
---|
6090 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
6091 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6093 | else |
---|
6094 | ac_check_lib_save_LIBS=$LIBS |
---|
6095 | LIBS="-ldld $LIBS" |
---|
6096 | cat >conftest.$ac_ext <<_ACEOF |
---|
6097 | #line 6097 "configure" |
---|
6098 | #include "confdefs.h" |
---|
6099 | |
---|
6100 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6101 | #ifdef __cplusplus |
---|
6102 | extern "C" |
---|
6103 | #endif |
---|
6104 | /* We use char because int might match the return type of a gcc2 |
---|
6105 | builtin and then its argument prototype would still apply. */ |
---|
6106 | char dld_link (); |
---|
6107 | #ifdef F77_DUMMY_MAIN |
---|
6108 | # ifdef __cplusplus |
---|
6109 | extern "C" |
---|
6110 | # endif |
---|
6111 | int F77_DUMMY_MAIN() { return 1; } |
---|
6112 | #endif |
---|
6113 | int |
---|
6114 | main () |
---|
6115 | { |
---|
6116 | dld_link (); |
---|
6117 | ; |
---|
6118 | return 0; |
---|
6119 | } |
---|
6120 | _ACEOF |
---|
6121 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6122 | if { (eval echo "$as_me:6122: \"$ac_link\"") >&5 |
---|
6123 | (eval $ac_link) 2>&5 |
---|
6124 | ac_status=$? |
---|
6125 | echo "$as_me:6125: \$? = $ac_status" >&5 |
---|
6126 | (exit $ac_status); } && |
---|
6127 | { ac_try='test -s conftest$ac_exeext' |
---|
6128 | { (eval echo "$as_me:6128: \"$ac_try\"") >&5 |
---|
6129 | (eval $ac_try) 2>&5 |
---|
6130 | ac_status=$? |
---|
6131 | echo "$as_me:6131: \$? = $ac_status" >&5 |
---|
6132 | (exit $ac_status); }; }; then |
---|
6133 | ac_cv_lib_dld_dld_link=yes |
---|
6134 | else |
---|
6135 | echo "$as_me: failed program was:" >&5 |
---|
6136 | cat conftest.$ac_ext >&5 |
---|
6137 | ac_cv_lib_dld_dld_link=no |
---|
6138 | fi |
---|
6139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
6140 | LIBS=$ac_check_lib_save_LIBS |
---|
6141 | fi |
---|
6142 | echo "$as_me:6142: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
6143 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
6144 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
6145 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
6146 | fi |
---|
6147 | |
---|
6148 | fi |
---|
6149 | |
---|
6150 | fi |
---|
6151 | |
---|
6152 | fi |
---|
6153 | |
---|
6154 | fi |
---|
6155 | |
---|
6156 | fi |
---|
6157 | |
---|
6158 | ;; |
---|
6159 | esac |
---|
6160 | |
---|
6161 | if test "x$lt_cv_dlopen" != xno; then |
---|
6162 | enable_dlopen=yes |
---|
6163 | else |
---|
6164 | enable_dlopen=no |
---|
6165 | fi |
---|
6166 | |
---|
6167 | case $lt_cv_dlopen in |
---|
6168 | dlopen) |
---|
6169 | save_CPPFLAGS="$CPPFLAGS" |
---|
6170 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
6171 | |
---|
6172 | save_LDFLAGS="$LDFLAGS" |
---|
6173 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
6174 | |
---|
6175 | save_LIBS="$LIBS" |
---|
6176 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
6177 | |
---|
6178 | echo "$as_me:6178: checking whether a program can dlopen itself" >&5 |
---|
6179 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
6180 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6182 | else |
---|
6183 | if test "$cross_compiling" = yes; then : |
---|
6184 | lt_cv_dlopen_self=cross |
---|
6185 | else |
---|
6186 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
6187 | lt_status=$lt_dlunknown |
---|
6188 | cat > conftest.$ac_ext <<EOF |
---|
6189 | #line 6189 "configure" |
---|
6190 | #include "confdefs.h" |
---|
6191 | |
---|
6192 | #if HAVE_DLFCN_H |
---|
6193 | #include <dlfcn.h> |
---|
6194 | #endif |
---|
6195 | |
---|
6196 | #include <stdio.h> |
---|
6197 | |
---|
6198 | #ifdef RTLD_GLOBAL |
---|
6199 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
6200 | #else |
---|
6201 | # ifdef DL_GLOBAL |
---|
6202 | # define LT_DLGLOBAL DL_GLOBAL |
---|
6203 | # else |
---|
6204 | # define LT_DLGLOBAL 0 |
---|
6205 | # endif |
---|
6206 | #endif |
---|
6207 | |
---|
6208 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
6209 | find out it does not work in some platform. */ |
---|
6210 | #ifndef LT_DLLAZY_OR_NOW |
---|
6211 | # ifdef RTLD_LAZY |
---|
6212 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
6213 | # else |
---|
6214 | # ifdef DL_LAZY |
---|
6215 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
6216 | # else |
---|
6217 | # ifdef RTLD_NOW |
---|
6218 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
6219 | # else |
---|
6220 | # ifdef DL_NOW |
---|
6221 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
6222 | # else |
---|
6223 | # define LT_DLLAZY_OR_NOW 0 |
---|
6224 | # endif |
---|
6225 | # endif |
---|
6226 | # endif |
---|
6227 | # endif |
---|
6228 | #endif |
---|
6229 | |
---|
6230 | #ifdef __cplusplus |
---|
6231 | extern "C" void exit (int); |
---|
6232 | #endif |
---|
6233 | |
---|
6234 | void fnord() { int i=42;} |
---|
6235 | int main () |
---|
6236 | { |
---|
6237 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
6238 | int status = $lt_dlunknown; |
---|
6239 | |
---|
6240 | if (self) |
---|
6241 | { |
---|
6242 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
6243 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
6244 | /* dlclose (self); */ |
---|
6245 | } |
---|
6246 | |
---|
6247 | exit (status); |
---|
6248 | } |
---|
6249 | EOF |
---|
6250 | if { (eval echo "$as_me:6250: \"$ac_link\"") >&5 |
---|
6251 | (eval $ac_link) 2>&5 |
---|
6252 | ac_status=$? |
---|
6253 | echo "$as_me:6253: \$? = $ac_status" >&5 |
---|
6254 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
6255 | (./conftest; exit; ) 2>/dev/null |
---|
6256 | lt_status=$? |
---|
6257 | case x$lt_status in |
---|
6258 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
6259 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
6260 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
6261 | esac |
---|
6262 | else : |
---|
6263 | # compilation failed |
---|
6264 | lt_cv_dlopen_self=no |
---|
6265 | fi |
---|
6266 | fi |
---|
6267 | rm -fr conftest* |
---|
6268 | |
---|
6269 | fi |
---|
6270 | echo "$as_me:6270: result: $lt_cv_dlopen_self" >&5 |
---|
6271 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
6272 | |
---|
6273 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
6274 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
6275 | echo "$as_me:6275: checking whether a statically linked program can dlopen itself" >&5 |
---|
6276 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
6277 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6279 | else |
---|
6280 | if test "$cross_compiling" = yes; then : |
---|
6281 | lt_cv_dlopen_self_static=cross |
---|
6282 | else |
---|
6283 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
6284 | lt_status=$lt_dlunknown |
---|
6285 | cat > conftest.$ac_ext <<EOF |
---|
6286 | #line 6286 "configure" |
---|
6287 | #include "confdefs.h" |
---|
6288 | |
---|
6289 | #if HAVE_DLFCN_H |
---|
6290 | #include <dlfcn.h> |
---|
6291 | #endif |
---|
6292 | |
---|
6293 | #include <stdio.h> |
---|
6294 | |
---|
6295 | #ifdef RTLD_GLOBAL |
---|
6296 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
6297 | #else |
---|
6298 | # ifdef DL_GLOBAL |
---|
6299 | # define LT_DLGLOBAL DL_GLOBAL |
---|
6300 | # else |
---|
6301 | # define LT_DLGLOBAL 0 |
---|
6302 | # endif |
---|
6303 | #endif |
---|
6304 | |
---|
6305 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
6306 | find out it does not work in some platform. */ |
---|
6307 | #ifndef LT_DLLAZY_OR_NOW |
---|
6308 | # ifdef RTLD_LAZY |
---|
6309 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
6310 | # else |
---|
6311 | # ifdef DL_LAZY |
---|
6312 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
6313 | # else |
---|
6314 | # ifdef RTLD_NOW |
---|
6315 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
6316 | # else |
---|
6317 | # ifdef DL_NOW |
---|
6318 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
6319 | # else |
---|
6320 | # define LT_DLLAZY_OR_NOW 0 |
---|
6321 | # endif |
---|
6322 | # endif |
---|
6323 | # endif |
---|
6324 | # endif |
---|
6325 | #endif |
---|
6326 | |
---|
6327 | #ifdef __cplusplus |
---|
6328 | extern "C" void exit (int); |
---|
6329 | #endif |
---|
6330 | |
---|
6331 | void fnord() { int i=42;} |
---|
6332 | int main () |
---|
6333 | { |
---|
6334 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
6335 | int status = $lt_dlunknown; |
---|
6336 | |
---|
6337 | if (self) |
---|
6338 | { |
---|
6339 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
6340 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
6341 | /* dlclose (self); */ |
---|
6342 | } |
---|
6343 | |
---|
6344 | exit (status); |
---|
6345 | } |
---|
6346 | EOF |
---|
6347 | if { (eval echo "$as_me:6347: \"$ac_link\"") >&5 |
---|
6348 | (eval $ac_link) 2>&5 |
---|
6349 | ac_status=$? |
---|
6350 | echo "$as_me:6350: \$? = $ac_status" >&5 |
---|
6351 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
6352 | (./conftest; exit; ) 2>/dev/null |
---|
6353 | lt_status=$? |
---|
6354 | case x$lt_status in |
---|
6355 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
6356 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
6357 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
6358 | esac |
---|
6359 | else : |
---|
6360 | # compilation failed |
---|
6361 | lt_cv_dlopen_self_static=no |
---|
6362 | fi |
---|
6363 | fi |
---|
6364 | rm -fr conftest* |
---|
6365 | |
---|
6366 | fi |
---|
6367 | echo "$as_me:6367: result: $lt_cv_dlopen_self_static" >&5 |
---|
6368 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
6369 | fi |
---|
6370 | |
---|
6371 | CPPFLAGS="$save_CPPFLAGS" |
---|
6372 | LDFLAGS="$save_LDFLAGS" |
---|
6373 | LIBS="$save_LIBS" |
---|
6374 | ;; |
---|
6375 | esac |
---|
6376 | |
---|
6377 | case $lt_cv_dlopen_self in |
---|
6378 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
6379 | *) enable_dlopen_self=unknown ;; |
---|
6380 | esac |
---|
6381 | |
---|
6382 | case $lt_cv_dlopen_self_static in |
---|
6383 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
6384 | *) enable_dlopen_self_static=unknown ;; |
---|
6385 | esac |
---|
6386 | fi |
---|
6387 | |
---|
6388 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
6389 | case $archive_cmds in |
---|
6390 | *'~'*) |
---|
6391 | # FIXME: we may have to deal with multi-command sequences. |
---|
6392 | ;; |
---|
6393 | '$CC '*) |
---|
6394 | # Test whether the compiler implicitly links with -lc since on some |
---|
6395 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
6396 | # to ld, don't add -lc before -lgcc. |
---|
6397 | echo "$as_me:6397: checking whether -lc should be explicitly linked in" >&5 |
---|
6398 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
6399 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
---|
6400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6401 | else |
---|
6402 | $rm conftest* |
---|
6403 | echo 'static int dummy;' > conftest.$ac_ext |
---|
6404 | |
---|
6405 | if { (eval echo "$as_me:6405: \"$ac_compile\"") >&5 |
---|
6406 | (eval $ac_compile) 2>&5 |
---|
6407 | ac_status=$? |
---|
6408 | echo "$as_me:6408: \$? = $ac_status" >&5 |
---|
6409 | (exit $ac_status); }; then |
---|
6410 | soname=conftest |
---|
6411 | lib=conftest |
---|
6412 | libobjs=conftest.$ac_objext |
---|
6413 | deplibs= |
---|
6414 | wl=$lt_cv_prog_cc_wl |
---|
6415 | compiler_flags=-v |
---|
6416 | linker_flags=-v |
---|
6417 | verstring= |
---|
6418 | output_objdir=. |
---|
6419 | libname=conftest |
---|
6420 | save_allow_undefined_flag=$allow_undefined_flag |
---|
6421 | allow_undefined_flag= |
---|
6422 | if { (eval echo "$as_me:6422: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
6423 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
6424 | ac_status=$? |
---|
6425 | echo "$as_me:6425: \$? = $ac_status" >&5 |
---|
6426 | (exit $ac_status); } |
---|
6427 | then |
---|
6428 | lt_cv_archive_cmds_need_lc=no |
---|
6429 | else |
---|
6430 | lt_cv_archive_cmds_need_lc=yes |
---|
6431 | fi |
---|
6432 | allow_undefined_flag=$save_allow_undefined_flag |
---|
6433 | else |
---|
6434 | cat conftest.err 1>&5 |
---|
6435 | fi |
---|
6436 | fi |
---|
6437 | |
---|
6438 | echo "$as_me:6438: result: $lt_cv_archive_cmds_need_lc" >&5 |
---|
6439 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
---|
6440 | ;; |
---|
6441 | esac |
---|
6442 | fi |
---|
6443 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
---|
6444 | |
---|
6445 | # The second clause should only fire when bootstrapping the |
---|
6446 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
6447 | # with your package, and you will get complaints that there are |
---|
6448 | # no rules to generate ltmain.sh. |
---|
6449 | if test -f "$ltmain"; then |
---|
6450 | : |
---|
6451 | else |
---|
6452 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
6453 | # `config.status --recheck' to rerun these tests and create the |
---|
6454 | # libtool script then. |
---|
6455 | test -f Makefile && make "$ltmain" |
---|
6456 | fi |
---|
6457 | |
---|
6458 | if test -f "$ltmain"; then |
---|
6459 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
---|
6460 | $rm -f "${ofile}T" |
---|
6461 | |
---|
6462 | echo creating $ofile |
---|
6463 | |
---|
6464 | # Now quote all the things that may contain metacharacters while being |
---|
6465 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
6466 | # variables and quote the copies for generation of the libtool script. |
---|
6467 | for var in echo old_CC old_CFLAGS \ |
---|
6468 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
---|
6469 | reload_flag reload_cmds wl \ |
---|
6470 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
---|
6471 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
---|
6472 | library_names_spec soname_spec \ |
---|
6473 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
---|
6474 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
---|
6475 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
---|
6476 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
---|
6477 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
---|
6478 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
---|
6479 | global_symbol_to_c_name_address \ |
---|
6480 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
---|
6481 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
6482 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
---|
6483 | |
---|
6484 | case $var in |
---|
6485 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
---|
6486 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
6487 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
---|
6488 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
---|
6489 | postinstall_cmds | postuninstall_cmds | \ |
---|
6490 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
6491 | # Double-quote double-evaled strings. |
---|
6492 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
6493 | ;; |
---|
6494 | *) |
---|
6495 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
6496 | ;; |
---|
6497 | esac |
---|
6498 | done |
---|
6499 | |
---|
6500 | cat <<__EOF__ > "${ofile}T" |
---|
6501 | #! $SHELL |
---|
6502 | |
---|
6503 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
6504 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
6505 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
6506 | # |
---|
6507 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
---|
6508 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
6509 | # |
---|
6510 | # This program is free software; you can redistribute it and/or modify |
---|
6511 | # it under the terms of the GNU General Public License as published by |
---|
6512 | # the Free Software Foundation; either version 2 of the License, or |
---|
6513 | # (at your option) any later version. |
---|
6514 | # |
---|
6515 | # This program is distributed in the hope that it will be useful, but |
---|
6516 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
6517 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
6518 | # General Public License for more details. |
---|
6519 | # |
---|
6520 | # You should have received a copy of the GNU General Public License |
---|
6521 | # along with this program; if not, write to the Free Software |
---|
6522 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
6523 | # |
---|
6524 | # As a special exception to the GNU General Public License, if you |
---|
6525 | # distribute this file as part of a program that contains a |
---|
6526 | # configuration script generated by Autoconf, you may include it under |
---|
6527 | # the same distribution terms that you use for the rest of that program. |
---|
6528 | |
---|
6529 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
6530 | Xsed="sed -e s/^X//" |
---|
6531 | |
---|
6532 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
6533 | # if CDPATH is set. |
---|
6534 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
---|
6535 | |
---|
6536 | # ### BEGIN LIBTOOL CONFIG |
---|
6537 | |
---|
6538 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
6539 | |
---|
6540 | # Shell to use when invoking shell scripts. |
---|
6541 | SHELL=$lt_SHELL |
---|
6542 | |
---|
6543 | # Whether or not to build shared libraries. |
---|
6544 | build_libtool_libs=$enable_shared |
---|
6545 | |
---|
6546 | # Whether or not to build static libraries. |
---|
6547 | build_old_libs=$enable_static |
---|
6548 | |
---|
6549 | # Whether or not to add -lc for building shared libraries. |
---|
6550 | build_libtool_need_lc=$need_lc |
---|
6551 | |
---|
6552 | # Whether or not to optimize for fast installation. |
---|
6553 | fast_install=$enable_fast_install |
---|
6554 | |
---|
6555 | # The host system. |
---|
6556 | host_alias=$host_alias |
---|
6557 | host=$host |
---|
6558 | |
---|
6559 | # An echo program that does not interpret backslashes. |
---|
6560 | echo=$lt_echo |
---|
6561 | |
---|
6562 | # The archiver. |
---|
6563 | AR=$lt_AR |
---|
6564 | AR_FLAGS=$lt_AR_FLAGS |
---|
6565 | |
---|
6566 | # The default C compiler. |
---|
6567 | CC=$lt_CC |
---|
6568 | |
---|
6569 | # Is the compiler the GNU C compiler? |
---|
6570 | with_gcc=$GCC |
---|
6571 | |
---|
6572 | # The linker used to build libraries. |
---|
6573 | LD=$lt_LD |
---|
6574 | |
---|
6575 | # Whether we need hard or soft links. |
---|
6576 | LN_S=$lt_LN_S |
---|
6577 | |
---|
6578 | # A BSD-compatible nm program. |
---|
6579 | NM=$lt_NM |
---|
6580 | |
---|
6581 | # A symbol stripping program |
---|
6582 | STRIP=$STRIP |
---|
6583 | |
---|
6584 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
6585 | MAGIC_CMD=$MAGIC_CMD |
---|
6586 | |
---|
6587 | # Used on cygwin: DLL creation program. |
---|
6588 | DLLTOOL="$DLLTOOL" |
---|
6589 | |
---|
6590 | # Used on cygwin: object dumper. |
---|
6591 | OBJDUMP="$OBJDUMP" |
---|
6592 | |
---|
6593 | # Used on cygwin: assembler. |
---|
6594 | AS="$AS" |
---|
6595 | |
---|
6596 | # The name of the directory that contains temporary libtool files. |
---|
6597 | objdir=$objdir |
---|
6598 | |
---|
6599 | # How to create reloadable object files. |
---|
6600 | reload_flag=$lt_reload_flag |
---|
6601 | reload_cmds=$lt_reload_cmds |
---|
6602 | |
---|
6603 | # How to pass a linker flag through the compiler. |
---|
6604 | wl=$lt_wl |
---|
6605 | |
---|
6606 | # Object file suffix (normally "o"). |
---|
6607 | objext="$ac_objext" |
---|
6608 | |
---|
6609 | # Old archive suffix (normally "a"). |
---|
6610 | libext="$libext" |
---|
6611 | |
---|
6612 | # Executable file suffix (normally ""). |
---|
6613 | exeext="$exeext" |
---|
6614 | |
---|
6615 | # Additional compiler flags for building library objects. |
---|
6616 | pic_flag=$lt_pic_flag |
---|
6617 | pic_mode=$pic_mode |
---|
6618 | |
---|
6619 | # Does compiler simultaneously support -c and -o options? |
---|
6620 | compiler_c_o=$lt_compiler_c_o |
---|
6621 | |
---|
6622 | # Can we write directly to a .lo ? |
---|
6623 | compiler_o_lo=$lt_compiler_o_lo |
---|
6624 | |
---|
6625 | # Must we lock files when doing compilation ? |
---|
6626 | need_locks=$lt_need_locks |
---|
6627 | |
---|
6628 | # Do we need the lib prefix for modules? |
---|
6629 | need_lib_prefix=$need_lib_prefix |
---|
6630 | |
---|
6631 | # Do we need a version for libraries? |
---|
6632 | need_version=$need_version |
---|
6633 | |
---|
6634 | # Whether dlopen is supported. |
---|
6635 | dlopen_support=$enable_dlopen |
---|
6636 | |
---|
6637 | # Whether dlopen of programs is supported. |
---|
6638 | dlopen_self=$enable_dlopen_self |
---|
6639 | |
---|
6640 | # Whether dlopen of statically linked programs is supported. |
---|
6641 | dlopen_self_static=$enable_dlopen_self_static |
---|
6642 | |
---|
6643 | # Compiler flag to prevent dynamic linking. |
---|
6644 | link_static_flag=$lt_link_static_flag |
---|
6645 | |
---|
6646 | # Compiler flag to turn off builtin functions. |
---|
6647 | no_builtin_flag=$lt_no_builtin_flag |
---|
6648 | |
---|
6649 | # Compiler flag to allow reflexive dlopens. |
---|
6650 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
6651 | |
---|
6652 | # Compiler flag to generate shared objects directly from archives. |
---|
6653 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
6654 | |
---|
6655 | # Compiler flag to generate thread-safe objects. |
---|
6656 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
6657 | |
---|
6658 | # Library versioning type. |
---|
6659 | version_type=$version_type |
---|
6660 | |
---|
6661 | # Format of library name prefix. |
---|
6662 | libname_spec=$lt_libname_spec |
---|
6663 | |
---|
6664 | # List of archive names. First name is the real one, the rest are links. |
---|
6665 | # The last name is the one that the linker finds with -lNAME. |
---|
6666 | library_names_spec=$lt_library_names_spec |
---|
6667 | |
---|
6668 | # The coded name of the library, if different from the real name. |
---|
6669 | soname_spec=$lt_soname_spec |
---|
6670 | |
---|
6671 | # Commands used to build and install an old-style archive. |
---|
6672 | RANLIB=$lt_RANLIB |
---|
6673 | old_archive_cmds=$lt_old_archive_cmds |
---|
6674 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
6675 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
6676 | |
---|
6677 | # Create an old-style archive from a shared archive. |
---|
6678 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
6679 | |
---|
6680 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
6681 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
6682 | |
---|
6683 | # Commands used to build and install a shared archive. |
---|
6684 | archive_cmds=$lt_archive_cmds |
---|
6685 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
6686 | postinstall_cmds=$lt_postinstall_cmds |
---|
6687 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
6688 | |
---|
6689 | # Commands to strip libraries. |
---|
6690 | old_striplib=$lt_old_striplib |
---|
6691 | striplib=$lt_striplib |
---|
6692 | |
---|
6693 | # Method to check whether dependent libraries are shared objects. |
---|
6694 | deplibs_check_method=$lt_deplibs_check_method |
---|
6695 | |
---|
6696 | # Command to use when deplibs_check_method == file_magic. |
---|
6697 | file_magic_cmd=$lt_file_magic_cmd |
---|
6698 | |
---|
6699 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
6700 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
6701 | |
---|
6702 | # Flag that forces no undefined symbols. |
---|
6703 | no_undefined_flag=$lt_no_undefined_flag |
---|
6704 | |
---|
6705 | # Commands used to finish a libtool library installation in a directory. |
---|
6706 | finish_cmds=$lt_finish_cmds |
---|
6707 | |
---|
6708 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
6709 | finish_eval=$lt_finish_eval |
---|
6710 | |
---|
6711 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
6712 | global_symbol_pipe=$lt_global_symbol_pipe |
---|
6713 | |
---|
6714 | # Transform the output of nm in a proper C declaration |
---|
6715 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
---|
6716 | |
---|
6717 | # Transform the output of nm in a C name address pair |
---|
6718 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
---|
6719 | |
---|
6720 | # This is the shared library runtime path variable. |
---|
6721 | runpath_var=$runpath_var |
---|
6722 | |
---|
6723 | # This is the shared library path variable. |
---|
6724 | shlibpath_var=$shlibpath_var |
---|
6725 | |
---|
6726 | # Is shlibpath searched before the hard-coded library search path? |
---|
6727 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
6728 | |
---|
6729 | # How to hardcode a shared library path into an executable. |
---|
6730 | hardcode_action=$hardcode_action |
---|
6731 | |
---|
6732 | # Whether we should hardcode library paths into libraries. |
---|
6733 | hardcode_into_libs=$hardcode_into_libs |
---|
6734 | |
---|
6735 | # Flag to hardcode \$libdir into a binary during linking. |
---|
6736 | # This must work even if \$libdir does not exist. |
---|
6737 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
6738 | |
---|
6739 | # Whether we need a single -rpath flag with a separated argument. |
---|
6740 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
6741 | |
---|
6742 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
---|
6743 | # resulting binary. |
---|
6744 | hardcode_direct=$hardcode_direct |
---|
6745 | |
---|
6746 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
6747 | # resulting binary. |
---|
6748 | hardcode_minus_L=$hardcode_minus_L |
---|
6749 | |
---|
6750 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
6751 | # the resulting binary. |
---|
6752 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
6753 | |
---|
6754 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
6755 | # restored at relink time. |
---|
6756 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
6757 | |
---|
6758 | # Whether libtool must link a program against all its dependency libraries. |
---|
6759 | link_all_deplibs=$link_all_deplibs |
---|
6760 | |
---|
6761 | # Compile-time system search path for libraries |
---|
6762 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
6763 | |
---|
6764 | # Run-time system search path for libraries |
---|
6765 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
6766 | |
---|
6767 | # Fix the shell variable \$srcfile for the compiler. |
---|
6768 | fix_srcfile_path="$fix_srcfile_path" |
---|
6769 | |
---|
6770 | # Set to yes if exported symbols are required. |
---|
6771 | always_export_symbols=$always_export_symbols |
---|
6772 | |
---|
6773 | # The commands to list exported symbols. |
---|
6774 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
6775 | |
---|
6776 | # The commands to extract the exported symbol list from a shared archive. |
---|
6777 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
6778 | |
---|
6779 | # Symbols that should not be listed in the preloaded symbols. |
---|
6780 | exclude_expsyms=$lt_exclude_expsyms |
---|
6781 | |
---|
6782 | # Symbols that must always be exported. |
---|
6783 | include_expsyms=$lt_include_expsyms |
---|
6784 | |
---|
6785 | # ### END LIBTOOL CONFIG |
---|
6786 | |
---|
6787 | __EOF__ |
---|
6788 | |
---|
6789 | case $host_os in |
---|
6790 | aix3*) |
---|
6791 | cat <<\EOF >> "${ofile}T" |
---|
6792 | |
---|
6793 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
6794 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
6795 | # vanish in a puff of smoke. |
---|
6796 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
6797 | COLLECT_NAMES= |
---|
6798 | export COLLECT_NAMES |
---|
6799 | fi |
---|
6800 | EOF |
---|
6801 | ;; |
---|
6802 | esac |
---|
6803 | |
---|
6804 | case $host_os in |
---|
6805 | cygwin* | mingw* | pw32* | os2*) |
---|
6806 | cat <<'EOF' >> "${ofile}T" |
---|
6807 | # This is a source program that is used to create dlls on Windows |
---|
6808 | # Don't remove nor modify the starting and closing comments |
---|
6809 | # /* ltdll.c starts here */ |
---|
6810 | # #define WIN32_LEAN_AND_MEAN |
---|
6811 | # #include <windows.h> |
---|
6812 | # #undef WIN32_LEAN_AND_MEAN |
---|
6813 | # #include <stdio.h> |
---|
6814 | # |
---|
6815 | # #ifndef __CYGWIN__ |
---|
6816 | # # ifdef __CYGWIN32__ |
---|
6817 | # # define __CYGWIN__ __CYGWIN32__ |
---|
6818 | # # endif |
---|
6819 | # #endif |
---|
6820 | # |
---|
6821 | # #ifdef __cplusplus |
---|
6822 | # extern "C" { |
---|
6823 | # #endif |
---|
6824 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
---|
6825 | # #ifdef __cplusplus |
---|
6826 | # } |
---|
6827 | # #endif |
---|
6828 | # |
---|
6829 | # #ifdef __CYGWIN__ |
---|
6830 | # #include <cygwin/cygwin_dll.h> |
---|
6831 | # DECLARE_CYGWIN_DLL( DllMain ); |
---|
6832 | # #endif |
---|
6833 | # HINSTANCE __hDllInstance_base; |
---|
6834 | # |
---|
6835 | # BOOL APIENTRY |
---|
6836 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
---|
6837 | # { |
---|
6838 | # __hDllInstance_base = hInst; |
---|
6839 | # return TRUE; |
---|
6840 | # } |
---|
6841 | # /* ltdll.c ends here */ |
---|
6842 | # This is a source program that is used to create import libraries |
---|
6843 | # on Windows for dlls which lack them. Don't remove nor modify the |
---|
6844 | # starting and closing comments |
---|
6845 | # /* impgen.c starts here */ |
---|
6846 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
---|
6847 | # |
---|
6848 | # This file is part of GNU libtool. |
---|
6849 | # |
---|
6850 | # This program is free software; you can redistribute it and/or modify |
---|
6851 | # it under the terms of the GNU General Public License as published by |
---|
6852 | # the Free Software Foundation; either version 2 of the License, or |
---|
6853 | # (at your option) any later version. |
---|
6854 | # |
---|
6855 | # This program is distributed in the hope that it will be useful, |
---|
6856 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
6857 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
6858 | # GNU General Public License for more details. |
---|
6859 | # |
---|
6860 | # You should have received a copy of the GNU General Public License |
---|
6861 | # along with this program; if not, write to the Free Software |
---|
6862 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
6863 | # */ |
---|
6864 | # |
---|
6865 | # #include <stdio.h> /* for printf() */ |
---|
6866 | # #include <unistd.h> /* for open(), lseek(), read() */ |
---|
6867 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
---|
6868 | # #include <string.h> /* for strdup() */ |
---|
6869 | # |
---|
6870 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
---|
6871 | # #ifndef O_BINARY |
---|
6872 | # #define O_BINARY 0 |
---|
6873 | # #endif |
---|
6874 | # |
---|
6875 | # static unsigned int |
---|
6876 | # pe_get16 (fd, offset) |
---|
6877 | # int fd; |
---|
6878 | # int offset; |
---|
6879 | # { |
---|
6880 | # unsigned char b[2]; |
---|
6881 | # lseek (fd, offset, SEEK_SET); |
---|
6882 | # read (fd, b, 2); |
---|
6883 | # return b[0] + (b[1]<<8); |
---|
6884 | # } |
---|
6885 | # |
---|
6886 | # static unsigned int |
---|
6887 | # pe_get32 (fd, offset) |
---|
6888 | # int fd; |
---|
6889 | # int offset; |
---|
6890 | # { |
---|
6891 | # unsigned char b[4]; |
---|
6892 | # lseek (fd, offset, SEEK_SET); |
---|
6893 | # read (fd, b, 4); |
---|
6894 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
---|
6895 | # } |
---|
6896 | # |
---|
6897 | # static unsigned int |
---|
6898 | # pe_as32 (ptr) |
---|
6899 | # void *ptr; |
---|
6900 | # { |
---|
6901 | # unsigned char *b = ptr; |
---|
6902 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
---|
6903 | # } |
---|
6904 | # |
---|
6905 | # int |
---|
6906 | # main (argc, argv) |
---|
6907 | # int argc; |
---|
6908 | # char *argv[]; |
---|
6909 | # { |
---|
6910 | # int dll; |
---|
6911 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
---|
6912 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
---|
6913 | # unsigned long name_rvas, nexp; |
---|
6914 | # unsigned char *expdata, *erva; |
---|
6915 | # char *filename, *dll_name; |
---|
6916 | # |
---|
6917 | # filename = argv[1]; |
---|
6918 | # |
---|
6919 | # dll = open(filename, O_RDONLY|O_BINARY); |
---|
6920 | # if (dll < 1) |
---|
6921 | # return 1; |
---|
6922 | # |
---|
6923 | # dll_name = filename; |
---|
6924 | # |
---|
6925 | # for (i=0; filename[i]; i++) |
---|
6926 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
---|
6927 | # dll_name = filename + i +1; |
---|
6928 | # |
---|
6929 | # pe_header_offset = pe_get32 (dll, 0x3c); |
---|
6930 | # opthdr_ofs = pe_header_offset + 4 + 20; |
---|
6931 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
---|
6932 | # |
---|
6933 | # if (num_entries < 1) /* no exports */ |
---|
6934 | # return 1; |
---|
6935 | # |
---|
6936 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
---|
6937 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
---|
6938 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
---|
6939 | # secptr = (pe_header_offset + 4 + 20 + |
---|
6940 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
---|
6941 | # |
---|
6942 | # expptr = 0; |
---|
6943 | # for (i = 0; i < nsections; i++) |
---|
6944 | # { |
---|
6945 | # char sname[8]; |
---|
6946 | # unsigned long secptr1 = secptr + 40 * i; |
---|
6947 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
---|
6948 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
---|
6949 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
---|
6950 | # lseek(dll, secptr1, SEEK_SET); |
---|
6951 | # read(dll, sname, 8); |
---|
6952 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
---|
6953 | # { |
---|
6954 | # expptr = fptr + (export_rva - vaddr); |
---|
6955 | # if (export_rva + export_size > vaddr + vsize) |
---|
6956 | # export_size = vsize - (export_rva - vaddr); |
---|
6957 | # break; |
---|
6958 | # } |
---|
6959 | # } |
---|
6960 | # |
---|
6961 | # expdata = (unsigned char*)malloc(export_size); |
---|
6962 | # lseek (dll, expptr, SEEK_SET); |
---|
6963 | # read (dll, expdata, export_size); |
---|
6964 | # erva = expdata - export_rva; |
---|
6965 | # |
---|
6966 | # nexp = pe_as32 (expdata+24); |
---|
6967 | # name_rvas = pe_as32 (expdata+32); |
---|
6968 | # |
---|
6969 | # printf ("EXPORTS\n"); |
---|
6970 | # for (i = 0; i<nexp; i++) |
---|
6971 | # { |
---|
6972 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
---|
6973 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
---|
6974 | # } |
---|
6975 | # |
---|
6976 | # return 0; |
---|
6977 | # } |
---|
6978 | # /* impgen.c ends here */ |
---|
6979 | |
---|
6980 | EOF |
---|
6981 | ;; |
---|
6982 | esac |
---|
6983 | |
---|
6984 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
6985 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
6986 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
6987 | # is reportedly fixed, but why not run on old versions too? |
---|
6988 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
---|
6989 | |
---|
6990 | mv -f "${ofile}T" "$ofile" || \ |
---|
6991 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
---|
6992 | chmod +x "$ofile" |
---|
6993 | fi |
---|
6994 | |
---|
6995 | # This can be used to rebuild libtool when needed |
---|
6996 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
6997 | |
---|
6998 | # Always use our own libtool. |
---|
6999 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
7000 | |
---|
7001 | # Prevent multiple expansion |
---|
7002 | |
---|
7003 | succeeded=no |
---|
7004 | |
---|
7005 | if test -z "$PKG_CONFIG"; then |
---|
7006 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
7007 | set dummy pkg-config; ac_word=$2 |
---|
7008 | echo "$as_me:7008: checking for $ac_word" >&5 |
---|
7009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7010 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
7011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7012 | else |
---|
7013 | case $PKG_CONFIG in |
---|
7014 | [\\/]* | ?:[\\/]*) |
---|
7015 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
7016 | ;; |
---|
7017 | *) |
---|
7018 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
---|
7019 | ac_dummy="$PATH" |
---|
7020 | for ac_dir in $ac_dummy; do |
---|
7021 | IFS=$ac_save_IFS |
---|
7022 | test -z "$ac_dir" && ac_dir=. |
---|
7023 | if $as_executable_p "$ac_dir/$ac_word"; then |
---|
7024 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
---|
7025 | echo "$as_me:7025: found $ac_dir/$ac_word" >&5 |
---|
7026 | break |
---|
7027 | fi |
---|
7028 | done |
---|
7029 | |
---|
7030 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
---|
7031 | ;; |
---|
7032 | esac |
---|
7033 | fi |
---|
7034 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
7035 | |
---|
7036 | if test -n "$PKG_CONFIG"; then |
---|
7037 | echo "$as_me:7037: result: $PKG_CONFIG" >&5 |
---|
7038 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
7039 | else |
---|
7040 | echo "$as_me:7040: result: no" >&5 |
---|
7041 | echo "${ECHO_T}no" >&6 |
---|
7042 | fi |
---|
7043 | |
---|
7044 | fi |
---|
7045 | |
---|
7046 | if test "$PKG_CONFIG" = "no" ; then |
---|
7047 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
7048 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
7049 | echo "*** to the full path to pkg-config." |
---|
7050 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
7051 | else |
---|
7052 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
7053 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
7054 | echo "$as_me:7054: checking for gtk+-2.0 >= 1.3.12" >&5 |
---|
7055 | echo $ECHO_N "checking for gtk+-2.0 >= 1.3.12... $ECHO_C" >&6 |
---|
7056 | |
---|
7057 | if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.12" ; then |
---|
7058 | echo "$as_me:7058: result: yes" >&5 |
---|
7059 | echo "${ECHO_T}yes" >&6 |
---|
7060 | succeeded=yes |
---|
7061 | |
---|
7062 | echo "$as_me:7062: checking GTK_CFLAGS" >&5 |
---|
7063 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 |
---|
7064 | GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.12"` |
---|
7065 | echo "$as_me:7065: result: $GTK_CFLAGS" >&5 |
---|
7066 | echo "${ECHO_T}$GTK_CFLAGS" >&6 |
---|
7067 | |
---|
7068 | echo "$as_me:7068: checking GTK_LIBS" >&5 |
---|
7069 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 |
---|
7070 | GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3.12"` |
---|
7071 | echo "$as_me:7071: result: $GTK_LIBS" >&5 |
---|
7072 | echo "${ECHO_T}$GTK_LIBS" >&6 |
---|
7073 | else |
---|
7074 | GTK_CFLAGS="" |
---|
7075 | GTK_LIBS="" |
---|
7076 | ## If we have a custom action on failure, don't print errors, but |
---|
7077 | ## do set a variable so people can do so. |
---|
7078 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3.12"` |
---|
7079 | |
---|
7080 | fi |
---|
7081 | |
---|
7082 | else |
---|
7083 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
7084 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
7085 | fi |
---|
7086 | fi |
---|
7087 | |
---|
7088 | if test $succeeded = yes; then |
---|
7089 | : |
---|
7090 | else |
---|
7091 | { { echo "$as_me:7091: error: GTK+-2.0 is required to compile gtk-engines" >&5 |
---|
7092 | echo "$as_me: error: GTK+-2.0 is required to compile gtk-engines" >&2;} |
---|
7093 | { (exit 1); exit 1; }; } |
---|
7094 | fi |
---|
7095 | |
---|
7096 | GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` |
---|
7097 | |
---|
7098 | # Checks for header files. |
---|
7099 | echo "$as_me:7099: checking for ANSI C header files" >&5 |
---|
7100 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
7101 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7103 | else |
---|
7104 | cat >conftest.$ac_ext <<_ACEOF |
---|
7105 | #line 7105 "configure" |
---|
7106 | #include "confdefs.h" |
---|
7107 | #include <stdlib.h> |
---|
7108 | #include <stdarg.h> |
---|
7109 | #include <string.h> |
---|
7110 | #include <float.h> |
---|
7111 | |
---|
7112 | _ACEOF |
---|
7113 | if { (eval echo "$as_me:7113: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7115 | ac_status=$? |
---|
7116 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
7117 | rm -f conftest.er1 |
---|
7118 | cat conftest.err >&5 |
---|
7119 | echo "$as_me:7119: \$? = $ac_status" >&5 |
---|
7120 | (exit $ac_status); } >/dev/null; then |
---|
7121 | if test -s conftest.err; then |
---|
7122 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7123 | else |
---|
7124 | ac_cpp_err= |
---|
7125 | fi |
---|
7126 | else |
---|
7127 | ac_cpp_err=yes |
---|
7128 | fi |
---|
7129 | if test -z "$ac_cpp_err"; then |
---|
7130 | ac_cv_header_stdc=yes |
---|
7131 | else |
---|
7132 | echo "$as_me: failed program was:" >&5 |
---|
7133 | cat conftest.$ac_ext >&5 |
---|
7134 | ac_cv_header_stdc=no |
---|
7135 | fi |
---|
7136 | rm -f conftest.err conftest.$ac_ext |
---|
7137 | |
---|
7138 | if test $ac_cv_header_stdc = yes; then |
---|
7139 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7140 | cat >conftest.$ac_ext <<_ACEOF |
---|
7141 | #line 7141 "configure" |
---|
7142 | #include "confdefs.h" |
---|
7143 | #include <string.h> |
---|
7144 | |
---|
7145 | _ACEOF |
---|
7146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7147 | egrep "memchr" >/dev/null 2>&1; then |
---|
7148 | : |
---|
7149 | else |
---|
7150 | ac_cv_header_stdc=no |
---|
7151 | fi |
---|
7152 | rm -f conftest* |
---|
7153 | |
---|
7154 | fi |
---|
7155 | |
---|
7156 | if test $ac_cv_header_stdc = yes; then |
---|
7157 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7158 | cat >conftest.$ac_ext <<_ACEOF |
---|
7159 | #line 7159 "configure" |
---|
7160 | #include "confdefs.h" |
---|
7161 | #include <stdlib.h> |
---|
7162 | |
---|
7163 | _ACEOF |
---|
7164 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7165 | egrep "free" >/dev/null 2>&1; then |
---|
7166 | : |
---|
7167 | else |
---|
7168 | ac_cv_header_stdc=no |
---|
7169 | fi |
---|
7170 | rm -f conftest* |
---|
7171 | |
---|
7172 | fi |
---|
7173 | |
---|
7174 | if test $ac_cv_header_stdc = yes; then |
---|
7175 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7176 | if test "$cross_compiling" = yes; then |
---|
7177 | : |
---|
7178 | else |
---|
7179 | cat >conftest.$ac_ext <<_ACEOF |
---|
7180 | #line 7180 "configure" |
---|
7181 | #include "confdefs.h" |
---|
7182 | #include <ctype.h> |
---|
7183 | #if ((' ' & 0x0FF) == 0x020) |
---|
7184 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7185 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7186 | #else |
---|
7187 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
---|
7188 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7189 | || ('s' <= (c) && (c) <= 'z')) |
---|
7190 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7191 | #endif |
---|
7192 | |
---|
7193 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7194 | int |
---|
7195 | main () |
---|
7196 | { |
---|
7197 | int i; |
---|
7198 | for (i = 0; i < 256; i++) |
---|
7199 | if (XOR (islower (i), ISLOWER (i)) |
---|
7200 | || toupper (i) != TOUPPER (i)) |
---|
7201 | exit(2); |
---|
7202 | exit (0); |
---|
7203 | } |
---|
7204 | _ACEOF |
---|
7205 | rm -f conftest$ac_exeext |
---|
7206 | if { (eval echo "$as_me:7206: \"$ac_link\"") >&5 |
---|
7207 | (eval $ac_link) 2>&5 |
---|
7208 | ac_status=$? |
---|
7209 | echo "$as_me:7209: \$? = $ac_status" >&5 |
---|
7210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7211 | { (eval echo "$as_me:7211: \"$ac_try\"") >&5 |
---|
7212 | (eval $ac_try) 2>&5 |
---|
7213 | ac_status=$? |
---|
7214 | echo "$as_me:7214: \$? = $ac_status" >&5 |
---|
7215 | (exit $ac_status); }; }; then |
---|
7216 | : |
---|
7217 | else |
---|
7218 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7219 | echo "$as_me: failed program was:" >&5 |
---|
7220 | cat conftest.$ac_ext >&5 |
---|
7221 | ac_cv_header_stdc=no |
---|
7222 | fi |
---|
7223 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7224 | fi |
---|
7225 | fi |
---|
7226 | fi |
---|
7227 | echo "$as_me:7227: result: $ac_cv_header_stdc" >&5 |
---|
7228 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
7229 | if test $ac_cv_header_stdc = yes; then |
---|
7230 | |
---|
7231 | cat >>confdefs.h <<\_ACEOF |
---|
7232 | #define STDC_HEADERS 1 |
---|
7233 | _ACEOF |
---|
7234 | |
---|
7235 | fi |
---|
7236 | |
---|
7237 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7238 | echo "$as_me:7238: checking for $CC option to accept ANSI C" >&5 |
---|
7239 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
7240 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7242 | else |
---|
7243 | ac_cv_prog_cc_stdc=no |
---|
7244 | ac_save_CC=$CC |
---|
7245 | cat >conftest.$ac_ext <<_ACEOF |
---|
7246 | #line 7246 "configure" |
---|
7247 | #include "confdefs.h" |
---|
7248 | #include <stdarg.h> |
---|
7249 | #include <stdio.h> |
---|
7250 | #include <sys/types.h> |
---|
7251 | #include <sys/stat.h> |
---|
7252 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
7253 | struct buf { int x; }; |
---|
7254 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
7255 | static char *e (p, i) |
---|
7256 | char **p; |
---|
7257 | int i; |
---|
7258 | { |
---|
7259 | return p[i]; |
---|
7260 | } |
---|
7261 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
7262 | { |
---|
7263 | char *s; |
---|
7264 | va_list v; |
---|
7265 | va_start (v,p); |
---|
7266 | s = g (p, va_arg (v,int)); |
---|
7267 | va_end (v); |
---|
7268 | return s; |
---|
7269 | } |
---|
7270 | int test (int i, double x); |
---|
7271 | struct s1 {int (*f) (int a);}; |
---|
7272 | struct s2 {int (*f) (double a);}; |
---|
7273 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
7274 | int argc; |
---|
7275 | char **argv; |
---|
7276 | #ifdef F77_DUMMY_MAIN |
---|
7277 | # ifdef __cplusplus |
---|
7278 | extern "C" |
---|
7279 | # endif |
---|
7280 | int F77_DUMMY_MAIN() { return 1; } |
---|
7281 | #endif |
---|
7282 | int |
---|
7283 | main () |
---|
7284 | { |
---|
7285 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
7286 | ; |
---|
7287 | return 0; |
---|
7288 | } |
---|
7289 | _ACEOF |
---|
7290 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
7291 | # breaks some systems' header files. |
---|
7292 | # AIX -qlanglvl=ansi |
---|
7293 | # Ultrix and OSF/1 -std1 |
---|
7294 | # HP-UX 10.20 and later -Ae |
---|
7295 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
7296 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
7297 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
7298 | do |
---|
7299 | CC="$ac_save_CC $ac_arg" |
---|
7300 | rm -f conftest.$ac_objext |
---|
7301 | if { (eval echo "$as_me:7301: \"$ac_compile\"") >&5 |
---|
7302 | (eval $ac_compile) 2>&5 |
---|
7303 | ac_status=$? |
---|
7304 | echo "$as_me:7304: \$? = $ac_status" >&5 |
---|
7305 | (exit $ac_status); } && |
---|
7306 | { ac_try='test -s conftest.$ac_objext' |
---|
7307 | { (eval echo "$as_me:7307: \"$ac_try\"") >&5 |
---|
7308 | (eval $ac_try) 2>&5 |
---|
7309 | ac_status=$? |
---|
7310 | echo "$as_me:7310: \$? = $ac_status" >&5 |
---|
7311 | (exit $ac_status); }; }; then |
---|
7312 | ac_cv_prog_cc_stdc=$ac_arg |
---|
7313 | break |
---|
7314 | else |
---|
7315 | echo "$as_me: failed program was:" >&5 |
---|
7316 | cat conftest.$ac_ext >&5 |
---|
7317 | fi |
---|
7318 | rm -f conftest.$ac_objext |
---|
7319 | done |
---|
7320 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
7321 | CC=$ac_save_CC |
---|
7322 | |
---|
7323 | fi |
---|
7324 | |
---|
7325 | case "x$ac_cv_prog_cc_stdc" in |
---|
7326 | x|xno) |
---|
7327 | echo "$as_me:7327: result: none needed" >&5 |
---|
7328 | echo "${ECHO_T}none needed" >&6 ;; |
---|
7329 | *) |
---|
7330 | echo "$as_me:7330: result: $ac_cv_prog_cc_stdc" >&5 |
---|
7331 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
7332 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
7333 | esac |
---|
7334 | |
---|
7335 | echo "$as_me:7335: checking for an ANSI C-conforming const" >&5 |
---|
7336 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
7337 | if test "${ac_cv_c_const+set}" = set; then |
---|
7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7339 | else |
---|
7340 | cat >conftest.$ac_ext <<_ACEOF |
---|
7341 | #line 7341 "configure" |
---|
7342 | #include "confdefs.h" |
---|
7343 | |
---|
7344 | #ifdef F77_DUMMY_MAIN |
---|
7345 | # ifdef __cplusplus |
---|
7346 | extern "C" |
---|
7347 | # endif |
---|
7348 | int F77_DUMMY_MAIN() { return 1; } |
---|
7349 | #endif |
---|
7350 | int |
---|
7351 | main () |
---|
7352 | { |
---|
7353 | /* FIXME: Include the comments suggested by Paul. */ |
---|
7354 | #ifndef __cplusplus |
---|
7355 | /* Ultrix mips cc rejects this. */ |
---|
7356 | typedef int charset[2]; |
---|
7357 | const charset x; |
---|
7358 | /* SunOS 4.1.1 cc rejects this. */ |
---|
7359 | char const *const *ccp; |
---|
7360 | char **p; |
---|
7361 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
7362 | struct point {int x, y;}; |
---|
7363 | static struct point const zero = {0,0}; |
---|
7364 | /* AIX XL C 1.02.0.0 rejects this. |
---|
7365 | It does not let you subtract one const X* pointer from another in |
---|
7366 | an arm of an if-expression whose if-part is not a constant |
---|
7367 | expression */ |
---|
7368 | const char *g = "string"; |
---|
7369 | ccp = &g + (g ? g-g : 0); |
---|
7370 | /* HPUX 7.0 cc rejects these. */ |
---|
7371 | ++ccp; |
---|
7372 | p = (char**) ccp; |
---|
7373 | ccp = (char const *const *) p; |
---|
7374 | { /* SCO 3.2v4 cc rejects this. */ |
---|
7375 | char *t; |
---|
7376 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
7377 | |
---|
7378 | *t++ = 0; |
---|
7379 | } |
---|
7380 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
7381 | int x[] = {25, 17}; |
---|
7382 | const int *foo = &x[0]; |
---|
7383 | ++foo; |
---|
7384 | } |
---|
7385 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
7386 | typedef const int *iptr; |
---|
7387 | iptr p = 0; |
---|
7388 | ++p; |
---|
7389 | } |
---|
7390 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
7391 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
7392 | struct s { int j; const int *ap[3]; }; |
---|
7393 | struct s *b; b->j = 5; |
---|
7394 | } |
---|
7395 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
7396 | const int foo = 10; |
---|
7397 | } |
---|
7398 | #endif |
---|
7399 | |
---|
7400 | ; |
---|
7401 | return 0; |
---|
7402 | } |
---|
7403 | _ACEOF |
---|
7404 | rm -f conftest.$ac_objext |
---|
7405 | if { (eval echo "$as_me:7405: \"$ac_compile\"") >&5 |
---|
7406 | (eval $ac_compile) 2>&5 |
---|
7407 | ac_status=$? |
---|
7408 | echo "$as_me:7408: \$? = $ac_status" >&5 |
---|
7409 | (exit $ac_status); } && |
---|
7410 | { ac_try='test -s conftest.$ac_objext' |
---|
7411 | { (eval echo "$as_me:7411: \"$ac_try\"") >&5 |
---|
7412 | (eval $ac_try) 2>&5 |
---|
7413 | ac_status=$? |
---|
7414 | echo "$as_me:7414: \$? = $ac_status" >&5 |
---|
7415 | (exit $ac_status); }; }; then |
---|
7416 | ac_cv_c_const=yes |
---|
7417 | else |
---|
7418 | echo "$as_me: failed program was:" >&5 |
---|
7419 | cat conftest.$ac_ext >&5 |
---|
7420 | ac_cv_c_const=no |
---|
7421 | fi |
---|
7422 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
7423 | fi |
---|
7424 | echo "$as_me:7424: result: $ac_cv_c_const" >&5 |
---|
7425 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
7426 | if test $ac_cv_c_const = no; then |
---|
7427 | |
---|
7428 | cat >>confdefs.h <<\_ACEOF |
---|
7429 | #define const |
---|
7430 | _ACEOF |
---|
7431 | |
---|
7432 | fi |
---|
7433 | |
---|
7434 | # Save ACLOCAL_FLAGS |
---|
7435 | ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
7436 | |
---|
7437 | ac_config_files="$ac_config_files gtk-engines.spec Makefile metal/Makefile metal/Theme/Makefile metal/Theme/gtk-2.0/Makefile pixbuf/Makefile redmond95/Makefile redmond95/Theme/Makefile redmond95/Theme/gtk-2.0/Makefile" |
---|
7438 | cat >confcache <<\_ACEOF |
---|
7439 | # This file is a shell script that caches the results of configure |
---|
7440 | # tests run on this system so they can be shared between configure |
---|
7441 | # scripts and configure runs, see configure's option --config-cache. |
---|
7442 | # It is not useful on other systems. If it contains results you don't |
---|
7443 | # want to keep, you may remove or edit it. |
---|
7444 | # |
---|
7445 | # config.status only pays attention to the cache file if you give it |
---|
7446 | # the --recheck option to rerun configure. |
---|
7447 | # |
---|
7448 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
---|
7449 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7450 | # following values. |
---|
7451 | |
---|
7452 | _ACEOF |
---|
7453 | |
---|
7454 | # The following way of writing the cache mishandles newlines in values, |
---|
7455 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7456 | # So, don't put newlines in cache variables' values. |
---|
7457 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7458 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7459 | { |
---|
7460 | (set) 2>&1 | |
---|
7461 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7462 | *ac_space=\ *) |
---|
7463 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7464 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7465 | sed -n \ |
---|
7466 | "s/'/'\\\\''/g; |
---|
7467 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7468 | ;; |
---|
7469 | *) |
---|
7470 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7471 | sed -n \ |
---|
7472 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7473 | ;; |
---|
7474 | esac; |
---|
7475 | } | |
---|
7476 | sed ' |
---|
7477 | t clear |
---|
7478 | : clear |
---|
7479 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7480 | t end |
---|
7481 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7482 | : end' >>confcache |
---|
7483 | if cmp -s $cache_file confcache; then :; else |
---|
7484 | if test -w $cache_file; then |
---|
7485 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7486 | cat confcache >$cache_file |
---|
7487 | else |
---|
7488 | echo "not updating unwritable cache $cache_file" |
---|
7489 | fi |
---|
7490 | fi |
---|
7491 | rm -f confcache |
---|
7492 | |
---|
7493 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7494 | # Let make expand exec_prefix. |
---|
7495 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7496 | |
---|
7497 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7498 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7499 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7500 | # (actually we leave an empty line to preserve line numbers). |
---|
7501 | if test "x$srcdir" = x.; then |
---|
7502 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7503 | s/:*\$(srcdir):*/:/; |
---|
7504 | s/:*\${srcdir}:*/:/; |
---|
7505 | s/:*@srcdir@:*/:/; |
---|
7506 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7507 | s/:*$//; |
---|
7508 | s/^[^=]*=[ ]*$//; |
---|
7509 | }' |
---|
7510 | fi |
---|
7511 | |
---|
7512 | # Transform confdefs.h into DEFS. |
---|
7513 | # Protect against shell expansion while executing Makefile rules. |
---|
7514 | # Protect against Makefile macro expansion. |
---|
7515 | # |
---|
7516 | # If the first sed substitution is executed (which looks for macros that |
---|
7517 | # take arguments), then we branch to the quote section. Otherwise, |
---|
7518 | # look for a macro that doesn't take arguments. |
---|
7519 | cat >confdef2opt.sed <<\_ACEOF |
---|
7520 | t clear |
---|
7521 | : clear |
---|
7522 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
7523 | t quote |
---|
7524 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
7525 | t quote |
---|
7526 | d |
---|
7527 | : quote |
---|
7528 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
7529 | s,\[,\\&,g |
---|
7530 | s,\],\\&,g |
---|
7531 | s,\$,$$,g |
---|
7532 | p |
---|
7533 | _ACEOF |
---|
7534 | # We use echo to avoid assuming a particular line-breaking character. |
---|
7535 | # The extra dot is to prevent the shell from consuming trailing |
---|
7536 | # line-breaks from the sub-command output. A line-break within |
---|
7537 | # single-quotes doesn't work because, if this script is created in a |
---|
7538 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
7539 | # would break. |
---|
7540 | ac_LF_and_DOT=`echo; echo .` |
---|
7541 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
7542 | rm -f confdef2opt.sed |
---|
7543 | |
---|
7544 | : ${CONFIG_STATUS=./config.status} |
---|
7545 | ac_clean_files_save=$ac_clean_files |
---|
7546 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7547 | { echo "$as_me:7547: creating $CONFIG_STATUS" >&5 |
---|
7548 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7549 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7550 | #! $SHELL |
---|
7551 | # Generated automatically by $as_me. |
---|
7552 | # Run this file to recreate the current configuration. |
---|
7553 | # Compiler output produced by configure, useful for debugging |
---|
7554 | # configure, is in config.log if it exists. |
---|
7555 | |
---|
7556 | debug=false |
---|
7557 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7558 | _ACEOF |
---|
7559 | |
---|
7560 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7561 | |
---|
7562 | ## --------------------- ## |
---|
7563 | ## M4sh Initialization. ## |
---|
7564 | ## --------------------- ## |
---|
7565 | |
---|
7566 | # Be Bourne compatible |
---|
7567 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7568 | emulate sh |
---|
7569 | NULLCMD=: |
---|
7570 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7571 | set -o posix |
---|
7572 | fi |
---|
7573 | |
---|
7574 | # Name of the executable. |
---|
7575 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
---|
7576 | |
---|
7577 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7578 | as_expr=expr |
---|
7579 | else |
---|
7580 | as_expr=false |
---|
7581 | fi |
---|
7582 | |
---|
7583 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7584 | echo >conf$$.file |
---|
7585 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7586 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
7587 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
7588 | if test -f conf$$.exe; then |
---|
7589 | # Don't use ln at all; we don't have any links |
---|
7590 | as_ln_s='cp -p' |
---|
7591 | else |
---|
7592 | as_ln_s='ln -s' |
---|
7593 | fi |
---|
7594 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7595 | as_ln_s=ln |
---|
7596 | else |
---|
7597 | as_ln_s='cp -p' |
---|
7598 | fi |
---|
7599 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7600 | |
---|
7601 | as_executable_p="test -f" |
---|
7602 | |
---|
7603 | # Support unset when possible. |
---|
7604 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
7605 | as_unset=unset |
---|
7606 | else |
---|
7607 | as_unset=false |
---|
7608 | fi |
---|
7609 | |
---|
7610 | # NLS nuisances. |
---|
7611 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
---|
7612 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
---|
7613 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
---|
7614 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
---|
7615 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
---|
7616 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
---|
7617 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
---|
7618 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
---|
7619 | |
---|
7620 | # IFS |
---|
7621 | # We need space, tab and new line, in precisely that order. |
---|
7622 | as_nl=' |
---|
7623 | ' |
---|
7624 | IFS=" $as_nl" |
---|
7625 | |
---|
7626 | # CDPATH. |
---|
7627 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
---|
7628 | |
---|
7629 | exec 6>&1 |
---|
7630 | |
---|
7631 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
7632 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7633 | # values after options handling. Logging --version etc. is OK. |
---|
7634 | exec 5>>config.log |
---|
7635 | { |
---|
7636 | echo |
---|
7637 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7638 | ## Running \$as_me. ## |
---|
7639 | _ASBOX |
---|
7640 | } >&5 |
---|
7641 | cat >&5 <<_CSEOF |
---|
7642 | |
---|
7643 | This file was extended by $as_me, which was |
---|
7644 | generated by GNU Autoconf 2.52d. Invocation command line was |
---|
7645 | |
---|
7646 | CONFIG_FILES = $CONFIG_FILES |
---|
7647 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7648 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7649 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7650 | $ $@ |
---|
7651 | |
---|
7652 | _CSEOF |
---|
7653 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
7654 | echo >&5 |
---|
7655 | _ACEOF |
---|
7656 | |
---|
7657 | # Files that config.status was made for. |
---|
7658 | if test -n "$ac_config_files"; then |
---|
7659 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
7660 | fi |
---|
7661 | |
---|
7662 | if test -n "$ac_config_headers"; then |
---|
7663 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
7664 | fi |
---|
7665 | |
---|
7666 | if test -n "$ac_config_links"; then |
---|
7667 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
7668 | fi |
---|
7669 | |
---|
7670 | if test -n "$ac_config_commands"; then |
---|
7671 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
7672 | fi |
---|
7673 | |
---|
7674 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7675 | |
---|
7676 | ac_cs_usage="\ |
---|
7677 | \`$as_me' instantiates files from templates according to the |
---|
7678 | current configuration. |
---|
7679 | |
---|
7680 | Usage: $0 [OPTIONS] [FILE]... |
---|
7681 | |
---|
7682 | -h, --help print this help, then exit |
---|
7683 | -V, --version print version number, then exit |
---|
7684 | -d, --debug don't remove temporary files |
---|
7685 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7686 | --file=FILE[:TEMPLATE] |
---|
7687 | instantiate the configuration file FILE |
---|
7688 | |
---|
7689 | Configuration files: |
---|
7690 | $config_files |
---|
7691 | |
---|
7692 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7693 | _ACEOF |
---|
7694 | |
---|
7695 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7696 | ac_cs_version="\\ |
---|
7697 | config.status |
---|
7698 | configured by $0, generated by GNU Autoconf 2.52d, |
---|
7699 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
7700 | |
---|
7701 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
7702 | Free Software Foundation, Inc. |
---|
7703 | This config.status script is free software; the Free Software Foundation |
---|
7704 | gives unlimited permission to copy, distribute and modify it." |
---|
7705 | srcdir=$srcdir |
---|
7706 | INSTALL="$INSTALL" |
---|
7707 | _ACEOF |
---|
7708 | |
---|
7709 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7710 | # If no file are specified by the user, then we need to provide default |
---|
7711 | # value. By we need to know if files were specified by the user. |
---|
7712 | ac_need_defaults=: |
---|
7713 | while test $# != 0 |
---|
7714 | do |
---|
7715 | case $1 in |
---|
7716 | --*=*) |
---|
7717 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
7718 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
7719 | shift |
---|
7720 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
---|
7721 | shift |
---|
7722 | ;; |
---|
7723 | -*);; |
---|
7724 | *) # This is not an option, so the user has probably given explicit |
---|
7725 | # arguments. |
---|
7726 | ac_need_defaults=false;; |
---|
7727 | esac |
---|
7728 | |
---|
7729 | case $1 in |
---|
7730 | # Handling of the options. |
---|
7731 | _ACEOF |
---|
7732 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7733 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7734 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
---|
7735 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
---|
7736 | _ACEOF |
---|
7737 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7738 | --version | --vers* | -V ) |
---|
7739 | echo "$ac_cs_version"; exit 0 ;; |
---|
7740 | --he | --h) |
---|
7741 | # Conflict between --help and --header |
---|
7742 | { { echo "$as_me:7742: error: ambiguous option: $1 |
---|
7743 | Try \`$0 --help' for more information." >&5 |
---|
7744 | echo "$as_me: error: ambiguous option: $1 |
---|
7745 | Try \`$0 --help' for more information." >&2;} |
---|
7746 | { (exit 1); exit 1; }; };; |
---|
7747 | --help | --hel | -h ) |
---|
7748 | echo "$ac_cs_usage"; exit 0 ;; |
---|
7749 | --debug | --d* | -d ) |
---|
7750 | debug=: ;; |
---|
7751 | --file | --fil | --fi | --f ) |
---|
7752 | shift |
---|
7753 | CONFIG_FILES="$CONFIG_FILES $1" |
---|
7754 | ac_need_defaults=false;; |
---|
7755 | --header | --heade | --head | --hea ) |
---|
7756 | shift |
---|
7757 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
---|
7758 | ac_need_defaults=false;; |
---|
7759 | |
---|
7760 | # This is an error. |
---|
7761 | -*) { { echo "$as_me:7761: error: unrecognized option: $1 |
---|
7762 | Try \`$0 --help' for more information." >&5 |
---|
7763 | echo "$as_me: error: unrecognized option: $1 |
---|
7764 | Try \`$0 --help' for more information." >&2;} |
---|
7765 | { (exit 1); exit 1; }; } ;; |
---|
7766 | |
---|
7767 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
7768 | |
---|
7769 | esac |
---|
7770 | shift |
---|
7771 | done |
---|
7772 | |
---|
7773 | _ACEOF |
---|
7774 | |
---|
7775 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7776 | for ac_config_target in $ac_config_targets |
---|
7777 | do |
---|
7778 | case "$ac_config_target" in |
---|
7779 | # Handling of arguments. |
---|
7780 | "gtk-engines.spec" ) CONFIG_FILES="$CONFIG_FILES gtk-engines.spec" ;; |
---|
7781 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7782 | "metal/Makefile" ) CONFIG_FILES="$CONFIG_FILES metal/Makefile" ;; |
---|
7783 | "metal/Theme/Makefile" ) CONFIG_FILES="$CONFIG_FILES metal/Theme/Makefile" ;; |
---|
7784 | "metal/Theme/gtk-2.0/Makefile" ) CONFIG_FILES="$CONFIG_FILES metal/Theme/gtk-2.0/Makefile" ;; |
---|
7785 | "pixbuf/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixbuf/Makefile" ;; |
---|
7786 | "redmond95/Makefile" ) CONFIG_FILES="$CONFIG_FILES redmond95/Makefile" ;; |
---|
7787 | "redmond95/Theme/Makefile" ) CONFIG_FILES="$CONFIG_FILES redmond95/Theme/Makefile" ;; |
---|
7788 | "redmond95/Theme/gtk-2.0/Makefile" ) CONFIG_FILES="$CONFIG_FILES redmond95/Theme/gtk-2.0/Makefile" ;; |
---|
7789 | *) { { echo "$as_me:7789: error: invalid argument: $ac_config_target" >&5 |
---|
7790 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7791 | { (exit 1); exit 1; }; };; |
---|
7792 | esac |
---|
7793 | done |
---|
7794 | |
---|
7795 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7796 | # then the envvar interface is used. Set only those that are not. |
---|
7797 | # We use the long form for the default assignment because of an extremely |
---|
7798 | # bizarre bug on SunOS 4.1.3. |
---|
7799 | if $ac_need_defaults; then |
---|
7800 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7801 | fi |
---|
7802 | |
---|
7803 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
7804 | $debug || |
---|
7805 | { |
---|
7806 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
7807 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7808 | } |
---|
7809 | |
---|
7810 | # Create a (secure) tmp directory for tmp files. |
---|
7811 | : ${TMPDIR=/tmp} |
---|
7812 | { |
---|
7813 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
---|
7814 | test -n "$tmp" && test -d "$tmp" |
---|
7815 | } || |
---|
7816 | { |
---|
7817 | tmp=$TMPDIR/cs$$-$RANDOM |
---|
7818 | (umask 077 && mkdir $tmp) |
---|
7819 | } || |
---|
7820 | { |
---|
7821 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
---|
7822 | { (exit 1); exit 1; } |
---|
7823 | } |
---|
7824 | |
---|
7825 | _ACEOF |
---|
7826 | |
---|
7827 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7828 | |
---|
7829 | # |
---|
7830 | # CONFIG_FILES section. |
---|
7831 | # |
---|
7832 | |
---|
7833 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
7834 | # This happens for instance when ./config.status config.h |
---|
7835 | if test -n "\$CONFIG_FILES"; then |
---|
7836 | # Protect against being on the right side of a sed subst in config.status. |
---|
7837 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
7838 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
7839 | s,@SHELL@,$SHELL,;t t |
---|
7840 | s,@exec_prefix@,$exec_prefix,;t t |
---|
7841 | s,@prefix@,$prefix,;t t |
---|
7842 | s,@program_transform_name@,$program_transform_name,;t t |
---|
7843 | s,@bindir@,$bindir,;t t |
---|
7844 | s,@sbindir@,$sbindir,;t t |
---|
7845 | s,@libexecdir@,$libexecdir,;t t |
---|
7846 | s,@datadir@,$datadir,;t t |
---|
7847 | s,@sysconfdir@,$sysconfdir,;t t |
---|
7848 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
7849 | s,@localstatedir@,$localstatedir,;t t |
---|
7850 | s,@libdir@,$libdir,;t t |
---|
7851 | s,@includedir@,$includedir,;t t |
---|
7852 | s,@oldincludedir@,$oldincludedir,;t t |
---|
7853 | s,@infodir@,$infodir,;t t |
---|
7854 | s,@mandir@,$mandir,;t t |
---|
7855 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
7856 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
7857 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
7858 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
7859 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
7860 | s,@build_alias@,$build_alias,;t t |
---|
7861 | s,@host_alias@,$host_alias,;t t |
---|
7862 | s,@target_alias@,$target_alias,;t t |
---|
7863 | s,@ECHO_C@,$ECHO_C,;t t |
---|
7864 | s,@ECHO_N@,$ECHO_N,;t t |
---|
7865 | s,@ECHO_T@,$ECHO_T,;t t |
---|
7866 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
7867 | s,@DEFS@,$DEFS,;t t |
---|
7868 | s,@LIBS@,$LIBS,;t t |
---|
7869 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
7870 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
7871 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
7872 | s,@PACKAGE@,$PACKAGE,;t t |
---|
7873 | s,@VERSION@,$VERSION,;t t |
---|
7874 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
7875 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
7876 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
7877 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
7878 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
7879 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
7880 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
---|
7881 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
---|
7882 | s,@MAINT@,$MAINT,;t t |
---|
7883 | s,@build@,$build,;t t |
---|
7884 | s,@build_cpu@,$build_cpu,;t t |
---|
7885 | s,@build_vendor@,$build_vendor,;t t |
---|
7886 | s,@build_os@,$build_os,;t t |
---|
7887 | s,@host@,$host,;t t |
---|
7888 | s,@host_cpu@,$host_cpu,;t t |
---|
7889 | s,@host_vendor@,$host_vendor,;t t |
---|
7890 | s,@host_os@,$host_os,;t t |
---|
7891 | s,@CC@,$CC,;t t |
---|
7892 | s,@CFLAGS@,$CFLAGS,;t t |
---|
7893 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
7894 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
7895 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
7896 | s,@EXEEXT@,$EXEEXT,;t t |
---|
7897 | s,@OBJEXT@,$OBJEXT,;t t |
---|
7898 | s,@LN_S@,$LN_S,;t t |
---|
7899 | s,@ECHO@,$ECHO,;t t |
---|
7900 | s,@RANLIB@,$RANLIB,;t t |
---|
7901 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
7902 | s,@STRIP@,$STRIP,;t t |
---|
7903 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
7904 | s,@CPP@,$CPP,;t t |
---|
7905 | s,@LIBTOOL@,$LIBTOOL,;t t |
---|
7906 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
7907 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
---|
7908 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
---|
7909 | s,@GTK_VERSION@,$GTK_VERSION,;t t |
---|
7910 | CEOF |
---|
7911 | |
---|
7912 | _ACEOF |
---|
7913 | |
---|
7914 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7915 | # Split the substitutions into bite-sized pieces for seds with |
---|
7916 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
7917 | ac_max_sed_lines=48 |
---|
7918 | ac_sed_frag=1 # Number of current file. |
---|
7919 | ac_beg=1 # First line for current file. |
---|
7920 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
7921 | ac_more_lines=: |
---|
7922 | ac_sed_cmds= |
---|
7923 | while $ac_more_lines; do |
---|
7924 | if test $ac_beg -gt 1; then |
---|
7925 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
7926 | else |
---|
7927 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
7928 | fi |
---|
7929 | if test ! -s $tmp/subs.frag; then |
---|
7930 | ac_more_lines=false |
---|
7931 | else |
---|
7932 | # The purpose of the label and of the branching condition is to |
---|
7933 | # speed up the sed processing (if there are no `@' at all, there |
---|
7934 | # is no need to browse any of the substitutions). |
---|
7935 | # These are the two extra sed commands mentioned above. |
---|
7936 | (echo ':t |
---|
7937 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
7938 | if test -z "$ac_sed_cmds"; then |
---|
7939 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7940 | else |
---|
7941 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7942 | fi |
---|
7943 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
7944 | ac_beg=$ac_end |
---|
7945 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
7946 | fi |
---|
7947 | done |
---|
7948 | if test -z "$ac_sed_cmds"; then |
---|
7949 | ac_sed_cmds=cat |
---|
7950 | fi |
---|
7951 | fi # test -n "$CONFIG_FILES" |
---|
7952 | |
---|
7953 | _ACEOF |
---|
7954 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7955 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
7956 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7957 | case $ac_file in |
---|
7958 | - | *:- | *:-:* ) # input from stdin |
---|
7959 | cat >$tmp/stdin |
---|
7960 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7961 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7962 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7963 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7964 | * ) ac_file_in=$ac_file.in ;; |
---|
7965 | esac |
---|
7966 | |
---|
7967 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
7968 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7969 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7970 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7971 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7972 | . : '\(.\)' 2>/dev/null || |
---|
7973 | echo X"$ac_file" | |
---|
7974 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7975 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7976 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7977 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7978 | s/.*/./; q'` |
---|
7979 | { case "$ac_dir" in |
---|
7980 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
---|
7981 | *) as_incr_dir=.;; |
---|
7982 | esac |
---|
7983 | as_dummy="$ac_dir" |
---|
7984 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
---|
7985 | case $as_mkdir_dir in |
---|
7986 | # Skip DOS drivespec |
---|
7987 | ?:) as_incr_dir=$as_mkdir_dir ;; |
---|
7988 | *) |
---|
7989 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
---|
7990 | test -d "$as_incr_dir" || |
---|
7991 | mkdir "$as_incr_dir" || |
---|
7992 | { { echo "$as_me:7992: error: cannot create \"$ac_dir\"" >&5 |
---|
7993 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
---|
7994 | { (exit 1); exit 1; }; } |
---|
7995 | ;; |
---|
7996 | esac |
---|
7997 | done; } |
---|
7998 | |
---|
7999 | if test "$ac_dir" != .; then |
---|
8000 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` |
---|
8001 | # A "../" for each directory in $ac_dir_suffix. |
---|
8002 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
---|
8003 | else |
---|
8004 | ac_dir_suffix= ac_top_builddir= |
---|
8005 | fi |
---|
8006 | |
---|
8007 | case $srcdir in |
---|
8008 | .) # No --srcdir option. We are building in place. |
---|
8009 | ac_srcdir=. |
---|
8010 | if test -z "$ac_top_builddir"; then |
---|
8011 | ac_top_srcdir=. |
---|
8012 | else |
---|
8013 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8014 | fi ;; |
---|
8015 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8016 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8017 | ac_top_srcdir=$srcdir ;; |
---|
8018 | *) # Relative path. |
---|
8019 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8020 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8021 | esac |
---|
8022 | |
---|
8023 | case $INSTALL in |
---|
8024 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8025 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
8026 | esac |
---|
8027 | |
---|
8028 | if test x"$ac_file" != x-; then |
---|
8029 | { echo "$as_me:8029: creating $ac_file" >&5 |
---|
8030 | echo "$as_me: creating $ac_file" >&6;} |
---|
8031 | rm -f "$ac_file" |
---|
8032 | fi |
---|
8033 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8034 | # use $as_me), people would be surprised to read: |
---|
8035 | # /* config.h. Generated automatically by config.status. */ |
---|
8036 | configure_input="Generated automatically from `echo $ac_file_in | |
---|
8037 | sed 's,.*/,,'` by configure." |
---|
8038 | |
---|
8039 | # First look for the input files in the build tree, otherwise in the |
---|
8040 | # src tree. |
---|
8041 | ac_file_inputs=`IFS=: |
---|
8042 | for f in $ac_file_in; do |
---|
8043 | case $f in |
---|
8044 | -) echo $tmp/stdin ;; |
---|
8045 | [\\/$]*) |
---|
8046 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8047 | test -f "$f" || { { echo "$as_me:8047: error: cannot find input file: $f" >&5 |
---|
8048 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8049 | { (exit 1); exit 1; }; } |
---|
8050 | echo $f;; |
---|
8051 | *) # Relative |
---|
8052 | if test -f "$f"; then |
---|
8053 | # Build tree |
---|
8054 | echo $f |
---|
8055 | elif test -f "$srcdir/$f"; then |
---|
8056 | # Source tree |
---|
8057 | echo $srcdir/$f |
---|
8058 | else |
---|
8059 | # /dev/null tree |
---|
8060 | { { echo "$as_me:8060: error: cannot find input file: $f" >&5 |
---|
8061 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8062 | { (exit 1); exit 1; }; } |
---|
8063 | fi;; |
---|
8064 | esac |
---|
8065 | done` || { (exit 1); exit 1; } |
---|
8066 | _ACEOF |
---|
8067 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8068 | sed "$ac_vpsub |
---|
8069 | $extrasub |
---|
8070 | _ACEOF |
---|
8071 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8072 | :t |
---|
8073 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8074 | s,@configure_input@,$configure_input,;t t |
---|
8075 | s,@srcdir@,$ac_srcdir,;t t |
---|
8076 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8077 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
8078 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8079 | rm -f $tmp/stdin |
---|
8080 | if test x"$ac_file" != x-; then |
---|
8081 | mv $tmp/out $ac_file |
---|
8082 | else |
---|
8083 | cat $tmp/out |
---|
8084 | rm -f $tmp/out |
---|
8085 | fi |
---|
8086 | |
---|
8087 | done |
---|
8088 | _ACEOF |
---|
8089 | |
---|
8090 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8091 | |
---|
8092 | { (exit 0); exit 0; } |
---|
8093 | _ACEOF |
---|
8094 | chmod +x $CONFIG_STATUS |
---|
8095 | ac_clean_files=$ac_clean_files_save |
---|
8096 | |
---|
8097 | # configure is writing to config.log, and then calls config.status. |
---|
8098 | # config.status does its own redirection, appending to config.log. |
---|
8099 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8100 | # by configure, so config.status won't be able to write to it; its |
---|
8101 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8102 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8103 | # appended to by config.status. When coming back to configure, we |
---|
8104 | # need to make the FD available again. |
---|
8105 | if test "$no_create" != yes; then |
---|
8106 | ac_cs_success=: |
---|
8107 | exec 5>/dev/null |
---|
8108 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
---|
8109 | exec 5>>config.log |
---|
8110 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8111 | # would make configure fail if this is the last instruction. |
---|
8112 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8113 | fi |
---|