]>
Commit | Line | Data |
---|---|---|
bf9f3bac | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
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 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | ||
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | echo=${ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $echo works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<EOF | |
274 | $* | |
275 | EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
289 | echo_test_string=`eval $cmd` && | |
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
291 | then | |
292 | break | |
293 | fi | |
294 | done | |
295 | fi | |
296 | ||
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
299 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
300 | : | |
301 | else | |
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
303 | # backslashes. This makes it impossible to quote backslashes using | |
304 | # echo "$something" | sed 's/\\/\\\\/g' | |
305 | # | |
306 | # So, first we look for a working echo in the user's PATH. | |
307 | ||
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
309 | for dir in $PATH /usr/ucb; do | |
310 | IFS="$lt_save_ifs" | |
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
314 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
315 | echo="$dir/echo" | |
316 | break | |
317 | fi | |
318 | done | |
319 | IFS="$lt_save_ifs" | |
320 | ||
321 | if test "X$echo" = Xecho; then | |
322 | # We didn't find a better echo, so look for alternatives. | |
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
325 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
326 | # This shell has a builtin print -r that does the trick. | |
327 | echo='print -r' | |
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
330 | # If we have ksh, try running configure again with it. | |
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
332 | export ORIGINAL_CONFIG_SHELL | |
333 | CONFIG_SHELL=/bin/ksh | |
334 | export CONFIG_SHELL | |
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
336 | else | |
337 | # Try using printf. | |
338 | echo='printf %s\n' | |
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
341 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
342 | # Cool, printf works | |
343 | : | |
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
345 | test "X$echo_testing_string" = 'X\t' && | |
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
347 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
349 | export CONFIG_SHELL | |
350 | SHELL="$CONFIG_SHELL" | |
351 | export SHELL | |
352 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
354 | test "X$echo_testing_string" = 'X\t' && | |
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
356 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
357 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
358 | else | |
359 | # maybe with a smaller string... | |
360 | prev=: | |
361 | ||
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
364 | then | |
365 | break | |
366 | fi | |
367 | prev="$cmd" | |
368 | done | |
369 | ||
370 | if test "$prev" != 'sed 50q "$0"'; then | |
371 | echo_test_string=`eval $prev` | |
372 | export echo_test_string | |
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
374 | else | |
375 | # Oops. We lost completely, so just stick with echo. | |
376 | echo=echo | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | fi | |
383 | ||
384 | # Copy echo and quote the copy suitably for passing to libtool from | |
385 | # the Makefile, instead of quoting the original, which is used later. | |
386 | ECHO=$echo | |
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
389 | fi | |
390 | ||
391 | ||
392 | ||
393 | ||
394 | tagnames=${tagnames+${tagnames},}CXX | |
395 | ||
396 | tagnames=${tagnames+${tagnames},}F77 | |
397 | ||
398 | # Name of the host. | |
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
400 | # so uname gets run too. | |
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
402 | ||
403 | exec 6>&1 | |
404 | ||
405 | # | |
406 | # Initializations. | |
407 | # | |
408 | ac_default_prefix=/usr/local | |
409 | ac_config_libobj_dir=. | |
410 | cross_compiling=no | |
411 | subdirs= | |
412 | MFLAGS= | |
413 | MAKEFLAGS= | |
414 | SHELL=${CONFIG_SHELL-/bin/sh} | |
415 | ||
416 | # Maximum number of lines to put in a shell here document. | |
417 | # This variable seems obsolete. It should probably be removed, and | |
418 | # only ac_max_sed_lines should be used. | |
419 | : ${ac_max_here_lines=38} | |
420 | ||
421 | # Identity of this package. | |
422 | PACKAGE_NAME= | |
423 | PACKAGE_TARNAME= | |
424 | PACKAGE_VERSION= | |
425 | PACKAGE_STRING= | |
426 | PACKAGE_BUGREPORT= | |
427 | ||
428 | # Factoring default headers for most tests. | |
429 | ac_includes_default="\ | |
430 | #include <stdio.h> | |
431 | #if HAVE_SYS_TYPES_H | |
432 | # include <sys/types.h> | |
433 | #endif | |
434 | #if HAVE_SYS_STAT_H | |
435 | # include <sys/stat.h> | |
436 | #endif | |
437 | #if STDC_HEADERS | |
438 | # include <stdlib.h> | |
439 | # include <stddef.h> | |
440 | #else | |
441 | # if HAVE_STDLIB_H | |
442 | # include <stdlib.h> | |
443 | # endif | |
444 | #endif | |
445 | #if HAVE_STRING_H | |
446 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
447 | # include <memory.h> | |
448 | # endif | |
449 | # include <string.h> | |
450 | #endif | |
451 | #if HAVE_STRINGS_H | |
452 | # include <strings.h> | |
453 | #endif | |
454 | #if HAVE_INTTYPES_H | |
455 | # include <inttypes.h> | |
456 | #else | |
457 | # if HAVE_STDINT_H | |
458 | # include <stdint.h> | |
459 | # endif | |
460 | #endif | |
461 | #if HAVE_UNISTD_H | |
462 | # include <unistd.h> | |
463 | #endif" | |
464 | ||
86933a6e | 465 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LICENSE SPL_CONFIG LINUX LINUX_OBJ LINUX_VERSION LINUX_SYMBOLS KERNELMAKE_PARAMS KERNELCPPFLAGS CONFIG_USER_TRUE CONFIG_USER_FALSE CONFIG_KERNEL_TRUE CONFIG_KERNEL_FALSE LIBOBJS LTLIBOBJS' |
bf9f3bac | 466 | ac_subst_files='' |
467 | ||
468 | # Initialize some variables set by options. | |
469 | ac_init_help= | |
470 | ac_init_version=false | |
471 | # The variables have the same names as the options, with | |
472 | # dashes changed to underlines. | |
473 | cache_file=/dev/null | |
474 | exec_prefix=NONE | |
475 | no_create= | |
476 | no_recursion= | |
477 | prefix=NONE | |
478 | program_prefix=NONE | |
479 | program_suffix=NONE | |
480 | program_transform_name=s,x,x, | |
481 | silent= | |
482 | site= | |
483 | srcdir= | |
484 | verbose= | |
485 | x_includes=NONE | |
486 | x_libraries=NONE | |
487 | ||
488 | # Installation directory options. | |
489 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
490 | # and all the variables that are supposed to be based on exec_prefix | |
491 | # by default will actually change. | |
492 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
493 | bindir='${exec_prefix}/bin' | |
494 | sbindir='${exec_prefix}/sbin' | |
495 | libexecdir='${exec_prefix}/libexec' | |
496 | datadir='${prefix}/share' | |
497 | sysconfdir='${prefix}/etc' | |
498 | sharedstatedir='${prefix}/com' | |
499 | localstatedir='${prefix}/var' | |
500 | libdir='${exec_prefix}/lib' | |
501 | includedir='${prefix}/include' | |
502 | oldincludedir='/usr/include' | |
503 | infodir='${prefix}/info' | |
504 | mandir='${prefix}/man' | |
505 | ||
506 | ac_prev= | |
507 | for ac_option | |
508 | do | |
509 | # If the previous option needs an argument, assign it. | |
510 | if test -n "$ac_prev"; then | |
511 | eval "$ac_prev=\$ac_option" | |
512 | ac_prev= | |
513 | continue | |
514 | fi | |
515 | ||
516 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
517 | ||
518 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
519 | ||
520 | case $ac_option in | |
521 | ||
522 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
523 | ac_prev=bindir ;; | |
524 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
525 | bindir=$ac_optarg ;; | |
526 | ||
527 | -build | --build | --buil | --bui | --bu) | |
528 | ac_prev=build_alias ;; | |
529 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
530 | build_alias=$ac_optarg ;; | |
531 | ||
532 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
533 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
534 | ac_prev=cache_file ;; | |
535 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
536 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
537 | cache_file=$ac_optarg ;; | |
538 | ||
539 | --config-cache | -C) | |
540 | cache_file=config.cache ;; | |
541 | ||
542 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
543 | ac_prev=datadir ;; | |
544 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
545 | | --da=*) | |
546 | datadir=$ac_optarg ;; | |
547 | ||
548 | -disable-* | --disable-*) | |
549 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
550 | # Reject names that are not valid shell variable names. | |
551 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
552 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
553 | { (exit 1); exit 1; }; } | |
554 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
555 | eval "enable_$ac_feature=no" ;; | |
556 | ||
557 | -enable-* | --enable-*) | |
558 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
559 | # Reject names that are not valid shell variable names. | |
560 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
561 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
562 | { (exit 1); exit 1; }; } | |
563 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
564 | case $ac_option in | |
565 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
566 | *) ac_optarg=yes ;; | |
567 | esac | |
568 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
569 | ||
570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
572 | | --exec | --exe | --ex) | |
573 | ac_prev=exec_prefix ;; | |
574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
576 | | --exec=* | --exe=* | --ex=*) | |
577 | exec_prefix=$ac_optarg ;; | |
578 | ||
579 | -gas | --gas | --ga | --g) | |
580 | # Obsolete; use --with-gas. | |
581 | with_gas=yes ;; | |
582 | ||
583 | -help | --help | --hel | --he | -h) | |
584 | ac_init_help=long ;; | |
585 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
586 | ac_init_help=recursive ;; | |
587 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
588 | ac_init_help=short ;; | |
589 | ||
590 | -host | --host | --hos | --ho) | |
591 | ac_prev=host_alias ;; | |
592 | -host=* | --host=* | --hos=* | --ho=*) | |
593 | host_alias=$ac_optarg ;; | |
594 | ||
595 | -includedir | --includedir | --includedi | --included | --include \ | |
596 | | --includ | --inclu | --incl | --inc) | |
597 | ac_prev=includedir ;; | |
598 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
599 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
600 | includedir=$ac_optarg ;; | |
601 | ||
602 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
603 | ac_prev=infodir ;; | |
604 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
605 | infodir=$ac_optarg ;; | |
606 | ||
607 | -libdir | --libdir | --libdi | --libd) | |
608 | ac_prev=libdir ;; | |
609 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
610 | libdir=$ac_optarg ;; | |
611 | ||
612 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
613 | | --libexe | --libex | --libe) | |
614 | ac_prev=libexecdir ;; | |
615 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
616 | | --libexe=* | --libex=* | --libe=*) | |
617 | libexecdir=$ac_optarg ;; | |
618 | ||
619 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
620 | | --localstate | --localstat | --localsta | --localst \ | |
621 | | --locals | --local | --loca | --loc | --lo) | |
622 | ac_prev=localstatedir ;; | |
623 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
624 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
625 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
626 | localstatedir=$ac_optarg ;; | |
627 | ||
628 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
629 | ac_prev=mandir ;; | |
630 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
631 | mandir=$ac_optarg ;; | |
632 | ||
633 | -nfp | --nfp | --nf) | |
634 | # Obsolete; use --without-fp. | |
635 | with_fp=no ;; | |
636 | ||
637 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
638 | | --no-cr | --no-c | -n) | |
639 | no_create=yes ;; | |
640 | ||
641 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
642 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
643 | no_recursion=yes ;; | |
644 | ||
645 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
646 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
647 | | --oldin | --oldi | --old | --ol | --o) | |
648 | ac_prev=oldincludedir ;; | |
649 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
650 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
651 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
652 | oldincludedir=$ac_optarg ;; | |
653 | ||
654 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
655 | ac_prev=prefix ;; | |
656 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
657 | prefix=$ac_optarg ;; | |
658 | ||
659 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
660 | | --program-pre | --program-pr | --program-p) | |
661 | ac_prev=program_prefix ;; | |
662 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
663 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
664 | program_prefix=$ac_optarg ;; | |
665 | ||
666 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
667 | | --program-suf | --program-su | --program-s) | |
668 | ac_prev=program_suffix ;; | |
669 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
670 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
671 | program_suffix=$ac_optarg ;; | |
672 | ||
673 | -program-transform-name | --program-transform-name \ | |
674 | | --program-transform-nam | --program-transform-na \ | |
675 | | --program-transform-n | --program-transform- \ | |
676 | | --program-transform | --program-transfor \ | |
677 | | --program-transfo | --program-transf \ | |
678 | | --program-trans | --program-tran \ | |
679 | | --progr-tra | --program-tr | --program-t) | |
680 | ac_prev=program_transform_name ;; | |
681 | -program-transform-name=* | --program-transform-name=* \ | |
682 | | --program-transform-nam=* | --program-transform-na=* \ | |
683 | | --program-transform-n=* | --program-transform-=* \ | |
684 | | --program-transform=* | --program-transfor=* \ | |
685 | | --program-transfo=* | --program-transf=* \ | |
686 | | --program-trans=* | --program-tran=* \ | |
687 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
688 | program_transform_name=$ac_optarg ;; | |
689 | ||
690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
691 | | -silent | --silent | --silen | --sile | --sil) | |
692 | silent=yes ;; | |
693 | ||
694 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
695 | ac_prev=sbindir ;; | |
696 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
697 | | --sbi=* | --sb=*) | |
698 | sbindir=$ac_optarg ;; | |
699 | ||
700 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
701 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
702 | | --sharedst | --shareds | --shared | --share | --shar \ | |
703 | | --sha | --sh) | |
704 | ac_prev=sharedstatedir ;; | |
705 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
706 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
707 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
708 | | --sha=* | --sh=*) | |
709 | sharedstatedir=$ac_optarg ;; | |
710 | ||
711 | -site | --site | --sit) | |
712 | ac_prev=site ;; | |
713 | -site=* | --site=* | --sit=*) | |
714 | site=$ac_optarg ;; | |
715 | ||
716 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
717 | ac_prev=srcdir ;; | |
718 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
719 | srcdir=$ac_optarg ;; | |
720 | ||
721 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
722 | | --syscon | --sysco | --sysc | --sys | --sy) | |
723 | ac_prev=sysconfdir ;; | |
724 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
725 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
726 | sysconfdir=$ac_optarg ;; | |
727 | ||
728 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
729 | ac_prev=target_alias ;; | |
730 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
731 | target_alias=$ac_optarg ;; | |
732 | ||
733 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
734 | verbose=yes ;; | |
735 | ||
736 | -version | --version | --versio | --versi | --vers | -V) | |
737 | ac_init_version=: ;; | |
738 | ||
739 | -with-* | --with-*) | |
740 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
741 | # Reject names that are not valid shell variable names. | |
742 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
743 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
744 | { (exit 1); exit 1; }; } | |
745 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
746 | case $ac_option in | |
747 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
748 | *) ac_optarg=yes ;; | |
749 | esac | |
750 | eval "with_$ac_package='$ac_optarg'" ;; | |
751 | ||
752 | -without-* | --without-*) | |
753 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
754 | # Reject names that are not valid shell variable names. | |
755 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
756 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
757 | { (exit 1); exit 1; }; } | |
758 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
759 | eval "with_$ac_package=no" ;; | |
760 | ||
761 | --x) | |
762 | # Obsolete; use --with-x. | |
763 | with_x=yes ;; | |
764 | ||
765 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
766 | | --x-incl | --x-inc | --x-in | --x-i) | |
767 | ac_prev=x_includes ;; | |
768 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
769 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
770 | x_includes=$ac_optarg ;; | |
771 | ||
772 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
773 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
774 | ac_prev=x_libraries ;; | |
775 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
776 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
777 | x_libraries=$ac_optarg ;; | |
778 | ||
779 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
780 | Try \`$0 --help' for more information." >&2 | |
781 | { (exit 1); exit 1; }; } | |
782 | ;; | |
783 | ||
784 | *=*) | |
785 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
786 | # Reject names that are not valid shell variable names. | |
787 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
788 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
789 | { (exit 1); exit 1; }; } | |
790 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
791 | eval "$ac_envvar='$ac_optarg'" | |
792 | export $ac_envvar ;; | |
793 | ||
794 | *) | |
795 | # FIXME: should be removed in autoconf 3.0. | |
796 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
797 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
798 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
799 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
800 | ;; | |
801 | ||
802 | esac | |
803 | done | |
804 | ||
805 | if test -n "$ac_prev"; then | |
806 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
807 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
808 | { (exit 1); exit 1; }; } | |
809 | fi | |
810 | ||
811 | # Be sure to have absolute paths. | |
812 | for ac_var in exec_prefix prefix | |
813 | do | |
814 | eval ac_val=$`echo $ac_var` | |
815 | case $ac_val in | |
816 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
817 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
818 | { (exit 1); exit 1; }; };; | |
819 | esac | |
820 | done | |
821 | ||
822 | # Be sure to have absolute paths. | |
823 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
824 | localstatedir libdir includedir oldincludedir infodir mandir | |
825 | do | |
826 | eval ac_val=$`echo $ac_var` | |
827 | case $ac_val in | |
828 | [\\/$]* | ?:[\\/]* ) ;; | |
829 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
830 | { (exit 1); exit 1; }; };; | |
831 | esac | |
832 | done | |
833 | ||
834 | # There might be people who depend on the old broken behavior: `$host' | |
835 | # used to hold the argument of --host etc. | |
836 | # FIXME: To remove some day. | |
837 | build=$build_alias | |
838 | host=$host_alias | |
839 | target=$target_alias | |
840 | ||
841 | # FIXME: To remove some day. | |
842 | if test "x$host_alias" != x; then | |
843 | if test "x$build_alias" = x; then | |
844 | cross_compiling=maybe | |
845 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
846 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
847 | elif test "x$build_alias" != "x$host_alias"; then | |
848 | cross_compiling=yes | |
849 | fi | |
850 | fi | |
851 | ||
852 | ac_tool_prefix= | |
853 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
854 | ||
855 | test "$silent" = yes && exec 6>/dev/null | |
856 | ||
857 | ||
858 | # Find the source files, if location was not specified. | |
859 | if test -z "$srcdir"; then | |
860 | ac_srcdir_defaulted=yes | |
861 | # Try the directory containing this script, then its parent. | |
862 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
863 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
864 | X"$0" : 'X\(//\)[^/]' \| \ | |
865 | X"$0" : 'X\(//\)$' \| \ | |
866 | X"$0" : 'X\(/\)' \| \ | |
867 | . : '\(.\)' 2>/dev/null || | |
868 | echo X"$0" | | |
869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
870 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
871 | /^X\(\/\/\)$/{ s//\1/; q; } | |
872 | /^X\(\/\).*/{ s//\1/; q; } | |
873 | s/.*/./; q'` | |
874 | srcdir=$ac_confdir | |
875 | if test ! -r $srcdir/$ac_unique_file; then | |
876 | srcdir=.. | |
877 | fi | |
878 | else | |
879 | ac_srcdir_defaulted=no | |
880 | fi | |
881 | if test ! -r $srcdir/$ac_unique_file; then | |
882 | if test "$ac_srcdir_defaulted" = yes; then | |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
884 | { (exit 1); exit 1; }; } | |
885 | else | |
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
887 | { (exit 1); exit 1; }; } | |
888 | fi | |
889 | fi | |
890 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
891 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
892 | { (exit 1); exit 1; }; } | |
893 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
894 | ac_env_build_alias_set=${build_alias+set} | |
895 | ac_env_build_alias_value=$build_alias | |
896 | ac_cv_env_build_alias_set=${build_alias+set} | |
897 | ac_cv_env_build_alias_value=$build_alias | |
898 | ac_env_host_alias_set=${host_alias+set} | |
899 | ac_env_host_alias_value=$host_alias | |
900 | ac_cv_env_host_alias_set=${host_alias+set} | |
901 | ac_cv_env_host_alias_value=$host_alias | |
902 | ac_env_target_alias_set=${target_alias+set} | |
903 | ac_env_target_alias_value=$target_alias | |
904 | ac_cv_env_target_alias_set=${target_alias+set} | |
905 | ac_cv_env_target_alias_value=$target_alias | |
906 | ac_env_CC_set=${CC+set} | |
907 | ac_env_CC_value=$CC | |
908 | ac_cv_env_CC_set=${CC+set} | |
909 | ac_cv_env_CC_value=$CC | |
910 | ac_env_CFLAGS_set=${CFLAGS+set} | |
911 | ac_env_CFLAGS_value=$CFLAGS | |
912 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
913 | ac_cv_env_CFLAGS_value=$CFLAGS | |
914 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
915 | ac_env_LDFLAGS_value=$LDFLAGS | |
916 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
917 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
918 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
919 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
920 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
921 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
922 | ac_env_CPP_set=${CPP+set} | |
923 | ac_env_CPP_value=$CPP | |
924 | ac_cv_env_CPP_set=${CPP+set} | |
925 | ac_cv_env_CPP_value=$CPP | |
926 | ac_env_CXX_set=${CXX+set} | |
927 | ac_env_CXX_value=$CXX | |
928 | ac_cv_env_CXX_set=${CXX+set} | |
929 | ac_cv_env_CXX_value=$CXX | |
930 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
931 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
932 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
933 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
934 | ac_env_CXXCPP_set=${CXXCPP+set} | |
935 | ac_env_CXXCPP_value=$CXXCPP | |
936 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
937 | ac_cv_env_CXXCPP_value=$CXXCPP | |
938 | ac_env_F77_set=${F77+set} | |
939 | ac_env_F77_value=$F77 | |
940 | ac_cv_env_F77_set=${F77+set} | |
941 | ac_cv_env_F77_value=$F77 | |
942 | ac_env_FFLAGS_set=${FFLAGS+set} | |
943 | ac_env_FFLAGS_value=$FFLAGS | |
944 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
945 | ac_cv_env_FFLAGS_value=$FFLAGS | |
946 | ||
947 | # | |
948 | # Report the --help message. | |
949 | # | |
950 | if test "$ac_init_help" = "long"; then | |
951 | # Omit some internal or obsolete options to make the list less imposing. | |
952 | # This message is too long to be a string in the A/UX 3.1 sh. | |
953 | cat <<_ACEOF | |
954 | \`configure' configures this package to adapt to many kinds of systems. | |
955 | ||
956 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
957 | ||
958 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
959 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
960 | ||
961 | Defaults for the options are specified in brackets. | |
962 | ||
963 | Configuration: | |
964 | -h, --help display this help and exit | |
965 | --help=short display options specific to this package | |
966 | --help=recursive display the short help of all the included packages | |
967 | -V, --version display version information and exit | |
968 | -q, --quiet, --silent do not print \`checking...' messages | |
969 | --cache-file=FILE cache test results in FILE [disabled] | |
970 | -C, --config-cache alias for \`--cache-file=config.cache' | |
971 | -n, --no-create do not create output files | |
972 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
973 | ||
974 | _ACEOF | |
975 | ||
976 | cat <<_ACEOF | |
977 | Installation directories: | |
978 | --prefix=PREFIX install architecture-independent files in PREFIX | |
979 | [$ac_default_prefix] | |
980 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
981 | [PREFIX] | |
982 | ||
983 | By default, \`make install' will install all the files in | |
984 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
985 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
986 | for instance \`--prefix=\$HOME'. | |
987 | ||
988 | For better control, use the options below. | |
989 | ||
990 | Fine tuning of the installation directories: | |
991 | --bindir=DIR user executables [EPREFIX/bin] | |
992 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
993 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
994 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
995 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
996 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
997 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
998 | --libdir=DIR object code libraries [EPREFIX/lib] | |
999 | --includedir=DIR C header files [PREFIX/include] | |
1000 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1001 | --infodir=DIR info documentation [PREFIX/info] | |
1002 | --mandir=DIR man documentation [PREFIX/man] | |
1003 | _ACEOF | |
1004 | ||
1005 | cat <<\_ACEOF | |
1006 | ||
1007 | Program names: | |
1008 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1009 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1010 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1011 | ||
1012 | System types: | |
1013 | --build=BUILD configure for building on BUILD [guessed] | |
1014 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1015 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1016 | _ACEOF | |
1017 | fi | |
1018 | ||
1019 | if test -n "$ac_init_help"; then | |
1020 | ||
1021 | cat <<\_ACEOF | |
1022 | ||
1023 | Optional Features: | |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1026 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1027 | (and sometimes confusing) to the casual installer | |
1028 | --disable-dependency-tracking speeds up one-time build | |
1029 | --enable-dependency-tracking do not reject slow dependency extractors | |
1030 | --enable-shared[=PKGS] | |
1031 | build shared libraries [default=yes] | |
1032 | --enable-static[=PKGS] | |
1033 | build static libraries [default=yes] | |
1034 | --enable-fast-install[=PKGS] | |
1035 | optimize for fast installation [default=yes] | |
1036 | --disable-libtool-lock avoid locking (might break parallel builds) | |
055ffd98 BB |
1037 | --enable-debug Enable generic debug support [default=no] |
1038 | --enable-debug-kmem Enable basic kmem accounting [default=yes] | |
1039 | --enable-debug-kmem-tracking | |
1040 | Enable detailed kmem tracking [default=no] | |
5e9b5d83 | 1041 | --enable-atomic-spinlocks |
d04c8a56 | 1042 | Atomic types use spinlocks [default=check] |
bf9f3bac | 1043 | |
1044 | Optional Packages: | |
1045 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1046 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1047 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1048 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1049 | both] | |
1050 | --with-tags[=TAGS] | |
1051 | include additional configurations [automatic] | |
c1541dfe | 1052 | --with-config=CONFIG Config file 'kernel|user|all|srpm' |
bf9f3bac | 1053 | --with-linux=PATH Path to kernel source |
1054 | --with-linux-obj=PATH Path to kernel build objects | |
1055 | ||
1056 | Some influential environment variables: | |
1057 | CC C compiler command | |
1058 | CFLAGS C compiler flags | |
1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1060 | nonstandard directory <lib dir> | |
1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1062 | headers in a nonstandard directory <include dir> | |
1063 | CPP C preprocessor | |
1064 | CXX C++ compiler command | |
1065 | CXXFLAGS C++ compiler flags | |
1066 | CXXCPP C++ preprocessor | |
1067 | F77 Fortran 77 compiler command | |
1068 | FFLAGS Fortran 77 compiler flags | |
1069 | ||
1070 | Use these variables to override the choices made by `configure' or to help | |
1071 | it to find libraries and programs with nonstandard names/locations. | |
1072 | ||
1073 | _ACEOF | |
1074 | fi | |
1075 | ||
1076 | if test "$ac_init_help" = "recursive"; then | |
1077 | # If there are subdirs, report their specific --help. | |
1078 | ac_popdir=`pwd` | |
1079 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1080 | test -d $ac_dir || continue | |
1081 | ac_builddir=. | |
1082 | ||
1083 | if test "$ac_dir" != .; then | |
1084 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1085 | # A "../" for each directory in $ac_dir_suffix. | |
1086 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1087 | else | |
1088 | ac_dir_suffix= ac_top_builddir= | |
1089 | fi | |
1090 | ||
1091 | case $srcdir in | |
1092 | .) # No --srcdir option. We are building in place. | |
1093 | ac_srcdir=. | |
1094 | if test -z "$ac_top_builddir"; then | |
1095 | ac_top_srcdir=. | |
1096 | else | |
1097 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1098 | fi ;; | |
1099 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1100 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1101 | ac_top_srcdir=$srcdir ;; | |
1102 | *) # Relative path. | |
1103 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1104 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1105 | esac | |
1106 | ||
1107 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1108 | # the directories may not exist. | |
1109 | case `pwd` in | |
1110 | .) ac_abs_builddir="$ac_dir";; | |
1111 | *) | |
1112 | case "$ac_dir" in | |
1113 | .) ac_abs_builddir=`pwd`;; | |
1114 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1115 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1116 | esac;; | |
1117 | esac | |
1118 | case $ac_abs_builddir in | |
1119 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1120 | *) | |
1121 | case ${ac_top_builddir}. in | |
1122 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1123 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1124 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1125 | esac;; | |
1126 | esac | |
1127 | case $ac_abs_builddir in | |
1128 | .) ac_abs_srcdir=$ac_srcdir;; | |
1129 | *) | |
1130 | case $ac_srcdir in | |
1131 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1132 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1133 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1134 | esac;; | |
1135 | esac | |
1136 | case $ac_abs_builddir in | |
1137 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1138 | *) | |
1139 | case $ac_top_srcdir in | |
1140 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1141 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1142 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1143 | esac;; | |
1144 | esac | |
1145 | ||
1146 | cd $ac_dir | |
1147 | # Check for guested configure; otherwise get Cygnus style configure. | |
1148 | if test -f $ac_srcdir/configure.gnu; then | |
1149 | echo | |
1150 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1151 | elif test -f $ac_srcdir/configure; then | |
1152 | echo | |
1153 | $SHELL $ac_srcdir/configure --help=recursive | |
1154 | elif test -f $ac_srcdir/configure.ac || | |
1155 | test -f $ac_srcdir/configure.in; then | |
1156 | echo | |
1157 | $ac_configure --help | |
1158 | else | |
1159 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1160 | fi | |
1161 | cd $ac_popdir | |
1162 | done | |
1163 | fi | |
1164 | ||
1165 | test -n "$ac_init_help" && exit 0 | |
1166 | if $ac_init_version; then | |
1167 | cat <<\_ACEOF | |
1168 | ||
1169 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1170 | This configure script is free software; the Free Software Foundation | |
1171 | gives unlimited permission to copy, distribute and modify it. | |
1172 | _ACEOF | |
1173 | exit 0 | |
1174 | fi | |
1175 | exec 5>config.log | |
1176 | cat >&5 <<_ACEOF | |
1177 | This file contains any messages produced by compilers while | |
1178 | running configure, to aid debugging if configure makes a mistake. | |
1179 | ||
1180 | It was created by $as_me, which was | |
1181 | generated by GNU Autoconf 2.59. Invocation command line was | |
1182 | ||
1183 | $ $0 $@ | |
1184 | ||
1185 | _ACEOF | |
1186 | { | |
1187 | cat <<_ASUNAME | |
1188 | ## --------- ## | |
1189 | ## Platform. ## | |
1190 | ## --------- ## | |
1191 | ||
1192 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1193 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1194 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1195 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1196 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1197 | ||
1198 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1199 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1200 | ||
1201 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1202 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1203 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1204 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1205 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1206 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1207 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1208 | ||
1209 | _ASUNAME | |
1210 | ||
1211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1212 | for as_dir in $PATH | |
1213 | do | |
1214 | IFS=$as_save_IFS | |
1215 | test -z "$as_dir" && as_dir=. | |
1216 | echo "PATH: $as_dir" | |
1217 | done | |
1218 | ||
1219 | } >&5 | |
1220 | ||
1221 | cat >&5 <<_ACEOF | |
1222 | ||
1223 | ||
1224 | ## ----------- ## | |
1225 | ## Core tests. ## | |
1226 | ## ----------- ## | |
1227 | ||
1228 | _ACEOF | |
1229 | ||
1230 | ||
1231 | # Keep a trace of the command line. | |
1232 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1233 | # Strip out --silent because we don't want to record it for future runs. | |
1234 | # Also quote any args containing shell meta-characters. | |
1235 | # Make two passes to allow for proper duplicate-argument suppression. | |
1236 | ac_configure_args= | |
1237 | ac_configure_args0= | |
1238 | ac_configure_args1= | |
1239 | ac_sep= | |
1240 | ac_must_keep_next=false | |
1241 | for ac_pass in 1 2 | |
1242 | do | |
1243 | for ac_arg | |
1244 | do | |
1245 | case $ac_arg in | |
1246 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1247 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1248 | | -silent | --silent | --silen | --sile | --sil) | |
1249 | continue ;; | |
1250 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1251 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1252 | esac | |
1253 | case $ac_pass in | |
1254 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1255 | 2) | |
1256 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1257 | if test $ac_must_keep_next = true; then | |
1258 | ac_must_keep_next=false # Got value, back to normal. | |
1259 | else | |
1260 | case $ac_arg in | |
1261 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1262 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1263 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1264 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1265 | case "$ac_configure_args0 " in | |
1266 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1267 | esac | |
1268 | ;; | |
1269 | -* ) ac_must_keep_next=true ;; | |
1270 | esac | |
1271 | fi | |
1272 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1273 | # Get rid of the leading space. | |
1274 | ac_sep=" " | |
1275 | ;; | |
1276 | esac | |
1277 | done | |
1278 | done | |
1279 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1280 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1281 | ||
1282 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1283 | # config.log. We remove comments because anyway the quotes in there | |
1284 | # would cause problems or look ugly. | |
1285 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1286 | # such as our DU 5.0 friend, will then `close' the trap. | |
1287 | trap 'exit_status=$? | |
1288 | # Save into config.log some information that might help in debugging. | |
1289 | { | |
1290 | echo | |
1291 | ||
1292 | cat <<\_ASBOX | |
1293 | ## ---------------- ## | |
1294 | ## Cache variables. ## | |
1295 | ## ---------------- ## | |
1296 | _ASBOX | |
1297 | echo | |
1298 | # The following way of writing the cache mishandles newlines in values, | |
1299 | { | |
1300 | (set) 2>&1 | | |
1301 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1302 | *ac_space=\ *) | |
1303 | sed -n \ | |
1304 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1305 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1306 | ;; | |
1307 | *) | |
1308 | sed -n \ | |
1309 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1310 | ;; | |
1311 | esac; | |
1312 | } | |
1313 | echo | |
1314 | ||
1315 | cat <<\_ASBOX | |
1316 | ## ----------------- ## | |
1317 | ## Output variables. ## | |
1318 | ## ----------------- ## | |
1319 | _ASBOX | |
1320 | echo | |
1321 | for ac_var in $ac_subst_vars | |
1322 | do | |
1323 | eval ac_val=$`echo $ac_var` | |
1324 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1325 | done | sort | |
1326 | echo | |
1327 | ||
1328 | if test -n "$ac_subst_files"; then | |
1329 | cat <<\_ASBOX | |
1330 | ## ------------- ## | |
1331 | ## Output files. ## | |
1332 | ## ------------- ## | |
1333 | _ASBOX | |
1334 | echo | |
1335 | for ac_var in $ac_subst_files | |
1336 | do | |
1337 | eval ac_val=$`echo $ac_var` | |
1338 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1339 | done | sort | |
1340 | echo | |
1341 | fi | |
1342 | ||
1343 | if test -s confdefs.h; then | |
1344 | cat <<\_ASBOX | |
1345 | ## ----------- ## | |
1346 | ## confdefs.h. ## | |
1347 | ## ----------- ## | |
1348 | _ASBOX | |
1349 | echo | |
1350 | sed "/^$/d" confdefs.h | sort | |
1351 | echo | |
1352 | fi | |
1353 | test "$ac_signal" != 0 && | |
1354 | echo "$as_me: caught signal $ac_signal" | |
1355 | echo "$as_me: exit $exit_status" | |
1356 | } >&5 | |
1357 | rm -f core *.core && | |
1358 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1359 | exit $exit_status | |
1360 | ' 0 | |
1361 | for ac_signal in 1 2 13 15; do | |
1362 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1363 | done | |
1364 | ac_signal=0 | |
1365 | ||
1366 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1367 | rm -rf conftest* confdefs.h | |
1368 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1369 | echo >confdefs.h | |
1370 | ||
1371 | # Predefined preprocessor variables. | |
1372 | ||
1373 | cat >>confdefs.h <<_ACEOF | |
1374 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1375 | _ACEOF | |
1376 | ||
1377 | ||
1378 | cat >>confdefs.h <<_ACEOF | |
1379 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1380 | _ACEOF | |
1381 | ||
1382 | ||
1383 | cat >>confdefs.h <<_ACEOF | |
1384 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1385 | _ACEOF | |
1386 | ||
1387 | ||
1388 | cat >>confdefs.h <<_ACEOF | |
1389 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1390 | _ACEOF | |
1391 | ||
1392 | ||
1393 | cat >>confdefs.h <<_ACEOF | |
1394 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1395 | _ACEOF | |
1396 | ||
1397 | ||
1398 | # Let the site file select an alternate cache file if it wants to. | |
1399 | # Prefer explicitly selected file to automatically selected ones. | |
1400 | if test -z "$CONFIG_SITE"; then | |
1401 | if test "x$prefix" != xNONE; then | |
1402 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1403 | else | |
1404 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1405 | fi | |
1406 | fi | |
1407 | for ac_site_file in $CONFIG_SITE; do | |
1408 | if test -r "$ac_site_file"; then | |
1409 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1410 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1411 | sed 's/^/| /' "$ac_site_file" >&5 | |
1412 | . "$ac_site_file" | |
1413 | fi | |
1414 | done | |
1415 | ||
1416 | if test -r "$cache_file"; then | |
1417 | # Some versions of bash will fail to source /dev/null (special | |
1418 | # files actually), so we avoid doing that. | |
1419 | if test -f "$cache_file"; then | |
1420 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1421 | echo "$as_me: loading cache $cache_file" >&6;} | |
1422 | case $cache_file in | |
1423 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1424 | *) . ./$cache_file;; | |
1425 | esac | |
1426 | fi | |
1427 | else | |
1428 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1429 | echo "$as_me: creating cache $cache_file" >&6;} | |
1430 | >$cache_file | |
1431 | fi | |
1432 | ||
1433 | # Check that the precious variables saved in the cache have kept the same | |
1434 | # value. | |
1435 | ac_cache_corrupted=false | |
1436 | for ac_var in `(set) 2>&1 | | |
1437 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1438 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1439 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1440 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1441 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1442 | case $ac_old_set,$ac_new_set in | |
1443 | set,) | |
1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1445 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1446 | ac_cache_corrupted=: ;; | |
1447 | ,set) | |
1448 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1449 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1450 | ac_cache_corrupted=: ;; | |
1451 | ,);; | |
1452 | *) | |
1453 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1454 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1455 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1456 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1457 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1458 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1459 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1460 | ac_cache_corrupted=: | |
1461 | fi;; | |
1462 | esac | |
1463 | # Pass precious variables to config.status. | |
1464 | if test "$ac_new_set" = set; then | |
1465 | case $ac_new_val in | |
1466 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1467 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1468 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1469 | esac | |
1470 | case " $ac_configure_args " in | |
1471 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1472 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1473 | esac | |
1474 | fi | |
1475 | done | |
1476 | if $ac_cache_corrupted; then | |
1477 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1478 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1479 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1480 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1481 | { (exit 1); exit 1; }; } | |
1482 | fi | |
1483 | ||
1484 | ac_ext=c | |
1485 | ac_cpp='$CPP $CPPFLAGS' | |
1486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
0c617c9a BB |
1508 | ac_ext=c |
1509 | ac_cpp='$CPP $CPPFLAGS' | |
1510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1513 | ||
1514 | ||
dd529a30 | 1515 | echo "$as_me:$LINENO: checking metadata" >&5 |
1516 | echo $ECHO_N "checking metadata... $ECHO_C" >&6 | |
1517 | ||
1518 | META="$srcdir/META" | |
1519 | _spl_ac_meta_got_file=no | |
1520 | if test -f "$META"; then | |
1521 | _spl_ac_meta_got_file=yes | |
1522 | ||
abc3ca14 | 1523 | SPL_META_NAME=`perl -n\ |
dd529a30 | 1524 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1525 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1526 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1527 | -e "s/^\s+//;"\ | |
1528 | -e "s/\s+$//;"\ | |
1529 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1530 | -e "\\$val=\\$_;"\ | |
1531 | -e "END { print \\$val if defined \\$val; }"\ | |
1532 | '(?:NAME|PROJECT|PACKAGE)' $META`; | |
abc3ca14 | 1533 | if test -n "$SPL_META_NAME"; then |
dd529a30 | 1534 | |
1535 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1536 | #define SPL_META_NAME "$SPL_META_NAME" |
dd529a30 | 1537 | _ACEOF |
1538 | ||
1539 | ||
1540 | fi | |
1541 | ||
abc3ca14 | 1542 | SPL_META_VERSION=`perl -n\ |
dd529a30 | 1543 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1544 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1545 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1546 | -e "s/^\s+//;"\ | |
1547 | -e "s/\s+$//;"\ | |
1548 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1549 | -e "\\$val=\\$_;"\ | |
1550 | -e "END { print \\$val if defined \\$val; }"\ | |
1551 | 'VERSION' $META`; | |
abc3ca14 | 1552 | if test -n "$SPL_META_VERSION"; then |
dd529a30 | 1553 | |
1554 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1555 | #define SPL_META_VERSION "$SPL_META_VERSION" |
dd529a30 | 1556 | _ACEOF |
1557 | ||
1558 | ||
1559 | fi | |
1560 | ||
abc3ca14 | 1561 | SPL_META_RELEASE=`perl -n\ |
dd529a30 | 1562 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1563 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1564 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1565 | -e "s/^\s+//;"\ | |
1566 | -e "s/\s+$//;"\ | |
1567 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1568 | -e "\\$val=\\$_;"\ | |
1569 | -e "END { print \\$val if defined \\$val; }"\ | |
1570 | 'RELEASE' $META`; | |
abc3ca14 | 1571 | if test -n "$SPL_META_RELEASE"; then |
dd529a30 | 1572 | |
1573 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1574 | #define SPL_META_RELEASE "$SPL_META_RELEASE" |
dd529a30 | 1575 | _ACEOF |
1576 | ||
1577 | ||
1578 | fi | |
1579 | ||
abc3ca14 | 1580 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then |
72e7de60 | 1581 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" |
abc3ca14 | 1582 | test -n "$SPL_META_RELEASE" && |
72e7de60 | 1583 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" |
dd529a30 | 1584 | |
1585 | cat >>confdefs.h <<_ACEOF | |
72e7de60 | 1586 | #define SPL_META_ALIAS "$SPL_META_ALIAS" |
dd529a30 | 1587 | _ACEOF |
1588 | ||
1589 | ||
1590 | fi | |
1591 | ||
abc3ca14 | 1592 | SPL_META_DATA=`perl -n\ |
dd529a30 | 1593 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1594 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1595 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1596 | -e "s/^\s+//;"\ | |
1597 | -e "s/\s+$//;"\ | |
1598 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1599 | -e "\\$val=\\$_;"\ | |
1600 | -e "END { print \\$val if defined \\$val; }"\ | |
1601 | 'DATE' $META`; | |
abc3ca14 | 1602 | if test -n "$SPL_META_DATA"; then |
dd529a30 | 1603 | |
1604 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1605 | #define SPL_META_DATA "$SPL_META_DATA" |
dd529a30 | 1606 | _ACEOF |
1607 | ||
1608 | ||
1609 | fi | |
1610 | ||
abc3ca14 | 1611 | SPL_META_AUTHOR=`perl -n\ |
dd529a30 | 1612 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1613 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1614 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1615 | -e "s/^\s+//;"\ | |
1616 | -e "s/\s+$//;"\ | |
1617 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1618 | -e "\\$val=\\$_;"\ | |
1619 | -e "END { print \\$val if defined \\$val; }"\ | |
1620 | 'AUTHOR' $META`; | |
abc3ca14 | 1621 | if test -n "$SPL_META_AUTHOR"; then |
dd529a30 | 1622 | |
1623 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1624 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" |
dd529a30 | 1625 | _ACEOF |
1626 | ||
1627 | ||
1628 | fi | |
1629 | ||
1630 | ||
abc3ca14 | 1631 | SPL_META_LT_CURRENT=`perl -n\ |
dd529a30 | 1632 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1633 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1634 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1635 | -e "s/^\s+//;"\ | |
1636 | -e "s/\s+$//;"\ | |
1637 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1638 | -e "\\$val=\\$_;"\ | |
1639 | -e "END { print \\$val if defined \\$val; }"\ | |
1640 | 'LT_CURRENT' $META`; | |
abc3ca14 | 1641 | SPL_META_LT_REVISION=`perl -n\ |
dd529a30 | 1642 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1643 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1644 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1645 | -e "s/^\s+//;"\ | |
1646 | -e "s/\s+$//;"\ | |
1647 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1648 | -e "\\$val=\\$_;"\ | |
1649 | -e "END { print \\$val if defined \\$val; }"\ | |
1650 | 'LT_REVISION' $META`; | |
abc3ca14 | 1651 | SPL_META_LT_AGE=`perl -n\ |
dd529a30 | 1652 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1653 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1654 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1655 | -e "s/^\s+//;"\ | |
1656 | -e "s/\s+$//;"\ | |
1657 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1658 | -e "\\$val=\\$_;"\ | |
1659 | -e "END { print \\$val if defined \\$val; }"\ | |
1660 | 'LT_AGE' $META`; | |
abc3ca14 BB |
1661 | if test -n "$SPL_META_LT_CURRENT" \ |
1662 | -o -n "$SPL_META_LT_REVISION" \ | |
1663 | -o -n "$SPL_META_LT_AGE"; then | |
1664 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
1665 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
1666 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
dd529a30 | 1667 | |
1668 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1669 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" |
dd529a30 | 1670 | _ACEOF |
1671 | ||
1672 | ||
1673 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1674 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" |
dd529a30 | 1675 | _ACEOF |
1676 | ||
1677 | ||
1678 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1679 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" |
dd529a30 | 1680 | _ACEOF |
1681 | ||
1682 | ||
1683 | ||
1684 | ||
1685 | fi | |
1686 | fi | |
1687 | ||
1688 | echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5 | |
1689 | echo "${ECHO_T}$_spl_ac_meta_got_file" >&6 | |
1690 | ||
1691 | ||
bf9f3bac | 1692 | ac_aux_dir= |
1693 | for ac_dir in config $srcdir/config; do | |
1694 | if test -f $ac_dir/install-sh; then | |
1695 | ac_aux_dir=$ac_dir | |
1696 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1697 | break | |
1698 | elif test -f $ac_dir/install.sh; then | |
1699 | ac_aux_dir=$ac_dir | |
1700 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1701 | break | |
1702 | elif test -f $ac_dir/shtool; then | |
1703 | ac_aux_dir=$ac_dir | |
1704 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1705 | break | |
1706 | fi | |
1707 | done | |
1708 | if test -z "$ac_aux_dir"; then | |
1709 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | |
1710 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
1711 | { (exit 1); exit 1; }; } | |
1712 | fi | |
1713 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1714 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1715 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1716 | ||
1717 | # Make sure we can run config.sub. | |
1718 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1719 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1720 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1721 | { (exit 1); exit 1; }; } | |
1722 | ||
1723 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1724 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1725 | if test "${ac_cv_build+set}" = set; then | |
1726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1727 | else | |
1728 | ac_cv_build_alias=$build_alias | |
1729 | test -z "$ac_cv_build_alias" && | |
1730 | ac_cv_build_alias=`$ac_config_guess` | |
1731 | test -z "$ac_cv_build_alias" && | |
1732 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1733 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1734 | { (exit 1); exit 1; }; } | |
1735 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1736 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1737 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1738 | { (exit 1); exit 1; }; } | |
1739 | ||
1740 | fi | |
1741 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1742 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1743 | build=$ac_cv_build | |
1744 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1745 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1746 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1747 | ||
1748 | ||
1749 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1750 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1751 | if test "${ac_cv_host+set}" = set; then | |
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1753 | else | |
1754 | ac_cv_host_alias=$host_alias | |
1755 | test -z "$ac_cv_host_alias" && | |
1756 | ac_cv_host_alias=$ac_cv_build_alias | |
1757 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1758 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1759 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1760 | { (exit 1); exit 1; }; } | |
1761 | ||
1762 | fi | |
1763 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1764 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1765 | host=$ac_cv_host | |
1766 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1767 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1768 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1769 | ||
1770 | ||
1771 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1772 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1773 | if test "${ac_cv_target+set}" = set; then | |
1774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1775 | else | |
1776 | ac_cv_target_alias=$target_alias | |
1777 | test "x$ac_cv_target_alias" = "x" && | |
1778 | ac_cv_target_alias=$ac_cv_host_alias | |
1779 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1780 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1781 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1782 | { (exit 1); exit 1; }; } | |
1783 | ||
1784 | fi | |
1785 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1786 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1787 | target=$ac_cv_target | |
1788 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1789 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1790 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1791 | ||
1792 | ||
1793 | # The aliases save the names the user supplied, while $host etc. | |
1794 | # will get canonicalized. | |
1795 | test -n "$target_alias" && | |
1796 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1797 | NONENONEs,x,x, && | |
1798 | program_prefix=${target_alias}- | |
1799 | am__api_version="1.9" | |
1800 | # Find a good install program. We prefer a C program (faster), | |
1801 | # so one script is as good as another. But avoid the broken or | |
1802 | # incompatible versions: | |
1803 | # SysV /etc/install, /usr/sbin/install | |
1804 | # SunOS /usr/etc/install | |
1805 | # IRIX /sbin/install | |
1806 | # AIX /bin/install | |
1807 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1808 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1809 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1810 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1811 | # OS/2's system install, which has a completely different semantic | |
1812 | # ./install, which can be erroneously created by make from ./install.sh. | |
1813 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1814 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1815 | if test -z "$INSTALL"; then | |
1816 | if test "${ac_cv_path_install+set}" = set; then | |
1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1818 | else | |
1819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1820 | for as_dir in $PATH | |
1821 | do | |
1822 | IFS=$as_save_IFS | |
1823 | test -z "$as_dir" && as_dir=. | |
1824 | # Account for people who put trailing slashes in PATH elements. | |
1825 | case $as_dir/ in | |
1826 | ./ | .// | /cC/* | \ | |
1827 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1828 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1829 | /usr/ucb/* ) ;; | |
1830 | *) | |
1831 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1832 | # Don't use installbsd from OSF since it installs stuff as root | |
1833 | # by default. | |
1834 | for ac_prog in ginstall scoinst install; do | |
1835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1836 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1837 | if test $ac_prog = install && | |
1838 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1839 | # AIX install. It has an incompatible calling convention. | |
1840 | : | |
1841 | elif test $ac_prog = install && | |
1842 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1843 | # program-specific install script used by HP pwplus--don't use. | |
1844 | : | |
1845 | else | |
1846 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1847 | break 3 | |
1848 | fi | |
1849 | fi | |
1850 | done | |
1851 | done | |
1852 | ;; | |
1853 | esac | |
1854 | done | |
1855 | ||
1856 | ||
1857 | fi | |
1858 | if test "${ac_cv_path_install+set}" = set; then | |
1859 | INSTALL=$ac_cv_path_install | |
1860 | else | |
1861 | # As a last resort, use the slow shell script. We don't cache a | |
1862 | # path for INSTALL within a source directory, because that will | |
1863 | # break other packages using the cache if that directory is | |
1864 | # removed, or if the path is relative. | |
1865 | INSTALL=$ac_install_sh | |
1866 | fi | |
1867 | fi | |
1868 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1869 | echo "${ECHO_T}$INSTALL" >&6 | |
1870 | ||
1871 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1872 | # It thinks the first close brace ends the variable substitution. | |
1873 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1874 | ||
1875 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1876 | ||
1877 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1878 | ||
1879 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1880 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1881 | # Just in case | |
1882 | sleep 1 | |
1883 | echo timestamp > conftest.file | |
1884 | # Do `set' in a subshell so we don't clobber the current shell's | |
1885 | # arguments. Must try -L first in case configure is actually a | |
1886 | # symlink; some systems play weird games with the mod time of symlinks | |
1887 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1888 | # directory). | |
1889 | if ( | |
1890 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1891 | if test "$*" = "X"; then | |
1892 | # -L didn't work. | |
1893 | set X `ls -t $srcdir/configure conftest.file` | |
1894 | fi | |
1895 | rm -f conftest.file | |
1896 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1897 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1898 | ||
1899 | # If neither matched, then we have a broken ls. This can happen | |
1900 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1901 | # broken ls alias from the environment. This has actually | |
1902 | # happened. Such a system could not be considered "sane". | |
1903 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1904 | alias in your environment" >&5 | |
1905 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1906 | alias in your environment" >&2;} | |
1907 | { (exit 1); exit 1; }; } | |
1908 | fi | |
1909 | ||
1910 | test "$2" = conftest.file | |
1911 | ) | |
1912 | then | |
1913 | # Ok. | |
1914 | : | |
1915 | else | |
1916 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1917 | Check your system clock" >&5 | |
1918 | echo "$as_me: error: newly created file is older than distributed files! | |
1919 | Check your system clock" >&2;} | |
1920 | { (exit 1); exit 1; }; } | |
1921 | fi | |
1922 | echo "$as_me:$LINENO: result: yes" >&5 | |
1923 | echo "${ECHO_T}yes" >&6 | |
1924 | test "$program_prefix" != NONE && | |
1925 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1926 | # Use a double $ so make ignores it. | |
1927 | test "$program_suffix" != NONE && | |
1928 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1929 | # Double any \ or $. echo might interpret backslashes. | |
1930 | # By default was `s,x,x', remove it if useless. | |
1931 | cat <<\_ACEOF >conftest.sed | |
1932 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1933 | _ACEOF | |
1934 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1935 | rm conftest.sed | |
1936 | ||
1937 | # expand $ac_aux_dir to an absolute path | |
1938 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1939 | ||
1940 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1941 | # Use eval to expand $SHELL | |
1942 | if eval "$MISSING --run true"; then | |
1943 | am_missing_run="$MISSING --run " | |
1944 | else | |
1945 | am_missing_run= | |
1946 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1947 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1948 | fi | |
1949 | ||
1950 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1951 | # We used to keeping the `.' as first argument, in order to | |
1952 | # allow $(mkdir_p) to be used without argument. As in | |
1953 | # $(mkdir_p) $(somedir) | |
1954 | # where $(somedir) is conditionally defined. However this is wrong | |
1955 | # for two reasons: | |
1956 | # 1. if the package is installed by a user who cannot write `.' | |
1957 | # make install will fail, | |
1958 | # 2. the above comment should most certainly read | |
1959 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1960 | # so it does not work when $(somedir) is undefined and | |
1961 | # $(DESTDIR) is not. | |
1962 | # To support the latter case, we have to write | |
1963 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1964 | # so the `.' trick is pointless. | |
1965 | mkdir_p='mkdir -p --' | |
1966 | else | |
1967 | # On NextStep and OpenStep, the `mkdir' command does not | |
1968 | # recognize any option. It will interpret all options as | |
1969 | # directories to create, and then abort because `.' already | |
1970 | # exists. | |
1971 | for d in ./-p ./--version; | |
1972 | do | |
1973 | test -d $d && rmdir $d | |
1974 | done | |
1975 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1976 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1977 | mkdir_p='$(mkinstalldirs)' | |
1978 | else | |
1979 | mkdir_p='$(install_sh) -d' | |
1980 | fi | |
1981 | fi | |
1982 | ||
1983 | for ac_prog in gawk mawk nawk awk | |
1984 | do | |
1985 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1986 | set dummy $ac_prog; ac_word=$2 | |
1987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1989 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$AWK"; then | |
1993 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1994 | else | |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1996 | for as_dir in $PATH | |
1997 | do | |
1998 | IFS=$as_save_IFS | |
1999 | test -z "$as_dir" && as_dir=. | |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2002 | ac_cv_prog_AWK="$ac_prog" | |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2004 | break 2 | |
2005 | fi | |
2006 | done | |
2007 | done | |
2008 | ||
2009 | fi | |
2010 | fi | |
2011 | AWK=$ac_cv_prog_AWK | |
2012 | if test -n "$AWK"; then | |
2013 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2014 | echo "${ECHO_T}$AWK" >&6 | |
2015 | else | |
2016 | echo "$as_me:$LINENO: result: no" >&5 | |
2017 | echo "${ECHO_T}no" >&6 | |
2018 | fi | |
2019 | ||
2020 | test -n "$AWK" && break | |
2021 | done | |
2022 | ||
2023 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2024 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2025 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2026 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2028 | else | |
2029 | cat >conftest.make <<\_ACEOF | |
2030 | all: | |
2031 | @echo 'ac_maketemp="$(MAKE)"' | |
2032 | _ACEOF | |
2033 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2034 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2035 | if test -n "$ac_maketemp"; then | |
2036 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2037 | else | |
2038 | eval ac_cv_prog_make_${ac_make}_set=no | |
2039 | fi | |
2040 | rm -f conftest.make | |
2041 | fi | |
2042 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2043 | echo "$as_me:$LINENO: result: yes" >&5 | |
2044 | echo "${ECHO_T}yes" >&6 | |
2045 | SET_MAKE= | |
2046 | else | |
2047 | echo "$as_me:$LINENO: result: no" >&5 | |
2048 | echo "${ECHO_T}no" >&6 | |
2049 | SET_MAKE="MAKE=${MAKE-make}" | |
2050 | fi | |
2051 | ||
2052 | rm -rf .tst 2>/dev/null | |
2053 | mkdir .tst 2>/dev/null | |
2054 | if test -d .tst; then | |
2055 | am__leading_dot=. | |
2056 | else | |
2057 | am__leading_dot=_ | |
2058 | fi | |
2059 | rmdir .tst 2>/dev/null | |
2060 | ||
2061 | # test to see if srcdir already configured | |
2062 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2063 | test -f $srcdir/config.status; then | |
2064 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2065 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2066 | { (exit 1); exit 1; }; } | |
2067 | fi | |
2068 | ||
2069 | # test whether we have cygpath | |
2070 | if test -z "$CYGPATH_W"; then | |
2071 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2072 | CYGPATH_W='cygpath -w' | |
2073 | else | |
2074 | CYGPATH_W=echo | |
2075 | fi | |
2076 | fi | |
2077 | ||
2078 | ||
2079 | # Define the identity of the package. | |
abc3ca14 BB |
2080 | PACKAGE=$SPL_META_NAME |
2081 | VERSION=$SPL_META_VERSION | |
bf9f3bac | 2082 | |
2083 | ||
2084 | cat >>confdefs.h <<_ACEOF | |
2085 | #define PACKAGE "$PACKAGE" | |
2086 | _ACEOF | |
2087 | ||
2088 | ||
2089 | cat >>confdefs.h <<_ACEOF | |
2090 | #define VERSION "$VERSION" | |
2091 | _ACEOF | |
2092 | ||
2093 | # Some tools Automake needs. | |
2094 | ||
2095 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2096 | ||
2097 | ||
2098 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2099 | ||
2100 | ||
2101 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2102 | ||
2103 | ||
2104 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2105 | ||
2106 | ||
2107 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2108 | ||
2109 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2110 | ||
2111 | # Installed binaries are usually stripped using `strip' when the user | |
2112 | # run `make install-strip'. However `strip' might not be the right | |
2113 | # tool to use in cross-compilation environments, therefore Automake | |
2114 | # will honor the `STRIP' environment variable to overrule this program. | |
2115 | if test "$cross_compiling" != no; then | |
2116 | if test -n "$ac_tool_prefix"; then | |
2117 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2118 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2121 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2123 | else | |
2124 | if test -n "$STRIP"; then | |
2125 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2126 | else | |
2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2128 | for as_dir in $PATH | |
2129 | do | |
2130 | IFS=$as_save_IFS | |
2131 | test -z "$as_dir" && as_dir=. | |
2132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2134 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2136 | break 2 | |
2137 | fi | |
2138 | done | |
2139 | done | |
2140 | ||
2141 | fi | |
2142 | fi | |
2143 | STRIP=$ac_cv_prog_STRIP | |
2144 | if test -n "$STRIP"; then | |
2145 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2146 | echo "${ECHO_T}$STRIP" >&6 | |
2147 | else | |
2148 | echo "$as_me:$LINENO: result: no" >&5 | |
2149 | echo "${ECHO_T}no" >&6 | |
2150 | fi | |
2151 | ||
2152 | fi | |
2153 | if test -z "$ac_cv_prog_STRIP"; then | |
2154 | ac_ct_STRIP=$STRIP | |
2155 | # Extract the first word of "strip", so it can be a program name with args. | |
2156 | set dummy strip; ac_word=$2 | |
2157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2159 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2161 | else | |
2162 | if test -n "$ac_ct_STRIP"; then | |
2163 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2164 | else | |
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2166 | for as_dir in $PATH | |
2167 | do | |
2168 | IFS=$as_save_IFS | |
2169 | test -z "$as_dir" && as_dir=. | |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2172 | ac_cv_prog_ac_ct_STRIP="strip" | |
2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2174 | break 2 | |
2175 | fi | |
2176 | done | |
2177 | done | |
2178 | ||
2179 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2180 | fi | |
2181 | fi | |
2182 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2183 | if test -n "$ac_ct_STRIP"; then | |
2184 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2185 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2186 | else | |
2187 | echo "$as_me:$LINENO: result: no" >&5 | |
2188 | echo "${ECHO_T}no" >&6 | |
2189 | fi | |
2190 | ||
2191 | STRIP=$ac_ct_STRIP | |
2192 | else | |
2193 | STRIP="$ac_cv_prog_STRIP" | |
2194 | fi | |
2195 | ||
2196 | fi | |
2197 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2198 | ||
2199 | # We need awk for the "check" target. The system "awk" is bad on | |
2200 | # some platforms. | |
2201 | # Always define AMTAR for backward compatibility. | |
2202 | ||
2203 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2204 | ||
2205 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2206 | ||
2207 | ||
2208 | ||
2209 | ||
2210 | ||
2211 | ac_config_headers="$ac_config_headers spl_config.h" | |
2212 | ||
0cbaeb11 BB |
2213 | |
2214 | ||
bf9f3bac | 2215 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2216 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
2217 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
2218 | if test "${enable_maintainer_mode+set}" = set; then | |
2219 | enableval="$enable_maintainer_mode" | |
2220 | USE_MAINTAINER_MODE=$enableval | |
2221 | else | |
2222 | USE_MAINTAINER_MODE=no | |
2223 | fi; | |
2224 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2225 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2226 | ||
2227 | ||
2228 | if test $USE_MAINTAINER_MODE = yes; then | |
2229 | MAINTAINER_MODE_TRUE= | |
2230 | MAINTAINER_MODE_FALSE='#' | |
2231 | else | |
2232 | MAINTAINER_MODE_TRUE='#' | |
2233 | MAINTAINER_MODE_FALSE= | |
2234 | fi | |
2235 | ||
2236 | MAINT=$MAINTAINER_MODE_TRUE | |
2237 | ||
2238 | ||
2239 | ||
2240 | # Find a good install program. We prefer a C program (faster), | |
2241 | # so one script is as good as another. But avoid the broken or | |
2242 | # incompatible versions: | |
2243 | # SysV /etc/install, /usr/sbin/install | |
2244 | # SunOS /usr/etc/install | |
2245 | # IRIX /sbin/install | |
2246 | # AIX /bin/install | |
2247 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2248 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2249 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2250 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2251 | # OS/2's system install, which has a completely different semantic | |
2252 | # ./install, which can be erroneously created by make from ./install.sh. | |
2253 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2254 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2255 | if test -z "$INSTALL"; then | |
2256 | if test "${ac_cv_path_install+set}" = set; then | |
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2258 | else | |
2259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2260 | for as_dir in $PATH | |
2261 | do | |
2262 | IFS=$as_save_IFS | |
2263 | test -z "$as_dir" && as_dir=. | |
2264 | # Account for people who put trailing slashes in PATH elements. | |
2265 | case $as_dir/ in | |
2266 | ./ | .// | /cC/* | \ | |
2267 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2268 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2269 | /usr/ucb/* ) ;; | |
2270 | *) | |
2271 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2272 | # Don't use installbsd from OSF since it installs stuff as root | |
2273 | # by default. | |
2274 | for ac_prog in ginstall scoinst install; do | |
2275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2276 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2277 | if test $ac_prog = install && | |
2278 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2279 | # AIX install. It has an incompatible calling convention. | |
2280 | : | |
2281 | elif test $ac_prog = install && | |
2282 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2283 | # program-specific install script used by HP pwplus--don't use. | |
2284 | : | |
2285 | else | |
2286 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2287 | break 3 | |
2288 | fi | |
2289 | fi | |
2290 | done | |
2291 | done | |
2292 | ;; | |
2293 | esac | |
2294 | done | |
2295 | ||
2296 | ||
2297 | fi | |
2298 | if test "${ac_cv_path_install+set}" = set; then | |
2299 | INSTALL=$ac_cv_path_install | |
2300 | else | |
2301 | # As a last resort, use the slow shell script. We don't cache a | |
2302 | # path for INSTALL within a source directory, because that will | |
2303 | # break other packages using the cache if that directory is | |
2304 | # removed, or if the path is relative. | |
2305 | INSTALL=$ac_install_sh | |
2306 | fi | |
2307 | fi | |
2308 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2309 | echo "${ECHO_T}$INSTALL" >&6 | |
2310 | ||
2311 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2312 | # It thinks the first close brace ends the variable substitution. | |
2313 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2314 | ||
2315 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2316 | ||
2317 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2318 | ||
2319 | ac_ext=c | |
2320 | ac_cpp='$CPP $CPPFLAGS' | |
2321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2324 | if test -n "$ac_tool_prefix"; then | |
2325 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2326 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2329 | if test "${ac_cv_prog_CC+set}" = set; then | |
2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2331 | else | |
2332 | if test -n "$CC"; then | |
2333 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2334 | else | |
2335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2336 | for as_dir in $PATH | |
2337 | do | |
2338 | IFS=$as_save_IFS | |
2339 | test -z "$as_dir" && as_dir=. | |
2340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2342 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2344 | break 2 | |
2345 | fi | |
2346 | done | |
2347 | done | |
2348 | ||
2349 | fi | |
2350 | fi | |
2351 | CC=$ac_cv_prog_CC | |
2352 | if test -n "$CC"; then | |
2353 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2354 | echo "${ECHO_T}$CC" >&6 | |
2355 | else | |
2356 | echo "$as_me:$LINENO: result: no" >&5 | |
2357 | echo "${ECHO_T}no" >&6 | |
2358 | fi | |
2359 | ||
2360 | fi | |
2361 | if test -z "$ac_cv_prog_CC"; then | |
2362 | ac_ct_CC=$CC | |
2363 | # Extract the first word of "gcc", so it can be a program name with args. | |
2364 | set dummy gcc; ac_word=$2 | |
2365 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2367 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2369 | else | |
2370 | if test -n "$ac_ct_CC"; then | |
2371 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2372 | else | |
2373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2374 | for as_dir in $PATH | |
2375 | do | |
2376 | IFS=$as_save_IFS | |
2377 | test -z "$as_dir" && as_dir=. | |
2378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2380 | ac_cv_prog_ac_ct_CC="gcc" | |
2381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2382 | break 2 | |
2383 | fi | |
2384 | done | |
2385 | done | |
2386 | ||
2387 | fi | |
2388 | fi | |
2389 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2390 | if test -n "$ac_ct_CC"; then | |
2391 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2392 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2393 | else | |
2394 | echo "$as_me:$LINENO: result: no" >&5 | |
2395 | echo "${ECHO_T}no" >&6 | |
2396 | fi | |
2397 | ||
2398 | CC=$ac_ct_CC | |
2399 | else | |
2400 | CC="$ac_cv_prog_CC" | |
2401 | fi | |
2402 | ||
2403 | if test -z "$CC"; then | |
2404 | if test -n "$ac_tool_prefix"; then | |
2405 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2406 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2409 | if test "${ac_cv_prog_CC+set}" = set; then | |
2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2411 | else | |
2412 | if test -n "$CC"; then | |
2413 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2414 | else | |
2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2416 | for as_dir in $PATH | |
2417 | do | |
2418 | IFS=$as_save_IFS | |
2419 | test -z "$as_dir" && as_dir=. | |
2420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2422 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2424 | break 2 | |
2425 | fi | |
2426 | done | |
2427 | done | |
2428 | ||
2429 | fi | |
2430 | fi | |
2431 | CC=$ac_cv_prog_CC | |
2432 | if test -n "$CC"; then | |
2433 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2434 | echo "${ECHO_T}$CC" >&6 | |
2435 | else | |
2436 | echo "$as_me:$LINENO: result: no" >&5 | |
2437 | echo "${ECHO_T}no" >&6 | |
2438 | fi | |
2439 | ||
2440 | fi | |
2441 | if test -z "$ac_cv_prog_CC"; then | |
2442 | ac_ct_CC=$CC | |
2443 | # Extract the first word of "cc", so it can be a program name with args. | |
2444 | set dummy cc; ac_word=$2 | |
2445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2447 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2449 | else | |
2450 | if test -n "$ac_ct_CC"; then | |
2451 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2452 | else | |
2453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2454 | for as_dir in $PATH | |
2455 | do | |
2456 | IFS=$as_save_IFS | |
2457 | test -z "$as_dir" && as_dir=. | |
2458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2460 | ac_cv_prog_ac_ct_CC="cc" | |
2461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2462 | break 2 | |
2463 | fi | |
2464 | done | |
2465 | done | |
2466 | ||
2467 | fi | |
2468 | fi | |
2469 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2470 | if test -n "$ac_ct_CC"; then | |
2471 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2472 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2473 | else | |
2474 | echo "$as_me:$LINENO: result: no" >&5 | |
2475 | echo "${ECHO_T}no" >&6 | |
2476 | fi | |
2477 | ||
2478 | CC=$ac_ct_CC | |
2479 | else | |
2480 | CC="$ac_cv_prog_CC" | |
2481 | fi | |
2482 | ||
2483 | fi | |
2484 | if test -z "$CC"; then | |
2485 | # Extract the first word of "cc", so it can be a program name with args. | |
2486 | set dummy cc; ac_word=$2 | |
2487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2489 | if test "${ac_cv_prog_CC+set}" = set; then | |
2490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2491 | else | |
2492 | if test -n "$CC"; then | |
2493 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2494 | else | |
2495 | ac_prog_rejected=no | |
2496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2497 | for as_dir in $PATH | |
2498 | do | |
2499 | IFS=$as_save_IFS | |
2500 | test -z "$as_dir" && as_dir=. | |
2501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2503 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2504 | ac_prog_rejected=yes | |
2505 | continue | |
2506 | fi | |
2507 | ac_cv_prog_CC="cc" | |
2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2509 | break 2 | |
2510 | fi | |
2511 | done | |
2512 | done | |
2513 | ||
2514 | if test $ac_prog_rejected = yes; then | |
2515 | # We found a bogon in the path, so make sure we never use it. | |
2516 | set dummy $ac_cv_prog_CC | |
2517 | shift | |
2518 | if test $# != 0; then | |
2519 | # We chose a different compiler from the bogus one. | |
2520 | # However, it has the same basename, so the bogon will be chosen | |
2521 | # first if we set CC to just the basename; use the full file name. | |
2522 | shift | |
2523 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2524 | fi | |
2525 | fi | |
2526 | fi | |
2527 | fi | |
2528 | CC=$ac_cv_prog_CC | |
2529 | if test -n "$CC"; then | |
2530 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2531 | echo "${ECHO_T}$CC" >&6 | |
2532 | else | |
2533 | echo "$as_me:$LINENO: result: no" >&5 | |
2534 | echo "${ECHO_T}no" >&6 | |
2535 | fi | |
2536 | ||
2537 | fi | |
2538 | if test -z "$CC"; then | |
2539 | if test -n "$ac_tool_prefix"; then | |
2540 | for ac_prog in cl | |
2541 | do | |
2542 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2543 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2546 | if test "${ac_cv_prog_CC+set}" = set; then | |
2547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2548 | else | |
2549 | if test -n "$CC"; then | |
2550 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2551 | else | |
2552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2553 | for as_dir in $PATH | |
2554 | do | |
2555 | IFS=$as_save_IFS | |
2556 | test -z "$as_dir" && as_dir=. | |
2557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2559 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2561 | break 2 | |
2562 | fi | |
2563 | done | |
2564 | done | |
2565 | ||
2566 | fi | |
2567 | fi | |
2568 | CC=$ac_cv_prog_CC | |
2569 | if test -n "$CC"; then | |
2570 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2571 | echo "${ECHO_T}$CC" >&6 | |
2572 | else | |
2573 | echo "$as_me:$LINENO: result: no" >&5 | |
2574 | echo "${ECHO_T}no" >&6 | |
2575 | fi | |
2576 | ||
2577 | test -n "$CC" && break | |
2578 | done | |
2579 | fi | |
2580 | if test -z "$CC"; then | |
2581 | ac_ct_CC=$CC | |
2582 | for ac_prog in cl | |
2583 | do | |
2584 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2585 | set dummy $ac_prog; ac_word=$2 | |
2586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2588 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2590 | else | |
2591 | if test -n "$ac_ct_CC"; then | |
2592 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2593 | else | |
2594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2595 | for as_dir in $PATH | |
2596 | do | |
2597 | IFS=$as_save_IFS | |
2598 | test -z "$as_dir" && as_dir=. | |
2599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2601 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2603 | break 2 | |
2604 | fi | |
2605 | done | |
2606 | done | |
2607 | ||
2608 | fi | |
2609 | fi | |
2610 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2611 | if test -n "$ac_ct_CC"; then | |
2612 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2613 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2614 | else | |
2615 | echo "$as_me:$LINENO: result: no" >&5 | |
2616 | echo "${ECHO_T}no" >&6 | |
2617 | fi | |
2618 | ||
2619 | test -n "$ac_ct_CC" && break | |
2620 | done | |
2621 | ||
2622 | CC=$ac_ct_CC | |
2623 | fi | |
2624 | ||
2625 | fi | |
2626 | ||
2627 | ||
2628 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2629 | See \`config.log' for more details." >&5 | |
2630 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2631 | See \`config.log' for more details." >&2;} | |
2632 | { (exit 1); exit 1; }; } | |
2633 | ||
2634 | # Provide some information about the compiler. | |
2635 | echo "$as_me:$LINENO:" \ | |
2636 | "checking for C compiler version" >&5 | |
2637 | ac_compiler=`set X $ac_compile; echo $2` | |
2638 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2639 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2640 | ac_status=$? | |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2642 | (exit $ac_status); } | |
2643 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2644 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2645 | ac_status=$? | |
2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2647 | (exit $ac_status); } | |
2648 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2649 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2650 | ac_status=$? | |
2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2652 | (exit $ac_status); } | |
2653 | ||
2654 | cat >conftest.$ac_ext <<_ACEOF | |
2655 | /* confdefs.h. */ | |
2656 | _ACEOF | |
2657 | cat confdefs.h >>conftest.$ac_ext | |
2658 | cat >>conftest.$ac_ext <<_ACEOF | |
2659 | /* end confdefs.h. */ | |
2660 | ||
2661 | int | |
2662 | main () | |
2663 | { | |
2664 | ||
2665 | ; | |
2666 | return 0; | |
2667 | } | |
2668 | _ACEOF | |
2669 | ac_clean_files_save=$ac_clean_files | |
2670 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2671 | # Try to create an executable without -o first, disregard a.out. | |
2672 | # It will help us diagnose broken compilers, and finding out an intuition | |
2673 | # of exeext. | |
2674 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2675 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2676 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2677 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2678 | (eval $ac_link_default) 2>&5 | |
2679 | ac_status=$? | |
2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2681 | (exit $ac_status); }; then | |
2682 | # Find the output, starting from the most likely. This scheme is | |
2683 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2684 | # resort. | |
2685 | ||
2686 | # Be careful to initialize this variable, since it used to be cached. | |
2687 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2688 | ac_cv_exeext= | |
2689 | # b.out is created by i960 compilers. | |
2690 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2691 | do | |
2692 | test -f "$ac_file" || continue | |
2693 | case $ac_file in | |
2694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2695 | ;; | |
2696 | conftest.$ac_ext ) | |
2697 | # This is the source file. | |
2698 | ;; | |
2699 | [ab].out ) | |
2700 | # We found the default executable, but exeext='' is most | |
2701 | # certainly right. | |
2702 | break;; | |
2703 | *.* ) | |
2704 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2705 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2706 | # but it would be cool to find out if it's true. Does anybody | |
2707 | # maintain Libtool? --akim. | |
2708 | export ac_cv_exeext | |
2709 | break;; | |
2710 | * ) | |
2711 | break;; | |
2712 | esac | |
2713 | done | |
2714 | else | |
2715 | echo "$as_me: failed program was:" >&5 | |
2716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2717 | ||
2718 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2719 | See \`config.log' for more details." >&5 | |
2720 | echo "$as_me: error: C compiler cannot create executables | |
2721 | See \`config.log' for more details." >&2;} | |
2722 | { (exit 77); exit 77; }; } | |
2723 | fi | |
2724 | ||
2725 | ac_exeext=$ac_cv_exeext | |
2726 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2727 | echo "${ECHO_T}$ac_file" >&6 | |
2728 | ||
2729 | # Check the compiler produces executables we can run. If not, either | |
2730 | # the compiler is broken, or we cross compile. | |
2731 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2732 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2733 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2734 | # If not cross compiling, check that we can run a simple program. | |
2735 | if test "$cross_compiling" != yes; then | |
2736 | if { ac_try='./$ac_file' | |
2737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2738 | (eval $ac_try) 2>&5 | |
2739 | ac_status=$? | |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2741 | (exit $ac_status); }; }; then | |
2742 | cross_compiling=no | |
2743 | else | |
2744 | if test "$cross_compiling" = maybe; then | |
2745 | cross_compiling=yes | |
2746 | else | |
2747 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2748 | If you meant to cross compile, use \`--host'. | |
2749 | See \`config.log' for more details." >&5 | |
2750 | echo "$as_me: error: cannot run C compiled programs. | |
2751 | If you meant to cross compile, use \`--host'. | |
2752 | See \`config.log' for more details." >&2;} | |
2753 | { (exit 1); exit 1; }; } | |
2754 | fi | |
2755 | fi | |
2756 | fi | |
2757 | echo "$as_me:$LINENO: result: yes" >&5 | |
2758 | echo "${ECHO_T}yes" >&6 | |
2759 | ||
2760 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2761 | ac_clean_files=$ac_clean_files_save | |
2762 | # Check the compiler produces executables we can run. If not, either | |
2763 | # the compiler is broken, or we cross compile. | |
2764 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2765 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2766 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2767 | echo "${ECHO_T}$cross_compiling" >&6 | |
2768 | ||
2769 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2770 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2772 | (eval $ac_link) 2>&5 | |
2773 | ac_status=$? | |
2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2775 | (exit $ac_status); }; then | |
2776 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2777 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2778 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2779 | # `rm'. | |
2780 | for ac_file in conftest.exe conftest conftest.*; do | |
2781 | test -f "$ac_file" || continue | |
2782 | case $ac_file in | |
2783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2784 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2785 | export ac_cv_exeext | |
2786 | break;; | |
2787 | * ) break;; | |
2788 | esac | |
2789 | done | |
2790 | else | |
2791 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2792 | See \`config.log' for more details." >&5 | |
2793 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2794 | See \`config.log' for more details." >&2;} | |
2795 | { (exit 1); exit 1; }; } | |
2796 | fi | |
2797 | ||
2798 | rm -f conftest$ac_cv_exeext | |
2799 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2800 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2801 | ||
2802 | rm -f conftest.$ac_ext | |
2803 | EXEEXT=$ac_cv_exeext | |
2804 | ac_exeext=$EXEEXT | |
2805 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2806 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2807 | if test "${ac_cv_objext+set}" = set; then | |
2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2809 | else | |
2810 | cat >conftest.$ac_ext <<_ACEOF | |
2811 | /* confdefs.h. */ | |
2812 | _ACEOF | |
2813 | cat confdefs.h >>conftest.$ac_ext | |
2814 | cat >>conftest.$ac_ext <<_ACEOF | |
2815 | /* end confdefs.h. */ | |
2816 | ||
2817 | int | |
2818 | main () | |
2819 | { | |
2820 | ||
2821 | ; | |
2822 | return 0; | |
2823 | } | |
2824 | _ACEOF | |
2825 | rm -f conftest.o conftest.obj | |
2826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2827 | (eval $ac_compile) 2>&5 | |
2828 | ac_status=$? | |
2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2830 | (exit $ac_status); }; then | |
2831 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2832 | case $ac_file in | |
2833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2834 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2835 | break;; | |
2836 | esac | |
2837 | done | |
2838 | else | |
2839 | echo "$as_me: failed program was:" >&5 | |
2840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2841 | ||
2842 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2843 | See \`config.log' for more details." >&5 | |
2844 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2845 | See \`config.log' for more details." >&2;} | |
2846 | { (exit 1); exit 1; }; } | |
2847 | fi | |
2848 | ||
2849 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2850 | fi | |
2851 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2852 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2853 | OBJEXT=$ac_cv_objext | |
2854 | ac_objext=$OBJEXT | |
2855 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2856 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2857 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2859 | else | |
2860 | cat >conftest.$ac_ext <<_ACEOF | |
2861 | /* confdefs.h. */ | |
2862 | _ACEOF | |
2863 | cat confdefs.h >>conftest.$ac_ext | |
2864 | cat >>conftest.$ac_ext <<_ACEOF | |
2865 | /* end confdefs.h. */ | |
2866 | ||
2867 | int | |
2868 | main () | |
2869 | { | |
2870 | #ifndef __GNUC__ | |
2871 | choke me | |
2872 | #endif | |
2873 | ||
2874 | ; | |
2875 | return 0; | |
2876 | } | |
2877 | _ACEOF | |
2878 | rm -f conftest.$ac_objext | |
2879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2880 | (eval $ac_compile) 2>conftest.er1 | |
2881 | ac_status=$? | |
2882 | grep -v '^ *+' conftest.er1 >conftest.err | |
2883 | rm -f conftest.er1 | |
2884 | cat conftest.err >&5 | |
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2886 | (exit $ac_status); } && | |
2887 | { ac_try='test -z "$ac_c_werror_flag" | |
2888 | || test ! -s conftest.err' | |
2889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2890 | (eval $ac_try) 2>&5 | |
2891 | ac_status=$? | |
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2893 | (exit $ac_status); }; } && | |
2894 | { ac_try='test -s conftest.$ac_objext' | |
2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2896 | (eval $ac_try) 2>&5 | |
2897 | ac_status=$? | |
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2899 | (exit $ac_status); }; }; then | |
2900 | ac_compiler_gnu=yes | |
2901 | else | |
2902 | echo "$as_me: failed program was:" >&5 | |
2903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2904 | ||
2905 | ac_compiler_gnu=no | |
2906 | fi | |
2907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2908 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2909 | ||
2910 | fi | |
2911 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2912 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2913 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2914 | ac_test_CFLAGS=${CFLAGS+set} | |
2915 | ac_save_CFLAGS=$CFLAGS | |
2916 | CFLAGS="-g" | |
2917 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2918 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2919 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2921 | else | |
2922 | cat >conftest.$ac_ext <<_ACEOF | |
2923 | /* confdefs.h. */ | |
2924 | _ACEOF | |
2925 | cat confdefs.h >>conftest.$ac_ext | |
2926 | cat >>conftest.$ac_ext <<_ACEOF | |
2927 | /* end confdefs.h. */ | |
2928 | ||
2929 | int | |
2930 | main () | |
2931 | { | |
2932 | ||
2933 | ; | |
2934 | return 0; | |
2935 | } | |
2936 | _ACEOF | |
2937 | rm -f conftest.$ac_objext | |
2938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2939 | (eval $ac_compile) 2>conftest.er1 | |
2940 | ac_status=$? | |
2941 | grep -v '^ *+' conftest.er1 >conftest.err | |
2942 | rm -f conftest.er1 | |
2943 | cat conftest.err >&5 | |
2944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2945 | (exit $ac_status); } && | |
2946 | { ac_try='test -z "$ac_c_werror_flag" | |
2947 | || test ! -s conftest.err' | |
2948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2949 | (eval $ac_try) 2>&5 | |
2950 | ac_status=$? | |
2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2952 | (exit $ac_status); }; } && | |
2953 | { ac_try='test -s conftest.$ac_objext' | |
2954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2955 | (eval $ac_try) 2>&5 | |
2956 | ac_status=$? | |
2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2958 | (exit $ac_status); }; }; then | |
2959 | ac_cv_prog_cc_g=yes | |
2960 | else | |
2961 | echo "$as_me: failed program was:" >&5 | |
2962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2963 | ||
2964 | ac_cv_prog_cc_g=no | |
2965 | fi | |
2966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2967 | fi | |
2968 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2969 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2970 | if test "$ac_test_CFLAGS" = set; then | |
2971 | CFLAGS=$ac_save_CFLAGS | |
2972 | elif test $ac_cv_prog_cc_g = yes; then | |
2973 | if test "$GCC" = yes; then | |
2974 | CFLAGS="-g -O2" | |
2975 | else | |
2976 | CFLAGS="-g" | |
2977 | fi | |
2978 | else | |
2979 | if test "$GCC" = yes; then | |
2980 | CFLAGS="-O2" | |
2981 | else | |
2982 | CFLAGS= | |
2983 | fi | |
2984 | fi | |
2985 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2986 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2987 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2989 | else | |
2990 | ac_cv_prog_cc_stdc=no | |
2991 | ac_save_CC=$CC | |
2992 | cat >conftest.$ac_ext <<_ACEOF | |
2993 | /* confdefs.h. */ | |
2994 | _ACEOF | |
2995 | cat confdefs.h >>conftest.$ac_ext | |
2996 | cat >>conftest.$ac_ext <<_ACEOF | |
2997 | /* end confdefs.h. */ | |
2998 | #include <stdarg.h> | |
2999 | #include <stdio.h> | |
3000 | #include <sys/types.h> | |
3001 | #include <sys/stat.h> | |
3002 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3003 | struct buf { int x; }; | |
3004 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3005 | static char *e (p, i) | |
3006 | char **p; | |
3007 | int i; | |
3008 | { | |
3009 | return p[i]; | |
3010 | } | |
3011 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3012 | { | |
3013 | char *s; | |
3014 | va_list v; | |
3015 | va_start (v,p); | |
3016 | s = g (p, va_arg (v,int)); | |
3017 | va_end (v); | |
3018 | return s; | |
3019 | } | |
3020 | ||
3021 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3022 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3023 | These don't provoke an error unfortunately, instead are silently treated | |
3024 | as 'x'. The following induces an error, until -std1 is added to get | |
3025 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3026 | array size at least. It's necessary to write '\x00'==0 to get something | |
3027 | that's true only with -std1. */ | |
3028 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3029 | ||
3030 | int test (int i, double x); | |
3031 | struct s1 {int (*f) (int a);}; | |
3032 | struct s2 {int (*f) (double a);}; | |
3033 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3034 | int argc; | |
3035 | char **argv; | |
3036 | int | |
3037 | main () | |
3038 | { | |
3039 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | # Don't try gcc -ansi; that turns off useful extensions and | |
3045 | # breaks some systems' header files. | |
3046 | # AIX -qlanglvl=ansi | |
3047 | # Ultrix and OSF/1 -std1 | |
3048 | # HP-UX 10.20 and later -Ae | |
3049 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3050 | # SVR4 -Xc -D__EXTENSIONS__ | |
3051 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3052 | do | |
3053 | CC="$ac_save_CC $ac_arg" | |
3054 | rm -f conftest.$ac_objext | |
3055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3056 | (eval $ac_compile) 2>conftest.er1 | |
3057 | ac_status=$? | |
3058 | grep -v '^ *+' conftest.er1 >conftest.err | |
3059 | rm -f conftest.er1 | |
3060 | cat conftest.err >&5 | |
3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3062 | (exit $ac_status); } && | |
3063 | { ac_try='test -z "$ac_c_werror_flag" | |
3064 | || test ! -s conftest.err' | |
3065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3066 | (eval $ac_try) 2>&5 | |
3067 | ac_status=$? | |
3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3069 | (exit $ac_status); }; } && | |
3070 | { ac_try='test -s conftest.$ac_objext' | |
3071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3072 | (eval $ac_try) 2>&5 | |
3073 | ac_status=$? | |
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3075 | (exit $ac_status); }; }; then | |
3076 | ac_cv_prog_cc_stdc=$ac_arg | |
3077 | break | |
3078 | else | |
3079 | echo "$as_me: failed program was:" >&5 | |
3080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3081 | ||
3082 | fi | |
3083 | rm -f conftest.err conftest.$ac_objext | |
3084 | done | |
3085 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3086 | CC=$ac_save_CC | |
3087 | ||
3088 | fi | |
3089 | ||
3090 | case "x$ac_cv_prog_cc_stdc" in | |
3091 | x|xno) | |
3092 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3093 | echo "${ECHO_T}none needed" >&6 ;; | |
3094 | *) | |
3095 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3096 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3097 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3098 | esac | |
3099 | ||
3100 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3101 | # in C++ we need to declare it. In case someone uses the same compiler | |
3102 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3103 | # the declaration of exit, since it's the most demanding environment. | |
3104 | cat >conftest.$ac_ext <<_ACEOF | |
3105 | #ifndef __cplusplus | |
3106 | choke me | |
3107 | #endif | |
3108 | _ACEOF | |
3109 | rm -f conftest.$ac_objext | |
3110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3111 | (eval $ac_compile) 2>conftest.er1 | |
3112 | ac_status=$? | |
3113 | grep -v '^ *+' conftest.er1 >conftest.err | |
3114 | rm -f conftest.er1 | |
3115 | cat conftest.err >&5 | |
3116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3117 | (exit $ac_status); } && | |
3118 | { ac_try='test -z "$ac_c_werror_flag" | |
3119 | || test ! -s conftest.err' | |
3120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3121 | (eval $ac_try) 2>&5 | |
3122 | ac_status=$? | |
3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3124 | (exit $ac_status); }; } && | |
3125 | { ac_try='test -s conftest.$ac_objext' | |
3126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3127 | (eval $ac_try) 2>&5 | |
3128 | ac_status=$? | |
3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3130 | (exit $ac_status); }; }; then | |
3131 | for ac_declaration in \ | |
3132 | '' \ | |
3133 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3134 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3135 | 'extern "C" void exit (int) throw ();' \ | |
3136 | 'extern "C" void exit (int);' \ | |
3137 | 'void exit (int);' | |
3138 | do | |
3139 | cat >conftest.$ac_ext <<_ACEOF | |
3140 | /* confdefs.h. */ | |
3141 | _ACEOF | |
3142 | cat confdefs.h >>conftest.$ac_ext | |
3143 | cat >>conftest.$ac_ext <<_ACEOF | |
3144 | /* end confdefs.h. */ | |
3145 | $ac_declaration | |
3146 | #include <stdlib.h> | |
3147 | int | |
3148 | main () | |
3149 | { | |
3150 | exit (42); | |
3151 | ; | |
3152 | return 0; | |
3153 | } | |
3154 | _ACEOF | |
3155 | rm -f conftest.$ac_objext | |
3156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3157 | (eval $ac_compile) 2>conftest.er1 | |
3158 | ac_status=$? | |
3159 | grep -v '^ *+' conftest.er1 >conftest.err | |
3160 | rm -f conftest.er1 | |
3161 | cat conftest.err >&5 | |
3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3163 | (exit $ac_status); } && | |
3164 | { ac_try='test -z "$ac_c_werror_flag" | |
3165 | || test ! -s conftest.err' | |
3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3167 | (eval $ac_try) 2>&5 | |
3168 | ac_status=$? | |
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3170 | (exit $ac_status); }; } && | |
3171 | { ac_try='test -s conftest.$ac_objext' | |
3172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3173 | (eval $ac_try) 2>&5 | |
3174 | ac_status=$? | |
3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3176 | (exit $ac_status); }; }; then | |
3177 | : | |
3178 | else | |
3179 | echo "$as_me: failed program was:" >&5 | |
3180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3181 | ||
3182 | continue | |
3183 | fi | |
3184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3185 | cat >conftest.$ac_ext <<_ACEOF | |
3186 | /* confdefs.h. */ | |
3187 | _ACEOF | |
3188 | cat confdefs.h >>conftest.$ac_ext | |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
3191 | $ac_declaration | |
3192 | int | |
3193 | main () | |
3194 | { | |
3195 | exit (42); | |
3196 | ; | |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
3200 | rm -f conftest.$ac_objext | |
3201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3202 | (eval $ac_compile) 2>conftest.er1 | |
3203 | ac_status=$? | |
3204 | grep -v '^ *+' conftest.er1 >conftest.err | |
3205 | rm -f conftest.er1 | |
3206 | cat conftest.err >&5 | |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3208 | (exit $ac_status); } && | |
3209 | { ac_try='test -z "$ac_c_werror_flag" | |
3210 | || test ! -s conftest.err' | |
3211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3212 | (eval $ac_try) 2>&5 | |
3213 | ac_status=$? | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3215 | (exit $ac_status); }; } && | |
3216 | { ac_try='test -s conftest.$ac_objext' | |
3217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3218 | (eval $ac_try) 2>&5 | |
3219 | ac_status=$? | |
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3221 | (exit $ac_status); }; }; then | |
3222 | break | |
3223 | else | |
3224 | echo "$as_me: failed program was:" >&5 | |
3225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3226 | ||
3227 | fi | |
3228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3229 | done | |
3230 | rm -f conftest* | |
3231 | if test -n "$ac_declaration"; then | |
3232 | echo '#ifdef __cplusplus' >>confdefs.h | |
3233 | echo $ac_declaration >>confdefs.h | |
3234 | echo '#endif' >>confdefs.h | |
3235 | fi | |
3236 | ||
3237 | else | |
3238 | echo "$as_me: failed program was:" >&5 | |
3239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3240 | ||
3241 | fi | |
3242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3243 | ac_ext=c | |
3244 | ac_cpp='$CPP $CPPFLAGS' | |
3245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3248 | DEPDIR="${am__leading_dot}deps" | |
3249 | ||
3250 | ac_config_commands="$ac_config_commands depfiles" | |
3251 | ||
3252 | ||
3253 | am_make=${MAKE-make} | |
3254 | cat > confinc << 'END' | |
3255 | am__doit: | |
3256 | @echo done | |
3257 | .PHONY: am__doit | |
3258 | END | |
3259 | # If we don't find an include directive, just comment out the code. | |
3260 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3261 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
3262 | am__include="#" | |
3263 | am__quote= | |
3264 | _am_result=none | |
3265 | # First try GNU make style include. | |
3266 | echo "include confinc" > confmf | |
3267 | # We grep out `Entering directory' and `Leaving directory' | |
3268 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3269 | # In particular we don't look at `^make:' because GNU make might | |
3270 | # be invoked under some other name (usually "gmake"), in which | |
3271 | # case it prints its new name instead of `make'. | |
3272 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3273 | am__include=include | |
3274 | am__quote= | |
3275 | _am_result=GNU | |
3276 | fi | |
3277 | # Now try BSD make style include. | |
3278 | if test "$am__include" = "#"; then | |
3279 | echo '.include "confinc"' > confmf | |
3280 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3281 | am__include=.include | |
3282 | am__quote="\"" | |
3283 | _am_result=BSD | |
3284 | fi | |
3285 | fi | |
3286 | ||
3287 | ||
3288 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3289 | echo "${ECHO_T}$_am_result" >&6 | |
3290 | rm -f confinc confmf | |
3291 | ||
3292 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3293 | if test "${enable_dependency_tracking+set}" = set; then | |
3294 | enableval="$enable_dependency_tracking" | |
3295 | ||
3296 | fi; | |
3297 | if test "x$enable_dependency_tracking" != xno; then | |
3298 | am_depcomp="$ac_aux_dir/depcomp" | |
3299 | AMDEPBACKSLASH='\' | |
3300 | fi | |
3301 | ||
3302 | ||
3303 | if test "x$enable_dependency_tracking" != xno; then | |
3304 | AMDEP_TRUE= | |
3305 | AMDEP_FALSE='#' | |
3306 | else | |
3307 | AMDEP_TRUE='#' | |
3308 | AMDEP_FALSE= | |
3309 | fi | |
3310 | ||
3311 | ||
3312 | ||
3313 | ||
3314 | depcc="$CC" am_compiler_list= | |
3315 | ||
3316 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3317 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3318 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3320 | else | |
3321 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3322 | # We make a subdir and do the tests there. Otherwise we can end up | |
3323 | # making bogus files that we don't know about and never remove. For | |
3324 | # instance it was reported that on HP-UX the gcc test will end up | |
3325 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3326 | # in D'. | |
3327 | mkdir conftest.dir | |
3328 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3329 | # using a relative directory. | |
3330 | cp "$am_depcomp" conftest.dir | |
3331 | cd conftest.dir | |
3332 | # We will build objects and dependencies in a subdirectory because | |
3333 | # it helps to detect inapplicable dependency modes. For instance | |
3334 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3335 | # side effect of compilation, but ICC will put the dependencies in | |
3336 | # the current directory while Tru64 will put them in the object | |
3337 | # directory. | |
3338 | mkdir sub | |
3339 | ||
3340 | am_cv_CC_dependencies_compiler_type=none | |
3341 | if test "$am_compiler_list" = ""; then | |
3342 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3343 | fi | |
3344 | for depmode in $am_compiler_list; do | |
3345 | # Setup a source with many dependencies, because some compilers | |
3346 | # like to wrap large dependency lists on column 80 (with \), and | |
3347 | # we should not choose a depcomp mode which is confused by this. | |
3348 | # | |
3349 | # We need to recreate these files for each test, as the compiler may | |
3350 | # overwrite some of them when testing with obscure command lines. | |
3351 | # This happens at least with the AIX C compiler. | |
3352 | : > sub/conftest.c | |
3353 | for i in 1 2 3 4 5 6; do | |
3354 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3355 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3356 | # Solaris 8's {/usr,}/bin/sh. | |
3357 | touch sub/conftst$i.h | |
3358 | done | |
3359 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3360 | ||
3361 | case $depmode in | |
3362 | nosideeffect) | |
3363 | # after this tag, mechanisms are not by side-effect, so they'll | |
3364 | # only be used when explicitly requested | |
3365 | if test "x$enable_dependency_tracking" = xyes; then | |
3366 | continue | |
3367 | else | |
3368 | break | |
3369 | fi | |
3370 | ;; | |
3371 | none) break ;; | |
3372 | esac | |
3373 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3374 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3375 | # handle `-M -o', and we need to detect this. | |
3376 | if depmode=$depmode \ | |
3377 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3378 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3379 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3380 | >/dev/null 2>conftest.err && | |
3381 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3382 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3383 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3384 | # icc doesn't choke on unknown options, it will just issue warnings | |
3385 | # or remarks (even with -Werror). So we grep stderr for any message | |
3386 | # that says an option was ignored or not supported. | |
3387 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3388 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3389 | # The diagnosis changed in icc 8.0: | |
3390 | # icc: Command line remark: option '-MP' not supported | |
3391 | if (grep 'ignoring option' conftest.err || | |
3392 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3393 | am_cv_CC_dependencies_compiler_type=$depmode | |
3394 | break | |
3395 | fi | |
3396 | fi | |
3397 | done | |
3398 | ||
3399 | cd .. | |
3400 | rm -rf conftest.dir | |
3401 | else | |
3402 | am_cv_CC_dependencies_compiler_type=none | |
3403 | fi | |
3404 | ||
3405 | fi | |
3406 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3407 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3408 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3409 | ||
3410 | ||
3411 | ||
3412 | if | |
3413 | test "x$enable_dependency_tracking" != xno \ | |
3414 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3415 | am__fastdepCC_TRUE= | |
3416 | am__fastdepCC_FALSE='#' | |
3417 | else | |
3418 | am__fastdepCC_TRUE='#' | |
3419 | am__fastdepCC_FALSE= | |
3420 | fi | |
3421 | ||
3422 | ||
3423 | # Check whether --enable-shared or --disable-shared was given. | |
3424 | if test "${enable_shared+set}" = set; then | |
3425 | enableval="$enable_shared" | |
3426 | p=${PACKAGE-default} | |
3427 | case $enableval in | |
3428 | yes) enable_shared=yes ;; | |
3429 | no) enable_shared=no ;; | |
3430 | *) | |
3431 | enable_shared=no | |
3432 | # Look at the argument we got. We use all the common list separators. | |
3433 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3434 | for pkg in $enableval; do | |
3435 | IFS="$lt_save_ifs" | |
3436 | if test "X$pkg" = "X$p"; then | |
3437 | enable_shared=yes | |
3438 | fi | |
3439 | done | |
3440 | IFS="$lt_save_ifs" | |
3441 | ;; | |
3442 | esac | |
3443 | else | |
3444 | enable_shared=yes | |
3445 | fi; | |
3446 | ||
3447 | # Check whether --enable-static or --disable-static was given. | |
3448 | if test "${enable_static+set}" = set; then | |
3449 | enableval="$enable_static" | |
3450 | p=${PACKAGE-default} | |
3451 | case $enableval in | |
3452 | yes) enable_static=yes ;; | |
3453 | no) enable_static=no ;; | |
3454 | *) | |
3455 | enable_static=no | |
3456 | # Look at the argument we got. We use all the common list separators. | |
3457 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3458 | for pkg in $enableval; do | |
3459 | IFS="$lt_save_ifs" | |
3460 | if test "X$pkg" = "X$p"; then | |
3461 | enable_static=yes | |
3462 | fi | |
3463 | done | |
3464 | IFS="$lt_save_ifs" | |
3465 | ;; | |
3466 | esac | |
3467 | else | |
3468 | enable_static=yes | |
3469 | fi; | |
3470 | ||
3471 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3472 | if test "${enable_fast_install+set}" = set; then | |
3473 | enableval="$enable_fast_install" | |
3474 | p=${PACKAGE-default} | |
3475 | case $enableval in | |
3476 | yes) enable_fast_install=yes ;; | |
3477 | no) enable_fast_install=no ;; | |
3478 | *) | |
3479 | enable_fast_install=no | |
3480 | # Look at the argument we got. We use all the common list separators. | |
3481 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3482 | for pkg in $enableval; do | |
3483 | IFS="$lt_save_ifs" | |
3484 | if test "X$pkg" = "X$p"; then | |
3485 | enable_fast_install=yes | |
3486 | fi | |
3487 | done | |
3488 | IFS="$lt_save_ifs" | |
3489 | ;; | |
3490 | esac | |
3491 | else | |
3492 | enable_fast_install=yes | |
3493 | fi; | |
3494 | ||
3495 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3496 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3497 | if test "${lt_cv_path_SED+set}" = set; then | |
3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3499 | else | |
3500 | # Loop through the user's path and test for sed and gsed. | |
3501 | # Then use that list of sed's as ones to test for truncation. | |
3502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3503 | for as_dir in $PATH | |
3504 | do | |
3505 | IFS=$as_save_IFS | |
3506 | test -z "$as_dir" && as_dir=. | |
3507 | for lt_ac_prog in sed gsed; do | |
3508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3509 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3510 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3511 | fi | |
3512 | done | |
3513 | done | |
3514 | done | |
3515 | IFS=$as_save_IFS | |
3516 | lt_ac_max=0 | |
3517 | lt_ac_count=0 | |
3518 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3519 | # along with /bin/sed that truncates output. | |
3520 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3521 | test ! -f $lt_ac_sed && continue | |
3522 | cat /dev/null > conftest.in | |
3523 | lt_ac_count=0 | |
3524 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3525 | # Check for GNU sed and select it if it is found. | |
3526 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3527 | lt_cv_path_SED=$lt_ac_sed | |
3528 | break | |
3529 | fi | |
3530 | while true; do | |
3531 | cat conftest.in conftest.in >conftest.tmp | |
3532 | mv conftest.tmp conftest.in | |
3533 | cp conftest.in conftest.nl | |
3534 | echo >>conftest.nl | |
3535 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3536 | cmp -s conftest.out conftest.nl || break | |
3537 | # 10000 chars as input seems more than enough | |
3538 | test $lt_ac_count -gt 10 && break | |
3539 | lt_ac_count=`expr $lt_ac_count + 1` | |
3540 | if test $lt_ac_count -gt $lt_ac_max; then | |
3541 | lt_ac_max=$lt_ac_count | |
3542 | lt_cv_path_SED=$lt_ac_sed | |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | ||
3547 | fi | |
3548 | ||
3549 | SED=$lt_cv_path_SED | |
3550 | ||
3551 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3552 | echo "${ECHO_T}$SED" >&6 | |
3553 | ||
3554 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3555 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3556 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3558 | else | |
3559 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3560 | then ac_cv_prog_egrep='grep -E' | |
3561 | else ac_cv_prog_egrep='egrep' | |
3562 | fi | |
3563 | fi | |
3564 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3565 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3566 | EGREP=$ac_cv_prog_egrep | |
3567 | ||
3568 | ||
3569 | ||
3570 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3571 | if test "${with_gnu_ld+set}" = set; then | |
3572 | withval="$with_gnu_ld" | |
3573 | test "$withval" = no || with_gnu_ld=yes | |
3574 | else | |
3575 | with_gnu_ld=no | |
3576 | fi; | |
3577 | ac_prog=ld | |
3578 | if test "$GCC" = yes; then | |
3579 | # Check if gcc -print-prog-name=ld gives a path. | |
3580 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3581 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3582 | case $host in | |
3583 | *-*-mingw*) | |
3584 | # gcc leaves a trailing carriage return which upsets mingw | |
3585 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3586 | *) | |
3587 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3588 | esac | |
3589 | case $ac_prog in | |
3590 | # Accept absolute paths. | |
3591 | [\\/]* | ?:[\\/]*) | |
3592 | re_direlt='/[^/][^/]*/\.\./' | |
3593 | # Canonicalize the pathname of ld | |
3594 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3595 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3596 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3597 | done | |
3598 | test -z "$LD" && LD="$ac_prog" | |
3599 | ;; | |
3600 | "") | |
3601 | # If it fails, then pretend we aren't using GCC. | |
3602 | ac_prog=ld | |
3603 | ;; | |
3604 | *) | |
3605 | # If it is relative, then search for the first ld in PATH. | |
3606 | with_gnu_ld=unknown | |
3607 | ;; | |
3608 | esac | |
3609 | elif test "$with_gnu_ld" = yes; then | |
3610 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3611 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3612 | else | |
3613 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3614 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3615 | fi | |
3616 | if test "${lt_cv_path_LD+set}" = set; then | |
3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3618 | else | |
3619 | if test -z "$LD"; then | |
3620 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3621 | for ac_dir in $PATH; do | |
3622 | IFS="$lt_save_ifs" | |
3623 | test -z "$ac_dir" && ac_dir=. | |
3624 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3625 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3626 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3627 | # but apparently some variants of GNU ld only accept -v. | |
3628 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3629 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3630 | *GNU* | *'with BFD'*) | |
3631 | test "$with_gnu_ld" != no && break | |
3632 | ;; | |
3633 | *) | |
3634 | test "$with_gnu_ld" != yes && break | |
3635 | ;; | |
3636 | esac | |
3637 | fi | |
3638 | done | |
3639 | IFS="$lt_save_ifs" | |
3640 | else | |
3641 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3642 | fi | |
3643 | fi | |
3644 | ||
3645 | LD="$lt_cv_path_LD" | |
3646 | if test -n "$LD"; then | |
3647 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3648 | echo "${ECHO_T}$LD" >&6 | |
3649 | else | |
3650 | echo "$as_me:$LINENO: result: no" >&5 | |
3651 | echo "${ECHO_T}no" >&6 | |
3652 | fi | |
3653 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3654 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3655 | { (exit 1); exit 1; }; } | |
3656 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3657 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3658 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3660 | else | |
3661 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3662 | case `$LD -v 2>&1 </dev/null` in | |
3663 | *GNU* | *'with BFD'*) | |
3664 | lt_cv_prog_gnu_ld=yes | |
3665 | ;; | |
3666 | *) | |
3667 | lt_cv_prog_gnu_ld=no | |
3668 | ;; | |
3669 | esac | |
3670 | fi | |
3671 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3672 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3673 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3674 | ||
3675 | ||
3676 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3677 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3678 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3680 | else | |
3681 | lt_cv_ld_reload_flag='-r' | |
3682 | fi | |
3683 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3684 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3685 | reload_flag=$lt_cv_ld_reload_flag | |
3686 | case $reload_flag in | |
3687 | "" | " "*) ;; | |
3688 | *) reload_flag=" $reload_flag" ;; | |
3689 | esac | |
3690 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3691 | case $host_os in | |
3692 | darwin*) | |
3693 | if test "$GCC" = yes; then | |
3694 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
3695 | else | |
3696 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3697 | fi | |
3698 | ;; | |
3699 | esac | |
3700 | ||
3701 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3702 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3703 | if test "${lt_cv_path_NM+set}" = set; then | |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3705 | else | |
3706 | if test -n "$NM"; then | |
3707 | # Let the user override the test. | |
3708 | lt_cv_path_NM="$NM" | |
3709 | else | |
3710 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3711 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3712 | lt_nm_to_check="$lt_nm_to_check nm" | |
3713 | fi | |
3714 | for lt_tmp_nm in $lt_nm_to_check; do | |
3715 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3716 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3717 | IFS="$lt_save_ifs" | |
3718 | test -z "$ac_dir" && ac_dir=. | |
3719 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3720 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3721 | # Check to see if the nm accepts a BSD-compat flag. | |
3722 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3723 | # nm: unknown option "B" ignored | |
3724 | # Tru64's nm complains that /dev/null is an invalid object file | |
3725 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3726 | */dev/null* | *'Invalid file or object type'*) | |
3727 | lt_cv_path_NM="$tmp_nm -B" | |
3728 | break | |
3729 | ;; | |
3730 | *) | |
3731 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3732 | */dev/null*) | |
3733 | lt_cv_path_NM="$tmp_nm -p" | |
3734 | break | |
3735 | ;; | |
3736 | *) | |
3737 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3738 | continue # so that we can try to find one that supports BSD flags | |
3739 | ;; | |
3740 | esac | |
3741 | ;; | |
3742 | esac | |
3743 | fi | |
3744 | done | |
3745 | IFS="$lt_save_ifs" | |
3746 | done | |
3747 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3748 | fi | |
3749 | fi | |
3750 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3751 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3752 | NM="$lt_cv_path_NM" | |
3753 | ||
3754 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3755 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3756 | LN_S=$as_ln_s | |
3757 | if test "$LN_S" = "ln -s"; then | |
3758 | echo "$as_me:$LINENO: result: yes" >&5 | |
3759 | echo "${ECHO_T}yes" >&6 | |
3760 | else | |
3761 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3762 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3763 | fi | |
3764 | ||
3765 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
3766 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
3767 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3769 | else | |
3770 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3771 | lt_cv_file_magic_test_file= | |
3772 | lt_cv_deplibs_check_method='unknown' | |
3773 | # Need to set the preceding variable on all platforms that support | |
3774 | # interlibrary dependencies. | |
3775 | # 'none' -- dependencies not supported. | |
3776 | # `unknown' -- same as none, but documents that we really don't know. | |
3777 | # 'pass_all' -- all dependencies passed with no checks. | |
3778 | # 'test_compile' -- check by making test program. | |
3779 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3780 | # which responds to the $file_magic_cmd with a given extended regex. | |
3781 | # If you have `file' or equivalent on your system and you're not sure | |
3782 | # whether `pass_all' will *always* work, you probably want this one. | |
3783 | ||
3784 | case $host_os in | |
3785 | aix4* | aix5*) | |
3786 | lt_cv_deplibs_check_method=pass_all | |
3787 | ;; | |
3788 | ||
3789 | beos*) | |
3790 | lt_cv_deplibs_check_method=pass_all | |
3791 | ;; | |
3792 | ||
3793 | bsdi[45]*) | |
3794 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3795 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3796 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3797 | ;; | |
3798 | ||
3799 | cygwin*) | |
3800 | # func_win32_libid is a shell function defined in ltmain.sh | |
3801 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3802 | lt_cv_file_magic_cmd='func_win32_libid' | |
3803 | ;; | |
3804 | ||
3805 | mingw* | pw32*) | |
3806 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
3807 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
3808 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3809 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3810 | ;; | |
3811 | ||
3812 | darwin* | rhapsody*) | |
3813 | lt_cv_deplibs_check_method=pass_all | |
3814 | ;; | |
3815 | ||
3816 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
3817 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3818 | case $host_cpu in | |
3819 | i*86 ) | |
3820 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3821 | # Let's accept both of them until this is cleared up. | |
3822 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
3823 | lt_cv_file_magic_cmd=/usr/bin/file | |
3824 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3825 | ;; | |
3826 | esac | |
3827 | else | |
3828 | lt_cv_deplibs_check_method=pass_all | |
3829 | fi | |
3830 | ;; | |
3831 | ||
3832 | gnu*) | |
3833 | lt_cv_deplibs_check_method=pass_all | |
3834 | ;; | |
3835 | ||
3836 | hpux10.20* | hpux11*) | |
3837 | lt_cv_file_magic_cmd=/usr/bin/file | |
3838 | case $host_cpu in | |
3839 | ia64*) | |
3840 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3841 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3842 | ;; | |
3843 | hppa*64*) | |
3844 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
3845 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3846 | ;; | |
3847 | *) | |
3848 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3849 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3850 | ;; | |
3851 | esac | |
3852 | ;; | |
3853 | ||
3854 | interix3*) | |
3855 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
3856 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
3857 | ;; | |
3858 | ||
3859 | irix5* | irix6* | nonstopux*) | |
3860 | case $LD in | |
3861 | *-32|*"-32 ") libmagic=32-bit;; | |
3862 | *-n32|*"-n32 ") libmagic=N32;; | |
3863 | *-64|*"-64 ") libmagic=64-bit;; | |
3864 | *) libmagic=never-match;; | |
3865 | esac | |
3866 | lt_cv_deplibs_check_method=pass_all | |
3867 | ;; | |
3868 | ||
3869 | # This must be Linux ELF. | |
3870 | linux*) | |
3871 | lt_cv_deplibs_check_method=pass_all | |
3872 | ;; | |
3873 | ||
3874 | netbsd*) | |
3875 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3876 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3877 | else | |
3878 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3879 | fi | |
3880 | ;; | |
3881 | ||
3882 | newos6*) | |
3883 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3884 | lt_cv_file_magic_cmd=/usr/bin/file | |
3885 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3886 | ;; | |
3887 | ||
3888 | nto-qnx*) | |
3889 | lt_cv_deplibs_check_method=unknown | |
3890 | ;; | |
3891 | ||
3892 | openbsd*) | |
3893 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3894 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
3895 | else | |
3896 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3897 | fi | |
3898 | ;; | |
3899 | ||
3900 | osf3* | osf4* | osf5*) | |
3901 | lt_cv_deplibs_check_method=pass_all | |
3902 | ;; | |
3903 | ||
3904 | solaris*) | |
3905 | lt_cv_deplibs_check_method=pass_all | |
3906 | ;; | |
3907 | ||
3908 | sysv4 | sysv4.3*) | |
3909 | case $host_vendor in | |
3910 | motorola) | |
3911 | 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]' | |
3912 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3913 | ;; | |
3914 | ncr) | |
3915 | lt_cv_deplibs_check_method=pass_all | |
3916 | ;; | |
3917 | sequent) | |
3918 | lt_cv_file_magic_cmd='/bin/file' | |
3919 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3920 | ;; | |
3921 | sni) | |
3922 | lt_cv_file_magic_cmd='/bin/file' | |
3923 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3924 | lt_cv_file_magic_test_file=/lib/libc.so | |
3925 | ;; | |
3926 | siemens) | |
3927 | lt_cv_deplibs_check_method=pass_all | |
3928 | ;; | |
3929 | pc) | |
3930 | lt_cv_deplibs_check_method=pass_all | |
3931 | ;; | |
3932 | esac | |
3933 | ;; | |
3934 | ||
3935 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3936 | lt_cv_deplibs_check_method=pass_all | |
3937 | ;; | |
3938 | esac | |
3939 | ||
3940 | fi | |
3941 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3942 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3943 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3944 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3945 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3946 | ||
3947 | ||
3948 | ||
3949 | ||
3950 | # If no C compiler was specified, use CC. | |
3951 | LTCC=${LTCC-"$CC"} | |
3952 | ||
3953 | # If no C compiler flags were specified, use CFLAGS. | |
3954 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
3955 | ||
3956 | # Allow CC to be a program name with arguments. | |
3957 | compiler=$CC | |
3958 | ||
3959 | ||
3960 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3961 | if test "${enable_libtool_lock+set}" = set; then | |
3962 | enableval="$enable_libtool_lock" | |
3963 | ||
3964 | fi; | |
3965 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3966 | ||
3967 | # Some flags need to be propagated to the compiler or linker for good | |
3968 | # libtool support. | |
3969 | case $host in | |
3970 | ia64-*-hpux*) | |
3971 | # Find out which ABI we are using. | |
3972 | echo 'int i;' > conftest.$ac_ext | |
3973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3974 | (eval $ac_compile) 2>&5 | |
3975 | ac_status=$? | |
3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3977 | (exit $ac_status); }; then | |
3978 | case `/usr/bin/file conftest.$ac_objext` in | |
3979 | *ELF-32*) | |
3980 | HPUX_IA64_MODE="32" | |
3981 | ;; | |
3982 | *ELF-64*) | |
3983 | HPUX_IA64_MODE="64" | |
3984 | ;; | |
3985 | esac | |
3986 | fi | |
3987 | rm -rf conftest* | |
3988 | ;; | |
3989 | *-*-irix6*) | |
3990 | # Find out which ABI we are using. | |
5e9b5d83 | 3991 | echo '#line 3991 "configure"' > conftest.$ac_ext |
bf9f3bac | 3992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3993 | (eval $ac_compile) 2>&5 | |
3994 | ac_status=$? | |
3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3996 | (exit $ac_status); }; then | |
3997 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
3998 | case `/usr/bin/file conftest.$ac_objext` in | |
3999 | *32-bit*) | |
4000 | LD="${LD-ld} -melf32bsmip" | |
4001 | ;; | |
4002 | *N32*) | |
4003 | LD="${LD-ld} -melf32bmipn32" | |
4004 | ;; | |
4005 | *64-bit*) | |
4006 | LD="${LD-ld} -melf64bmip" | |
4007 | ;; | |
4008 | esac | |
4009 | else | |
4010 | case `/usr/bin/file conftest.$ac_objext` in | |
4011 | *32-bit*) | |
4012 | LD="${LD-ld} -32" | |
4013 | ;; | |
4014 | *N32*) | |
4015 | LD="${LD-ld} -n32" | |
4016 | ;; | |
4017 | *64-bit*) | |
4018 | LD="${LD-ld} -64" | |
4019 | ;; | |
4020 | esac | |
4021 | fi | |
4022 | fi | |
4023 | rm -rf conftest* | |
4024 | ;; | |
4025 | ||
4026 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4027 | # Find out which ABI we are using. | |
4028 | echo 'int i;' > conftest.$ac_ext | |
4029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4030 | (eval $ac_compile) 2>&5 | |
4031 | ac_status=$? | |
4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4033 | (exit $ac_status); }; then | |
4034 | case `/usr/bin/file conftest.o` in | |
4035 | *32-bit*) | |
4036 | case $host in | |
4037 | x86_64-*linux*) | |
4038 | LD="${LD-ld} -m elf_i386" | |
4039 | ;; | |
4040 | ppc64-*linux*|powerpc64-*linux*) | |
4041 | LD="${LD-ld} -m elf32ppclinux" | |
4042 | ;; | |
4043 | s390x-*linux*) | |
4044 | LD="${LD-ld} -m elf_s390" | |
4045 | ;; | |
4046 | sparc64-*linux*) | |
4047 | LD="${LD-ld} -m elf32_sparc" | |
4048 | ;; | |
4049 | esac | |
4050 | ;; | |
4051 | *64-bit*) | |
4052 | case $host in | |
4053 | x86_64-*linux*) | |
4054 | LD="${LD-ld} -m elf_x86_64" | |
4055 | ;; | |
4056 | ppc*-*linux*|powerpc*-*linux*) | |
4057 | LD="${LD-ld} -m elf64ppc" | |
4058 | ;; | |
4059 | s390*-*linux*) | |
4060 | LD="${LD-ld} -m elf64_s390" | |
4061 | ;; | |
4062 | sparc*-*linux*) | |
4063 | LD="${LD-ld} -m elf64_sparc" | |
4064 | ;; | |
4065 | esac | |
4066 | ;; | |
4067 | esac | |
4068 | fi | |
4069 | rm -rf conftest* | |
4070 | ;; | |
4071 | ||
4072 | *-*-sco3.2v5*) | |
4073 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4074 | SAVE_CFLAGS="$CFLAGS" | |
4075 | CFLAGS="$CFLAGS -belf" | |
4076 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4077 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4078 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4080 | else | |
4081 | ac_ext=c | |
4082 | ac_cpp='$CPP $CPPFLAGS' | |
4083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4086 | ||
4087 | cat >conftest.$ac_ext <<_ACEOF | |
4088 | /* confdefs.h. */ | |
4089 | _ACEOF | |
4090 | cat confdefs.h >>conftest.$ac_ext | |
4091 | cat >>conftest.$ac_ext <<_ACEOF | |
4092 | /* end confdefs.h. */ | |
4093 | ||
4094 | int | |
4095 | main () | |
4096 | { | |
4097 | ||
4098 | ; | |
4099 | return 0; | |
4100 | } | |
4101 | _ACEOF | |
4102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4104 | (eval $ac_link) 2>conftest.er1 | |
4105 | ac_status=$? | |
4106 | grep -v '^ *+' conftest.er1 >conftest.err | |
4107 | rm -f conftest.er1 | |
4108 | cat conftest.err >&5 | |
4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4110 | (exit $ac_status); } && | |
4111 | { ac_try='test -z "$ac_c_werror_flag" | |
4112 | || test ! -s conftest.err' | |
4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4114 | (eval $ac_try) 2>&5 | |
4115 | ac_status=$? | |
4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4117 | (exit $ac_status); }; } && | |
4118 | { ac_try='test -s conftest$ac_exeext' | |
4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4120 | (eval $ac_try) 2>&5 | |
4121 | ac_status=$? | |
4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4123 | (exit $ac_status); }; }; then | |
4124 | lt_cv_cc_needs_belf=yes | |
4125 | else | |
4126 | echo "$as_me: failed program was:" >&5 | |
4127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4128 | ||
4129 | lt_cv_cc_needs_belf=no | |
4130 | fi | |
4131 | rm -f conftest.err conftest.$ac_objext \ | |
4132 | conftest$ac_exeext conftest.$ac_ext | |
4133 | ac_ext=c | |
4134 | ac_cpp='$CPP $CPPFLAGS' | |
4135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4138 | ||
4139 | fi | |
4140 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4141 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4142 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4143 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4144 | CFLAGS="$SAVE_CFLAGS" | |
4145 | fi | |
4146 | ;; | |
4147 | sparc*-*solaris*) | |
4148 | # Find out which ABI we are using. | |
4149 | echo 'int i;' > conftest.$ac_ext | |
4150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4151 | (eval $ac_compile) 2>&5 | |
4152 | ac_status=$? | |
4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4154 | (exit $ac_status); }; then | |
4155 | case `/usr/bin/file conftest.o` in | |
4156 | *64-bit*) | |
4157 | case $lt_cv_prog_gnu_ld in | |
4158 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4159 | *) LD="${LD-ld} -64" ;; | |
4160 | esac | |
4161 | ;; | |
4162 | esac | |
4163 | fi | |
4164 | rm -rf conftest* | |
4165 | ;; | |
4166 | ||
4167 | ||
4168 | esac | |
4169 | ||
4170 | need_locks="$enable_libtool_lock" | |
4171 | ||
4172 | ||
4173 | ac_ext=c | |
4174 | ac_cpp='$CPP $CPPFLAGS' | |
4175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4178 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4179 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4180 | # On Suns, sometimes $CPP names a directory. | |
4181 | if test -n "$CPP" && test -d "$CPP"; then | |
4182 | CPP= | |
4183 | fi | |
4184 | if test -z "$CPP"; then | |
4185 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4187 | else | |
4188 | # Double quotes because CPP needs to be expanded | |
4189 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4190 | do | |
4191 | ac_preproc_ok=false | |
4192 | for ac_c_preproc_warn_flag in '' yes | |
4193 | do | |
4194 | # Use a header file that comes with gcc, so configuring glibc | |
4195 | # with a fresh cross-compiler works. | |
4196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4197 | # <limits.h> exists even on freestanding compilers. | |
4198 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4199 | # not just through cpp. "Syntax error" is here to catch this case. | |
4200 | cat >conftest.$ac_ext <<_ACEOF | |
4201 | /* confdefs.h. */ | |
4202 | _ACEOF | |
4203 | cat confdefs.h >>conftest.$ac_ext | |
4204 | cat >>conftest.$ac_ext <<_ACEOF | |
4205 | /* end confdefs.h. */ | |
4206 | #ifdef __STDC__ | |
4207 | # include <limits.h> | |
4208 | #else | |
4209 | # include <assert.h> | |
4210 | #endif | |
4211 | Syntax error | |
4212 | _ACEOF | |
4213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4215 | ac_status=$? | |
4216 | grep -v '^ *+' conftest.er1 >conftest.err | |
4217 | rm -f conftest.er1 | |
4218 | cat conftest.err >&5 | |
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4220 | (exit $ac_status); } >/dev/null; then | |
4221 | if test -s conftest.err; then | |
4222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4224 | else | |
4225 | ac_cpp_err= | |
4226 | fi | |
4227 | else | |
4228 | ac_cpp_err=yes | |
4229 | fi | |
4230 | if test -z "$ac_cpp_err"; then | |
4231 | : | |
4232 | else | |
4233 | echo "$as_me: failed program was:" >&5 | |
4234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4235 | ||
4236 | # Broken: fails on valid input. | |
4237 | continue | |
4238 | fi | |
4239 | rm -f conftest.err conftest.$ac_ext | |
4240 | ||
4241 | # OK, works on sane cases. Now check whether non-existent headers | |
4242 | # can be detected and how. | |
4243 | cat >conftest.$ac_ext <<_ACEOF | |
4244 | /* confdefs.h. */ | |
4245 | _ACEOF | |
4246 | cat confdefs.h >>conftest.$ac_ext | |
4247 | cat >>conftest.$ac_ext <<_ACEOF | |
4248 | /* end confdefs.h. */ | |
4249 | #include <ac_nonexistent.h> | |
4250 | _ACEOF | |
4251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4253 | ac_status=$? | |
4254 | grep -v '^ *+' conftest.er1 >conftest.err | |
4255 | rm -f conftest.er1 | |
4256 | cat conftest.err >&5 | |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4258 | (exit $ac_status); } >/dev/null; then | |
4259 | if test -s conftest.err; then | |
4260 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4262 | else | |
4263 | ac_cpp_err= | |
4264 | fi | |
4265 | else | |
4266 | ac_cpp_err=yes | |
4267 | fi | |
4268 | if test -z "$ac_cpp_err"; then | |
4269 | # Broken: success on invalid input. | |
4270 | continue | |
4271 | else | |
4272 | echo "$as_me: failed program was:" >&5 | |
4273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4274 | ||
4275 | # Passes both tests. | |
4276 | ac_preproc_ok=: | |
4277 | break | |
4278 | fi | |
4279 | rm -f conftest.err conftest.$ac_ext | |
4280 | ||
4281 | done | |
4282 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4283 | rm -f conftest.err conftest.$ac_ext | |
4284 | if $ac_preproc_ok; then | |
4285 | break | |
4286 | fi | |
4287 | ||
4288 | done | |
4289 | ac_cv_prog_CPP=$CPP | |
4290 | ||
4291 | fi | |
4292 | CPP=$ac_cv_prog_CPP | |
4293 | else | |
4294 | ac_cv_prog_CPP=$CPP | |
4295 | fi | |
4296 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4297 | echo "${ECHO_T}$CPP" >&6 | |
4298 | ac_preproc_ok=false | |
4299 | for ac_c_preproc_warn_flag in '' yes | |
4300 | do | |
4301 | # Use a header file that comes with gcc, so configuring glibc | |
4302 | # with a fresh cross-compiler works. | |
4303 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4304 | # <limits.h> exists even on freestanding compilers. | |
4305 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4306 | # not just through cpp. "Syntax error" is here to catch this case. | |
4307 | cat >conftest.$ac_ext <<_ACEOF | |
4308 | /* confdefs.h. */ | |
4309 | _ACEOF | |
4310 | cat confdefs.h >>conftest.$ac_ext | |
4311 | cat >>conftest.$ac_ext <<_ACEOF | |
4312 | /* end confdefs.h. */ | |
4313 | #ifdef __STDC__ | |
4314 | # include <limits.h> | |
4315 | #else | |
4316 | # include <assert.h> | |
4317 | #endif | |
4318 | Syntax error | |
4319 | _ACEOF | |
4320 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4322 | ac_status=$? | |
4323 | grep -v '^ *+' conftest.er1 >conftest.err | |
4324 | rm -f conftest.er1 | |
4325 | cat conftest.err >&5 | |
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4327 | (exit $ac_status); } >/dev/null; then | |
4328 | if test -s conftest.err; then | |
4329 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4330 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4331 | else | |
4332 | ac_cpp_err= | |
4333 | fi | |
4334 | else | |
4335 | ac_cpp_err=yes | |
4336 | fi | |
4337 | if test -z "$ac_cpp_err"; then | |
4338 | : | |
4339 | else | |
4340 | echo "$as_me: failed program was:" >&5 | |
4341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4342 | ||
4343 | # Broken: fails on valid input. | |
4344 | continue | |
4345 | fi | |
4346 | rm -f conftest.err conftest.$ac_ext | |
4347 | ||
4348 | # OK, works on sane cases. Now check whether non-existent headers | |
4349 | # can be detected and how. | |
4350 | cat >conftest.$ac_ext <<_ACEOF | |
4351 | /* confdefs.h. */ | |
4352 | _ACEOF | |
4353 | cat confdefs.h >>conftest.$ac_ext | |
4354 | cat >>conftest.$ac_ext <<_ACEOF | |
4355 | /* end confdefs.h. */ | |
4356 | #include <ac_nonexistent.h> | |
4357 | _ACEOF | |
4358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4360 | ac_status=$? | |
4361 | grep -v '^ *+' conftest.er1 >conftest.err | |
4362 | rm -f conftest.er1 | |
4363 | cat conftest.err >&5 | |
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4365 | (exit $ac_status); } >/dev/null; then | |
4366 | if test -s conftest.err; then | |
4367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4368 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4369 | else | |
4370 | ac_cpp_err= | |
4371 | fi | |
4372 | else | |
4373 | ac_cpp_err=yes | |
4374 | fi | |
4375 | if test -z "$ac_cpp_err"; then | |
4376 | # Broken: success on invalid input. | |
4377 | continue | |
4378 | else | |
4379 | echo "$as_me: failed program was:" >&5 | |
4380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4381 | ||
4382 | # Passes both tests. | |
4383 | ac_preproc_ok=: | |
4384 | break | |
4385 | fi | |
4386 | rm -f conftest.err conftest.$ac_ext | |
4387 | ||
4388 | done | |
4389 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4390 | rm -f conftest.err conftest.$ac_ext | |
4391 | if $ac_preproc_ok; then | |
4392 | : | |
4393 | else | |
4394 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4395 | See \`config.log' for more details." >&5 | |
4396 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4397 | See \`config.log' for more details." >&2;} | |
4398 | { (exit 1); exit 1; }; } | |
4399 | fi | |
4400 | ||
4401 | ac_ext=c | |
4402 | ac_cpp='$CPP $CPPFLAGS' | |
4403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4406 | ||
4407 | ||
4408 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4409 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4410 | if test "${ac_cv_header_stdc+set}" = set; then | |
4411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4412 | else | |
4413 | cat >conftest.$ac_ext <<_ACEOF | |
4414 | /* confdefs.h. */ | |
4415 | _ACEOF | |
4416 | cat confdefs.h >>conftest.$ac_ext | |
4417 | cat >>conftest.$ac_ext <<_ACEOF | |
4418 | /* end confdefs.h. */ | |
4419 | #include <stdlib.h> | |
4420 | #include <stdarg.h> | |
4421 | #include <string.h> | |
4422 | #include <float.h> | |
4423 | ||
4424 | int | |
4425 | main () | |
4426 | { | |
4427 | ||
4428 | ; | |
4429 | return 0; | |
4430 | } | |
4431 | _ACEOF | |
4432 | rm -f conftest.$ac_objext | |
4433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4434 | (eval $ac_compile) 2>conftest.er1 | |
4435 | ac_status=$? | |
4436 | grep -v '^ *+' conftest.er1 >conftest.err | |
4437 | rm -f conftest.er1 | |
4438 | cat conftest.err >&5 | |
4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4440 | (exit $ac_status); } && | |
4441 | { ac_try='test -z "$ac_c_werror_flag" | |
4442 | || test ! -s conftest.err' | |
4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4444 | (eval $ac_try) 2>&5 | |
4445 | ac_status=$? | |
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4447 | (exit $ac_status); }; } && | |
4448 | { ac_try='test -s conftest.$ac_objext' | |
4449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4450 | (eval $ac_try) 2>&5 | |
4451 | ac_status=$? | |
4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 | (exit $ac_status); }; }; then | |
4454 | ac_cv_header_stdc=yes | |
4455 | else | |
4456 | echo "$as_me: failed program was:" >&5 | |
4457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4458 | ||
4459 | ac_cv_header_stdc=no | |
4460 | fi | |
4461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4462 | ||
4463 | if test $ac_cv_header_stdc = yes; then | |
4464 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4465 | cat >conftest.$ac_ext <<_ACEOF | |
4466 | /* confdefs.h. */ | |
4467 | _ACEOF | |
4468 | cat confdefs.h >>conftest.$ac_ext | |
4469 | cat >>conftest.$ac_ext <<_ACEOF | |
4470 | /* end confdefs.h. */ | |
4471 | #include <string.h> | |
4472 | ||
4473 | _ACEOF | |
4474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4475 | $EGREP "memchr" >/dev/null 2>&1; then | |
4476 | : | |
4477 | else | |
4478 | ac_cv_header_stdc=no | |
4479 | fi | |
4480 | rm -f conftest* | |
4481 | ||
4482 | fi | |
4483 | ||
4484 | if test $ac_cv_header_stdc = yes; then | |
4485 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4486 | cat >conftest.$ac_ext <<_ACEOF | |
4487 | /* confdefs.h. */ | |
4488 | _ACEOF | |
4489 | cat confdefs.h >>conftest.$ac_ext | |
4490 | cat >>conftest.$ac_ext <<_ACEOF | |
4491 | /* end confdefs.h. */ | |
4492 | #include <stdlib.h> | |
4493 | ||
4494 | _ACEOF | |
4495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4496 | $EGREP "free" >/dev/null 2>&1; then | |
4497 | : | |
4498 | else | |
4499 | ac_cv_header_stdc=no | |
4500 | fi | |
4501 | rm -f conftest* | |
4502 | ||
4503 | fi | |
4504 | ||
4505 | if test $ac_cv_header_stdc = yes; then | |
4506 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4507 | if test "$cross_compiling" = yes; then | |
4508 | : | |
4509 | else | |
4510 | cat >conftest.$ac_ext <<_ACEOF | |
4511 | /* confdefs.h. */ | |
4512 | _ACEOF | |
4513 | cat confdefs.h >>conftest.$ac_ext | |
4514 | cat >>conftest.$ac_ext <<_ACEOF | |
4515 | /* end confdefs.h. */ | |
4516 | #include <ctype.h> | |
4517 | #if ((' ' & 0x0FF) == 0x020) | |
4518 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4519 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4520 | #else | |
4521 | # define ISLOWER(c) \ | |
4522 | (('a' <= (c) && (c) <= 'i') \ | |
4523 | || ('j' <= (c) && (c) <= 'r') \ | |
4524 | || ('s' <= (c) && (c) <= 'z')) | |
4525 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4526 | #endif | |
4527 | ||
4528 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4529 | int | |
4530 | main () | |
4531 | { | |
4532 | int i; | |
4533 | for (i = 0; i < 256; i++) | |
4534 | if (XOR (islower (i), ISLOWER (i)) | |
4535 | || toupper (i) != TOUPPER (i)) | |
4536 | exit(2); | |
4537 | exit (0); | |
4538 | } | |
4539 | _ACEOF | |
4540 | rm -f conftest$ac_exeext | |
4541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4542 | (eval $ac_link) 2>&5 | |
4543 | ac_status=$? | |
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4547 | (eval $ac_try) 2>&5 | |
4548 | ac_status=$? | |
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4550 | (exit $ac_status); }; }; then | |
4551 | : | |
4552 | else | |
4553 | echo "$as_me: program exited with status $ac_status" >&5 | |
4554 | echo "$as_me: failed program was:" >&5 | |
4555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4556 | ||
4557 | ( exit $ac_status ) | |
4558 | ac_cv_header_stdc=no | |
4559 | fi | |
4560 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4561 | fi | |
4562 | fi | |
4563 | fi | |
4564 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4565 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4566 | if test $ac_cv_header_stdc = yes; then | |
4567 | ||
4568 | cat >>confdefs.h <<\_ACEOF | |
4569 | #define STDC_HEADERS 1 | |
4570 | _ACEOF | |
4571 | ||
4572 | fi | |
4573 | ||
4574 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4575 | ||
4576 | ||
4577 | ||
4578 | ||
4579 | ||
4580 | ||
4581 | ||
4582 | ||
4583 | ||
4584 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4585 | inttypes.h stdint.h unistd.h | |
4586 | do | |
4587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4592 | else | |
4593 | cat >conftest.$ac_ext <<_ACEOF | |
4594 | /* confdefs.h. */ | |
4595 | _ACEOF | |
4596 | cat confdefs.h >>conftest.$ac_ext | |
4597 | cat >>conftest.$ac_ext <<_ACEOF | |
4598 | /* end confdefs.h. */ | |
4599 | $ac_includes_default | |
4600 | ||
4601 | #include <$ac_header> | |
4602 | _ACEOF | |
4603 | rm -f conftest.$ac_objext | |
4604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4605 | (eval $ac_compile) 2>conftest.er1 | |
4606 | ac_status=$? | |
4607 | grep -v '^ *+' conftest.er1 >conftest.err | |
4608 | rm -f conftest.er1 | |
4609 | cat conftest.err >&5 | |
4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4611 | (exit $ac_status); } && | |
4612 | { ac_try='test -z "$ac_c_werror_flag" | |
4613 | || test ! -s conftest.err' | |
4614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4615 | (eval $ac_try) 2>&5 | |
4616 | ac_status=$? | |
4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4618 | (exit $ac_status); }; } && | |
4619 | { ac_try='test -s conftest.$ac_objext' | |
4620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4621 | (eval $ac_try) 2>&5 | |
4622 | ac_status=$? | |
4623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4624 | (exit $ac_status); }; }; then | |
4625 | eval "$as_ac_Header=yes" | |
4626 | else | |
4627 | echo "$as_me: failed program was:" >&5 | |
4628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4629 | ||
4630 | eval "$as_ac_Header=no" | |
4631 | fi | |
4632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4633 | fi | |
4634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4637 | cat >>confdefs.h <<_ACEOF | |
4638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4639 | _ACEOF | |
4640 | ||
4641 | fi | |
4642 | ||
4643 | done | |
4644 | ||
4645 | ||
4646 | ||
4647 | for ac_header in dlfcn.h | |
4648 | do | |
4649 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4655 | fi | |
4656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4658 | else | |
4659 | # Is the header compilable? | |
4660 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4661 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4662 | cat >conftest.$ac_ext <<_ACEOF | |
4663 | /* confdefs.h. */ | |
4664 | _ACEOF | |
4665 | cat confdefs.h >>conftest.$ac_ext | |
4666 | cat >>conftest.$ac_ext <<_ACEOF | |
4667 | /* end confdefs.h. */ | |
4668 | $ac_includes_default | |
4669 | #include <$ac_header> | |
4670 | _ACEOF | |
4671 | rm -f conftest.$ac_objext | |
4672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4673 | (eval $ac_compile) 2>conftest.er1 | |
4674 | ac_status=$? | |
4675 | grep -v '^ *+' conftest.er1 >conftest.err | |
4676 | rm -f conftest.er1 | |
4677 | cat conftest.err >&5 | |
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4679 | (exit $ac_status); } && | |
4680 | { ac_try='test -z "$ac_c_werror_flag" | |
4681 | || test ! -s conftest.err' | |
4682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4683 | (eval $ac_try) 2>&5 | |
4684 | ac_status=$? | |
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4686 | (exit $ac_status); }; } && | |
4687 | { ac_try='test -s conftest.$ac_objext' | |
4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4689 | (eval $ac_try) 2>&5 | |
4690 | ac_status=$? | |
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4692 | (exit $ac_status); }; }; then | |
4693 | ac_header_compiler=yes | |
4694 | else | |
4695 | echo "$as_me: failed program was:" >&5 | |
4696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4697 | ||
4698 | ac_header_compiler=no | |
4699 | fi | |
4700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4702 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4703 | ||
4704 | # Is the header present? | |
4705 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4706 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4707 | cat >conftest.$ac_ext <<_ACEOF | |
4708 | /* confdefs.h. */ | |
4709 | _ACEOF | |
4710 | cat confdefs.h >>conftest.$ac_ext | |
4711 | cat >>conftest.$ac_ext <<_ACEOF | |
4712 | /* end confdefs.h. */ | |
4713 | #include <$ac_header> | |
4714 | _ACEOF | |
4715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4717 | ac_status=$? | |
4718 | grep -v '^ *+' conftest.er1 >conftest.err | |
4719 | rm -f conftest.er1 | |
4720 | cat conftest.err >&5 | |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4722 | (exit $ac_status); } >/dev/null; then | |
4723 | if test -s conftest.err; then | |
4724 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4725 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4726 | else | |
4727 | ac_cpp_err= | |
4728 | fi | |
4729 | else | |
4730 | ac_cpp_err=yes | |
4731 | fi | |
4732 | if test -z "$ac_cpp_err"; then | |
4733 | ac_header_preproc=yes | |
4734 | else | |
4735 | echo "$as_me: failed program was:" >&5 | |
4736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4737 | ||
4738 | ac_header_preproc=no | |
4739 | fi | |
4740 | rm -f conftest.err conftest.$ac_ext | |
4741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4742 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4743 | ||
4744 | # So? What about this header? | |
4745 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4746 | yes:no: ) | |
4747 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4748 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4750 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4751 | ac_header_preproc=yes | |
4752 | ;; | |
4753 | no:yes:* ) | |
4754 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4755 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4756 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4757 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4758 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4759 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4760 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4761 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4763 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4764 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4765 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4766 | ( | |
4767 | cat <<\_ASBOX | |
4768 | ## ------------------------------------------ ## | |
4769 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4770 | ## ------------------------------------------ ## | |
4771 | _ASBOX | |
4772 | ) | | |
4773 | sed "s/^/$as_me: WARNING: /" >&2 | |
4774 | ;; | |
4775 | esac | |
4776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4780 | else | |
4781 | eval "$as_ac_Header=\$ac_header_preproc" | |
4782 | fi | |
4783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4785 | ||
4786 | fi | |
4787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4788 | cat >>confdefs.h <<_ACEOF | |
4789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4790 | _ACEOF | |
4791 | ||
4792 | fi | |
4793 | ||
4794 | done | |
4795 | ||
4796 | ac_ext=cc | |
4797 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4798 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4799 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4800 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4801 | if test -n "$ac_tool_prefix"; then | |
4802 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4803 | do | |
4804 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4805 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4808 | if test "${ac_cv_prog_CXX+set}" = set; then | |
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4810 | else | |
4811 | if test -n "$CXX"; then | |
4812 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4813 | else | |
4814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4815 | for as_dir in $PATH | |
4816 | do | |
4817 | IFS=$as_save_IFS | |
4818 | test -z "$as_dir" && as_dir=. | |
4819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4821 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4823 | break 2 | |
4824 | fi | |
4825 | done | |
4826 | done | |
4827 | ||
4828 | fi | |
4829 | fi | |
4830 | CXX=$ac_cv_prog_CXX | |
4831 | if test -n "$CXX"; then | |
4832 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
4833 | echo "${ECHO_T}$CXX" >&6 | |
4834 | else | |
4835 | echo "$as_me:$LINENO: result: no" >&5 | |
4836 | echo "${ECHO_T}no" >&6 | |
4837 | fi | |
4838 | ||
4839 | test -n "$CXX" && break | |
4840 | done | |
4841 | fi | |
4842 | if test -z "$CXX"; then | |
4843 | ac_ct_CXX=$CXX | |
4844 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4845 | do | |
4846 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4847 | set dummy $ac_prog; ac_word=$2 | |
4848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4850 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4852 | else | |
4853 | if test -n "$ac_ct_CXX"; then | |
4854 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4855 | else | |
4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4857 | for as_dir in $PATH | |
4858 | do | |
4859 | IFS=$as_save_IFS | |
4860 | test -z "$as_dir" && as_dir=. | |
4861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4863 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4865 | break 2 | |
4866 | fi | |
4867 | done | |
4868 | done | |
4869 | ||
4870 | fi | |
4871 | fi | |
4872 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4873 | if test -n "$ac_ct_CXX"; then | |
4874 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
4875 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
4876 | else | |
4877 | echo "$as_me:$LINENO: result: no" >&5 | |
4878 | echo "${ECHO_T}no" >&6 | |
4879 | fi | |
4880 | ||
4881 | test -n "$ac_ct_CXX" && break | |
4882 | done | |
4883 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
4884 | ||
4885 | CXX=$ac_ct_CXX | |
4886 | fi | |
4887 | ||
4888 | ||
4889 | # Provide some information about the compiler. | |
4890 | echo "$as_me:$LINENO:" \ | |
4891 | "checking for C++ compiler version" >&5 | |
4892 | ac_compiler=`set X $ac_compile; echo $2` | |
4893 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4894 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4895 | ac_status=$? | |
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4897 | (exit $ac_status); } | |
4898 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4899 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4900 | ac_status=$? | |
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4902 | (exit $ac_status); } | |
4903 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4904 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4905 | ac_status=$? | |
4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4907 | (exit $ac_status); } | |
4908 | ||
4909 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4910 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
4911 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4913 | else | |
4914 | cat >conftest.$ac_ext <<_ACEOF | |
4915 | /* confdefs.h. */ | |
4916 | _ACEOF | |
4917 | cat confdefs.h >>conftest.$ac_ext | |
4918 | cat >>conftest.$ac_ext <<_ACEOF | |
4919 | /* end confdefs.h. */ | |
4920 | ||
4921 | int | |
4922 | main () | |
4923 | { | |
4924 | #ifndef __GNUC__ | |
4925 | choke me | |
4926 | #endif | |
4927 | ||
4928 | ; | |
4929 | return 0; | |
4930 | } | |
4931 | _ACEOF | |
4932 | rm -f conftest.$ac_objext | |
4933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4934 | (eval $ac_compile) 2>conftest.er1 | |
4935 | ac_status=$? | |
4936 | grep -v '^ *+' conftest.er1 >conftest.err | |
4937 | rm -f conftest.er1 | |
4938 | cat conftest.err >&5 | |
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4940 | (exit $ac_status); } && | |
4941 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4942 | || test ! -s conftest.err' | |
4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4944 | (eval $ac_try) 2>&5 | |
4945 | ac_status=$? | |
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4947 | (exit $ac_status); }; } && | |
4948 | { ac_try='test -s conftest.$ac_objext' | |
4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4950 | (eval $ac_try) 2>&5 | |
4951 | ac_status=$? | |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4953 | (exit $ac_status); }; }; then | |
4954 | ac_compiler_gnu=yes | |
4955 | else | |
4956 | echo "$as_me: failed program was:" >&5 | |
4957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4958 | ||
4959 | ac_compiler_gnu=no | |
4960 | fi | |
4961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4962 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4963 | ||
4964 | fi | |
4965 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4966 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
4967 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4968 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4969 | ac_save_CXXFLAGS=$CXXFLAGS | |
4970 | CXXFLAGS="-g" | |
4971 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4972 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4973 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4975 | else | |
4976 | cat >conftest.$ac_ext <<_ACEOF | |
4977 | /* confdefs.h. */ | |
4978 | _ACEOF | |
4979 | cat confdefs.h >>conftest.$ac_ext | |
4980 | cat >>conftest.$ac_ext <<_ACEOF | |
4981 | /* end confdefs.h. */ | |
4982 | ||
4983 | int | |
4984 | main () | |
4985 | { | |
4986 | ||
4987 | ; | |
4988 | return 0; | |
4989 | } | |
4990 | _ACEOF | |
4991 | rm -f conftest.$ac_objext | |
4992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4993 | (eval $ac_compile) 2>conftest.er1 | |
4994 | ac_status=$? | |
4995 | grep -v '^ *+' conftest.er1 >conftest.err | |
4996 | rm -f conftest.er1 | |
4997 | cat conftest.err >&5 | |
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4999 | (exit $ac_status); } && | |
5000 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5001 | || test ! -s conftest.err' | |
5002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5003 | (eval $ac_try) 2>&5 | |
5004 | ac_status=$? | |
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5006 | (exit $ac_status); }; } && | |
5007 | { ac_try='test -s conftest.$ac_objext' | |
5008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5009 | (eval $ac_try) 2>&5 | |
5010 | ac_status=$? | |
5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5012 | (exit $ac_status); }; }; then | |
5013 | ac_cv_prog_cxx_g=yes | |
5014 | else | |
5015 | echo "$as_me: failed program was:" >&5 | |
5016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5017 | ||
5018 | ac_cv_prog_cxx_g=no | |
5019 | fi | |
5020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5021 | fi | |
5022 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
5023 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
5024 | if test "$ac_test_CXXFLAGS" = set; then | |
5025 | CXXFLAGS=$ac_save_CXXFLAGS | |
5026 | elif test $ac_cv_prog_cxx_g = yes; then | |
5027 | if test "$GXX" = yes; then | |
5028 | CXXFLAGS="-g -O2" | |
5029 | else | |
5030 | CXXFLAGS="-g" | |
5031 | fi | |
5032 | else | |
5033 | if test "$GXX" = yes; then | |
5034 | CXXFLAGS="-O2" | |
5035 | else | |
5036 | CXXFLAGS= | |
5037 | fi | |
5038 | fi | |
5039 | for ac_declaration in \ | |
5040 | '' \ | |
5041 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5042 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5043 | 'extern "C" void exit (int) throw ();' \ | |
5044 | 'extern "C" void exit (int);' \ | |
5045 | 'void exit (int);' | |
5046 | do | |
5047 | cat >conftest.$ac_ext <<_ACEOF | |
5048 | /* confdefs.h. */ | |
5049 | _ACEOF | |
5050 | cat confdefs.h >>conftest.$ac_ext | |
5051 | cat >>conftest.$ac_ext <<_ACEOF | |
5052 | /* end confdefs.h. */ | |
5053 | $ac_declaration | |
5054 | #include <stdlib.h> | |
5055 | int | |
5056 | main () | |
5057 | { | |
5058 | exit (42); | |
5059 | ; | |
5060 | return 0; | |
5061 | } | |
5062 | _ACEOF | |
5063 | rm -f conftest.$ac_objext | |
5064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5065 | (eval $ac_compile) 2>conftest.er1 | |
5066 | ac_status=$? | |
5067 | grep -v '^ *+' conftest.er1 >conftest.err | |
5068 | rm -f conftest.er1 | |
5069 | cat conftest.err >&5 | |
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5071 | (exit $ac_status); } && | |
5072 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5073 | || test ! -s conftest.err' | |
5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5075 | (eval $ac_try) 2>&5 | |
5076 | ac_status=$? | |
5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5078 | (exit $ac_status); }; } && | |
5079 | { ac_try='test -s conftest.$ac_objext' | |
5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5081 | (eval $ac_try) 2>&5 | |
5082 | ac_status=$? | |
5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5084 | (exit $ac_status); }; }; then | |
5085 | : | |
5086 | else | |
5087 | echo "$as_me: failed program was:" >&5 | |
5088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5089 | ||
5090 | continue | |
5091 | fi | |
5092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5093 | cat >conftest.$ac_ext <<_ACEOF | |
5094 | /* confdefs.h. */ | |
5095 | _ACEOF | |
5096 | cat confdefs.h >>conftest.$ac_ext | |
5097 | cat >>conftest.$ac_ext <<_ACEOF | |
5098 | /* end confdefs.h. */ | |
5099 | $ac_declaration | |
5100 | int | |
5101 | main () | |
5102 | { | |
5103 | exit (42); | |
5104 | ; | |
5105 | return 0; | |
5106 | } | |
5107 | _ACEOF | |
5108 | rm -f conftest.$ac_objext | |
5109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5110 | (eval $ac_compile) 2>conftest.er1 | |
5111 | ac_status=$? | |
5112 | grep -v '^ *+' conftest.er1 >conftest.err | |
5113 | rm -f conftest.er1 | |
5114 | cat conftest.err >&5 | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); } && | |
5117 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5118 | || test ! -s conftest.err' | |
5119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5120 | (eval $ac_try) 2>&5 | |
5121 | ac_status=$? | |
5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5123 | (exit $ac_status); }; } && | |
5124 | { ac_try='test -s conftest.$ac_objext' | |
5125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5126 | (eval $ac_try) 2>&5 | |
5127 | ac_status=$? | |
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5129 | (exit $ac_status); }; }; then | |
5130 | break | |
5131 | else | |
5132 | echo "$as_me: failed program was:" >&5 | |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5134 | ||
5135 | fi | |
5136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5137 | done | |
5138 | rm -f conftest* | |
5139 | if test -n "$ac_declaration"; then | |
5140 | echo '#ifdef __cplusplus' >>confdefs.h | |
5141 | echo $ac_declaration >>confdefs.h | |
5142 | echo '#endif' >>confdefs.h | |
5143 | fi | |
5144 | ||
5145 | ac_ext=cc | |
5146 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5147 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5148 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5149 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5150 | ||
5151 | depcc="$CXX" am_compiler_list= | |
5152 | ||
5153 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
5154 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
5155 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
5156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5157 | else | |
5158 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5159 | # We make a subdir and do the tests there. Otherwise we can end up | |
5160 | # making bogus files that we don't know about and never remove. For | |
5161 | # instance it was reported that on HP-UX the gcc test will end up | |
5162 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5163 | # in D'. | |
5164 | mkdir conftest.dir | |
5165 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5166 | # using a relative directory. | |
5167 | cp "$am_depcomp" conftest.dir | |
5168 | cd conftest.dir | |
5169 | # We will build objects and dependencies in a subdirectory because | |
5170 | # it helps to detect inapplicable dependency modes. For instance | |
5171 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5172 | # side effect of compilation, but ICC will put the dependencies in | |
5173 | # the current directory while Tru64 will put them in the object | |
5174 | # directory. | |
5175 | mkdir sub | |
5176 | ||
5177 | am_cv_CXX_dependencies_compiler_type=none | |
5178 | if test "$am_compiler_list" = ""; then | |
5179 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5180 | fi | |
5181 | for depmode in $am_compiler_list; do | |
5182 | # Setup a source with many dependencies, because some compilers | |
5183 | # like to wrap large dependency lists on column 80 (with \), and | |
5184 | # we should not choose a depcomp mode which is confused by this. | |
5185 | # | |
5186 | # We need to recreate these files for each test, as the compiler may | |
5187 | # overwrite some of them when testing with obscure command lines. | |
5188 | # This happens at least with the AIX C compiler. | |
5189 | : > sub/conftest.c | |
5190 | for i in 1 2 3 4 5 6; do | |
5191 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5192 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5193 | # Solaris 8's {/usr,}/bin/sh. | |
5194 | touch sub/conftst$i.h | |
5195 | done | |
5196 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5197 | ||
5198 | case $depmode in | |
5199 | nosideeffect) | |
5200 | # after this tag, mechanisms are not by side-effect, so they'll | |
5201 | # only be used when explicitly requested | |
5202 | if test "x$enable_dependency_tracking" = xyes; then | |
5203 | continue | |
5204 | else | |
5205 | break | |
5206 | fi | |
5207 | ;; | |
5208 | none) break ;; | |
5209 | esac | |
5210 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5211 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5212 | # handle `-M -o', and we need to detect this. | |
5213 | if depmode=$depmode \ | |
5214 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5215 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5216 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5217 | >/dev/null 2>conftest.err && | |
5218 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5219 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5220 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5221 | # icc doesn't choke on unknown options, it will just issue warnings | |
5222 | # or remarks (even with -Werror). So we grep stderr for any message | |
5223 | # that says an option was ignored or not supported. | |
5224 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5225 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5226 | # The diagnosis changed in icc 8.0: | |
5227 | # icc: Command line remark: option '-MP' not supported | |
5228 | if (grep 'ignoring option' conftest.err || | |
5229 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5230 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5231 | break | |
5232 | fi | |
5233 | fi | |
5234 | done | |
5235 | ||
5236 | cd .. | |
5237 | rm -rf conftest.dir | |
5238 | else | |
5239 | am_cv_CXX_dependencies_compiler_type=none | |
5240 | fi | |
5241 | ||
5242 | fi | |
5243 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5244 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
5245 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5246 | ||
5247 | ||
5248 | ||
5249 | if | |
5250 | test "x$enable_dependency_tracking" != xno \ | |
5251 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5252 | am__fastdepCXX_TRUE= | |
5253 | am__fastdepCXX_FALSE='#' | |
5254 | else | |
5255 | am__fastdepCXX_TRUE='#' | |
5256 | am__fastdepCXX_FALSE= | |
5257 | fi | |
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5263 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5264 | (test "X$CXX" != "Xg++"))) ; then | |
5265 | ac_ext=cc | |
5266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5270 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5271 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
5272 | if test -z "$CXXCPP"; then | |
5273 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5275 | else | |
5276 | # Double quotes because CXXCPP needs to be expanded | |
5277 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5278 | do | |
5279 | ac_preproc_ok=false | |
5280 | for ac_cxx_preproc_warn_flag in '' yes | |
5281 | do | |
5282 | # Use a header file that comes with gcc, so configuring glibc | |
5283 | # with a fresh cross-compiler works. | |
5284 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5285 | # <limits.h> exists even on freestanding compilers. | |
5286 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5287 | # not just through cpp. "Syntax error" is here to catch this case. | |
5288 | cat >conftest.$ac_ext <<_ACEOF | |
5289 | /* confdefs.h. */ | |
5290 | _ACEOF | |
5291 | cat confdefs.h >>conftest.$ac_ext | |
5292 | cat >>conftest.$ac_ext <<_ACEOF | |
5293 | /* end confdefs.h. */ | |
5294 | #ifdef __STDC__ | |
5295 | # include <limits.h> | |
5296 | #else | |
5297 | # include <assert.h> | |
5298 | #endif | |
5299 | Syntax error | |
5300 | _ACEOF | |
5301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5303 | ac_status=$? | |
5304 | grep -v '^ *+' conftest.er1 >conftest.err | |
5305 | rm -f conftest.er1 | |
5306 | cat conftest.err >&5 | |
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5308 | (exit $ac_status); } >/dev/null; then | |
5309 | if test -s conftest.err; then | |
5310 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5311 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5312 | else | |
5313 | ac_cpp_err= | |
5314 | fi | |
5315 | else | |
5316 | ac_cpp_err=yes | |
5317 | fi | |
5318 | if test -z "$ac_cpp_err"; then | |
5319 | : | |
5320 | else | |
5321 | echo "$as_me: failed program was:" >&5 | |
5322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5323 | ||
5324 | # Broken: fails on valid input. | |
5325 | continue | |
5326 | fi | |
5327 | rm -f conftest.err conftest.$ac_ext | |
5328 | ||
5329 | # OK, works on sane cases. Now check whether non-existent headers | |
5330 | # can be detected and how. | |
5331 | cat >conftest.$ac_ext <<_ACEOF | |
5332 | /* confdefs.h. */ | |
5333 | _ACEOF | |
5334 | cat confdefs.h >>conftest.$ac_ext | |
5335 | cat >>conftest.$ac_ext <<_ACEOF | |
5336 | /* end confdefs.h. */ | |
5337 | #include <ac_nonexistent.h> | |
5338 | _ACEOF | |
5339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5341 | ac_status=$? | |
5342 | grep -v '^ *+' conftest.er1 >conftest.err | |
5343 | rm -f conftest.er1 | |
5344 | cat conftest.err >&5 | |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 | (exit $ac_status); } >/dev/null; then | |
5347 | if test -s conftest.err; then | |
5348 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5349 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5350 | else | |
5351 | ac_cpp_err= | |
5352 | fi | |
5353 | else | |
5354 | ac_cpp_err=yes | |
5355 | fi | |
5356 | if test -z "$ac_cpp_err"; then | |
5357 | # Broken: success on invalid input. | |
5358 | continue | |
5359 | else | |
5360 | echo "$as_me: failed program was:" >&5 | |
5361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5362 | ||
5363 | # Passes both tests. | |
5364 | ac_preproc_ok=: | |
5365 | break | |
5366 | fi | |
5367 | rm -f conftest.err conftest.$ac_ext | |
5368 | ||
5369 | done | |
5370 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5371 | rm -f conftest.err conftest.$ac_ext | |
5372 | if $ac_preproc_ok; then | |
5373 | break | |
5374 | fi | |
5375 | ||
5376 | done | |
5377 | ac_cv_prog_CXXCPP=$CXXCPP | |
5378 | ||
5379 | fi | |
5380 | CXXCPP=$ac_cv_prog_CXXCPP | |
5381 | else | |
5382 | ac_cv_prog_CXXCPP=$CXXCPP | |
5383 | fi | |
5384 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5385 | echo "${ECHO_T}$CXXCPP" >&6 | |
5386 | ac_preproc_ok=false | |
5387 | for ac_cxx_preproc_warn_flag in '' yes | |
5388 | do | |
5389 | # Use a header file that comes with gcc, so configuring glibc | |
5390 | # with a fresh cross-compiler works. | |
5391 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5392 | # <limits.h> exists even on freestanding compilers. | |
5393 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5394 | # not just through cpp. "Syntax error" is here to catch this case. | |
5395 | cat >conftest.$ac_ext <<_ACEOF | |
5396 | /* confdefs.h. */ | |
5397 | _ACEOF | |
5398 | cat confdefs.h >>conftest.$ac_ext | |
5399 | cat >>conftest.$ac_ext <<_ACEOF | |
5400 | /* end confdefs.h. */ | |
5401 | #ifdef __STDC__ | |
5402 | # include <limits.h> | |
5403 | #else | |
5404 | # include <assert.h> | |
5405 | #endif | |
5406 | Syntax error | |
5407 | _ACEOF | |
5408 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5409 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5410 | ac_status=$? | |
5411 | grep -v '^ *+' conftest.er1 >conftest.err | |
5412 | rm -f conftest.er1 | |
5413 | cat conftest.err >&5 | |
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5415 | (exit $ac_status); } >/dev/null; then | |
5416 | if test -s conftest.err; then | |
5417 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5418 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5419 | else | |
5420 | ac_cpp_err= | |
5421 | fi | |
5422 | else | |
5423 | ac_cpp_err=yes | |
5424 | fi | |
5425 | if test -z "$ac_cpp_err"; then | |
5426 | : | |
5427 | else | |
5428 | echo "$as_me: failed program was:" >&5 | |
5429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5430 | ||
5431 | # Broken: fails on valid input. | |
5432 | continue | |
5433 | fi | |
5434 | rm -f conftest.err conftest.$ac_ext | |
5435 | ||
5436 | # OK, works on sane cases. Now check whether non-existent headers | |
5437 | # can be detected and how. | |
5438 | cat >conftest.$ac_ext <<_ACEOF | |
5439 | /* confdefs.h. */ | |
5440 | _ACEOF | |
5441 | cat confdefs.h >>conftest.$ac_ext | |
5442 | cat >>conftest.$ac_ext <<_ACEOF | |
5443 | /* end confdefs.h. */ | |
5444 | #include <ac_nonexistent.h> | |
5445 | _ACEOF | |
5446 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5447 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5448 | ac_status=$? | |
5449 | grep -v '^ *+' conftest.er1 >conftest.err | |
5450 | rm -f conftest.er1 | |
5451 | cat conftest.err >&5 | |
5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5453 | (exit $ac_status); } >/dev/null; then | |
5454 | if test -s conftest.err; then | |
5455 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5456 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5457 | else | |
5458 | ac_cpp_err= | |
5459 | fi | |
5460 | else | |
5461 | ac_cpp_err=yes | |
5462 | fi | |
5463 | if test -z "$ac_cpp_err"; then | |
5464 | # Broken: success on invalid input. | |
5465 | continue | |
5466 | else | |
5467 | echo "$as_me: failed program was:" >&5 | |
5468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5469 | ||
5470 | # Passes both tests. | |
5471 | ac_preproc_ok=: | |
5472 | break | |
5473 | fi | |
5474 | rm -f conftest.err conftest.$ac_ext | |
5475 | ||
5476 | done | |
5477 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5478 | rm -f conftest.err conftest.$ac_ext | |
5479 | if $ac_preproc_ok; then | |
5480 | : | |
5481 | else | |
5482 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5483 | See \`config.log' for more details." >&5 | |
5484 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5485 | See \`config.log' for more details." >&2;} | |
5486 | { (exit 1); exit 1; }; } | |
5487 | fi | |
5488 | ||
5489 | ac_ext=cc | |
5490 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5491 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5492 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5493 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5494 | ||
5495 | fi | |
5496 | ||
5497 | ||
5498 | ac_ext=f | |
5499 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5500 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5501 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5502 | if test -n "$ac_tool_prefix"; then | |
5503 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5504 | do | |
5505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5509 | if test "${ac_cv_prog_F77+set}" = set; then | |
5510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5511 | else | |
5512 | if test -n "$F77"; then | |
5513 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
5514 | else | |
5515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5516 | for as_dir in $PATH | |
5517 | do | |
5518 | IFS=$as_save_IFS | |
5519 | test -z "$as_dir" && as_dir=. | |
5520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5522 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5524 | break 2 | |
5525 | fi | |
5526 | done | |
5527 | done | |
5528 | ||
5529 | fi | |
5530 | fi | |
5531 | F77=$ac_cv_prog_F77 | |
5532 | if test -n "$F77"; then | |
5533 | echo "$as_me:$LINENO: result: $F77" >&5 | |
5534 | echo "${ECHO_T}$F77" >&6 | |
5535 | else | |
5536 | echo "$as_me:$LINENO: result: no" >&5 | |
5537 | echo "${ECHO_T}no" >&6 | |
5538 | fi | |
5539 | ||
5540 | test -n "$F77" && break | |
5541 | done | |
5542 | fi | |
5543 | if test -z "$F77"; then | |
5544 | ac_ct_F77=$F77 | |
5545 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5546 | do | |
5547 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5548 | set dummy $ac_prog; ac_word=$2 | |
5549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5551 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5553 | else | |
5554 | if test -n "$ac_ct_F77"; then | |
5555 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5556 | else | |
5557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5558 | for as_dir in $PATH | |
5559 | do | |
5560 | IFS=$as_save_IFS | |
5561 | test -z "$as_dir" && as_dir=. | |
5562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5564 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
5565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5566 | break 2 | |
5567 | fi | |
5568 | done | |
5569 | done | |
5570 | ||
5571 | fi | |
5572 | fi | |
5573 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5574 | if test -n "$ac_ct_F77"; then | |
5575 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5576 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
5577 | else | |
5578 | echo "$as_me:$LINENO: result: no" >&5 | |
5579 | echo "${ECHO_T}no" >&6 | |
5580 | fi | |
5581 | ||
5582 | test -n "$ac_ct_F77" && break | |
5583 | done | |
5584 | ||
5585 | F77=$ac_ct_F77 | |
5586 | fi | |
5587 | ||
5588 | ||
5589 | # Provide some information about the compiler. | |
5e9b5d83 | 5590 | echo "$as_me:5590:" \ |
bf9f3bac | 5591 | "checking for Fortran 77 compiler version" >&5 |
5592 | ac_compiler=`set X $ac_compile; echo $2` | |
5593 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5594 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5595 | ac_status=$? | |
5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5597 | (exit $ac_status); } | |
5598 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5599 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5600 | ac_status=$? | |
5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5602 | (exit $ac_status); } | |
5603 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5604 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5605 | ac_status=$? | |
5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5607 | (exit $ac_status); } | |
5608 | rm -f a.out | |
5609 | ||
5610 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
5611 | # input file. (Note that this only needs to work for GNU compilers.) | |
5612 | ac_save_ext=$ac_ext | |
5613 | ac_ext=F | |
5614 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5615 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5616 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5618 | else | |
5619 | cat >conftest.$ac_ext <<_ACEOF | |
5620 | program main | |
5621 | #ifndef __GNUC__ | |
5622 | choke me | |
5623 | #endif | |
5624 | ||
5625 | end | |
5626 | _ACEOF | |
5627 | rm -f conftest.$ac_objext | |
5628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5629 | (eval $ac_compile) 2>conftest.er1 | |
5630 | ac_status=$? | |
5631 | grep -v '^ *+' conftest.er1 >conftest.err | |
5632 | rm -f conftest.er1 | |
5633 | cat conftest.err >&5 | |
5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5635 | (exit $ac_status); } && | |
5636 | { ac_try='test -z "$ac_f77_werror_flag" | |
5637 | || test ! -s conftest.err' | |
5638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5639 | (eval $ac_try) 2>&5 | |
5640 | ac_status=$? | |
5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5642 | (exit $ac_status); }; } && | |
5643 | { ac_try='test -s conftest.$ac_objext' | |
5644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5645 | (eval $ac_try) 2>&5 | |
5646 | ac_status=$? | |
5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5648 | (exit $ac_status); }; }; then | |
5649 | ac_compiler_gnu=yes | |
5650 | else | |
5651 | echo "$as_me: failed program was:" >&5 | |
5652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5653 | ||
5654 | ac_compiler_gnu=no | |
5655 | fi | |
5656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5657 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5658 | ||
5659 | fi | |
5660 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5661 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5662 | ac_ext=$ac_save_ext | |
5663 | ac_test_FFLAGS=${FFLAGS+set} | |
5664 | ac_save_FFLAGS=$FFLAGS | |
5665 | FFLAGS= | |
5666 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5667 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5668 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5670 | else | |
5671 | FFLAGS=-g | |
5672 | cat >conftest.$ac_ext <<_ACEOF | |
5673 | program main | |
5674 | ||
5675 | end | |
5676 | _ACEOF | |
5677 | rm -f conftest.$ac_objext | |
5678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5679 | (eval $ac_compile) 2>conftest.er1 | |
5680 | ac_status=$? | |
5681 | grep -v '^ *+' conftest.er1 >conftest.err | |
5682 | rm -f conftest.er1 | |
5683 | cat conftest.err >&5 | |
5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5685 | (exit $ac_status); } && | |
5686 | { ac_try='test -z "$ac_f77_werror_flag" | |
5687 | || test ! -s conftest.err' | |
5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5689 | (eval $ac_try) 2>&5 | |
5690 | ac_status=$? | |
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5692 | (exit $ac_status); }; } && | |
5693 | { ac_try='test -s conftest.$ac_objext' | |
5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5695 | (eval $ac_try) 2>&5 | |
5696 | ac_status=$? | |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); }; }; then | |
5699 | ac_cv_prog_f77_g=yes | |
5700 | else | |
5701 | echo "$as_me: failed program was:" >&5 | |
5702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5703 | ||
5704 | ac_cv_prog_f77_g=no | |
5705 | fi | |
5706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5707 | ||
5708 | fi | |
5709 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5710 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5711 | if test "$ac_test_FFLAGS" = set; then | |
5712 | FFLAGS=$ac_save_FFLAGS | |
5713 | elif test $ac_cv_prog_f77_g = yes; then | |
5714 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5715 | FFLAGS="-g -O2" | |
5716 | else | |
5717 | FFLAGS="-g" | |
5718 | fi | |
5719 | else | |
5720 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5721 | FFLAGS="-O2" | |
5722 | else | |
5723 | FFLAGS= | |
5724 | fi | |
5725 | fi | |
5726 | ||
5727 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
5728 | ac_ext=c | |
5729 | ac_cpp='$CPP $CPPFLAGS' | |
5730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5733 | ||
5734 | ||
5735 | ||
5736 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5737 | ||
5738 | # find the maximum length of command line arguments | |
5739 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5740 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5741 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5743 | else | |
5744 | i=0 | |
5745 | teststring="ABCD" | |
5746 | ||
5747 | case $build_os in | |
5748 | msdosdjgpp*) | |
5749 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5750 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5751 | # during glob expansion). Even if it were fixed, the result of this | |
5752 | # check would be larger than it should be. | |
5753 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5754 | ;; | |
5755 | ||
5756 | gnu*) | |
5757 | # Under GNU Hurd, this test is not required because there is | |
5758 | # no limit to the length of command line arguments. | |
5759 | # Libtool will interpret -1 as no limit whatsoever | |
5760 | lt_cv_sys_max_cmd_len=-1; | |
5761 | ;; | |
5762 | ||
5763 | cygwin* | mingw*) | |
5764 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5765 | # about 5 minutes as the teststring grows exponentially. | |
5766 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5767 | # you end up with a "frozen" computer, even though with patience | |
5768 | # the test eventually succeeds (with a max line length of 256k). | |
5769 | # Instead, let's just punt: use the minimum linelength reported by | |
5770 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5771 | lt_cv_sys_max_cmd_len=8192; | |
5772 | ;; | |
5773 | ||
5774 | amigaos*) | |
5775 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5776 | # So we just punt and use a minimum line length of 8192. | |
5777 | lt_cv_sys_max_cmd_len=8192; | |
5778 | ;; | |
5779 | ||
5780 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5781 | # This has been around since 386BSD, at least. Likely further. | |
5782 | if test -x /sbin/sysctl; then | |
5783 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5784 | elif test -x /usr/sbin/sysctl; then | |
5785 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5786 | else | |
5787 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5788 | fi | |
5789 | # And add a safety zone | |
5790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5791 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5792 | ;; | |
5793 | ||
5794 | interix*) | |
5795 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5796 | lt_cv_sys_max_cmd_len=196608 | |
5797 | ;; | |
5798 | ||
5799 | osf*) | |
5800 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5801 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5802 | # nice to cause kernel panics so lets avoid the loop below. | |
5803 | # First set a reasonable default. | |
5804 | lt_cv_sys_max_cmd_len=16384 | |
5805 | # | |
5806 | if test -x /sbin/sysconfig; then | |
5807 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5808 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5809 | esac | |
5810 | fi | |
5811 | ;; | |
5812 | sco3.2v5*) | |
5813 | lt_cv_sys_max_cmd_len=102400 | |
5814 | ;; | |
5815 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5816 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5817 | if test -n "$kargmax"; then | |
5818 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5819 | else | |
5820 | lt_cv_sys_max_cmd_len=32768 | |
5821 | fi | |
5822 | ;; | |
5823 | *) | |
5824 | # If test is not a shell built-in, we'll probably end up computing a | |
5825 | # maximum length that is only half of the actual maximum length, but | |
5826 | # we can't tell. | |
5827 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5828 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
5829 | = "XX$teststring") >/dev/null 2>&1 && | |
5830 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
5831 | lt_cv_sys_max_cmd_len=$new_result && | |
5832 | test $i != 17 # 1/2 MB should be enough | |
5833 | do | |
5834 | i=`expr $i + 1` | |
5835 | teststring=$teststring$teststring | |
5836 | done | |
5837 | teststring= | |
5838 | # Add a significant safety factor because C++ compilers can tack on massive | |
5839 | # amounts of additional arguments before passing them to the linker. | |
5840 | # It appears as though 1/2 is a usable value. | |
5841 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5842 | ;; | |
5843 | esac | |
5844 | ||
5845 | fi | |
5846 | ||
5847 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5848 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5849 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5850 | else | |
5851 | echo "$as_me:$LINENO: result: none" >&5 | |
5852 | echo "${ECHO_T}none" >&6 | |
5853 | fi | |
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5859 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5860 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5861 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5863 | else | |
5864 | ||
5865 | # These are sane defaults that work on at least a few old systems. | |
5866 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5867 | ||
5868 | # Character class describing NM global symbol codes. | |
5869 | symcode='[BCDEGRST]' | |
5870 | ||
5871 | # Regexp to match symbols that can be accessed directly from C. | |
5872 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5873 | ||
5874 | # Transform an extracted symbol line into a proper C declaration | |
5875 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5876 | ||
5877 | # Transform an extracted symbol line into symbol name and symbol address | |
5878 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5879 | ||
5880 | # Define system-specific variables. | |
5881 | case $host_os in | |
5882 | aix*) | |
5883 | symcode='[BCDT]' | |
5884 | ;; | |
5885 | cygwin* | mingw* | pw32*) | |
5886 | symcode='[ABCDGISTW]' | |
5887 | ;; | |
5888 | hpux*) # Its linker distinguishes data from code symbols | |
5889 | if test "$host_cpu" = ia64; then | |
5890 | symcode='[ABCDEGRST]' | |
5891 | fi | |
5892 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5893 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5894 | ;; | |
5895 | linux*) | |
5896 | if test "$host_cpu" = ia64; then | |
5897 | symcode='[ABCDGIRSTW]' | |
5898 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5899 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5900 | fi | |
5901 | ;; | |
5902 | irix* | nonstopux*) | |
5903 | symcode='[BCDEGRST]' | |
5904 | ;; | |
5905 | osf*) | |
5906 | symcode='[BCDEGQRST]' | |
5907 | ;; | |
5908 | solaris*) | |
5909 | symcode='[BDRT]' | |
5910 | ;; | |
5911 | sco3.2v5*) | |
5912 | symcode='[DT]' | |
5913 | ;; | |
5914 | sysv4.2uw2*) | |
5915 | symcode='[DT]' | |
5916 | ;; | |
5917 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5918 | symcode='[ABDT]' | |
5919 | ;; | |
5920 | sysv4) | |
5921 | symcode='[DFNSTU]' | |
5922 | ;; | |
5923 | esac | |
5924 | ||
5925 | # Handle CRLF in mingw tool chain | |
5926 | opt_cr= | |
5927 | case $build_os in | |
5928 | mingw*) | |
5929 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5930 | ;; | |
5931 | esac | |
5932 | ||
5933 | # If we're using GNU nm, then use its standard symbol codes. | |
5934 | case `$NM -V 2>&1` in | |
5935 | *GNU* | *'with BFD'*) | |
5936 | symcode='[ABCDGIRSTW]' ;; | |
5937 | esac | |
5938 | ||
5939 | # Try without a prefix undercore, then with it. | |
5940 | for ac_symprfx in "" "_"; do | |
5941 | ||
5942 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5943 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5944 | ||
5945 | # Write the raw and C identifiers. | |
5946 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5947 | ||
5948 | # Check to see that the pipe works correctly. | |
5949 | pipe_works=no | |
5950 | ||
5951 | rm -f conftest* | |
5952 | cat > conftest.$ac_ext <<EOF | |
5953 | #ifdef __cplusplus | |
5954 | extern "C" { | |
5955 | #endif | |
5956 | char nm_test_var; | |
5957 | void nm_test_func(){} | |
5958 | #ifdef __cplusplus | |
5959 | } | |
5960 | #endif | |
5961 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5962 | EOF | |
5963 | ||
5964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5965 | (eval $ac_compile) 2>&5 | |
5966 | ac_status=$? | |
5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5968 | (exit $ac_status); }; then | |
5969 | # Now try to grab the symbols. | |
5970 | nlist=conftest.nm | |
5971 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5972 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5973 | ac_status=$? | |
5974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5975 | (exit $ac_status); } && test -s "$nlist"; then | |
5976 | # Try sorting and uniquifying the output. | |
5977 | if sort "$nlist" | uniq > "$nlist"T; then | |
5978 | mv -f "$nlist"T "$nlist" | |
5979 | else | |
5980 | rm -f "$nlist"T | |
5981 | fi | |
5982 | ||
5983 | # Make sure that we snagged all the symbols we need. | |
5984 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5985 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5986 | cat <<EOF > conftest.$ac_ext | |
5987 | #ifdef __cplusplus | |
5988 | extern "C" { | |
5989 | #endif | |
5990 | ||
5991 | EOF | |
5992 | # Now generate the symbol file. | |
5993 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5994 | ||
5995 | cat <<EOF >> conftest.$ac_ext | |
5996 | #if defined (__STDC__) && __STDC__ | |
5997 | # define lt_ptr_t void * | |
5998 | #else | |
5999 | # define lt_ptr_t char * | |
6000 | # define const | |
6001 | #endif | |
6002 | ||
6003 | /* The mapping between symbol names and symbols. */ | |
6004 | const struct { | |
6005 | const char *name; | |
6006 | lt_ptr_t address; | |
6007 | } | |
6008 | lt_preloaded_symbols[] = | |
6009 | { | |
6010 | EOF | |
6011 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
6012 | cat <<\EOF >> conftest.$ac_ext | |
6013 | {0, (lt_ptr_t) 0} | |
6014 | }; | |
6015 | ||
6016 | #ifdef __cplusplus | |
6017 | } | |
6018 | #endif | |
6019 | EOF | |
6020 | # Now try linking the two files. | |
6021 | mv conftest.$ac_objext conftstm.$ac_objext | |
6022 | lt_save_LIBS="$LIBS" | |
6023 | lt_save_CFLAGS="$CFLAGS" | |
6024 | LIBS="conftstm.$ac_objext" | |
6025 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6027 | (eval $ac_link) 2>&5 | |
6028 | ac_status=$? | |
6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6030 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6031 | pipe_works=yes | |
6032 | fi | |
6033 | LIBS="$lt_save_LIBS" | |
6034 | CFLAGS="$lt_save_CFLAGS" | |
6035 | else | |
6036 | echo "cannot find nm_test_func in $nlist" >&5 | |
6037 | fi | |
6038 | else | |
6039 | echo "cannot find nm_test_var in $nlist" >&5 | |
6040 | fi | |
6041 | else | |
6042 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6043 | fi | |
6044 | else | |
6045 | echo "$progname: failed program was:" >&5 | |
6046 | cat conftest.$ac_ext >&5 | |
6047 | fi | |
6048 | rm -f conftest* conftst* | |
6049 | ||
6050 | # Do not use the global_symbol_pipe unless it works. | |
6051 | if test "$pipe_works" = yes; then | |
6052 | break | |
6053 | else | |
6054 | lt_cv_sys_global_symbol_pipe= | |
6055 | fi | |
6056 | done | |
6057 | ||
6058 | fi | |
6059 | ||
6060 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6061 | lt_cv_sys_global_symbol_to_cdecl= | |
6062 | fi | |
6063 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6064 | echo "$as_me:$LINENO: result: failed" >&5 | |
6065 | echo "${ECHO_T}failed" >&6 | |
6066 | else | |
6067 | echo "$as_me:$LINENO: result: ok" >&5 | |
6068 | echo "${ECHO_T}ok" >&6 | |
6069 | fi | |
6070 | ||
6071 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6072 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6073 | if test "${lt_cv_objdir+set}" = set; then | |
6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6075 | else | |
6076 | rm -f .libs 2>/dev/null | |
6077 | mkdir .libs 2>/dev/null | |
6078 | if test -d .libs; then | |
6079 | lt_cv_objdir=.libs | |
6080 | else | |
6081 | # MS-DOS does not allow filenames that begin with a dot. | |
6082 | lt_cv_objdir=_libs | |
6083 | fi | |
6084 | rmdir .libs 2>/dev/null | |
6085 | fi | |
6086 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6087 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6088 | objdir=$lt_cv_objdir | |
6089 | ||
6090 | ||
6091 | ||
6092 | ||
6093 | ||
6094 | case $host_os in | |
6095 | aix3*) | |
6096 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6097 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6098 | # vanish in a puff of smoke. | |
6099 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6100 | COLLECT_NAMES= | |
6101 | export COLLECT_NAMES | |
6102 | fi | |
6103 | ;; | |
6104 | esac | |
6105 | ||
6106 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6107 | # metacharacters that are still active within double-quoted strings. | |
6108 | Xsed='sed -e 1s/^X//' | |
6109 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
6110 | ||
6111 | # Same as above, but do not quote variable references. | |
6112 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
6113 | ||
6114 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6115 | # double_quote_subst'ed string. | |
6116 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6117 | ||
6118 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6119 | no_glob_subst='s/\*/\\\*/g' | |
6120 | ||
6121 | # Constants: | |
6122 | rm="rm -f" | |
6123 | ||
6124 | # Global variables: | |
6125 | default_ofile=libtool | |
6126 | can_build_shared=yes | |
6127 | ||
6128 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6129 | # which needs '.lib'). | |
6130 | libext=a | |
6131 | ltmain="$ac_aux_dir/ltmain.sh" | |
6132 | ofile="$default_ofile" | |
6133 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6134 | ||
6135 | if test -n "$ac_tool_prefix"; then | |
6136 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6137 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6138 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6140 | if test "${ac_cv_prog_AR+set}" = set; then | |
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6142 | else | |
6143 | if test -n "$AR"; then | |
6144 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6145 | else | |
6146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6147 | for as_dir in $PATH | |
6148 | do | |
6149 | IFS=$as_save_IFS | |
6150 | test -z "$as_dir" && as_dir=. | |
6151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6153 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6155 | break 2 | |
6156 | fi | |
6157 | done | |
6158 | done | |
6159 | ||
6160 | fi | |
6161 | fi | |
6162 | AR=$ac_cv_prog_AR | |
6163 | if test -n "$AR"; then | |
6164 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6165 | echo "${ECHO_T}$AR" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | fi | |
6172 | if test -z "$ac_cv_prog_AR"; then | |
6173 | ac_ct_AR=$AR | |
6174 | # Extract the first word of "ar", so it can be a program name with args. | |
6175 | set dummy ar; ac_word=$2 | |
6176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6178 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6180 | else | |
6181 | if test -n "$ac_ct_AR"; then | |
6182 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6183 | else | |
6184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6185 | for as_dir in $PATH | |
6186 | do | |
6187 | IFS=$as_save_IFS | |
6188 | test -z "$as_dir" && as_dir=. | |
6189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6191 | ac_cv_prog_ac_ct_AR="ar" | |
6192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6193 | break 2 | |
6194 | fi | |
6195 | done | |
6196 | done | |
6197 | ||
6198 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
6199 | fi | |
6200 | fi | |
6201 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6202 | if test -n "$ac_ct_AR"; then | |
6203 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6204 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6205 | else | |
6206 | echo "$as_me:$LINENO: result: no" >&5 | |
6207 | echo "${ECHO_T}no" >&6 | |
6208 | fi | |
6209 | ||
6210 | AR=$ac_ct_AR | |
6211 | else | |
6212 | AR="$ac_cv_prog_AR" | |
6213 | fi | |
6214 | ||
6215 | if test -n "$ac_tool_prefix"; then | |
6216 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6217 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6220 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6222 | else | |
6223 | if test -n "$RANLIB"; then | |
6224 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6225 | else | |
6226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6227 | for as_dir in $PATH | |
6228 | do | |
6229 | IFS=$as_save_IFS | |
6230 | test -z "$as_dir" && as_dir=. | |
6231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6232 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6233 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6235 | break 2 | |
6236 | fi | |
6237 | done | |
6238 | done | |
6239 | ||
6240 | fi | |
6241 | fi | |
6242 | RANLIB=$ac_cv_prog_RANLIB | |
6243 | if test -n "$RANLIB"; then | |
6244 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6245 | echo "${ECHO_T}$RANLIB" >&6 | |
6246 | else | |
6247 | echo "$as_me:$LINENO: result: no" >&5 | |
6248 | echo "${ECHO_T}no" >&6 | |
6249 | fi | |
6250 | ||
6251 | fi | |
6252 | if test -z "$ac_cv_prog_RANLIB"; then | |
6253 | ac_ct_RANLIB=$RANLIB | |
6254 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6255 | set dummy ranlib; ac_word=$2 | |
6256 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6258 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6260 | else | |
6261 | if test -n "$ac_ct_RANLIB"; then | |
6262 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6263 | else | |
6264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6265 | for as_dir in $PATH | |
6266 | do | |
6267 | IFS=$as_save_IFS | |
6268 | test -z "$as_dir" && as_dir=. | |
6269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6271 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6273 | break 2 | |
6274 | fi | |
6275 | done | |
6276 | done | |
6277 | ||
6278 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
6279 | fi | |
6280 | fi | |
6281 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6282 | if test -n "$ac_ct_RANLIB"; then | |
6283 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6284 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6285 | else | |
6286 | echo "$as_me:$LINENO: result: no" >&5 | |
6287 | echo "${ECHO_T}no" >&6 | |
6288 | fi | |
6289 | ||
6290 | RANLIB=$ac_ct_RANLIB | |
6291 | else | |
6292 | RANLIB="$ac_cv_prog_RANLIB" | |
6293 | fi | |
6294 | ||
6295 | if test -n "$ac_tool_prefix"; then | |
6296 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6297 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6298 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6300 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6302 | else | |
6303 | if test -n "$STRIP"; then | |
6304 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6305 | else | |
6306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6307 | for as_dir in $PATH | |
6308 | do | |
6309 | IFS=$as_save_IFS | |
6310 | test -z "$as_dir" && as_dir=. | |
6311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6312 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6313 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6315 | break 2 | |
6316 | fi | |
6317 | done | |
6318 | done | |
6319 | ||
6320 | fi | |
6321 | fi | |
6322 | STRIP=$ac_cv_prog_STRIP | |
6323 | if test -n "$STRIP"; then | |
6324 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6325 | echo "${ECHO_T}$STRIP" >&6 | |
6326 | else | |
6327 | echo "$as_me:$LINENO: result: no" >&5 | |
6328 | echo "${ECHO_T}no" >&6 | |
6329 | fi | |
6330 | ||
6331 | fi | |
6332 | if test -z "$ac_cv_prog_STRIP"; then | |
6333 | ac_ct_STRIP=$STRIP | |
6334 | # Extract the first word of "strip", so it can be a program name with args. | |
6335 | set dummy strip; ac_word=$2 | |
6336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6338 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6340 | else | |
6341 | if test -n "$ac_ct_STRIP"; then | |
6342 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6343 | else | |
6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6345 | for as_dir in $PATH | |
6346 | do | |
6347 | IFS=$as_save_IFS | |
6348 | test -z "$as_dir" && as_dir=. | |
6349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6351 | ac_cv_prog_ac_ct_STRIP="strip" | |
6352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6353 | break 2 | |
6354 | fi | |
6355 | done | |
6356 | done | |
6357 | ||
6358 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6359 | fi | |
6360 | fi | |
6361 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6362 | if test -n "$ac_ct_STRIP"; then | |
6363 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6364 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6365 | else | |
6366 | echo "$as_me:$LINENO: result: no" >&5 | |
6367 | echo "${ECHO_T}no" >&6 | |
6368 | fi | |
6369 | ||
6370 | STRIP=$ac_ct_STRIP | |
6371 | else | |
6372 | STRIP="$ac_cv_prog_STRIP" | |
6373 | fi | |
6374 | ||
6375 | ||
6376 | old_CC="$CC" | |
6377 | old_CFLAGS="$CFLAGS" | |
6378 | ||
6379 | # Set sane defaults for various variables | |
6380 | test -z "$AR" && AR=ar | |
6381 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6382 | test -z "$AS" && AS=as | |
6383 | test -z "$CC" && CC=cc | |
6384 | test -z "$LTCC" && LTCC=$CC | |
6385 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6386 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6387 | test -z "$LD" && LD=ld | |
6388 | test -z "$LN_S" && LN_S="ln -s" | |
6389 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6390 | test -z "$NM" && NM=nm | |
6391 | test -z "$SED" && SED=sed | |
6392 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6393 | test -z "$RANLIB" && RANLIB=: | |
6394 | test -z "$STRIP" && STRIP=: | |
6395 | test -z "$ac_objext" && ac_objext=o | |
6396 | ||
6397 | # Determine commands to create old-style static archives. | |
6398 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6399 | old_postinstall_cmds='chmod 644 $oldlib' | |
6400 | old_postuninstall_cmds= | |
6401 | ||
6402 | if test -n "$RANLIB"; then | |
6403 | case $host_os in | |
6404 | openbsd*) | |
6405 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6406 | ;; | |
6407 | *) | |
6408 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6409 | ;; | |
6410 | esac | |
6411 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6412 | fi | |
6413 | ||
6414 | for cc_temp in $compiler""; do | |
6415 | case $cc_temp in | |
6416 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6417 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6418 | \-*) ;; | |
6419 | *) break;; | |
6420 | esac | |
6421 | done | |
6422 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6423 | ||
6424 | ||
6425 | # Only perform the check for file, if the check method requires it | |
6426 | case $deplibs_check_method in | |
6427 | file_magic*) | |
6428 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6429 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6430 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6431 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6433 | else | |
6434 | case $MAGIC_CMD in | |
6435 | [\\/*] | ?:[\\/]*) | |
6436 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6437 | ;; | |
6438 | *) | |
6439 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6440 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6441 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6442 | for ac_dir in $ac_dummy; do | |
6443 | IFS="$lt_save_ifs" | |
6444 | test -z "$ac_dir" && ac_dir=. | |
6445 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6446 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6447 | if test -n "$file_magic_test_file"; then | |
6448 | case $deplibs_check_method in | |
6449 | "file_magic "*) | |
6450 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6451 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6452 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6453 | $EGREP "$file_magic_regex" > /dev/null; then | |
6454 | : | |
6455 | else | |
6456 | cat <<EOF 1>&2 | |
6457 | ||
6458 | *** Warning: the command libtool uses to detect shared libraries, | |
6459 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6460 | *** The result is that libtool may fail to recognize shared libraries | |
6461 | *** as such. This will affect the creation of libtool libraries that | |
6462 | *** depend on shared libraries, but programs linked with such libtool | |
6463 | *** libraries will work regardless of this problem. Nevertheless, you | |
6464 | *** may want to report the problem to your system manager and/or to | |
6465 | *** bug-libtool@gnu.org | |
6466 | ||
6467 | EOF | |
6468 | fi ;; | |
6469 | esac | |
6470 | fi | |
6471 | break | |
6472 | fi | |
6473 | done | |
6474 | IFS="$lt_save_ifs" | |
6475 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6476 | ;; | |
6477 | esac | |
6478 | fi | |
6479 | ||
6480 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6481 | if test -n "$MAGIC_CMD"; then | |
6482 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6483 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6484 | else | |
6485 | echo "$as_me:$LINENO: result: no" >&5 | |
6486 | echo "${ECHO_T}no" >&6 | |
6487 | fi | |
6488 | ||
6489 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6490 | if test -n "$ac_tool_prefix"; then | |
6491 | echo "$as_me:$LINENO: checking for file" >&5 | |
6492 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6493 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6495 | else | |
6496 | case $MAGIC_CMD in | |
6497 | [\\/*] | ?:[\\/]*) | |
6498 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6499 | ;; | |
6500 | *) | |
6501 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6502 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6503 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6504 | for ac_dir in $ac_dummy; do | |
6505 | IFS="$lt_save_ifs" | |
6506 | test -z "$ac_dir" && ac_dir=. | |
6507 | if test -f $ac_dir/file; then | |
6508 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6509 | if test -n "$file_magic_test_file"; then | |
6510 | case $deplibs_check_method in | |
6511 | "file_magic "*) | |
6512 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6513 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6514 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6515 | $EGREP "$file_magic_regex" > /dev/null; then | |
6516 | : | |
6517 | else | |
6518 | cat <<EOF 1>&2 | |
6519 | ||
6520 | *** Warning: the command libtool uses to detect shared libraries, | |
6521 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6522 | *** The result is that libtool may fail to recognize shared libraries | |
6523 | *** as such. This will affect the creation of libtool libraries that | |
6524 | *** depend on shared libraries, but programs linked with such libtool | |
6525 | *** libraries will work regardless of this problem. Nevertheless, you | |
6526 | *** may want to report the problem to your system manager and/or to | |
6527 | *** bug-libtool@gnu.org | |
6528 | ||
6529 | EOF | |
6530 | fi ;; | |
6531 | esac | |
6532 | fi | |
6533 | break | |
6534 | fi | |
6535 | done | |
6536 | IFS="$lt_save_ifs" | |
6537 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6538 | ;; | |
6539 | esac | |
6540 | fi | |
6541 | ||
6542 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6543 | if test -n "$MAGIC_CMD"; then | |
6544 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6545 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6546 | else | |
6547 | echo "$as_me:$LINENO: result: no" >&5 | |
6548 | echo "${ECHO_T}no" >&6 | |
6549 | fi | |
6550 | ||
6551 | else | |
6552 | MAGIC_CMD=: | |
6553 | fi | |
6554 | fi | |
6555 | ||
6556 | fi | |
6557 | ;; | |
6558 | esac | |
6559 | ||
6560 | enable_dlopen=no | |
6561 | enable_win32_dll=no | |
6562 | ||
6563 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6564 | if test "${enable_libtool_lock+set}" = set; then | |
6565 | enableval="$enable_libtool_lock" | |
6566 | ||
6567 | fi; | |
6568 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6569 | ||
6570 | ||
6571 | # Check whether --with-pic or --without-pic was given. | |
6572 | if test "${with_pic+set}" = set; then | |
6573 | withval="$with_pic" | |
6574 | pic_mode="$withval" | |
6575 | else | |
6576 | pic_mode=default | |
6577 | fi; | |
6578 | test -z "$pic_mode" && pic_mode=default | |
6579 | ||
6580 | # Use C for the default configuration in the libtool script | |
6581 | tagname= | |
6582 | lt_save_CC="$CC" | |
6583 | ac_ext=c | |
6584 | ac_cpp='$CPP $CPPFLAGS' | |
6585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6588 | ||
6589 | ||
6590 | # Source file extension for C test sources. | |
6591 | ac_ext=c | |
6592 | ||
6593 | # Object file extension for compiled C test sources. | |
6594 | objext=o | |
6595 | objext=$objext | |
6596 | ||
6597 | # Code to be used in simple compile tests | |
6598 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
6599 | ||
6600 | # Code to be used in simple link tests | |
6601 | lt_simple_link_test_code='int main(){return(0);}\n' | |
6602 | ||
6603 | ||
6604 | # If no C compiler was specified, use CC. | |
6605 | LTCC=${LTCC-"$CC"} | |
6606 | ||
6607 | # If no C compiler flags were specified, use CFLAGS. | |
6608 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6609 | ||
6610 | # Allow CC to be a program name with arguments. | |
6611 | compiler=$CC | |
6612 | ||
6613 | ||
6614 | # save warnings/boilerplate of simple test code | |
6615 | ac_outfile=conftest.$ac_objext | |
6616 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6617 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6618 | _lt_compiler_boilerplate=`cat conftest.err` | |
6619 | $rm conftest* | |
6620 | ||
6621 | ac_outfile=conftest.$ac_objext | |
6622 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
6623 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6624 | _lt_linker_boilerplate=`cat conftest.err` | |
6625 | $rm conftest* | |
6626 | ||
6627 | ||
6628 | ||
6629 | lt_prog_compiler_no_builtin_flag= | |
6630 | ||
6631 | if test "$GCC" = yes; then | |
6632 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6633 | ||
6634 | ||
6635 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6636 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6637 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6639 | else | |
6640 | lt_cv_prog_compiler_rtti_exceptions=no | |
6641 | ac_outfile=conftest.$ac_objext | |
6642 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6643 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6644 | # Insert the option either (1) after the last *FLAGS variable, or | |
6645 | # (2) before a word containing "conftest.", or (3) at the end. | |
6646 | # Note that $ac_compile itself does not contain backslashes and begins | |
6647 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6648 | # The option is referenced via a variable to avoid confusing sed. | |
6649 | lt_compile=`echo "$ac_compile" | $SED \ | |
6650 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6651 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6652 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 6653 | (eval echo "\"\$as_me:6653: $lt_compile\"" >&5) |
bf9f3bac | 6654 | (eval "$lt_compile" 2>conftest.err) |
6655 | ac_status=$? | |
6656 | cat conftest.err >&5 | |
5e9b5d83 | 6657 | echo "$as_me:6657: \$? = $ac_status" >&5 |
bf9f3bac | 6658 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6659 | # The compiler can only warn and ignore the option if not recognized | |
6660 | # So say no if there are warnings other than the usual output. | |
6661 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6662 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6663 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6664 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6665 | fi | |
6666 | fi | |
6667 | $rm conftest* | |
6668 | ||
6669 | fi | |
6670 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6671 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6672 | ||
6673 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6674 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6675 | else | |
6676 | : | |
6677 | fi | |
6678 | ||
6679 | fi | |
6680 | ||
6681 | lt_prog_compiler_wl= | |
6682 | lt_prog_compiler_pic= | |
6683 | lt_prog_compiler_static= | |
6684 | ||
6685 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6686 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6687 | ||
6688 | if test "$GCC" = yes; then | |
6689 | lt_prog_compiler_wl='-Wl,' | |
6690 | lt_prog_compiler_static='-static' | |
6691 | ||
6692 | case $host_os in | |
6693 | aix*) | |
6694 | # All AIX code is PIC. | |
6695 | if test "$host_cpu" = ia64; then | |
6696 | # AIX 5 now supports IA64 processor | |
6697 | lt_prog_compiler_static='-Bstatic' | |
6698 | fi | |
6699 | ;; | |
6700 | ||
6701 | amigaos*) | |
6702 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6703 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6704 | # like `-m68040'. | |
6705 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6706 | ;; | |
6707 | ||
6708 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6709 | # PIC is the default for these OSes. | |
6710 | ;; | |
6711 | ||
6712 | mingw* | pw32* | os2*) | |
6713 | # This hack is so that the source file can tell whether it is being | |
6714 | # built for inclusion in a dll (and should export symbols for example). | |
6715 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6716 | ;; | |
6717 | ||
6718 | darwin* | rhapsody*) | |
6719 | # PIC is the default on this platform | |
6720 | # Common symbols not allowed in MH_DYLIB files | |
6721 | lt_prog_compiler_pic='-fno-common' | |
6722 | ;; | |
6723 | ||
6724 | interix3*) | |
6725 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6726 | # Instead, we relocate shared libraries at runtime. | |
6727 | ;; | |
6728 | ||
6729 | msdosdjgpp*) | |
6730 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6731 | # on systems that don't support them. | |
6732 | lt_prog_compiler_can_build_shared=no | |
6733 | enable_shared=no | |
6734 | ;; | |
6735 | ||
6736 | sysv4*MP*) | |
6737 | if test -d /usr/nec; then | |
6738 | lt_prog_compiler_pic=-Kconform_pic | |
6739 | fi | |
6740 | ;; | |
6741 | ||
6742 | hpux*) | |
6743 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6744 | # not for PA HP-UX. | |
6745 | case $host_cpu in | |
6746 | hppa*64*|ia64*) | |
6747 | # +Z the default | |
6748 | ;; | |
6749 | *) | |
6750 | lt_prog_compiler_pic='-fPIC' | |
6751 | ;; | |
6752 | esac | |
6753 | ;; | |
6754 | ||
6755 | *) | |
6756 | lt_prog_compiler_pic='-fPIC' | |
6757 | ;; | |
6758 | esac | |
6759 | else | |
6760 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6761 | case $host_os in | |
6762 | aix*) | |
6763 | lt_prog_compiler_wl='-Wl,' | |
6764 | if test "$host_cpu" = ia64; then | |
6765 | # AIX 5 now supports IA64 processor | |
6766 | lt_prog_compiler_static='-Bstatic' | |
6767 | else | |
6768 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6769 | fi | |
6770 | ;; | |
6771 | darwin*) | |
6772 | # PIC is the default on this platform | |
6773 | # Common symbols not allowed in MH_DYLIB files | |
6774 | case $cc_basename in | |
6775 | xlc*) | |
6776 | lt_prog_compiler_pic='-qnocommon' | |
6777 | lt_prog_compiler_wl='-Wl,' | |
6778 | ;; | |
6779 | esac | |
6780 | ;; | |
6781 | ||
6782 | mingw* | pw32* | os2*) | |
6783 | # This hack is so that the source file can tell whether it is being | |
6784 | # built for inclusion in a dll (and should export symbols for example). | |
6785 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6786 | ;; | |
6787 | ||
6788 | hpux9* | hpux10* | hpux11*) | |
6789 | lt_prog_compiler_wl='-Wl,' | |
6790 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6791 | # not for PA HP-UX. | |
6792 | case $host_cpu in | |
6793 | hppa*64*|ia64*) | |
6794 | # +Z the default | |
6795 | ;; | |
6796 | *) | |
6797 | lt_prog_compiler_pic='+Z' | |
6798 | ;; | |
6799 | esac | |
6800 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6801 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6802 | ;; | |
6803 | ||
6804 | irix5* | irix6* | nonstopux*) | |
6805 | lt_prog_compiler_wl='-Wl,' | |
6806 | # PIC (with -KPIC) is the default. | |
6807 | lt_prog_compiler_static='-non_shared' | |
6808 | ;; | |
6809 | ||
6810 | newsos6) | |
6811 | lt_prog_compiler_pic='-KPIC' | |
6812 | lt_prog_compiler_static='-Bstatic' | |
6813 | ;; | |
6814 | ||
6815 | linux*) | |
6816 | case $cc_basename in | |
6817 | icc* | ecc*) | |
6818 | lt_prog_compiler_wl='-Wl,' | |
6819 | lt_prog_compiler_pic='-KPIC' | |
6820 | lt_prog_compiler_static='-static' | |
6821 | ;; | |
6822 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6823 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6824 | # which looks to be a dead project) | |
6825 | lt_prog_compiler_wl='-Wl,' | |
6826 | lt_prog_compiler_pic='-fpic' | |
6827 | lt_prog_compiler_static='-Bstatic' | |
6828 | ;; | |
6829 | ccc*) | |
6830 | lt_prog_compiler_wl='-Wl,' | |
6831 | # All Alpha code is PIC. | |
6832 | lt_prog_compiler_static='-non_shared' | |
6833 | ;; | |
6834 | esac | |
6835 | ;; | |
6836 | ||
6837 | osf3* | osf4* | osf5*) | |
6838 | lt_prog_compiler_wl='-Wl,' | |
6839 | # All OSF/1 code is PIC. | |
6840 | lt_prog_compiler_static='-non_shared' | |
6841 | ;; | |
6842 | ||
6843 | solaris*) | |
6844 | lt_prog_compiler_pic='-KPIC' | |
6845 | lt_prog_compiler_static='-Bstatic' | |
6846 | case $cc_basename in | |
6847 | f77* | f90* | f95*) | |
6848 | lt_prog_compiler_wl='-Qoption ld ';; | |
6849 | *) | |
6850 | lt_prog_compiler_wl='-Wl,';; | |
6851 | esac | |
6852 | ;; | |
6853 | ||
6854 | sunos4*) | |
6855 | lt_prog_compiler_wl='-Qoption ld ' | |
6856 | lt_prog_compiler_pic='-PIC' | |
6857 | lt_prog_compiler_static='-Bstatic' | |
6858 | ;; | |
6859 | ||
6860 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
6861 | lt_prog_compiler_wl='-Wl,' | |
6862 | lt_prog_compiler_pic='-KPIC' | |
6863 | lt_prog_compiler_static='-Bstatic' | |
6864 | ;; | |
6865 | ||
6866 | sysv4*MP*) | |
6867 | if test -d /usr/nec ;then | |
6868 | lt_prog_compiler_pic='-Kconform_pic' | |
6869 | lt_prog_compiler_static='-Bstatic' | |
6870 | fi | |
6871 | ;; | |
6872 | ||
6873 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6874 | lt_prog_compiler_wl='-Wl,' | |
6875 | lt_prog_compiler_pic='-KPIC' | |
6876 | lt_prog_compiler_static='-Bstatic' | |
6877 | ;; | |
6878 | ||
6879 | unicos*) | |
6880 | lt_prog_compiler_wl='-Wl,' | |
6881 | lt_prog_compiler_can_build_shared=no | |
6882 | ;; | |
6883 | ||
6884 | uts4*) | |
6885 | lt_prog_compiler_pic='-pic' | |
6886 | lt_prog_compiler_static='-Bstatic' | |
6887 | ;; | |
6888 | ||
6889 | *) | |
6890 | lt_prog_compiler_can_build_shared=no | |
6891 | ;; | |
6892 | esac | |
6893 | fi | |
6894 | ||
6895 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6896 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6897 | ||
6898 | # | |
6899 | # Check to make sure the PIC flag actually works. | |
6900 | # | |
6901 | if test -n "$lt_prog_compiler_pic"; then | |
6902 | ||
6903 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6904 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6905 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6907 | else | |
6908 | lt_prog_compiler_pic_works=no | |
6909 | ac_outfile=conftest.$ac_objext | |
6910 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6911 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6912 | # Insert the option either (1) after the last *FLAGS variable, or | |
6913 | # (2) before a word containing "conftest.", or (3) at the end. | |
6914 | # Note that $ac_compile itself does not contain backslashes and begins | |
6915 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6916 | # The option is referenced via a variable to avoid confusing sed. | |
6917 | lt_compile=`echo "$ac_compile" | $SED \ | |
6918 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6919 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6920 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 6921 | (eval echo "\"\$as_me:6921: $lt_compile\"" >&5) |
bf9f3bac | 6922 | (eval "$lt_compile" 2>conftest.err) |
6923 | ac_status=$? | |
6924 | cat conftest.err >&5 | |
5e9b5d83 | 6925 | echo "$as_me:6925: \$? = $ac_status" >&5 |
bf9f3bac | 6926 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6927 | # The compiler can only warn and ignore the option if not recognized | |
6928 | # So say no if there are warnings other than the usual output. | |
6929 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6930 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6931 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6932 | lt_prog_compiler_pic_works=yes | |
6933 | fi | |
6934 | fi | |
6935 | $rm conftest* | |
6936 | ||
6937 | fi | |
6938 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6939 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6940 | ||
6941 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6942 | case $lt_prog_compiler_pic in | |
6943 | "" | " "*) ;; | |
6944 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6945 | esac | |
6946 | else | |
6947 | lt_prog_compiler_pic= | |
6948 | lt_prog_compiler_can_build_shared=no | |
6949 | fi | |
6950 | ||
6951 | fi | |
6952 | case $host_os in | |
6953 | # For platforms which do not support PIC, -DPIC is meaningless: | |
6954 | *djgpp*) | |
6955 | lt_prog_compiler_pic= | |
6956 | ;; | |
6957 | *) | |
6958 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6959 | ;; | |
6960 | esac | |
6961 | ||
6962 | # | |
6963 | # Check to make sure the static flag actually works. | |
6964 | # | |
6965 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
6966 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
6967 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
6968 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
6969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6970 | else | |
6971 | lt_prog_compiler_static_works=no | |
6972 | save_LDFLAGS="$LDFLAGS" | |
6973 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
6974 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6975 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6976 | # The linker can only warn and ignore the option if not recognized | |
6977 | # So say no if there are warnings | |
6978 | if test -s conftest.err; then | |
6979 | # Append any errors to the config.log. | |
6980 | cat conftest.err 1>&5 | |
6981 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
6982 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6983 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6984 | lt_prog_compiler_static_works=yes | |
6985 | fi | |
6986 | else | |
6987 | lt_prog_compiler_static_works=yes | |
6988 | fi | |
6989 | fi | |
6990 | $rm conftest* | |
6991 | LDFLAGS="$save_LDFLAGS" | |
6992 | ||
6993 | fi | |
6994 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6995 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6996 | ||
6997 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
6998 | : | |
6999 | else | |
7000 | lt_prog_compiler_static= | |
7001 | fi | |
7002 | ||
7003 | ||
7004 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7005 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7006 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7008 | else | |
7009 | lt_cv_prog_compiler_c_o=no | |
7010 | $rm -r conftest 2>/dev/null | |
7011 | mkdir conftest | |
7012 | cd conftest | |
7013 | mkdir out | |
7014 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7015 | ||
7016 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7017 | # Insert the option either (1) after the last *FLAGS variable, or | |
7018 | # (2) before a word containing "conftest.", or (3) at the end. | |
7019 | # Note that $ac_compile itself does not contain backslashes and begins | |
7020 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7021 | lt_compile=`echo "$ac_compile" | $SED \ | |
7022 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7023 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7024 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 7025 | (eval echo "\"\$as_me:7025: $lt_compile\"" >&5) |
bf9f3bac | 7026 | (eval "$lt_compile" 2>out/conftest.err) |
7027 | ac_status=$? | |
7028 | cat out/conftest.err >&5 | |
5e9b5d83 | 7029 | echo "$as_me:7029: \$? = $ac_status" >&5 |
bf9f3bac | 7030 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7031 | then | |
7032 | # The compiler can only warn and ignore the option if not recognized | |
7033 | # So say no if there are warnings | |
7034 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7035 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7036 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7037 | lt_cv_prog_compiler_c_o=yes | |
7038 | fi | |
7039 | fi | |
7040 | chmod u+w . 2>&5 | |
7041 | $rm conftest* | |
7042 | # SGI C++ compiler will create directory out/ii_files/ for | |
7043 | # template instantiation | |
7044 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
7045 | $rm out/* && rmdir out | |
7046 | cd .. | |
7047 | rmdir conftest | |
7048 | $rm conftest* | |
7049 | ||
7050 | fi | |
7051 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7052 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7053 | ||
7054 | ||
7055 | hard_links="nottested" | |
7056 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7057 | # do not overwrite the value of need_locks provided by the user | |
7058 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7059 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7060 | hard_links=yes | |
7061 | $rm conftest* | |
7062 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7063 | touch conftest.a | |
7064 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7065 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7066 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7067 | echo "${ECHO_T}$hard_links" >&6 | |
7068 | if test "$hard_links" = no; then | |
7069 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7070 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7071 | need_locks=warn | |
7072 | fi | |
7073 | else | |
7074 | need_locks=no | |
7075 | fi | |
7076 | ||
7077 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7078 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7079 | ||
7080 | runpath_var= | |
7081 | allow_undefined_flag= | |
7082 | enable_shared_with_static_runtimes=no | |
7083 | archive_cmds= | |
7084 | archive_expsym_cmds= | |
7085 | old_archive_From_new_cmds= | |
7086 | old_archive_from_expsyms_cmds= | |
7087 | export_dynamic_flag_spec= | |
7088 | whole_archive_flag_spec= | |
7089 | thread_safe_flag_spec= | |
7090 | hardcode_libdir_flag_spec= | |
7091 | hardcode_libdir_flag_spec_ld= | |
7092 | hardcode_libdir_separator= | |
7093 | hardcode_direct=no | |
7094 | hardcode_minus_L=no | |
7095 | hardcode_shlibpath_var=unsupported | |
7096 | link_all_deplibs=unknown | |
7097 | hardcode_automatic=no | |
7098 | module_cmds= | |
7099 | module_expsym_cmds= | |
7100 | always_export_symbols=no | |
7101 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7102 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7103 | # included in the symbol list | |
7104 | include_expsyms= | |
7105 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7106 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7107 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7108 | # as well as any symbol that contains `d'. | |
7109 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7110 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7111 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7112 | # the symbol is explicitly referenced. Since portable code cannot | |
7113 | # rely on this symbol name, it's probably fine to never include it in | |
7114 | # preloaded symbol tables. | |
7115 | extract_expsyms_cmds= | |
7116 | # Just being paranoid about ensuring that cc_basename is set. | |
7117 | for cc_temp in $compiler""; do | |
7118 | case $cc_temp in | |
7119 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7120 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7121 | \-*) ;; | |
7122 | *) break;; | |
7123 | esac | |
7124 | done | |
7125 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7126 | ||
7127 | case $host_os in | |
7128 | cygwin* | mingw* | pw32*) | |
7129 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7130 | # When not using gcc, we currently assume that we are using | |
7131 | # Microsoft Visual C++. | |
7132 | if test "$GCC" != yes; then | |
7133 | with_gnu_ld=no | |
7134 | fi | |
7135 | ;; | |
7136 | interix*) | |
7137 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7138 | with_gnu_ld=yes | |
7139 | ;; | |
7140 | openbsd*) | |
7141 | with_gnu_ld=no | |
7142 | ;; | |
7143 | esac | |
7144 | ||
7145 | ld_shlibs=yes | |
7146 | if test "$with_gnu_ld" = yes; then | |
7147 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7148 | wlarc='${wl}' | |
7149 | ||
7150 | # Set some defaults for GNU ld with shared library support. These | |
7151 | # are reset later if shared libraries are not supported. Putting them | |
7152 | # here allows them to be overridden if necessary. | |
7153 | runpath_var=LD_RUN_PATH | |
7154 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
7155 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7156 | # ancient GNU ld didn't support --whole-archive et. al. | |
7157 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
7158 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7159 | else | |
7160 | whole_archive_flag_spec= | |
7161 | fi | |
7162 | supports_anon_versioning=no | |
7163 | case `$LD -v 2>/dev/null` in | |
7164 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7165 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7166 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7167 | *\ 2.11.*) ;; # other 2.11 versions | |
7168 | *) supports_anon_versioning=yes ;; | |
7169 | esac | |
7170 | ||
7171 | # See if GNU ld supports shared libraries. | |
7172 | case $host_os in | |
7173 | aix3* | aix4* | aix5*) | |
7174 | # On AIX/PPC, the GNU linker is very broken | |
7175 | if test "$host_cpu" != ia64; then | |
7176 | ld_shlibs=no | |
7177 | cat <<EOF 1>&2 | |
7178 | ||
7179 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7180 | *** to be unable to reliably create shared libraries on AIX. | |
7181 | *** Therefore, libtool is disabling shared libraries support. If you | |
7182 | *** really care for shared libraries, you may want to modify your PATH | |
7183 | *** so that a non-GNU linker is found, and then restart. | |
7184 | ||
7185 | EOF | |
7186 | fi | |
7187 | ;; | |
7188 | ||
7189 | amigaos*) | |
7190 | 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)' | |
7191 | hardcode_libdir_flag_spec='-L$libdir' | |
7192 | hardcode_minus_L=yes | |
7193 | ||
7194 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7195 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7196 | # to version 4, is to share data among multiple programs linked | |
7197 | # with the same dynamic library. Since this doesn't match the | |
7198 | # behavior of shared libraries on other platforms, we can't use | |
7199 | # them. | |
7200 | ld_shlibs=no | |
7201 | ;; | |
7202 | ||
7203 | beos*) | |
7204 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7205 | allow_undefined_flag=unsupported | |
7206 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7207 | # support --undefined. This deserves some investigation. FIXME | |
7208 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7209 | else | |
7210 | ld_shlibs=no | |
7211 | fi | |
7212 | ;; | |
7213 | ||
7214 | cygwin* | mingw* | pw32*) | |
7215 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7216 | # as there is no search path for DLLs. | |
7217 | hardcode_libdir_flag_spec='-L$libdir' | |
7218 | allow_undefined_flag=unsupported | |
7219 | always_export_symbols=no | |
7220 | enable_shared_with_static_runtimes=yes | |
7221 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
7222 | ||
7223 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
7224 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7225 | # If the export-symbols file already is a .def file (1st line | |
7226 | # is EXPORTS), use it as is; otherwise, prepend... | |
7227 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7228 | cp $export_symbols $output_objdir/$soname.def; | |
7229 | else | |
7230 | echo EXPORTS > $output_objdir/$soname.def; | |
7231 | cat $export_symbols >> $output_objdir/$soname.def; | |
7232 | fi~ | |
7233 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7234 | else | |
7235 | ld_shlibs=no | |
7236 | fi | |
7237 | ;; | |
7238 | ||
7239 | interix3*) | |
7240 | hardcode_direct=no | |
7241 | hardcode_shlibpath_var=no | |
7242 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7243 | export_dynamic_flag_spec='${wl}-E' | |
7244 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7245 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7246 | # default) and relocated if they conflict, which is a slow very memory | |
7247 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7248 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7249 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7250 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7251 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7252 | ;; | |
7253 | ||
7254 | linux*) | |
7255 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7256 | tmp_addflag= | |
7257 | case $cc_basename,$host_cpu in | |
7258 | pgcc*) # Portland Group C compiler | |
7259 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
7260 | tmp_addflag=' $pic_flag' | |
7261 | ;; | |
7262 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7263 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
7264 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7265 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7266 | tmp_addflag=' -i_dynamic' ;; | |
7267 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7268 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7269 | ifc* | ifort*) # Intel Fortran compiler | |
7270 | tmp_addflag=' -nofor_main' ;; | |
7271 | esac | |
7272 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7273 | ||
7274 | if test $supports_anon_versioning = yes; then | |
7275 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7276 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7277 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7278 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7279 | fi | |
7280 | else | |
7281 | ld_shlibs=no | |
7282 | fi | |
7283 | ;; | |
7284 | ||
7285 | netbsd*) | |
7286 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7287 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7288 | wlarc= | |
7289 | else | |
7290 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7291 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7292 | fi | |
7293 | ;; | |
7294 | ||
7295 | solaris*) | |
7296 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
7297 | ld_shlibs=no | |
7298 | cat <<EOF 1>&2 | |
7299 | ||
7300 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7301 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7302 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7303 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7304 | *** your PATH or compiler configuration so that the native linker is | |
7305 | *** used, and then restart. | |
7306 | ||
7307 | EOF | |
7308 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7309 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7310 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7311 | else | |
7312 | ld_shlibs=no | |
7313 | fi | |
7314 | ;; | |
7315 | ||
7316 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7317 | case `$LD -v 2>&1` in | |
7318 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7319 | ld_shlibs=no | |
7320 | cat <<_LT_EOF 1>&2 | |
7321 | ||
7322 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7323 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7324 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7325 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7326 | *** your PATH or compiler configuration so that the native linker is | |
7327 | *** used, and then restart. | |
7328 | ||
7329 | _LT_EOF | |
7330 | ;; | |
7331 | *) | |
7332 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7333 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
7334 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
7335 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
7336 | else | |
7337 | ld_shlibs=no | |
7338 | fi | |
7339 | ;; | |
7340 | esac | |
7341 | ;; | |
7342 | ||
7343 | sunos4*) | |
7344 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7345 | wlarc= | |
7346 | hardcode_direct=yes | |
7347 | hardcode_shlibpath_var=no | |
7348 | ;; | |
7349 | ||
7350 | *) | |
7351 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7352 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7353 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7354 | else | |
7355 | ld_shlibs=no | |
7356 | fi | |
7357 | ;; | |
7358 | esac | |
7359 | ||
7360 | if test "$ld_shlibs" = no; then | |
7361 | runpath_var= | |
7362 | hardcode_libdir_flag_spec= | |
7363 | export_dynamic_flag_spec= | |
7364 | whole_archive_flag_spec= | |
7365 | fi | |
7366 | else | |
7367 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7368 | case $host_os in | |
7369 | aix3*) | |
7370 | allow_undefined_flag=unsupported | |
7371 | always_export_symbols=yes | |
7372 | 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' | |
7373 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7374 | # are no directories specified by -L. | |
7375 | hardcode_minus_L=yes | |
7376 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7377 | # Neither direct hardcoding nor static linking is supported with a | |
7378 | # broken collect2. | |
7379 | hardcode_direct=unsupported | |
7380 | fi | |
7381 | ;; | |
7382 | ||
7383 | aix4* | aix5*) | |
7384 | if test "$host_cpu" = ia64; then | |
7385 | # On IA64, the linker does run time linking by default, so we don't | |
7386 | # have to do anything special. | |
7387 | aix_use_runtimelinking=no | |
7388 | exp_sym_flag='-Bexport' | |
7389 | no_entry_flag="" | |
7390 | else | |
7391 | # If we're using GNU nm, then we don't want the "-C" option. | |
7392 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7393 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
7394 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
7395 | else | |
7396 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
7397 | fi | |
7398 | aix_use_runtimelinking=no | |
7399 | ||
7400 | # Test if we are trying to use run time linking or normal | |
7401 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7402 | # need to do runtime linking. | |
7403 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7404 | for ld_flag in $LDFLAGS; do | |
7405 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7406 | aix_use_runtimelinking=yes | |
7407 | break | |
7408 | fi | |
7409 | done | |
7410 | ;; | |
7411 | esac | |
7412 | ||
7413 | exp_sym_flag='-bexport' | |
7414 | no_entry_flag='-bnoentry' | |
7415 | fi | |
7416 | ||
7417 | # When large executables or shared objects are built, AIX ld can | |
7418 | # have problems creating the table of contents. If linking a library | |
7419 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7420 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7421 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7422 | ||
7423 | archive_cmds='' | |
7424 | hardcode_direct=yes | |
7425 | hardcode_libdir_separator=':' | |
7426 | link_all_deplibs=yes | |
7427 | ||
7428 | if test "$GCC" = yes; then | |
7429 | case $host_os in aix4.[012]|aix4.[012].*) | |
7430 | # We only want to do this on AIX 4.2 and lower, the check | |
7431 | # below for broken collect2 doesn't work under 4.3+ | |
7432 | collect2name=`${CC} -print-prog-name=collect2` | |
7433 | if test -f "$collect2name" && \ | |
7434 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7435 | then | |
7436 | # We have reworked collect2 | |
7437 | hardcode_direct=yes | |
7438 | else | |
7439 | # We have old collect2 | |
7440 | hardcode_direct=unsupported | |
7441 | # It fails to find uninstalled libraries when the uninstalled | |
7442 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7443 | # to unsupported forces relinking | |
7444 | hardcode_minus_L=yes | |
7445 | hardcode_libdir_flag_spec='-L$libdir' | |
7446 | hardcode_libdir_separator= | |
7447 | fi | |
7448 | ;; | |
7449 | esac | |
7450 | shared_flag='-shared' | |
7451 | if test "$aix_use_runtimelinking" = yes; then | |
7452 | shared_flag="$shared_flag "'${wl}-G' | |
7453 | fi | |
7454 | else | |
7455 | # not using gcc | |
7456 | if test "$host_cpu" = ia64; then | |
7457 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7458 | # chokes on -Wl,-G. The following line is correct: | |
7459 | shared_flag='-G' | |
7460 | else | |
7461 | if test "$aix_use_runtimelinking" = yes; then | |
7462 | shared_flag='${wl}-G' | |
7463 | else | |
7464 | shared_flag='${wl}-bM:SRE' | |
7465 | fi | |
7466 | fi | |
7467 | fi | |
7468 | ||
7469 | # It seems that -bexpall does not export symbols beginning with | |
7470 | # underscore (_), so it is better to generate a list of symbols to export. | |
7471 | always_export_symbols=yes | |
7472 | if test "$aix_use_runtimelinking" = yes; then | |
7473 | # Warning - without using the other runtime loading flags (-brtl), | |
7474 | # -berok will link without error, but may produce a broken library. | |
7475 | allow_undefined_flag='-berok' | |
7476 | # Determine the default libpath from the value encoded in an empty executable. | |
7477 | cat >conftest.$ac_ext <<_ACEOF | |
7478 | /* confdefs.h. */ | |
7479 | _ACEOF | |
7480 | cat confdefs.h >>conftest.$ac_ext | |
7481 | cat >>conftest.$ac_ext <<_ACEOF | |
7482 | /* end confdefs.h. */ | |
7483 | ||
7484 | int | |
7485 | main () | |
7486 | { | |
7487 | ||
7488 | ; | |
7489 | return 0; | |
7490 | } | |
7491 | _ACEOF | |
7492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7494 | (eval $ac_link) 2>conftest.er1 | |
7495 | ac_status=$? | |
7496 | grep -v '^ *+' conftest.er1 >conftest.err | |
7497 | rm -f conftest.er1 | |
7498 | cat conftest.err >&5 | |
7499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7500 | (exit $ac_status); } && | |
7501 | { ac_try='test -z "$ac_c_werror_flag" | |
7502 | || test ! -s conftest.err' | |
7503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7504 | (eval $ac_try) 2>&5 | |
7505 | ac_status=$? | |
7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7507 | (exit $ac_status); }; } && | |
7508 | { ac_try='test -s conftest$ac_exeext' | |
7509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7510 | (eval $ac_try) 2>&5 | |
7511 | ac_status=$? | |
7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7513 | (exit $ac_status); }; }; then | |
7514 | ||
7515 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7516 | }'` | |
7517 | # Check for a 64-bit object if we didn't find anything. | |
7518 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7519 | }'`; fi | |
7520 | else | |
7521 | echo "$as_me: failed program was:" >&5 | |
7522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7523 | ||
7524 | fi | |
7525 | rm -f conftest.err conftest.$ac_objext \ | |
7526 | conftest$ac_exeext conftest.$ac_ext | |
7527 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7528 | ||
7529 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7530 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7531 | else | |
7532 | if test "$host_cpu" = ia64; then | |
7533 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7534 | allow_undefined_flag="-z nodefs" | |
7535 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
7536 | else | |
7537 | # Determine the default libpath from the value encoded in an empty executable. | |
7538 | cat >conftest.$ac_ext <<_ACEOF | |
7539 | /* confdefs.h. */ | |
7540 | _ACEOF | |
7541 | cat confdefs.h >>conftest.$ac_ext | |
7542 | cat >>conftest.$ac_ext <<_ACEOF | |
7543 | /* end confdefs.h. */ | |
7544 | ||
7545 | int | |
7546 | main () | |
7547 | { | |
7548 | ||
7549 | ; | |
7550 | return 0; | |
7551 | } | |
7552 | _ACEOF | |
7553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7555 | (eval $ac_link) 2>conftest.er1 | |
7556 | ac_status=$? | |
7557 | grep -v '^ *+' conftest.er1 >conftest.err | |
7558 | rm -f conftest.er1 | |
7559 | cat conftest.err >&5 | |
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7561 | (exit $ac_status); } && | |
7562 | { ac_try='test -z "$ac_c_werror_flag" | |
7563 | || test ! -s conftest.err' | |
7564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7565 | (eval $ac_try) 2>&5 | |
7566 | ac_status=$? | |
7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7568 | (exit $ac_status); }; } && | |
7569 | { ac_try='test -s conftest$ac_exeext' | |
7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7571 | (eval $ac_try) 2>&5 | |
7572 | ac_status=$? | |
7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7574 | (exit $ac_status); }; }; then | |
7575 | ||
7576 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7577 | }'` | |
7578 | # Check for a 64-bit object if we didn't find anything. | |
7579 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7580 | }'`; fi | |
7581 | else | |
7582 | echo "$as_me: failed program was:" >&5 | |
7583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7584 | ||
7585 | fi | |
7586 | rm -f conftest.err conftest.$ac_objext \ | |
7587 | conftest$ac_exeext conftest.$ac_ext | |
7588 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7589 | ||
7590 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7591 | # Warning - without using the other run time loading flags, | |
7592 | # -berok will link without error, but may produce a broken library. | |
7593 | no_undefined_flag=' ${wl}-bernotok' | |
7594 | allow_undefined_flag=' ${wl}-berok' | |
7595 | # Exported symbols can be pulled into shared objects from archives | |
7596 | whole_archive_flag_spec='$convenience' | |
7597 | archive_cmds_need_lc=yes | |
7598 | # This is similar to how AIX traditionally builds its shared libraries. | |
7599 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7600 | fi | |
7601 | fi | |
7602 | ;; | |
7603 | ||
7604 | amigaos*) | |
7605 | 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)' | |
7606 | hardcode_libdir_flag_spec='-L$libdir' | |
7607 | hardcode_minus_L=yes | |
7608 | # see comment about different semantics on the GNU ld section | |
7609 | ld_shlibs=no | |
7610 | ;; | |
7611 | ||
7612 | bsdi[45]*) | |
7613 | export_dynamic_flag_spec=-rdynamic | |
7614 | ;; | |
7615 | ||
7616 | cygwin* | mingw* | pw32*) | |
7617 | # When not using gcc, we currently assume that we are using | |
7618 | # Microsoft Visual C++. | |
7619 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7620 | # no search path for DLLs. | |
7621 | hardcode_libdir_flag_spec=' ' | |
7622 | allow_undefined_flag=unsupported | |
7623 | # Tell ltmain to make .lib files, not .a files. | |
7624 | libext=lib | |
7625 | # Tell ltmain to make .dll files, not .so files. | |
7626 | shrext_cmds=".dll" | |
7627 | # FIXME: Setting linknames here is a bad hack. | |
7628 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7629 | # The linker will automatically build a .lib file if we build a DLL. | |
7630 | old_archive_From_new_cmds='true' | |
7631 | # FIXME: Should let the user specify the lib program. | |
7632 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7633 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7634 | enable_shared_with_static_runtimes=yes | |
7635 | ;; | |
7636 | ||
7637 | darwin* | rhapsody*) | |
7638 | case $host_os in | |
7639 | rhapsody* | darwin1.[012]) | |
7640 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7641 | ;; | |
7642 | *) # Darwin 1.3 on | |
7643 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7644 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7645 | else | |
7646 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
7647 | 10.[012]) | |
7648 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7649 | ;; | |
7650 | 10.*) | |
7651 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7652 | ;; | |
7653 | esac | |
7654 | fi | |
7655 | ;; | |
7656 | esac | |
7657 | archive_cmds_need_lc=no | |
7658 | hardcode_direct=no | |
7659 | hardcode_automatic=yes | |
7660 | hardcode_shlibpath_var=unsupported | |
7661 | whole_archive_flag_spec='' | |
7662 | link_all_deplibs=yes | |
7663 | if test "$GCC" = yes ; then | |
7664 | output_verbose_link_cmd='echo' | |
7665 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7666 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7667 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7668 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7669 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7670 | else | |
7671 | case $cc_basename in | |
7672 | xlc*) | |
7673 | output_verbose_link_cmd='echo' | |
7674 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
7675 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7676 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7677 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7678 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7679 | ;; | |
7680 | *) | |
7681 | ld_shlibs=no | |
7682 | ;; | |
7683 | esac | |
7684 | fi | |
7685 | ;; | |
7686 | ||
7687 | dgux*) | |
7688 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7689 | hardcode_libdir_flag_spec='-L$libdir' | |
7690 | hardcode_shlibpath_var=no | |
7691 | ;; | |
7692 | ||
7693 | freebsd1*) | |
7694 | ld_shlibs=no | |
7695 | ;; | |
7696 | ||
7697 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7698 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7699 | # does not break anything, and helps significantly (at the cost of a little | |
7700 | # extra space). | |
7701 | freebsd2.2*) | |
7702 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7703 | hardcode_libdir_flag_spec='-R$libdir' | |
7704 | hardcode_direct=yes | |
7705 | hardcode_shlibpath_var=no | |
7706 | ;; | |
7707 | ||
7708 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7709 | freebsd2*) | |
7710 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7711 | hardcode_direct=yes | |
7712 | hardcode_minus_L=yes | |
7713 | hardcode_shlibpath_var=no | |
7714 | ;; | |
7715 | ||
7716 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7717 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
7718 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7719 | hardcode_libdir_flag_spec='-R$libdir' | |
7720 | hardcode_direct=yes | |
7721 | hardcode_shlibpath_var=no | |
7722 | ;; | |
7723 | ||
7724 | hpux9*) | |
7725 | if test "$GCC" = yes; then | |
7726 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7727 | else | |
7728 | 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' | |
7729 | fi | |
7730 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7731 | hardcode_libdir_separator=: | |
7732 | hardcode_direct=yes | |
7733 | ||
7734 | # hardcode_minus_L: Not really in the search PATH, | |
7735 | # but as the default location of the library. | |
7736 | hardcode_minus_L=yes | |
7737 | export_dynamic_flag_spec='${wl}-E' | |
7738 | ;; | |
7739 | ||
7740 | hpux10*) | |
7741 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7742 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7743 | else | |
7744 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7745 | fi | |
7746 | if test "$with_gnu_ld" = no; then | |
7747 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7748 | hardcode_libdir_separator=: | |
7749 | ||
7750 | hardcode_direct=yes | |
7751 | export_dynamic_flag_spec='${wl}-E' | |
7752 | ||
7753 | # hardcode_minus_L: Not really in the search PATH, | |
7754 | # but as the default location of the library. | |
7755 | hardcode_minus_L=yes | |
7756 | fi | |
7757 | ;; | |
7758 | ||
7759 | hpux11*) | |
7760 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7761 | case $host_cpu in | |
7762 | hppa*64*) | |
7763 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7764 | ;; | |
7765 | ia64*) | |
7766 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7767 | ;; | |
7768 | *) | |
7769 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7770 | ;; | |
7771 | esac | |
7772 | else | |
7773 | case $host_cpu in | |
7774 | hppa*64*) | |
7775 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7776 | ;; | |
7777 | ia64*) | |
7778 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7779 | ;; | |
7780 | *) | |
7781 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7782 | ;; | |
7783 | esac | |
7784 | fi | |
7785 | if test "$with_gnu_ld" = no; then | |
7786 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7787 | hardcode_libdir_separator=: | |
7788 | ||
7789 | case $host_cpu in | |
7790 | hppa*64*|ia64*) | |
7791 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
7792 | hardcode_direct=no | |
7793 | hardcode_shlibpath_var=no | |
7794 | ;; | |
7795 | *) | |
7796 | hardcode_direct=yes | |
7797 | export_dynamic_flag_spec='${wl}-E' | |
7798 | ||
7799 | # hardcode_minus_L: Not really in the search PATH, | |
7800 | # but as the default location of the library. | |
7801 | hardcode_minus_L=yes | |
7802 | ;; | |
7803 | esac | |
7804 | fi | |
7805 | ;; | |
7806 | ||
7807 | irix5* | irix6* | nonstopux*) | |
7808 | if test "$GCC" = yes; then | |
7809 | 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' | |
7810 | else | |
7811 | 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' | |
7812 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7813 | fi | |
7814 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7815 | hardcode_libdir_separator=: | |
7816 | link_all_deplibs=yes | |
7817 | ;; | |
7818 | ||
7819 | netbsd*) | |
7820 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7821 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7822 | else | |
7823 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7824 | fi | |
7825 | hardcode_libdir_flag_spec='-R$libdir' | |
7826 | hardcode_direct=yes | |
7827 | hardcode_shlibpath_var=no | |
7828 | ;; | |
7829 | ||
7830 | newsos6) | |
7831 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7832 | hardcode_direct=yes | |
7833 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7834 | hardcode_libdir_separator=: | |
7835 | hardcode_shlibpath_var=no | |
7836 | ;; | |
7837 | ||
7838 | openbsd*) | |
7839 | hardcode_direct=yes | |
7840 | hardcode_shlibpath_var=no | |
7841 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7842 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7843 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7844 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7845 | export_dynamic_flag_spec='${wl}-E' | |
7846 | else | |
7847 | case $host_os in | |
7848 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7849 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7850 | hardcode_libdir_flag_spec='-R$libdir' | |
7851 | ;; | |
7852 | *) | |
7853 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7854 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7855 | ;; | |
7856 | esac | |
7857 | fi | |
7858 | ;; | |
7859 | ||
7860 | os2*) | |
7861 | hardcode_libdir_flag_spec='-L$libdir' | |
7862 | hardcode_minus_L=yes | |
7863 | allow_undefined_flag=unsupported | |
7864 | 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' | |
7865 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7866 | ;; | |
7867 | ||
7868 | osf3*) | |
7869 | if test "$GCC" = yes; then | |
7870 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7871 | 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' | |
7872 | else | |
7873 | allow_undefined_flag=' -expect_unresolved \*' | |
7874 | 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' | |
7875 | fi | |
7876 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7877 | hardcode_libdir_separator=: | |
7878 | ;; | |
7879 | ||
7880 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7881 | if test "$GCC" = yes; then | |
7882 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7883 | 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' | |
7884 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7885 | else | |
7886 | allow_undefined_flag=' -expect_unresolved \*' | |
7887 | 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' | |
7888 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7889 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
7890 | ||
7891 | # Both c and cxx compiler support -rpath directly | |
7892 | hardcode_libdir_flag_spec='-rpath $libdir' | |
7893 | fi | |
7894 | hardcode_libdir_separator=: | |
7895 | ;; | |
7896 | ||
7897 | solaris*) | |
7898 | no_undefined_flag=' -z text' | |
7899 | if test "$GCC" = yes; then | |
7900 | wlarc='${wl}' | |
7901 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7902 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7903 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7904 | else | |
7905 | wlarc='' | |
7906 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7907 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7908 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7909 | fi | |
7910 | hardcode_libdir_flag_spec='-R$libdir' | |
7911 | hardcode_shlibpath_var=no | |
7912 | case $host_os in | |
7913 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7914 | *) | |
7915 | # The compiler driver will combine linker options so we | |
7916 | # cannot just pass the convience library names through | |
7917 | # without $wl, iff we do not link with $LD. | |
7918 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7919 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7920 | case $wlarc in | |
7921 | '') | |
7922 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7923 | *) | |
7924 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
7925 | esac ;; | |
7926 | esac | |
7927 | link_all_deplibs=yes | |
7928 | ;; | |
7929 | ||
7930 | sunos4*) | |
7931 | if test "x$host_vendor" = xsequent; then | |
7932 | # Use $CC to link under sequent, because it throws in some extra .o | |
7933 | # files that make .init and .fini sections work. | |
7934 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7935 | else | |
7936 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7937 | fi | |
7938 | hardcode_libdir_flag_spec='-L$libdir' | |
7939 | hardcode_direct=yes | |
7940 | hardcode_minus_L=yes | |
7941 | hardcode_shlibpath_var=no | |
7942 | ;; | |
7943 | ||
7944 | sysv4) | |
7945 | case $host_vendor in | |
7946 | sni) | |
7947 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7948 | hardcode_direct=yes # is this really true??? | |
7949 | ;; | |
7950 | siemens) | |
7951 | ## LD is ld it makes a PLAMLIB | |
7952 | ## CC just makes a GrossModule. | |
7953 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7954 | reload_cmds='$CC -r -o $output$reload_objs' | |
7955 | hardcode_direct=no | |
7956 | ;; | |
7957 | motorola) | |
7958 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7959 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
7960 | ;; | |
7961 | esac | |
7962 | runpath_var='LD_RUN_PATH' | |
7963 | hardcode_shlibpath_var=no | |
7964 | ;; | |
7965 | ||
7966 | sysv4.3*) | |
7967 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7968 | hardcode_shlibpath_var=no | |
7969 | export_dynamic_flag_spec='-Bexport' | |
7970 | ;; | |
7971 | ||
7972 | sysv4*MP*) | |
7973 | if test -d /usr/nec; then | |
7974 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7975 | hardcode_shlibpath_var=no | |
7976 | runpath_var=LD_RUN_PATH | |
7977 | hardcode_runpath_var=yes | |
7978 | ld_shlibs=yes | |
7979 | fi | |
7980 | ;; | |
7981 | ||
7982 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
7983 | no_undefined_flag='${wl}-z,text' | |
7984 | archive_cmds_need_lc=no | |
7985 | hardcode_shlibpath_var=no | |
7986 | runpath_var='LD_RUN_PATH' | |
7987 | ||
7988 | if test "$GCC" = yes; then | |
7989 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7990 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7991 | else | |
7992 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7993 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7994 | fi | |
7995 | ;; | |
7996 | ||
7997 | sysv5* | sco3.2v5* | sco5v6*) | |
7998 | # Note: We can NOT use -z defs as we might desire, because we do not | |
7999 | # link with -lc, and that would cause any symbols used from libc to | |
8000 | # always be unresolved, which means just about no library would | |
8001 | # ever link correctly. If we're not using GNU ld we use -z text | |
8002 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8003 | # as -z defs. | |
8004 | no_undefined_flag='${wl}-z,text' | |
8005 | allow_undefined_flag='${wl}-z,nodefs' | |
8006 | archive_cmds_need_lc=no | |
8007 | hardcode_shlibpath_var=no | |
8008 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
8009 | hardcode_libdir_separator=':' | |
8010 | link_all_deplibs=yes | |
8011 | export_dynamic_flag_spec='${wl}-Bexport' | |
8012 | runpath_var='LD_RUN_PATH' | |
8013 | ||
8014 | if test "$GCC" = yes; then | |
8015 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8016 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8017 | else | |
8018 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8019 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8020 | fi | |
8021 | ;; | |
8022 | ||
8023 | uts4*) | |
8024 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8025 | hardcode_libdir_flag_spec='-L$libdir' | |
8026 | hardcode_shlibpath_var=no | |
8027 | ;; | |
8028 | ||
8029 | *) | |
8030 | ld_shlibs=no | |
8031 | ;; | |
8032 | esac | |
8033 | fi | |
8034 | ||
8035 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8036 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8037 | test "$ld_shlibs" = no && can_build_shared=no | |
8038 | ||
8039 | # | |
8040 | # Do we need to explicitly link libc? | |
8041 | # | |
8042 | case "x$archive_cmds_need_lc" in | |
8043 | x|xyes) | |
8044 | # Assume -lc should be added | |
8045 | archive_cmds_need_lc=yes | |
8046 | ||
8047 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8048 | case $archive_cmds in | |
8049 | *'~'*) | |
8050 | # FIXME: we may have to deal with multi-command sequences. | |
8051 | ;; | |
8052 | '$CC '*) | |
8053 | # Test whether the compiler implicitly links with -lc since on some | |
8054 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8055 | # to ld, don't add -lc before -lgcc. | |
8056 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8057 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8058 | $rm conftest* | |
8059 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8060 | ||
8061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8062 | (eval $ac_compile) 2>&5 | |
8063 | ac_status=$? | |
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8065 | (exit $ac_status); } 2>conftest.err; then | |
8066 | soname=conftest | |
8067 | lib=conftest | |
8068 | libobjs=conftest.$ac_objext | |
8069 | deplibs= | |
8070 | wl=$lt_prog_compiler_wl | |
8071 | pic_flag=$lt_prog_compiler_pic | |
8072 | compiler_flags=-v | |
8073 | linker_flags=-v | |
8074 | verstring= | |
8075 | output_objdir=. | |
8076 | libname=conftest | |
8077 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8078 | allow_undefined_flag= | |
8079 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8080 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8081 | ac_status=$? | |
8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8083 | (exit $ac_status); } | |
8084 | then | |
8085 | archive_cmds_need_lc=no | |
8086 | else | |
8087 | archive_cmds_need_lc=yes | |
8088 | fi | |
8089 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8090 | else | |
8091 | cat conftest.err 1>&5 | |
8092 | fi | |
8093 | $rm conftest* | |
8094 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8095 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8096 | ;; | |
8097 | esac | |
8098 | fi | |
8099 | ;; | |
8100 | esac | |
8101 | ||
8102 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8103 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8104 | library_names_spec= | |
8105 | libname_spec='lib$name' | |
8106 | soname_spec= | |
8107 | shrext_cmds=".so" | |
8108 | postinstall_cmds= | |
8109 | postuninstall_cmds= | |
8110 | finish_cmds= | |
8111 | finish_eval= | |
8112 | shlibpath_var= | |
8113 | shlibpath_overrides_runpath=unknown | |
8114 | version_type=none | |
8115 | dynamic_linker="$host_os ld.so" | |
8116 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8117 | if test "$GCC" = yes; then | |
8118 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8119 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8120 | # if the path contains ";" then we assume it to be the separator | |
8121 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8122 | # assumed that no part of a normal pathname contains ";" but that should | |
8123 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8124 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8125 | else | |
8126 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8127 | fi | |
8128 | else | |
8129 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8130 | fi | |
8131 | need_lib_prefix=unknown | |
8132 | hardcode_into_libs=no | |
8133 | ||
8134 | # when you set need_version to no, make sure it does not cause -set_version | |
8135 | # flags to be left without arguments | |
8136 | need_version=unknown | |
8137 | ||
8138 | case $host_os in | |
8139 | aix3*) | |
8140 | version_type=linux | |
8141 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8142 | shlibpath_var=LIBPATH | |
8143 | ||
8144 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8145 | soname_spec='${libname}${release}${shared_ext}$major' | |
8146 | ;; | |
8147 | ||
8148 | aix4* | aix5*) | |
8149 | version_type=linux | |
8150 | need_lib_prefix=no | |
8151 | need_version=no | |
8152 | hardcode_into_libs=yes | |
8153 | if test "$host_cpu" = ia64; then | |
8154 | # AIX 5 supports IA64 | |
8155 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8156 | shlibpath_var=LD_LIBRARY_PATH | |
8157 | else | |
8158 | # With GCC up to 2.95.x, collect2 would create an import file | |
8159 | # for dependence libraries. The import file would start with | |
8160 | # the line `#! .'. This would cause the generated library to | |
8161 | # depend on `.', always an invalid library. This was fixed in | |
8162 | # development snapshots of GCC prior to 3.0. | |
8163 | case $host_os in | |
8164 | aix4 | aix4.[01] | aix4.[01].*) | |
8165 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8166 | echo ' yes ' | |
8167 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8168 | : | |
8169 | else | |
8170 | can_build_shared=no | |
8171 | fi | |
8172 | ;; | |
8173 | esac | |
8174 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8175 | # soname into executable. Probably we can add versioning support to | |
8176 | # collect2, so additional links can be useful in future. | |
8177 | if test "$aix_use_runtimelinking" = yes; then | |
8178 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8179 | # instead of lib<name>.a to let people know that these are not | |
8180 | # typical AIX shared libraries. | |
8181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8182 | else | |
8183 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8184 | # and later when we are not doing run time linking. | |
8185 | library_names_spec='${libname}${release}.a $libname.a' | |
8186 | soname_spec='${libname}${release}${shared_ext}$major' | |
8187 | fi | |
8188 | shlibpath_var=LIBPATH | |
8189 | fi | |
8190 | ;; | |
8191 | ||
8192 | amigaos*) | |
8193 | library_names_spec='$libname.ixlibrary $libname.a' | |
8194 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8195 | 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' | |
8196 | ;; | |
8197 | ||
8198 | beos*) | |
8199 | library_names_spec='${libname}${shared_ext}' | |
8200 | dynamic_linker="$host_os ld.so" | |
8201 | shlibpath_var=LIBRARY_PATH | |
8202 | ;; | |
8203 | ||
8204 | bsdi[45]*) | |
8205 | version_type=linux | |
8206 | need_version=no | |
8207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8208 | soname_spec='${libname}${release}${shared_ext}$major' | |
8209 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8210 | shlibpath_var=LD_LIBRARY_PATH | |
8211 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8212 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8213 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8214 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8215 | # libtool to hard-code these into programs | |
8216 | ;; | |
8217 | ||
8218 | cygwin* | mingw* | pw32*) | |
8219 | version_type=windows | |
8220 | shrext_cmds=".dll" | |
8221 | need_version=no | |
8222 | need_lib_prefix=no | |
8223 | ||
8224 | case $GCC,$host_os in | |
8225 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8226 | library_names_spec='$libname.dll.a' | |
8227 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8228 | postinstall_cmds='base_file=`basename \${file}`~ | |
8229 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
8230 | dldir=$destdir/`dirname \$dlpath`~ | |
8231 | test -d \$dldir || mkdir -p \$dldir~ | |
8232 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8233 | chmod a+x \$dldir/$dlname' | |
8234 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8235 | dlpath=$dir/\$dldll~ | |
8236 | $rm \$dlpath' | |
8237 | shlibpath_overrides_runpath=yes | |
8238 | ||
8239 | case $host_os in | |
8240 | cygwin*) | |
8241 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8242 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8243 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8244 | ;; | |
8245 | mingw*) | |
8246 | # MinGW DLLs use traditional 'lib' prefix | |
8247 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8248 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8249 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
8250 | # It is most probably a Windows format PATH printed by | |
8251 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8252 | # path with ; separators, and with drive letters. We can handle the | |
8253 | # drive letters (cygwin fileutils understands them), so leave them, | |
8254 | # especially as we might pass files found there to a mingw objdump, | |
8255 | # which wouldn't understand a cygwinified path. Ahh. | |
8256 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8257 | else | |
8258 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8259 | fi | |
8260 | ;; | |
8261 | pw32*) | |
8262 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8263 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8264 | ;; | |
8265 | esac | |
8266 | ;; | |
8267 | ||
8268 | *) | |
8269 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8270 | ;; | |
8271 | esac | |
8272 | dynamic_linker='Win32 ld.exe' | |
8273 | # FIXME: first we should search . and the directory the executable is in | |
8274 | shlibpath_var=PATH | |
8275 | ;; | |
8276 | ||
8277 | darwin* | rhapsody*) | |
8278 | dynamic_linker="$host_os dyld" | |
8279 | version_type=darwin | |
8280 | need_lib_prefix=no | |
8281 | need_version=no | |
8282 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8283 | soname_spec='${libname}${release}${major}$shared_ext' | |
8284 | shlibpath_overrides_runpath=yes | |
8285 | shlibpath_var=DYLD_LIBRARY_PATH | |
8286 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8287 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
8288 | if test "$GCC" = yes; then | |
8289 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
8290 | else | |
8291 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8292 | fi | |
8293 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8294 | ;; | |
8295 | ||
8296 | dgux*) | |
8297 | version_type=linux | |
8298 | need_lib_prefix=no | |
8299 | need_version=no | |
8300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8301 | soname_spec='${libname}${release}${shared_ext}$major' | |
8302 | shlibpath_var=LD_LIBRARY_PATH | |
8303 | ;; | |
8304 | ||
8305 | freebsd1*) | |
8306 | dynamic_linker=no | |
8307 | ;; | |
8308 | ||
8309 | kfreebsd*-gnu) | |
8310 | version_type=linux | |
8311 | need_lib_prefix=no | |
8312 | need_version=no | |
8313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8314 | soname_spec='${libname}${release}${shared_ext}$major' | |
8315 | shlibpath_var=LD_LIBRARY_PATH | |
8316 | shlibpath_overrides_runpath=no | |
8317 | hardcode_into_libs=yes | |
8318 | dynamic_linker='GNU ld.so' | |
8319 | ;; | |
8320 | ||
8321 | freebsd* | dragonfly*) | |
8322 | # DragonFly does not have aout. When/if they implement a new | |
8323 | # versioning mechanism, adjust this. | |
8324 | if test -x /usr/bin/objformat; then | |
8325 | objformat=`/usr/bin/objformat` | |
8326 | else | |
8327 | case $host_os in | |
8328 | freebsd[123]*) objformat=aout ;; | |
8329 | *) objformat=elf ;; | |
8330 | esac | |
8331 | fi | |
8332 | version_type=freebsd-$objformat | |
8333 | case $version_type in | |
8334 | freebsd-elf*) | |
8335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8336 | need_version=no | |
8337 | need_lib_prefix=no | |
8338 | ;; | |
8339 | freebsd-*) | |
8340 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8341 | need_version=yes | |
8342 | ;; | |
8343 | esac | |
8344 | shlibpath_var=LD_LIBRARY_PATH | |
8345 | case $host_os in | |
8346 | freebsd2*) | |
8347 | shlibpath_overrides_runpath=yes | |
8348 | ;; | |
8349 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8350 | shlibpath_overrides_runpath=yes | |
8351 | hardcode_into_libs=yes | |
8352 | ;; | |
8353 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8354 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8355 | shlibpath_overrides_runpath=no | |
8356 | hardcode_into_libs=yes | |
8357 | ;; | |
8358 | freebsd*) # from 4.6 on | |
8359 | shlibpath_overrides_runpath=yes | |
8360 | hardcode_into_libs=yes | |
8361 | ;; | |
8362 | esac | |
8363 | ;; | |
8364 | ||
8365 | gnu*) | |
8366 | version_type=linux | |
8367 | need_lib_prefix=no | |
8368 | need_version=no | |
8369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8370 | soname_spec='${libname}${release}${shared_ext}$major' | |
8371 | shlibpath_var=LD_LIBRARY_PATH | |
8372 | hardcode_into_libs=yes | |
8373 | ;; | |
8374 | ||
8375 | hpux9* | hpux10* | hpux11*) | |
8376 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8377 | # link against other versions. | |
8378 | version_type=sunos | |
8379 | need_lib_prefix=no | |
8380 | need_version=no | |
8381 | case $host_cpu in | |
8382 | ia64*) | |
8383 | shrext_cmds='.so' | |
8384 | hardcode_into_libs=yes | |
8385 | dynamic_linker="$host_os dld.so" | |
8386 | shlibpath_var=LD_LIBRARY_PATH | |
8387 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8389 | soname_spec='${libname}${release}${shared_ext}$major' | |
8390 | if test "X$HPUX_IA64_MODE" = X32; then | |
8391 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8392 | else | |
8393 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8394 | fi | |
8395 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8396 | ;; | |
8397 | hppa*64*) | |
8398 | shrext_cmds='.sl' | |
8399 | hardcode_into_libs=yes | |
8400 | dynamic_linker="$host_os dld.sl" | |
8401 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8402 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8404 | soname_spec='${libname}${release}${shared_ext}$major' | |
8405 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8406 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8407 | ;; | |
8408 | *) | |
8409 | shrext_cmds='.sl' | |
8410 | dynamic_linker="$host_os dld.sl" | |
8411 | shlibpath_var=SHLIB_PATH | |
8412 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8414 | soname_spec='${libname}${release}${shared_ext}$major' | |
8415 | ;; | |
8416 | esac | |
8417 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8418 | postinstall_cmds='chmod 555 $lib' | |
8419 | ;; | |
8420 | ||
8421 | interix3*) | |
8422 | version_type=linux | |
8423 | need_lib_prefix=no | |
8424 | need_version=no | |
8425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8426 | soname_spec='${libname}${release}${shared_ext}$major' | |
8427 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8428 | shlibpath_var=LD_LIBRARY_PATH | |
8429 | shlibpath_overrides_runpath=no | |
8430 | hardcode_into_libs=yes | |
8431 | ;; | |
8432 | ||
8433 | irix5* | irix6* | nonstopux*) | |
8434 | case $host_os in | |
8435 | nonstopux*) version_type=nonstopux ;; | |
8436 | *) | |
8437 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8438 | version_type=linux | |
8439 | else | |
8440 | version_type=irix | |
8441 | fi ;; | |
8442 | esac | |
8443 | need_lib_prefix=no | |
8444 | need_version=no | |
8445 | soname_spec='${libname}${release}${shared_ext}$major' | |
8446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8447 | case $host_os in | |
8448 | irix5* | nonstopux*) | |
8449 | libsuff= shlibsuff= | |
8450 | ;; | |
8451 | *) | |
8452 | case $LD in # libtool.m4 will add one of these switches to LD | |
8453 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8454 | libsuff= shlibsuff= libmagic=32-bit;; | |
8455 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8456 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8457 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8458 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8459 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8460 | esac | |
8461 | ;; | |
8462 | esac | |
8463 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8464 | shlibpath_overrides_runpath=no | |
8465 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8466 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8467 | hardcode_into_libs=yes | |
8468 | ;; | |
8469 | ||
8470 | # No shared lib support for Linux oldld, aout, or coff. | |
8471 | linux*oldld* | linux*aout* | linux*coff*) | |
8472 | dynamic_linker=no | |
8473 | ;; | |
8474 | ||
8475 | # This must be Linux ELF. | |
8476 | linux*) | |
8477 | version_type=linux | |
8478 | need_lib_prefix=no | |
8479 | need_version=no | |
8480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8481 | soname_spec='${libname}${release}${shared_ext}$major' | |
8482 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8483 | shlibpath_var=LD_LIBRARY_PATH | |
8484 | shlibpath_overrides_runpath=no | |
8485 | # This implies no fast_install, which is unacceptable. | |
8486 | # Some rework will be needed to allow for fast_install | |
8487 | # before this can be enabled. | |
8488 | hardcode_into_libs=yes | |
8489 | ||
8490 | # find out which ABI we are using | |
8491 | libsuff= | |
8492 | case "$host_cpu" in | |
8493 | x86_64*|s390x*|powerpc64*) | |
5e9b5d83 | 8494 | echo '#line 8494 "configure"' > conftest.$ac_ext |
bf9f3bac | 8495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8496 | (eval $ac_compile) 2>&5 | |
8497 | ac_status=$? | |
8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8499 | (exit $ac_status); }; then | |
8500 | case `/usr/bin/file conftest.$ac_objext` in | |
8501 | *64-bit*) | |
8502 | libsuff=64 | |
8503 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
8504 | ;; | |
8505 | esac | |
8506 | fi | |
8507 | rm -rf conftest* | |
8508 | ;; | |
8509 | esac | |
8510 | ||
8511 | # Append ld.so.conf contents to the search path | |
8512 | if test -f /etc/ld.so.conf; then | |
8513 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
8514 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
8515 | fi | |
8516 | ||
8517 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8518 | # powerpc, because MkLinux only supported shared libraries with the | |
8519 | # GNU dynamic linker. Since this was broken with cross compilers, | |
8520 | # most powerpc-linux boxes support dynamic linking these days and | |
8521 | # people can always --disable-shared, the test was removed, and we | |
8522 | # assume the GNU/Linux dynamic linker is in use. | |
8523 | dynamic_linker='GNU/Linux ld.so' | |
8524 | ;; | |
8525 | ||
8526 | knetbsd*-gnu) | |
8527 | version_type=linux | |
8528 | need_lib_prefix=no | |
8529 | need_version=no | |
8530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8531 | soname_spec='${libname}${release}${shared_ext}$major' | |
8532 | shlibpath_var=LD_LIBRARY_PATH | |
8533 | shlibpath_overrides_runpath=no | |
8534 | hardcode_into_libs=yes | |
8535 | dynamic_linker='GNU ld.so' | |
8536 | ;; | |
8537 | ||
8538 | netbsd*) | |
8539 | version_type=sunos | |
8540 | need_lib_prefix=no | |
8541 | need_version=no | |
8542 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8545 | dynamic_linker='NetBSD (a.out) ld.so' | |
8546 | else | |
8547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8548 | soname_spec='${libname}${release}${shared_ext}$major' | |
8549 | dynamic_linker='NetBSD ld.elf_so' | |
8550 | fi | |
8551 | shlibpath_var=LD_LIBRARY_PATH | |
8552 | shlibpath_overrides_runpath=yes | |
8553 | hardcode_into_libs=yes | |
8554 | ;; | |
8555 | ||
8556 | newsos6) | |
8557 | version_type=linux | |
8558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8559 | shlibpath_var=LD_LIBRARY_PATH | |
8560 | shlibpath_overrides_runpath=yes | |
8561 | ;; | |
8562 | ||
8563 | nto-qnx*) | |
8564 | version_type=linux | |
8565 | need_lib_prefix=no | |
8566 | need_version=no | |
8567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8568 | soname_spec='${libname}${release}${shared_ext}$major' | |
8569 | shlibpath_var=LD_LIBRARY_PATH | |
8570 | shlibpath_overrides_runpath=yes | |
8571 | ;; | |
8572 | ||
8573 | openbsd*) | |
8574 | version_type=sunos | |
8575 | sys_lib_dlsearch_path_spec="/usr/lib" | |
8576 | need_lib_prefix=no | |
8577 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
8578 | case $host_os in | |
8579 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
8580 | *) need_version=no ;; | |
8581 | esac | |
8582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8583 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8584 | shlibpath_var=LD_LIBRARY_PATH | |
8585 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8586 | case $host_os in | |
8587 | openbsd2.[89] | openbsd2.[89].*) | |
8588 | shlibpath_overrides_runpath=no | |
8589 | ;; | |
8590 | *) | |
8591 | shlibpath_overrides_runpath=yes | |
8592 | ;; | |
8593 | esac | |
8594 | else | |
8595 | shlibpath_overrides_runpath=yes | |
8596 | fi | |
8597 | ;; | |
8598 | ||
8599 | os2*) | |
8600 | libname_spec='$name' | |
8601 | shrext_cmds=".dll" | |
8602 | need_lib_prefix=no | |
8603 | library_names_spec='$libname${shared_ext} $libname.a' | |
8604 | dynamic_linker='OS/2 ld.exe' | |
8605 | shlibpath_var=LIBPATH | |
8606 | ;; | |
8607 | ||
8608 | osf3* | osf4* | osf5*) | |
8609 | version_type=osf | |
8610 | need_lib_prefix=no | |
8611 | need_version=no | |
8612 | soname_spec='${libname}${release}${shared_ext}$major' | |
8613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8614 | shlibpath_var=LD_LIBRARY_PATH | |
8615 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
8616 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8617 | ;; | |
8618 | ||
8619 | solaris*) | |
8620 | version_type=linux | |
8621 | need_lib_prefix=no | |
8622 | need_version=no | |
8623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8624 | soname_spec='${libname}${release}${shared_ext}$major' | |
8625 | shlibpath_var=LD_LIBRARY_PATH | |
8626 | shlibpath_overrides_runpath=yes | |
8627 | hardcode_into_libs=yes | |
8628 | # ldd complains unless libraries are executable | |
8629 | postinstall_cmds='chmod +x $lib' | |
8630 | ;; | |
8631 | ||
8632 | sunos4*) | |
8633 | version_type=sunos | |
8634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8635 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8636 | shlibpath_var=LD_LIBRARY_PATH | |
8637 | shlibpath_overrides_runpath=yes | |
8638 | if test "$with_gnu_ld" = yes; then | |
8639 | need_lib_prefix=no | |
8640 | fi | |
8641 | need_version=yes | |
8642 | ;; | |
8643 | ||
8644 | sysv4 | sysv4.3*) | |
8645 | version_type=linux | |
8646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8647 | soname_spec='${libname}${release}${shared_ext}$major' | |
8648 | shlibpath_var=LD_LIBRARY_PATH | |
8649 | case $host_vendor in | |
8650 | sni) | |
8651 | shlibpath_overrides_runpath=no | |
8652 | need_lib_prefix=no | |
8653 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8654 | runpath_var=LD_RUN_PATH | |
8655 | ;; | |
8656 | siemens) | |
8657 | need_lib_prefix=no | |
8658 | ;; | |
8659 | motorola) | |
8660 | need_lib_prefix=no | |
8661 | need_version=no | |
8662 | shlibpath_overrides_runpath=no | |
8663 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8664 | ;; | |
8665 | esac | |
8666 | ;; | |
8667 | ||
8668 | sysv4*MP*) | |
8669 | if test -d /usr/nec ;then | |
8670 | version_type=linux | |
8671 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8672 | soname_spec='$libname${shared_ext}.$major' | |
8673 | shlibpath_var=LD_LIBRARY_PATH | |
8674 | fi | |
8675 | ;; | |
8676 | ||
8677 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
8678 | version_type=freebsd-elf | |
8679 | need_lib_prefix=no | |
8680 | need_version=no | |
8681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8682 | soname_spec='${libname}${release}${shared_ext}$major' | |
8683 | shlibpath_var=LD_LIBRARY_PATH | |
8684 | hardcode_into_libs=yes | |
8685 | if test "$with_gnu_ld" = yes; then | |
8686 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
8687 | shlibpath_overrides_runpath=no | |
8688 | else | |
8689 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
8690 | shlibpath_overrides_runpath=yes | |
8691 | case $host_os in | |
8692 | sco3.2v5*) | |
8693 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
8694 | ;; | |
8695 | esac | |
8696 | fi | |
8697 | sys_lib_dlsearch_path_spec='/usr/lib' | |
8698 | ;; | |
8699 | ||
8700 | uts4*) | |
8701 | version_type=linux | |
8702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8703 | soname_spec='${libname}${release}${shared_ext}$major' | |
8704 | shlibpath_var=LD_LIBRARY_PATH | |
8705 | ;; | |
8706 | ||
8707 | *) | |
8708 | dynamic_linker=no | |
8709 | ;; | |
8710 | esac | |
8711 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8712 | echo "${ECHO_T}$dynamic_linker" >&6 | |
8713 | test "$dynamic_linker" = no && can_build_shared=no | |
8714 | ||
8715 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
8716 | if test "$GCC" = yes; then | |
8717 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
8718 | fi | |
8719 | ||
8720 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8721 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8722 | hardcode_action= | |
8723 | if test -n "$hardcode_libdir_flag_spec" || \ | |
8724 | test -n "$runpath_var" || \ | |
8725 | test "X$hardcode_automatic" = "Xyes" ; then | |
8726 | ||
8727 | # We can hardcode non-existant directories. | |
8728 | if test "$hardcode_direct" != no && | |
8729 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8730 | # have to relink, otherwise we might link with an installed library | |
8731 | # when we should be linking with a yet-to-be-installed one | |
8732 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8733 | test "$hardcode_minus_L" != no; then | |
8734 | # Linking always hardcodes the temporary library directory. | |
8735 | hardcode_action=relink | |
8736 | else | |
8737 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8738 | hardcode_action=immediate | |
8739 | fi | |
8740 | else | |
8741 | # We cannot hardcode anything, or else we can only hardcode existing | |
8742 | # directories. | |
8743 | hardcode_action=unsupported | |
8744 | fi | |
8745 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8746 | echo "${ECHO_T}$hardcode_action" >&6 | |
8747 | ||
8748 | if test "$hardcode_action" = relink; then | |
8749 | # Fast installation is not supported | |
8750 | enable_fast_install=no | |
8751 | elif test "$shlibpath_overrides_runpath" = yes || | |
8752 | test "$enable_shared" = no; then | |
8753 | # Fast installation is not necessary | |
8754 | enable_fast_install=needless | |
8755 | fi | |
8756 | ||
8757 | striplib= | |
8758 | old_striplib= | |
8759 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8760 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8761 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8762 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8763 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8764 | echo "$as_me:$LINENO: result: yes" >&5 | |
8765 | echo "${ECHO_T}yes" >&6 | |
8766 | else | |
8767 | # FIXME - insert some real tests, host_os isn't really good enough | |
8768 | case $host_os in | |
8769 | darwin*) | |
8770 | if test -n "$STRIP" ; then | |
8771 | striplib="$STRIP -x" | |
8772 | echo "$as_me:$LINENO: result: yes" >&5 | |
8773 | echo "${ECHO_T}yes" >&6 | |
8774 | else | |
8775 | echo "$as_me:$LINENO: result: no" >&5 | |
8776 | echo "${ECHO_T}no" >&6 | |
8777 | fi | |
8778 | ;; | |
8779 | *) | |
8780 | echo "$as_me:$LINENO: result: no" >&5 | |
8781 | echo "${ECHO_T}no" >&6 | |
8782 | ;; | |
8783 | esac | |
8784 | fi | |
8785 | ||
8786 | if test "x$enable_dlopen" != xyes; then | |
8787 | enable_dlopen=unknown | |
8788 | enable_dlopen_self=unknown | |
8789 | enable_dlopen_self_static=unknown | |
8790 | else | |
8791 | lt_cv_dlopen=no | |
8792 | lt_cv_dlopen_libs= | |
8793 | ||
8794 | case $host_os in | |
8795 | beos*) | |
8796 | lt_cv_dlopen="load_add_on" | |
8797 | lt_cv_dlopen_libs= | |
8798 | lt_cv_dlopen_self=yes | |
8799 | ;; | |
8800 | ||
8801 | mingw* | pw32*) | |
8802 | lt_cv_dlopen="LoadLibrary" | |
8803 | lt_cv_dlopen_libs= | |
8804 | ;; | |
8805 | ||
8806 | cygwin*) | |
8807 | lt_cv_dlopen="dlopen" | |
8808 | lt_cv_dlopen_libs= | |
8809 | ;; | |
8810 | ||
8811 | darwin*) | |
8812 | # if libdl is installed we need to link against it | |
8813 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8814 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8815 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8817 | else | |
8818 | ac_check_lib_save_LIBS=$LIBS | |
8819 | LIBS="-ldl $LIBS" | |
8820 | cat >conftest.$ac_ext <<_ACEOF | |
8821 | /* confdefs.h. */ | |
8822 | _ACEOF | |
8823 | cat confdefs.h >>conftest.$ac_ext | |
8824 | cat >>conftest.$ac_ext <<_ACEOF | |
8825 | /* end confdefs.h. */ | |
8826 | ||
8827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8828 | #ifdef __cplusplus | |
8829 | extern "C" | |
8830 | #endif | |
8831 | /* We use char because int might match the return type of a gcc2 | |
8832 | builtin and then its argument prototype would still apply. */ | |
8833 | char dlopen (); | |
8834 | int | |
8835 | main () | |
8836 | { | |
8837 | dlopen (); | |
8838 | ; | |
8839 | return 0; | |
8840 | } | |
8841 | _ACEOF | |
8842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8844 | (eval $ac_link) 2>conftest.er1 | |
8845 | ac_status=$? | |
8846 | grep -v '^ *+' conftest.er1 >conftest.err | |
8847 | rm -f conftest.er1 | |
8848 | cat conftest.err >&5 | |
8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8850 | (exit $ac_status); } && | |
8851 | { ac_try='test -z "$ac_c_werror_flag" | |
8852 | || test ! -s conftest.err' | |
8853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8854 | (eval $ac_try) 2>&5 | |
8855 | ac_status=$? | |
8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8857 | (exit $ac_status); }; } && | |
8858 | { ac_try='test -s conftest$ac_exeext' | |
8859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8860 | (eval $ac_try) 2>&5 | |
8861 | ac_status=$? | |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 | (exit $ac_status); }; }; then | |
8864 | ac_cv_lib_dl_dlopen=yes | |
8865 | else | |
8866 | echo "$as_me: failed program was:" >&5 | |
8867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8868 | ||
8869 | ac_cv_lib_dl_dlopen=no | |
8870 | fi | |
8871 | rm -f conftest.err conftest.$ac_objext \ | |
8872 | conftest$ac_exeext conftest.$ac_ext | |
8873 | LIBS=$ac_check_lib_save_LIBS | |
8874 | fi | |
8875 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8876 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8877 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8878 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8879 | else | |
8880 | ||
8881 | lt_cv_dlopen="dyld" | |
8882 | lt_cv_dlopen_libs= | |
8883 | lt_cv_dlopen_self=yes | |
8884 | ||
8885 | fi | |
8886 | ||
8887 | ;; | |
8888 | ||
8889 | *) | |
8890 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8891 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8892 | if test "${ac_cv_func_shl_load+set}" = set; then | |
8893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8894 | else | |
8895 | cat >conftest.$ac_ext <<_ACEOF | |
8896 | /* confdefs.h. */ | |
8897 | _ACEOF | |
8898 | cat confdefs.h >>conftest.$ac_ext | |
8899 | cat >>conftest.$ac_ext <<_ACEOF | |
8900 | /* end confdefs.h. */ | |
8901 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
8902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8903 | #define shl_load innocuous_shl_load | |
8904 | ||
8905 | /* System header to define __stub macros and hopefully few prototypes, | |
8906 | which can conflict with char shl_load (); below. | |
8907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8908 | <limits.h> exists even on freestanding compilers. */ | |
8909 | ||
8910 | #ifdef __STDC__ | |
8911 | # include <limits.h> | |
8912 | #else | |
8913 | # include <assert.h> | |
8914 | #endif | |
8915 | ||
8916 | #undef shl_load | |
8917 | ||
8918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8919 | #ifdef __cplusplus | |
8920 | extern "C" | |
8921 | { | |
8922 | #endif | |
8923 | /* We use char because int might match the return type of a gcc2 | |
8924 | builtin and then its argument prototype would still apply. */ | |
8925 | char shl_load (); | |
8926 | /* The GNU C library defines this for functions which it implements | |
8927 | to always fail with ENOSYS. Some functions are actually named | |
8928 | something starting with __ and the normal name is an alias. */ | |
8929 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8930 | choke me | |
8931 | #else | |
8932 | char (*f) () = shl_load; | |
8933 | #endif | |
8934 | #ifdef __cplusplus | |
8935 | } | |
8936 | #endif | |
8937 | ||
8938 | int | |
8939 | main () | |
8940 | { | |
8941 | return f != shl_load; | |
8942 | ; | |
8943 | return 0; | |
8944 | } | |
8945 | _ACEOF | |
8946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8948 | (eval $ac_link) 2>conftest.er1 | |
8949 | ac_status=$? | |
8950 | grep -v '^ *+' conftest.er1 >conftest.err | |
8951 | rm -f conftest.er1 | |
8952 | cat conftest.err >&5 | |
8953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8954 | (exit $ac_status); } && | |
8955 | { ac_try='test -z "$ac_c_werror_flag" | |
8956 | || test ! -s conftest.err' | |
8957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8958 | (eval $ac_try) 2>&5 | |
8959 | ac_status=$? | |
8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8961 | (exit $ac_status); }; } && | |
8962 | { ac_try='test -s conftest$ac_exeext' | |
8963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8964 | (eval $ac_try) 2>&5 | |
8965 | ac_status=$? | |
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8967 | (exit $ac_status); }; }; then | |
8968 | ac_cv_func_shl_load=yes | |
8969 | else | |
8970 | echo "$as_me: failed program was:" >&5 | |
8971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8972 | ||
8973 | ac_cv_func_shl_load=no | |
8974 | fi | |
8975 | rm -f conftest.err conftest.$ac_objext \ | |
8976 | conftest$ac_exeext conftest.$ac_ext | |
8977 | fi | |
8978 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8979 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8980 | if test $ac_cv_func_shl_load = yes; then | |
8981 | lt_cv_dlopen="shl_load" | |
8982 | else | |
8983 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8984 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8985 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8987 | else | |
8988 | ac_check_lib_save_LIBS=$LIBS | |
8989 | LIBS="-ldld $LIBS" | |
8990 | cat >conftest.$ac_ext <<_ACEOF | |
8991 | /* confdefs.h. */ | |
8992 | _ACEOF | |
8993 | cat confdefs.h >>conftest.$ac_ext | |
8994 | cat >>conftest.$ac_ext <<_ACEOF | |
8995 | /* end confdefs.h. */ | |
8996 | ||
8997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8998 | #ifdef __cplusplus | |
8999 | extern "C" | |
9000 | #endif | |
9001 | /* We use char because int might match the return type of a gcc2 | |
9002 | builtin and then its argument prototype would still apply. */ | |
9003 | char shl_load (); | |
9004 | int | |
9005 | main () | |
9006 | { | |
9007 | shl_load (); | |
9008 | ; | |
9009 | return 0; | |
9010 | } | |
9011 | _ACEOF | |
9012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9014 | (eval $ac_link) 2>conftest.er1 | |
9015 | ac_status=$? | |
9016 | grep -v '^ *+' conftest.er1 >conftest.err | |
9017 | rm -f conftest.er1 | |
9018 | cat conftest.err >&5 | |
9019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9020 | (exit $ac_status); } && | |
9021 | { ac_try='test -z "$ac_c_werror_flag" | |
9022 | || test ! -s conftest.err' | |
9023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9024 | (eval $ac_try) 2>&5 | |
9025 | ac_status=$? | |
9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9027 | (exit $ac_status); }; } && | |
9028 | { ac_try='test -s conftest$ac_exeext' | |
9029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9030 | (eval $ac_try) 2>&5 | |
9031 | ac_status=$? | |
9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9033 | (exit $ac_status); }; }; then | |
9034 | ac_cv_lib_dld_shl_load=yes | |
9035 | else | |
9036 | echo "$as_me: failed program was:" >&5 | |
9037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9038 | ||
9039 | ac_cv_lib_dld_shl_load=no | |
9040 | fi | |
9041 | rm -f conftest.err conftest.$ac_objext \ | |
9042 | conftest$ac_exeext conftest.$ac_ext | |
9043 | LIBS=$ac_check_lib_save_LIBS | |
9044 | fi | |
9045 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9046 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9047 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9048 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9049 | else | |
9050 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9051 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9052 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9054 | else | |
9055 | cat >conftest.$ac_ext <<_ACEOF | |
9056 | /* confdefs.h. */ | |
9057 | _ACEOF | |
9058 | cat confdefs.h >>conftest.$ac_ext | |
9059 | cat >>conftest.$ac_ext <<_ACEOF | |
9060 | /* end confdefs.h. */ | |
9061 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9063 | #define dlopen innocuous_dlopen | |
9064 | ||
9065 | /* System header to define __stub macros and hopefully few prototypes, | |
9066 | which can conflict with char dlopen (); below. | |
9067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9068 | <limits.h> exists even on freestanding compilers. */ | |
9069 | ||
9070 | #ifdef __STDC__ | |
9071 | # include <limits.h> | |
9072 | #else | |
9073 | # include <assert.h> | |
9074 | #endif | |
9075 | ||
9076 | #undef dlopen | |
9077 | ||
9078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9079 | #ifdef __cplusplus | |
9080 | extern "C" | |
9081 | { | |
9082 | #endif | |
9083 | /* We use char because int might match the return type of a gcc2 | |
9084 | builtin and then its argument prototype would still apply. */ | |
9085 | char dlopen (); | |
9086 | /* The GNU C library defines this for functions which it implements | |
9087 | to always fail with ENOSYS. Some functions are actually named | |
9088 | something starting with __ and the normal name is an alias. */ | |
9089 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9090 | choke me | |
9091 | #else | |
9092 | char (*f) () = dlopen; | |
9093 | #endif | |
9094 | #ifdef __cplusplus | |
9095 | } | |
9096 | #endif | |
9097 | ||
9098 | int | |
9099 | main () | |
9100 | { | |
9101 | return f != dlopen; | |
9102 | ; | |
9103 | return 0; | |
9104 | } | |
9105 | _ACEOF | |
9106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9108 | (eval $ac_link) 2>conftest.er1 | |
9109 | ac_status=$? | |
9110 | grep -v '^ *+' conftest.er1 >conftest.err | |
9111 | rm -f conftest.er1 | |
9112 | cat conftest.err >&5 | |
9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9114 | (exit $ac_status); } && | |
9115 | { ac_try='test -z "$ac_c_werror_flag" | |
9116 | || test ! -s conftest.err' | |
9117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9118 | (eval $ac_try) 2>&5 | |
9119 | ac_status=$? | |
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9121 | (exit $ac_status); }; } && | |
9122 | { ac_try='test -s conftest$ac_exeext' | |
9123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9124 | (eval $ac_try) 2>&5 | |
9125 | ac_status=$? | |
9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9127 | (exit $ac_status); }; }; then | |
9128 | ac_cv_func_dlopen=yes | |
9129 | else | |
9130 | echo "$as_me: failed program was:" >&5 | |
9131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9132 | ||
9133 | ac_cv_func_dlopen=no | |
9134 | fi | |
9135 | rm -f conftest.err conftest.$ac_objext \ | |
9136 | conftest$ac_exeext conftest.$ac_ext | |
9137 | fi | |
9138 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9139 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9140 | if test $ac_cv_func_dlopen = yes; then | |
9141 | lt_cv_dlopen="dlopen" | |
9142 | else | |
9143 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9144 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9145 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9147 | else | |
9148 | ac_check_lib_save_LIBS=$LIBS | |
9149 | LIBS="-ldl $LIBS" | |
9150 | cat >conftest.$ac_ext <<_ACEOF | |
9151 | /* confdefs.h. */ | |
9152 | _ACEOF | |
9153 | cat confdefs.h >>conftest.$ac_ext | |
9154 | cat >>conftest.$ac_ext <<_ACEOF | |
9155 | /* end confdefs.h. */ | |
9156 | ||
9157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9158 | #ifdef __cplusplus | |
9159 | extern "C" | |
9160 | #endif | |
9161 | /* We use char because int might match the return type of a gcc2 | |
9162 | builtin and then its argument prototype would still apply. */ | |
9163 | char dlopen (); | |
9164 | int | |
9165 | main () | |
9166 | { | |
9167 | dlopen (); | |
9168 | ; | |
9169 | return 0; | |
9170 | } | |
9171 | _ACEOF | |
9172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9174 | (eval $ac_link) 2>conftest.er1 | |
9175 | ac_status=$? | |
9176 | grep -v '^ *+' conftest.er1 >conftest.err | |
9177 | rm -f conftest.er1 | |
9178 | cat conftest.err >&5 | |
9179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9180 | (exit $ac_status); } && | |
9181 | { ac_try='test -z "$ac_c_werror_flag" | |
9182 | || test ! -s conftest.err' | |
9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9184 | (eval $ac_try) 2>&5 | |
9185 | ac_status=$? | |
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 | (exit $ac_status); }; } && | |
9188 | { ac_try='test -s conftest$ac_exeext' | |
9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9190 | (eval $ac_try) 2>&5 | |
9191 | ac_status=$? | |
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9193 | (exit $ac_status); }; }; then | |
9194 | ac_cv_lib_dl_dlopen=yes | |
9195 | else | |
9196 | echo "$as_me: failed program was:" >&5 | |
9197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9198 | ||
9199 | ac_cv_lib_dl_dlopen=no | |
9200 | fi | |
9201 | rm -f conftest.err conftest.$ac_objext \ | |
9202 | conftest$ac_exeext conftest.$ac_ext | |
9203 | LIBS=$ac_check_lib_save_LIBS | |
9204 | fi | |
9205 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9206 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9207 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9208 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9209 | else | |
9210 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9211 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9212 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9214 | else | |
9215 | ac_check_lib_save_LIBS=$LIBS | |
9216 | LIBS="-lsvld $LIBS" | |
9217 | cat >conftest.$ac_ext <<_ACEOF | |
9218 | /* confdefs.h. */ | |
9219 | _ACEOF | |
9220 | cat confdefs.h >>conftest.$ac_ext | |
9221 | cat >>conftest.$ac_ext <<_ACEOF | |
9222 | /* end confdefs.h. */ | |
9223 | ||
9224 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9225 | #ifdef __cplusplus | |
9226 | extern "C" | |
9227 | #endif | |
9228 | /* We use char because int might match the return type of a gcc2 | |
9229 | builtin and then its argument prototype would still apply. */ | |
9230 | char dlopen (); | |
9231 | int | |
9232 | main () | |
9233 | { | |
9234 | dlopen (); | |
9235 | ; | |
9236 | return 0; | |
9237 | } | |
9238 | _ACEOF | |
9239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9241 | (eval $ac_link) 2>conftest.er1 | |
9242 | ac_status=$? | |
9243 | grep -v '^ *+' conftest.er1 >conftest.err | |
9244 | rm -f conftest.er1 | |
9245 | cat conftest.err >&5 | |
9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9247 | (exit $ac_status); } && | |
9248 | { ac_try='test -z "$ac_c_werror_flag" | |
9249 | || test ! -s conftest.err' | |
9250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9251 | (eval $ac_try) 2>&5 | |
9252 | ac_status=$? | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9254 | (exit $ac_status); }; } && | |
9255 | { ac_try='test -s conftest$ac_exeext' | |
9256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9257 | (eval $ac_try) 2>&5 | |
9258 | ac_status=$? | |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9260 | (exit $ac_status); }; }; then | |
9261 | ac_cv_lib_svld_dlopen=yes | |
9262 | else | |
9263 | echo "$as_me: failed program was:" >&5 | |
9264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9265 | ||
9266 | ac_cv_lib_svld_dlopen=no | |
9267 | fi | |
9268 | rm -f conftest.err conftest.$ac_objext \ | |
9269 | conftest$ac_exeext conftest.$ac_ext | |
9270 | LIBS=$ac_check_lib_save_LIBS | |
9271 | fi | |
9272 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9273 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
9274 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9275 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9276 | else | |
9277 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9278 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
9279 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9281 | else | |
9282 | ac_check_lib_save_LIBS=$LIBS | |
9283 | LIBS="-ldld $LIBS" | |
9284 | cat >conftest.$ac_ext <<_ACEOF | |
9285 | /* confdefs.h. */ | |
9286 | _ACEOF | |
9287 | cat confdefs.h >>conftest.$ac_ext | |
9288 | cat >>conftest.$ac_ext <<_ACEOF | |
9289 | /* end confdefs.h. */ | |
9290 | ||
9291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9292 | #ifdef __cplusplus | |
9293 | extern "C" | |
9294 | #endif | |
9295 | /* We use char because int might match the return type of a gcc2 | |
9296 | builtin and then its argument prototype would still apply. */ | |
9297 | char dld_link (); | |
9298 | int | |
9299 | main () | |
9300 | { | |
9301 | dld_link (); | |
9302 | ; | |
9303 | return 0; | |
9304 | } | |
9305 | _ACEOF | |
9306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9308 | (eval $ac_link) 2>conftest.er1 | |
9309 | ac_status=$? | |
9310 | grep -v '^ *+' conftest.er1 >conftest.err | |
9311 | rm -f conftest.er1 | |
9312 | cat conftest.err >&5 | |
9313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9314 | (exit $ac_status); } && | |
9315 | { ac_try='test -z "$ac_c_werror_flag" | |
9316 | || test ! -s conftest.err' | |
9317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9318 | (eval $ac_try) 2>&5 | |
9319 | ac_status=$? | |
9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9321 | (exit $ac_status); }; } && | |
9322 | { ac_try='test -s conftest$ac_exeext' | |
9323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9324 | (eval $ac_try) 2>&5 | |
9325 | ac_status=$? | |
9326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9327 | (exit $ac_status); }; }; then | |
9328 | ac_cv_lib_dld_dld_link=yes | |
9329 | else | |
9330 | echo "$as_me: failed program was:" >&5 | |
9331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9332 | ||
9333 | ac_cv_lib_dld_dld_link=no | |
9334 | fi | |
9335 | rm -f conftest.err conftest.$ac_objext \ | |
9336 | conftest$ac_exeext conftest.$ac_ext | |
9337 | LIBS=$ac_check_lib_save_LIBS | |
9338 | fi | |
9339 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9340 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9341 | if test $ac_cv_lib_dld_dld_link = yes; then | |
9342 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9343 | fi | |
9344 | ||
9345 | ||
9346 | fi | |
9347 | ||
9348 | ||
9349 | fi | |
9350 | ||
9351 | ||
9352 | fi | |
9353 | ||
9354 | ||
9355 | fi | |
9356 | ||
9357 | ||
9358 | fi | |
9359 | ||
9360 | ;; | |
9361 | esac | |
9362 | ||
9363 | if test "x$lt_cv_dlopen" != xno; then | |
9364 | enable_dlopen=yes | |
9365 | else | |
9366 | enable_dlopen=no | |
9367 | fi | |
9368 | ||
9369 | case $lt_cv_dlopen in | |
9370 | dlopen) | |
9371 | save_CPPFLAGS="$CPPFLAGS" | |
9372 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9373 | ||
9374 | save_LDFLAGS="$LDFLAGS" | |
9375 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9376 | ||
9377 | save_LIBS="$LIBS" | |
9378 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9379 | ||
9380 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9381 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
9382 | if test "${lt_cv_dlopen_self+set}" = set; then | |
9383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9384 | else | |
9385 | if test "$cross_compiling" = yes; then : | |
9386 | lt_cv_dlopen_self=cross | |
9387 | else | |
9388 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9389 | lt_status=$lt_dlunknown | |
9390 | cat > conftest.$ac_ext <<EOF | |
5e9b5d83 | 9391 | #line 9391 "configure" |
bf9f3bac | 9392 | #include "confdefs.h" |
9393 | ||
9394 | #if HAVE_DLFCN_H | |
9395 | #include <dlfcn.h> | |
9396 | #endif | |
9397 | ||
9398 | #include <stdio.h> | |
9399 | ||
9400 | #ifdef RTLD_GLOBAL | |
9401 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9402 | #else | |
9403 | # ifdef DL_GLOBAL | |
9404 | # define LT_DLGLOBAL DL_GLOBAL | |
9405 | # else | |
9406 | # define LT_DLGLOBAL 0 | |
9407 | # endif | |
9408 | #endif | |
9409 | ||
9410 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9411 | find out it does not work in some platform. */ | |
9412 | #ifndef LT_DLLAZY_OR_NOW | |
9413 | # ifdef RTLD_LAZY | |
9414 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9415 | # else | |
9416 | # ifdef DL_LAZY | |
9417 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9418 | # else | |
9419 | # ifdef RTLD_NOW | |
9420 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9421 | # else | |
9422 | # ifdef DL_NOW | |
9423 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9424 | # else | |
9425 | # define LT_DLLAZY_OR_NOW 0 | |
9426 | # endif | |
9427 | # endif | |
9428 | # endif | |
9429 | # endif | |
9430 | #endif | |
9431 | ||
9432 | #ifdef __cplusplus | |
9433 | extern "C" void exit (int); | |
9434 | #endif | |
9435 | ||
9436 | void fnord() { int i=42;} | |
9437 | int main () | |
9438 | { | |
9439 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9440 | int status = $lt_dlunknown; | |
9441 | ||
9442 | if (self) | |
9443 | { | |
9444 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9445 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9446 | /* dlclose (self); */ | |
9447 | } | |
9448 | else | |
9449 | puts (dlerror ()); | |
9450 | ||
9451 | exit (status); | |
9452 | } | |
9453 | EOF | |
9454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9455 | (eval $ac_link) 2>&5 | |
9456 | ac_status=$? | |
9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9458 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9459 | (./conftest; exit; ) >&5 2>/dev/null | |
9460 | lt_status=$? | |
9461 | case x$lt_status in | |
9462 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9463 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9464 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9465 | esac | |
9466 | else : | |
9467 | # compilation failed | |
9468 | lt_cv_dlopen_self=no | |
9469 | fi | |
9470 | fi | |
9471 | rm -fr conftest* | |
9472 | ||
9473 | ||
9474 | fi | |
9475 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9476 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
9477 | ||
9478 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9479 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9480 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
9481 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
9482 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9484 | else | |
9485 | if test "$cross_compiling" = yes; then : | |
9486 | lt_cv_dlopen_self_static=cross | |
9487 | else | |
9488 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9489 | lt_status=$lt_dlunknown | |
9490 | cat > conftest.$ac_ext <<EOF | |
5e9b5d83 | 9491 | #line 9491 "configure" |
bf9f3bac | 9492 | #include "confdefs.h" |
9493 | ||
9494 | #if HAVE_DLFCN_H | |
9495 | #include <dlfcn.h> | |
9496 | #endif | |
9497 | ||
9498 | #include <stdio.h> | |
9499 | ||
9500 | #ifdef RTLD_GLOBAL | |
9501 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9502 | #else | |
9503 | # ifdef DL_GLOBAL | |
9504 | # define LT_DLGLOBAL DL_GLOBAL | |
9505 | # else | |
9506 | # define LT_DLGLOBAL 0 | |
9507 | # endif | |
9508 | #endif | |
9509 | ||
9510 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9511 | find out it does not work in some platform. */ | |
9512 | #ifndef LT_DLLAZY_OR_NOW | |
9513 | # ifdef RTLD_LAZY | |
9514 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9515 | # else | |
9516 | # ifdef DL_LAZY | |
9517 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9518 | # else | |
9519 | # ifdef RTLD_NOW | |
9520 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9521 | # else | |
9522 | # ifdef DL_NOW | |
9523 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9524 | # else | |
9525 | # define LT_DLLAZY_OR_NOW 0 | |
9526 | # endif | |
9527 | # endif | |
9528 | # endif | |
9529 | # endif | |
9530 | #endif | |
9531 | ||
9532 | #ifdef __cplusplus | |
9533 | extern "C" void exit (int); | |
9534 | #endif | |
9535 | ||
9536 | void fnord() { int i=42;} | |
9537 | int main () | |
9538 | { | |
9539 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9540 | int status = $lt_dlunknown; | |
9541 | ||
9542 | if (self) | |
9543 | { | |
9544 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9545 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9546 | /* dlclose (self); */ | |
9547 | } | |
9548 | else | |
9549 | puts (dlerror ()); | |
9550 | ||
9551 | exit (status); | |
9552 | } | |
9553 | EOF | |
9554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9555 | (eval $ac_link) 2>&5 | |
9556 | ac_status=$? | |
9557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9558 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9559 | (./conftest; exit; ) >&5 2>/dev/null | |
9560 | lt_status=$? | |
9561 | case x$lt_status in | |
9562 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9563 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9564 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9565 | esac | |
9566 | else : | |
9567 | # compilation failed | |
9568 | lt_cv_dlopen_self_static=no | |
9569 | fi | |
9570 | fi | |
9571 | rm -fr conftest* | |
9572 | ||
9573 | ||
9574 | fi | |
9575 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
9576 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
9577 | fi | |
9578 | ||
9579 | CPPFLAGS="$save_CPPFLAGS" | |
9580 | LDFLAGS="$save_LDFLAGS" | |
9581 | LIBS="$save_LIBS" | |
9582 | ;; | |
9583 | esac | |
9584 | ||
9585 | case $lt_cv_dlopen_self in | |
9586 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9587 | *) enable_dlopen_self=unknown ;; | |
9588 | esac | |
9589 | ||
9590 | case $lt_cv_dlopen_self_static in | |
9591 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9592 | *) enable_dlopen_self_static=unknown ;; | |
9593 | esac | |
9594 | fi | |
9595 | ||
9596 | ||
9597 | # Report which library types will actually be built | |
9598 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
9599 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
9600 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
9601 | echo "${ECHO_T}$can_build_shared" >&6 | |
9602 | ||
9603 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
9604 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
9605 | test "$can_build_shared" = "no" && enable_shared=no | |
9606 | ||
9607 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9608 | # are all built from PIC. | |
9609 | case $host_os in | |
9610 | aix3*) | |
9611 | test "$enable_shared" = yes && enable_static=no | |
9612 | if test -n "$RANLIB"; then | |
9613 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9614 | postinstall_cmds='$RANLIB $lib' | |
9615 | fi | |
9616 | ;; | |
9617 | ||
9618 | aix4* | aix5*) | |
9619 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9620 | test "$enable_shared" = yes && enable_static=no | |
9621 | fi | |
9622 | ;; | |
9623 | esac | |
9624 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9625 | echo "${ECHO_T}$enable_shared" >&6 | |
9626 | ||
9627 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9628 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9629 | # Make sure either enable_shared or enable_static is yes. | |
9630 | test "$enable_shared" = yes || enable_static=yes | |
9631 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9632 | echo "${ECHO_T}$enable_static" >&6 | |
9633 | ||
9634 | # The else clause should only fire when bootstrapping the | |
9635 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9636 | # with your package, and you will get complaints that there are | |
9637 | # no rules to generate ltmain.sh. | |
9638 | if test -f "$ltmain"; then | |
9639 | # See if we are running on zsh, and set the options which allow our commands through | |
9640 | # without removal of \ escapes. | |
9641 | if test -n "${ZSH_VERSION+set}" ; then | |
9642 | setopt NO_GLOB_SUBST | |
9643 | fi | |
9644 | # Now quote all the things that may contain metacharacters while being | |
9645 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9646 | # variables and quote the copies for generation of the libtool script. | |
9647 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
9648 | SED SHELL STRIP \ | |
9649 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9650 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9651 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
9652 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9653 | lt_cv_sys_global_symbol_to_c_name_address \ | |
9654 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9655 | old_postinstall_cmds old_postuninstall_cmds \ | |
9656 | compiler \ | |
9657 | CC \ | |
9658 | LD \ | |
9659 | lt_prog_compiler_wl \ | |
9660 | lt_prog_compiler_pic \ | |
9661 | lt_prog_compiler_static \ | |
9662 | lt_prog_compiler_no_builtin_flag \ | |
9663 | export_dynamic_flag_spec \ | |
9664 | thread_safe_flag_spec \ | |
9665 | whole_archive_flag_spec \ | |
9666 | enable_shared_with_static_runtimes \ | |
9667 | old_archive_cmds \ | |
9668 | old_archive_from_new_cmds \ | |
9669 | predep_objects \ | |
9670 | postdep_objects \ | |
9671 | predeps \ | |
9672 | postdeps \ | |
9673 | compiler_lib_search_path \ | |
9674 | archive_cmds \ | |
9675 | archive_expsym_cmds \ | |
9676 | postinstall_cmds \ | |
9677 | postuninstall_cmds \ | |
9678 | old_archive_from_expsyms_cmds \ | |
9679 | allow_undefined_flag \ | |
9680 | no_undefined_flag \ | |
9681 | export_symbols_cmds \ | |
9682 | hardcode_libdir_flag_spec \ | |
9683 | hardcode_libdir_flag_spec_ld \ | |
9684 | hardcode_libdir_separator \ | |
9685 | hardcode_automatic \ | |
9686 | module_cmds \ | |
9687 | module_expsym_cmds \ | |
9688 | lt_cv_prog_compiler_c_o \ | |
9689 | exclude_expsyms \ | |
9690 | include_expsyms; do | |
9691 | ||
9692 | case $var in | |
9693 | old_archive_cmds | \ | |
9694 | old_archive_from_new_cmds | \ | |
9695 | archive_cmds | \ | |
9696 | archive_expsym_cmds | \ | |
9697 | module_cmds | \ | |
9698 | module_expsym_cmds | \ | |
9699 | old_archive_from_expsyms_cmds | \ | |
9700 | export_symbols_cmds | \ | |
9701 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9702 | postinstall_cmds | postuninstall_cmds | \ | |
9703 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
9704 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9705 | # Double-quote double-evaled strings. | |
9706 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9707 | ;; | |
9708 | *) | |
9709 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9710 | ;; | |
9711 | esac | |
9712 | done | |
9713 | ||
9714 | case $lt_echo in | |
9715 | *'\$0 --fallback-echo"') | |
9716 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9717 | ;; | |
9718 | esac | |
9719 | ||
9720 | cfgfile="${ofile}T" | |
9721 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9722 | $rm -f "$cfgfile" | |
9723 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9724 | echo "$as_me: creating $ofile" >&6;} | |
9725 | ||
9726 | cat <<__EOF__ >> "$cfgfile" | |
9727 | #! $SHELL | |
9728 | ||
9729 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9730 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9731 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9732 | # | |
9733 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9734 | # Free Software Foundation, Inc. | |
9735 | # | |
9736 | # This file is part of GNU Libtool: | |
9737 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9738 | # | |
9739 | # This program is free software; you can redistribute it and/or modify | |
9740 | # it under the terms of the GNU General Public License as published by | |
9741 | # the Free Software Foundation; either version 2 of the License, or | |
9742 | # (at your option) any later version. | |
9743 | # | |
9744 | # This program is distributed in the hope that it will be useful, but | |
9745 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9746 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9747 | # General Public License for more details. | |
9748 | # | |
9749 | # You should have received a copy of the GNU General Public License | |
9750 | # along with this program; if not, write to the Free Software | |
9751 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
9752 | # | |
9753 | # As a special exception to the GNU General Public License, if you | |
9754 | # distribute this file as part of a program that contains a | |
9755 | # configuration script generated by Autoconf, you may include it under | |
9756 | # the same distribution terms that you use for the rest of that program. | |
9757 | ||
9758 | # A sed program that does not truncate output. | |
9759 | SED=$lt_SED | |
9760 | ||
9761 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9762 | Xsed="$SED -e 1s/^X//" | |
9763 | ||
9764 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9765 | # if CDPATH is set. | |
9766 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9767 | ||
9768 | # The names of the tagged configurations supported by this script. | |
9769 | available_tags= | |
9770 | ||
9771 | # ### BEGIN LIBTOOL CONFIG | |
9772 | ||
9773 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9774 | ||
9775 | # Shell to use when invoking shell scripts. | |
9776 | SHELL=$lt_SHELL | |
9777 | ||
9778 | # Whether or not to build shared libraries. | |
9779 | build_libtool_libs=$enable_shared | |
9780 | ||
9781 | # Whether or not to build static libraries. | |
9782 | build_old_libs=$enable_static | |
9783 | ||
9784 | # Whether or not to add -lc for building shared libraries. | |
9785 | build_libtool_need_lc=$archive_cmds_need_lc | |
9786 | ||
9787 | # Whether or not to disallow shared libs when runtime libs are static | |
9788 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9789 | ||
9790 | # Whether or not to optimize for fast installation. | |
9791 | fast_install=$enable_fast_install | |
9792 | ||
9793 | # The host system. | |
9794 | host_alias=$host_alias | |
9795 | host=$host | |
9796 | host_os=$host_os | |
9797 | ||
9798 | # The build system. | |
9799 | build_alias=$build_alias | |
9800 | build=$build | |
9801 | build_os=$build_os | |
9802 | ||
9803 | # An echo program that does not interpret backslashes. | |
9804 | echo=$lt_echo | |
9805 | ||
9806 | # The archiver. | |
9807 | AR=$lt_AR | |
9808 | AR_FLAGS=$lt_AR_FLAGS | |
9809 | ||
9810 | # A C compiler. | |
9811 | LTCC=$lt_LTCC | |
9812 | ||
9813 | # LTCC compiler flags. | |
9814 | LTCFLAGS=$lt_LTCFLAGS | |
9815 | ||
9816 | # A language-specific compiler. | |
9817 | CC=$lt_compiler | |
9818 | ||
9819 | # Is the compiler the GNU C compiler? | |
9820 | with_gcc=$GCC | |
9821 | ||
9822 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
9823 | gcc_ver=\`gcc -dumpversion\` | |
9824 | ||
9825 | # An ERE matcher. | |
9826 | EGREP=$lt_EGREP | |
9827 | ||
9828 | # The linker used to build libraries. | |
9829 | LD=$lt_LD | |
9830 | ||
9831 | # Whether we need hard or soft links. | |
9832 | LN_S=$lt_LN_S | |
9833 | ||
9834 | # A BSD-compatible nm program. | |
9835 | NM=$lt_NM | |
9836 | ||
9837 | # A symbol stripping program | |
9838 | STRIP=$lt_STRIP | |
9839 | ||
9840 | # Used to examine libraries when file_magic_cmd begins "file" | |
9841 | MAGIC_CMD=$MAGIC_CMD | |
9842 | ||
9843 | # Used on cygwin: DLL creation program. | |
9844 | DLLTOOL="$DLLTOOL" | |
9845 | ||
9846 | # Used on cygwin: object dumper. | |
9847 | OBJDUMP="$OBJDUMP" | |
9848 | ||
9849 | # Used on cygwin: assembler. | |
9850 | AS="$AS" | |
9851 | ||
9852 | # The name of the directory that contains temporary libtool files. | |
9853 | objdir=$objdir | |
9854 | ||
9855 | # How to create reloadable object files. | |
9856 | reload_flag=$lt_reload_flag | |
9857 | reload_cmds=$lt_reload_cmds | |
9858 | ||
9859 | # How to pass a linker flag through the compiler. | |
9860 | wl=$lt_lt_prog_compiler_wl | |
9861 | ||
9862 | # Object file suffix (normally "o"). | |
9863 | objext="$ac_objext" | |
9864 | ||
9865 | # Old archive suffix (normally "a"). | |
9866 | libext="$libext" | |
9867 | ||
9868 | # Shared library suffix (normally ".so"). | |
9869 | shrext_cmds='$shrext_cmds' | |
9870 | ||
9871 | # Executable file suffix (normally ""). | |
9872 | exeext="$exeext" | |
9873 | ||
9874 | # Additional compiler flags for building library objects. | |
9875 | pic_flag=$lt_lt_prog_compiler_pic | |
9876 | pic_mode=$pic_mode | |
9877 | ||
9878 | # What is the maximum length of a command? | |
9879 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
9880 | ||
9881 | # Does compiler simultaneously support -c and -o options? | |
9882 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9883 | ||
9884 | # Must we lock files when doing compilation? | |
9885 | need_locks=$lt_need_locks | |
9886 | ||
9887 | # Do we need the lib prefix for modules? | |
9888 | need_lib_prefix=$need_lib_prefix | |
9889 | ||
9890 | # Do we need a version for libraries? | |
9891 | need_version=$need_version | |
9892 | ||
9893 | # Whether dlopen is supported. | |
9894 | dlopen_support=$enable_dlopen | |
9895 | ||
9896 | # Whether dlopen of programs is supported. | |
9897 | dlopen_self=$enable_dlopen_self | |
9898 | ||
9899 | # Whether dlopen of statically linked programs is supported. | |
9900 | dlopen_self_static=$enable_dlopen_self_static | |
9901 | ||
9902 | # Compiler flag to prevent dynamic linking. | |
9903 | link_static_flag=$lt_lt_prog_compiler_static | |
9904 | ||
9905 | # Compiler flag to turn off builtin functions. | |
9906 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9907 | ||
9908 | # Compiler flag to allow reflexive dlopens. | |
9909 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9910 | ||
9911 | # Compiler flag to generate shared objects directly from archives. | |
9912 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9913 | ||
9914 | # Compiler flag to generate thread-safe objects. | |
9915 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9916 | ||
9917 | # Library versioning type. | |
9918 | version_type=$version_type | |
9919 | ||
9920 | # Format of library name prefix. | |
9921 | libname_spec=$lt_libname_spec | |
9922 | ||
9923 | # List of archive names. First name is the real one, the rest are links. | |
9924 | # The last name is the one that the linker finds with -lNAME. | |
9925 | library_names_spec=$lt_library_names_spec | |
9926 | ||
9927 | # The coded name of the library, if different from the real name. | |
9928 | soname_spec=$lt_soname_spec | |
9929 | ||
9930 | # Commands used to build and install an old-style archive. | |
9931 | RANLIB=$lt_RANLIB | |
9932 | old_archive_cmds=$lt_old_archive_cmds | |
9933 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
9934 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9935 | ||
9936 | # Create an old-style archive from a shared archive. | |
9937 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9938 | ||
9939 | # Create a temporary old-style archive to link instead of a shared archive. | |
9940 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9941 | ||
9942 | # Commands used to build and install a shared archive. | |
9943 | archive_cmds=$lt_archive_cmds | |
9944 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
9945 | postinstall_cmds=$lt_postinstall_cmds | |
9946 | postuninstall_cmds=$lt_postuninstall_cmds | |
9947 | ||
9948 | # Commands used to build a loadable module (assumed same as above if empty) | |
9949 | module_cmds=$lt_module_cmds | |
9950 | module_expsym_cmds=$lt_module_expsym_cmds | |
9951 | ||
9952 | # Commands to strip libraries. | |
9953 | old_striplib=$lt_old_striplib | |
9954 | striplib=$lt_striplib | |
9955 | ||
9956 | # Dependencies to place before the objects being linked to create a | |
9957 | # shared library. | |
9958 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9959 | ||
9960 | # Dependencies to place after the objects being linked to create a | |
9961 | # shared library. | |
9962 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9963 | ||
9964 | # Dependencies to place before the objects being linked to create a | |
9965 | # shared library. | |
9966 | predeps=$lt_predeps | |
9967 | ||
9968 | # Dependencies to place after the objects being linked to create a | |
9969 | # shared library. | |
9970 | postdeps=$lt_postdeps | |
9971 | ||
9972 | # The library search path used internally by the compiler when linking | |
9973 | # a shared library. | |
9974 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9975 | ||
9976 | # Method to check whether dependent libraries are shared objects. | |
9977 | deplibs_check_method=$lt_deplibs_check_method | |
9978 | ||
9979 | # Command to use when deplibs_check_method == file_magic. | |
9980 | file_magic_cmd=$lt_file_magic_cmd | |
9981 | ||
9982 | # Flag that allows shared libraries with undefined symbols to be built. | |
9983 | allow_undefined_flag=$lt_allow_undefined_flag | |
9984 | ||
9985 | # Flag that forces no undefined symbols. | |
9986 | no_undefined_flag=$lt_no_undefined_flag | |
9987 | ||
9988 | # Commands used to finish a libtool library installation in a directory. | |
9989 | finish_cmds=$lt_finish_cmds | |
9990 | ||
9991 | # Same as above, but a single script fragment to be evaled but not shown. | |
9992 | finish_eval=$lt_finish_eval | |
9993 | ||
9994 | # Take the output of nm and produce a listing of raw symbols and C names. | |
9995 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9996 | ||
9997 | # Transform the output of nm in a proper C declaration | |
9998 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9999 | ||
10000 | # Transform the output of nm in a C name address pair | |
10001 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10002 | ||
10003 | # This is the shared library runtime path variable. | |
10004 | runpath_var=$runpath_var | |
10005 | ||
10006 | # This is the shared library path variable. | |
10007 | shlibpath_var=$shlibpath_var | |
10008 | ||
10009 | # Is shlibpath searched before the hard-coded library search path? | |
10010 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10011 | ||
10012 | # How to hardcode a shared library path into an executable. | |
10013 | hardcode_action=$hardcode_action | |
10014 | ||
10015 | # Whether we should hardcode library paths into libraries. | |
10016 | hardcode_into_libs=$hardcode_into_libs | |
10017 | ||
10018 | # Flag to hardcode \$libdir into a binary during linking. | |
10019 | # This must work even if \$libdir does not exist. | |
10020 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10021 | ||
10022 | # If ld is used when linking, flag to hardcode \$libdir into | |
10023 | # a binary during linking. This must work even if \$libdir does | |
10024 | # not exist. | |
10025 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10026 | ||
10027 | # Whether we need a single -rpath flag with a separated argument. | |
10028 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10029 | ||
10030 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10031 | # resulting binary. | |
10032 | hardcode_direct=$hardcode_direct | |
10033 | ||
10034 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10035 | # resulting binary. | |
10036 | hardcode_minus_L=$hardcode_minus_L | |
10037 | ||
10038 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10039 | # the resulting binary. | |
10040 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10041 | ||
10042 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10043 | # and all subsequent libraries and executables linked against it. | |
10044 | hardcode_automatic=$hardcode_automatic | |
10045 | ||
10046 | # Variables whose values should be saved in libtool wrapper scripts and | |
10047 | # restored at relink time. | |
10048 | variables_saved_for_relink="$variables_saved_for_relink" | |
10049 | ||
10050 | # Whether libtool must link a program against all its dependency libraries. | |
10051 | link_all_deplibs=$link_all_deplibs | |
10052 | ||
10053 | # Compile-time system search path for libraries | |
10054 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
10055 | ||
10056 | # Run-time system search path for libraries | |
10057 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10058 | ||
10059 | # Fix the shell variable \$srcfile for the compiler. | |
10060 | fix_srcfile_path="$fix_srcfile_path" | |
10061 | ||
10062 | # Set to yes if exported symbols are required. | |
10063 | always_export_symbols=$always_export_symbols | |
10064 | ||
10065 | # The commands to list exported symbols. | |
10066 | export_symbols_cmds=$lt_export_symbols_cmds | |
10067 | ||
10068 | # The commands to extract the exported symbol list from a shared archive. | |
10069 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10070 | ||
10071 | # Symbols that should not be listed in the preloaded symbols. | |
10072 | exclude_expsyms=$lt_exclude_expsyms | |
10073 | ||
10074 | # Symbols that must always be exported. | |
10075 | include_expsyms=$lt_include_expsyms | |
10076 | ||
10077 | # ### END LIBTOOL CONFIG | |
10078 | ||
10079 | __EOF__ | |
10080 | ||
10081 | ||
10082 | case $host_os in | |
10083 | aix3*) | |
10084 | cat <<\EOF >> "$cfgfile" | |
10085 | ||
10086 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10087 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10088 | # vanish in a puff of smoke. | |
10089 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
10090 | COLLECT_NAMES= | |
10091 | export COLLECT_NAMES | |
10092 | fi | |
10093 | EOF | |
10094 | ;; | |
10095 | esac | |
10096 | ||
10097 | # We use sed instead of cat because bash on DJGPP gets confused if | |
10098 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
10099 | # text mode, it properly converts lines to CR/LF. This bash problem | |
10100 | # is reportedly fixed, but why not run on old versions too? | |
10101 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
10102 | ||
10103 | mv -f "$cfgfile" "$ofile" || \ | |
10104 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
10105 | chmod +x "$ofile" | |
10106 | ||
10107 | else | |
10108 | # If there is no Makefile yet, we rely on a make rule to execute | |
10109 | # `config.status --recheck' to rerun these tests and create the | |
10110 | # libtool script then. | |
10111 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10112 | if test -f "$ltmain_in"; then | |
10113 | test -f Makefile && make "$ltmain" | |
10114 | fi | |
10115 | fi | |
10116 | ||
10117 | ||
10118 | ac_ext=c | |
10119 | ac_cpp='$CPP $CPPFLAGS' | |
10120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10123 | ||
10124 | CC="$lt_save_CC" | |
10125 | ||
10126 | ||
10127 | # Check whether --with-tags or --without-tags was given. | |
10128 | if test "${with_tags+set}" = set; then | |
10129 | withval="$with_tags" | |
10130 | tagnames="$withval" | |
10131 | fi; | |
10132 | ||
10133 | if test -f "$ltmain" && test -n "$tagnames"; then | |
10134 | if test ! -f "${ofile}"; then | |
10135 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
10136 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
10137 | fi | |
10138 | ||
10139 | if test -z "$LTCC"; then | |
10140 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
10141 | if test -z "$LTCC"; then | |
10142 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
10143 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
10144 | else | |
10145 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10146 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10147 | fi | |
10148 | fi | |
10149 | if test -z "$LTCFLAGS"; then | |
10150 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10151 | fi | |
10152 | ||
10153 | # Extract list of available tagged configurations in $ofile. | |
10154 | # Note that this assumes the entire list is on one line. | |
10155 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10156 | ||
10157 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10158 | for tagname in $tagnames; do | |
10159 | IFS="$lt_save_ifs" | |
10160 | # Check whether tagname contains only valid characters | |
10161 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10162 | "") ;; | |
10163 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10164 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10165 | { (exit 1); exit 1; }; } | |
10166 | ;; | |
10167 | esac | |
10168 | ||
10169 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10170 | then | |
10171 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10172 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
10174 | fi | |
10175 | ||
10176 | # Update the list of available tags. | |
10177 | if test -n "$tagname"; then | |
10178 | echo appending configuration tag \"$tagname\" to $ofile | |
10179 | ||
10180 | case $tagname in | |
10181 | CXX) | |
10182 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10183 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10184 | (test "X$CXX" != "Xg++"))) ; then | |
10185 | ac_ext=cc | |
10186 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10187 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10188 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10189 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | archive_cmds_need_lc_CXX=no | |
10195 | allow_undefined_flag_CXX= | |
10196 | always_export_symbols_CXX=no | |
10197 | archive_expsym_cmds_CXX= | |
10198 | export_dynamic_flag_spec_CXX= | |
10199 | hardcode_direct_CXX=no | |
10200 | hardcode_libdir_flag_spec_CXX= | |
10201 | hardcode_libdir_flag_spec_ld_CXX= | |
10202 | hardcode_libdir_separator_CXX= | |
10203 | hardcode_minus_L_CXX=no | |
10204 | hardcode_shlibpath_var_CXX=unsupported | |
10205 | hardcode_automatic_CXX=no | |
10206 | module_cmds_CXX= | |
10207 | module_expsym_cmds_CXX= | |
10208 | link_all_deplibs_CXX=unknown | |
10209 | old_archive_cmds_CXX=$old_archive_cmds | |
10210 | no_undefined_flag_CXX= | |
10211 | whole_archive_flag_spec_CXX= | |
10212 | enable_shared_with_static_runtimes_CXX=no | |
10213 | ||
10214 | # Dependencies to place before and after the object being linked: | |
10215 | predep_objects_CXX= | |
10216 | postdep_objects_CXX= | |
10217 | predeps_CXX= | |
10218 | postdeps_CXX= | |
10219 | compiler_lib_search_path_CXX= | |
10220 | ||
10221 | # Source file extension for C++ test sources. | |
10222 | ac_ext=cpp | |
10223 | ||
10224 | # Object file extension for compiled C++ test sources. | |
10225 | objext=o | |
10226 | objext_CXX=$objext | |
10227 | ||
10228 | # Code to be used in simple compile tests | |
10229 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
10230 | ||
10231 | # Code to be used in simple link tests | |
10232 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
10233 | ||
10234 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10235 | ||
10236 | # If no C compiler was specified, use CC. | |
10237 | LTCC=${LTCC-"$CC"} | |
10238 | ||
10239 | # If no C compiler flags were specified, use CFLAGS. | |
10240 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10241 | ||
10242 | # Allow CC to be a program name with arguments. | |
10243 | compiler=$CC | |
10244 | ||
10245 | ||
10246 | # save warnings/boilerplate of simple test code | |
10247 | ac_outfile=conftest.$ac_objext | |
10248 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10249 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10250 | _lt_compiler_boilerplate=`cat conftest.err` | |
10251 | $rm conftest* | |
10252 | ||
10253 | ac_outfile=conftest.$ac_objext | |
10254 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
10255 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10256 | _lt_linker_boilerplate=`cat conftest.err` | |
10257 | $rm conftest* | |
10258 | ||
10259 | ||
10260 | # Allow CC to be a program name with arguments. | |
10261 | lt_save_CC=$CC | |
10262 | lt_save_LD=$LD | |
10263 | lt_save_GCC=$GCC | |
10264 | GCC=$GXX | |
10265 | lt_save_with_gnu_ld=$with_gnu_ld | |
10266 | lt_save_path_LD=$lt_cv_path_LD | |
10267 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10268 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10269 | else | |
10270 | $as_unset lt_cv_prog_gnu_ld | |
10271 | fi | |
10272 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
10273 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
10274 | else | |
10275 | $as_unset lt_cv_path_LD | |
10276 | fi | |
10277 | test -z "${LDCXX+set}" || LD=$LDCXX | |
10278 | CC=${CXX-"c++"} | |
10279 | compiler=$CC | |
10280 | compiler_CXX=$CC | |
10281 | for cc_temp in $compiler""; do | |
10282 | case $cc_temp in | |
10283 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10284 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10285 | \-*) ;; | |
10286 | *) break;; | |
10287 | esac | |
10288 | done | |
10289 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10290 | ||
10291 | ||
10292 | # We don't want -fno-exception wen compiling C++ code, so set the | |
10293 | # no_builtin_flag separately | |
10294 | if test "$GXX" = yes; then | |
10295 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10296 | else | |
10297 | lt_prog_compiler_no_builtin_flag_CXX= | |
10298 | fi | |
10299 | ||
10300 | if test "$GXX" = yes; then | |
10301 | # Set up default GNU C++ configuration | |
10302 | ||
10303 | ||
10304 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10305 | if test "${with_gnu_ld+set}" = set; then | |
10306 | withval="$with_gnu_ld" | |
10307 | test "$withval" = no || with_gnu_ld=yes | |
10308 | else | |
10309 | with_gnu_ld=no | |
10310 | fi; | |
10311 | ac_prog=ld | |
10312 | if test "$GCC" = yes; then | |
10313 | # Check if gcc -print-prog-name=ld gives a path. | |
10314 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10315 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
10316 | case $host in | |
10317 | *-*-mingw*) | |
10318 | # gcc leaves a trailing carriage return which upsets mingw | |
10319 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10320 | *) | |
10321 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10322 | esac | |
10323 | case $ac_prog in | |
10324 | # Accept absolute paths. | |
10325 | [\\/]* | ?:[\\/]*) | |
10326 | re_direlt='/[^/][^/]*/\.\./' | |
10327 | # Canonicalize the pathname of ld | |
10328 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10329 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10330 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10331 | done | |
10332 | test -z "$LD" && LD="$ac_prog" | |
10333 | ;; | |
10334 | "") | |
10335 | # If it fails, then pretend we aren't using GCC. | |
10336 | ac_prog=ld | |
10337 | ;; | |
10338 | *) | |
10339 | # If it is relative, then search for the first ld in PATH. | |
10340 | with_gnu_ld=unknown | |
10341 | ;; | |
10342 | esac | |
10343 | elif test "$with_gnu_ld" = yes; then | |
10344 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10345 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10346 | else | |
10347 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10348 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10349 | fi | |
10350 | if test "${lt_cv_path_LD+set}" = set; then | |
10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10352 | else | |
10353 | if test -z "$LD"; then | |
10354 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10355 | for ac_dir in $PATH; do | |
10356 | IFS="$lt_save_ifs" | |
10357 | test -z "$ac_dir" && ac_dir=. | |
10358 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10359 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10360 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10361 | # but apparently some variants of GNU ld only accept -v. | |
10362 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10363 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10364 | *GNU* | *'with BFD'*) | |
10365 | test "$with_gnu_ld" != no && break | |
10366 | ;; | |
10367 | *) | |
10368 | test "$with_gnu_ld" != yes && break | |
10369 | ;; | |
10370 | esac | |
10371 | fi | |
10372 | done | |
10373 | IFS="$lt_save_ifs" | |
10374 | else | |
10375 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10376 | fi | |
10377 | fi | |
10378 | ||
10379 | LD="$lt_cv_path_LD" | |
10380 | if test -n "$LD"; then | |
10381 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10382 | echo "${ECHO_T}$LD" >&6 | |
10383 | else | |
10384 | echo "$as_me:$LINENO: result: no" >&5 | |
10385 | echo "${ECHO_T}no" >&6 | |
10386 | fi | |
10387 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10388 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10389 | { (exit 1); exit 1; }; } | |
10390 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10391 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10392 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10394 | else | |
10395 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10396 | case `$LD -v 2>&1 </dev/null` in | |
10397 | *GNU* | *'with BFD'*) | |
10398 | lt_cv_prog_gnu_ld=yes | |
10399 | ;; | |
10400 | *) | |
10401 | lt_cv_prog_gnu_ld=no | |
10402 | ;; | |
10403 | esac | |
10404 | fi | |
10405 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10406 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
10407 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
10408 | ||
10409 | ||
10410 | ||
10411 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10412 | # archiving commands below assume that GNU ld is being used. | |
10413 | if test "$with_gnu_ld" = yes; then | |
10414 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10415 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10416 | ||
10417 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10418 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10419 | ||
10420 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10421 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10422 | # investigate it a little bit more. (MM) | |
10423 | wlarc='${wl}' | |
10424 | ||
10425 | # ancient GNU ld didn't support --whole-archive et. al. | |
10426 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10427 | grep 'no-whole-archive' > /dev/null; then | |
10428 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10429 | else | |
10430 | whole_archive_flag_spec_CXX= | |
10431 | fi | |
10432 | else | |
10433 | with_gnu_ld=no | |
10434 | wlarc= | |
10435 | ||
10436 | # A generic and very simple default shared library creation | |
10437 | # command for GNU C++ for the case where it uses the native | |
10438 | # linker, instead of GNU ld. If possible, this setting should | |
10439 | # overridden to take advantage of the native linker features on | |
10440 | # the platform it is being used on. | |
10441 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10442 | fi | |
10443 | ||
10444 | # Commands to make compiler produce verbose output that lists | |
10445 | # what "hidden" libraries, object files and flags are used when | |
10446 | # linking a shared library. | |
10447 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10448 | ||
10449 | else | |
10450 | GXX=no | |
10451 | with_gnu_ld=no | |
10452 | wlarc= | |
10453 | fi | |
10454 | ||
10455 | # PORTME: fill in a description of your system's C++ link characteristics | |
10456 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10457 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
10458 | ld_shlibs_CXX=yes | |
10459 | case $host_os in | |
10460 | aix3*) | |
10461 | # FIXME: insert proper C++ library support | |
10462 | ld_shlibs_CXX=no | |
10463 | ;; | |
10464 | aix4* | aix5*) | |
10465 | if test "$host_cpu" = ia64; then | |
10466 | # On IA64, the linker does run time linking by default, so we don't | |
10467 | # have to do anything special. | |
10468 | aix_use_runtimelinking=no | |
10469 | exp_sym_flag='-Bexport' | |
10470 | no_entry_flag="" | |
10471 | else | |
10472 | aix_use_runtimelinking=no | |
10473 | ||
10474 | # Test if we are trying to use run time linking or normal | |
10475 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10476 | # need to do runtime linking. | |
10477 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
10478 | for ld_flag in $LDFLAGS; do | |
10479 | case $ld_flag in | |
10480 | *-brtl*) | |
10481 | aix_use_runtimelinking=yes | |
10482 | break | |
10483 | ;; | |
10484 | esac | |
10485 | done | |
10486 | ;; | |
10487 | esac | |
10488 | ||
10489 | exp_sym_flag='-bexport' | |
10490 | no_entry_flag='-bnoentry' | |
10491 | fi | |
10492 | ||
10493 | # When large executables or shared objects are built, AIX ld can | |
10494 | # have problems creating the table of contents. If linking a library | |
10495 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10496 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10497 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10498 | ||
10499 | archive_cmds_CXX='' | |
10500 | hardcode_direct_CXX=yes | |
10501 | hardcode_libdir_separator_CXX=':' | |
10502 | link_all_deplibs_CXX=yes | |
10503 | ||
10504 | if test "$GXX" = yes; then | |
10505 | case $host_os in aix4.[012]|aix4.[012].*) | |
10506 | # We only want to do this on AIX 4.2 and lower, the check | |
10507 | # below for broken collect2 doesn't work under 4.3+ | |
10508 | collect2name=`${CC} -print-prog-name=collect2` | |
10509 | if test -f "$collect2name" && \ | |
10510 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10511 | then | |
10512 | # We have reworked collect2 | |
10513 | hardcode_direct_CXX=yes | |
10514 | else | |
10515 | # We have old collect2 | |
10516 | hardcode_direct_CXX=unsupported | |
10517 | # It fails to find uninstalled libraries when the uninstalled | |
10518 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10519 | # to unsupported forces relinking | |
10520 | hardcode_minus_L_CXX=yes | |
10521 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10522 | hardcode_libdir_separator_CXX= | |
10523 | fi | |
10524 | ;; | |
10525 | esac | |
10526 | shared_flag='-shared' | |
10527 | if test "$aix_use_runtimelinking" = yes; then | |
10528 | shared_flag="$shared_flag "'${wl}-G' | |
10529 | fi | |
10530 | else | |
10531 | # not using gcc | |
10532 | if test "$host_cpu" = ia64; then | |
10533 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10534 | # chokes on -Wl,-G. The following line is correct: | |
10535 | shared_flag='-G' | |
10536 | else | |
10537 | if test "$aix_use_runtimelinking" = yes; then | |
10538 | shared_flag='${wl}-G' | |
10539 | else | |
10540 | shared_flag='${wl}-bM:SRE' | |
10541 | fi | |
10542 | fi | |
10543 | fi | |
10544 | ||
10545 | # It seems that -bexpall does not export symbols beginning with | |
10546 | # underscore (_), so it is better to generate a list of symbols to export. | |
10547 | always_export_symbols_CXX=yes | |
10548 | if test "$aix_use_runtimelinking" = yes; then | |
10549 | # Warning - without using the other runtime loading flags (-brtl), | |
10550 | # -berok will link without error, but may produce a broken library. | |
10551 | allow_undefined_flag_CXX='-berok' | |
10552 | # Determine the default libpath from the value encoded in an empty executable. | |
10553 | cat >conftest.$ac_ext <<_ACEOF | |
10554 | /* confdefs.h. */ | |
10555 | _ACEOF | |
10556 | cat confdefs.h >>conftest.$ac_ext | |
10557 | cat >>conftest.$ac_ext <<_ACEOF | |
10558 | /* end confdefs.h. */ | |
10559 | ||
10560 | int | |
10561 | main () | |
10562 | { | |
10563 | ||
10564 | ; | |
10565 | return 0; | |
10566 | } | |
10567 | _ACEOF | |
10568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10570 | (eval $ac_link) 2>conftest.er1 | |
10571 | ac_status=$? | |
10572 | grep -v '^ *+' conftest.er1 >conftest.err | |
10573 | rm -f conftest.er1 | |
10574 | cat conftest.err >&5 | |
10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10576 | (exit $ac_status); } && | |
10577 | { ac_try='test -z "$ac_cxx_werror_flag" | |
10578 | || test ! -s conftest.err' | |
10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10580 | (eval $ac_try) 2>&5 | |
10581 | ac_status=$? | |
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10583 | (exit $ac_status); }; } && | |
10584 | { ac_try='test -s conftest$ac_exeext' | |
10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10586 | (eval $ac_try) 2>&5 | |
10587 | ac_status=$? | |
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10589 | (exit $ac_status); }; }; then | |
10590 | ||
10591 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10592 | }'` | |
10593 | # Check for a 64-bit object if we didn't find anything. | |
10594 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10595 | }'`; fi | |
10596 | else | |
10597 | echo "$as_me: failed program was:" >&5 | |
10598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10599 | ||
10600 | fi | |
10601 | rm -f conftest.err conftest.$ac_objext \ | |
10602 | conftest$ac_exeext conftest.$ac_ext | |
10603 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10604 | ||
10605 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10606 | ||
10607 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10608 | else | |
10609 | if test "$host_cpu" = ia64; then | |
10610 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
10611 | allow_undefined_flag_CXX="-z nodefs" | |
10612 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
10613 | else | |
10614 | # Determine the default libpath from the value encoded in an empty executable. | |
10615 | cat >conftest.$ac_ext <<_ACEOF | |
10616 | /* confdefs.h. */ | |
10617 | _ACEOF | |
10618 | cat confdefs.h >>conftest.$ac_ext | |
10619 | cat >>conftest.$ac_ext <<_ACEOF | |
10620 | /* end confdefs.h. */ | |
10621 | ||
10622 | int | |
10623 | main () | |
10624 | { | |
10625 | ||
10626 | ; | |
10627 | return 0; | |
10628 | } | |
10629 | _ACEOF | |
10630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10632 | (eval $ac_link) 2>conftest.er1 | |
10633 | ac_status=$? | |
10634 | grep -v '^ *+' conftest.er1 >conftest.err | |
10635 | rm -f conftest.er1 | |
10636 | cat conftest.err >&5 | |
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10638 | (exit $ac_status); } && | |
10639 | { ac_try='test -z "$ac_cxx_werror_flag" | |
10640 | || test ! -s conftest.err' | |
10641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10642 | (eval $ac_try) 2>&5 | |
10643 | ac_status=$? | |
10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10645 | (exit $ac_status); }; } && | |
10646 | { ac_try='test -s conftest$ac_exeext' | |
10647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10648 | (eval $ac_try) 2>&5 | |
10649 | ac_status=$? | |
10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10651 | (exit $ac_status); }; }; then | |
10652 | ||
10653 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10654 | }'` | |
10655 | # Check for a 64-bit object if we didn't find anything. | |
10656 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10657 | }'`; fi | |
10658 | else | |
10659 | echo "$as_me: failed program was:" >&5 | |
10660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10661 | ||
10662 | fi | |
10663 | rm -f conftest.err conftest.$ac_objext \ | |
10664 | conftest$ac_exeext conftest.$ac_ext | |
10665 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10666 | ||
10667 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10668 | # Warning - without using the other run time loading flags, | |
10669 | # -berok will link without error, but may produce a broken library. | |
10670 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
10671 | allow_undefined_flag_CXX=' ${wl}-berok' | |
10672 | # Exported symbols can be pulled into shared objects from archives | |
10673 | whole_archive_flag_spec_CXX='$convenience' | |
10674 | archive_cmds_need_lc_CXX=yes | |
10675 | # This is similar to how AIX traditionally builds its shared libraries. | |
10676 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
10677 | fi | |
10678 | fi | |
10679 | ;; | |
10680 | ||
10681 | beos*) | |
10682 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
10683 | allow_undefined_flag_CXX=unsupported | |
10684 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10685 | # support --undefined. This deserves some investigation. FIXME | |
10686 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10687 | else | |
10688 | ld_shlibs_CXX=no | |
10689 | fi | |
10690 | ;; | |
10691 | ||
10692 | chorus*) | |
10693 | case $cc_basename in | |
10694 | *) | |
10695 | # FIXME: insert proper C++ library support | |
10696 | ld_shlibs_CXX=no | |
10697 | ;; | |
10698 | esac | |
10699 | ;; | |
10700 | ||
10701 | cygwin* | mingw* | pw32*) | |
10702 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10703 | # as there is no search path for DLLs. | |
10704 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10705 | allow_undefined_flag_CXX=unsupported | |
10706 | always_export_symbols_CXX=no | |
10707 | enable_shared_with_static_runtimes_CXX=yes | |
10708 | ||
10709 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10710 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10711 | # If the export-symbols file already is a .def file (1st line | |
10712 | # is EXPORTS), use it as is; otherwise, prepend... | |
10713 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10714 | cp $export_symbols $output_objdir/$soname.def; | |
10715 | else | |
10716 | echo EXPORTS > $output_objdir/$soname.def; | |
10717 | cat $export_symbols >> $output_objdir/$soname.def; | |
10718 | fi~ | |
10719 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10720 | else | |
10721 | ld_shlibs_CXX=no | |
10722 | fi | |
10723 | ;; | |
10724 | darwin* | rhapsody*) | |
10725 | case $host_os in | |
10726 | rhapsody* | darwin1.[012]) | |
10727 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
10728 | ;; | |
10729 | *) # Darwin 1.3 on | |
10730 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10731 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10732 | else | |
10733 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
10734 | 10.[012]) | |
10735 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10736 | ;; | |
10737 | 10.*) | |
10738 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
10739 | ;; | |
10740 | esac | |
10741 | fi | |
10742 | ;; | |
10743 | esac | |
10744 | archive_cmds_need_lc_CXX=no | |
10745 | hardcode_direct_CXX=no | |
10746 | hardcode_automatic_CXX=yes | |
10747 | hardcode_shlibpath_var_CXX=unsupported | |
10748 | whole_archive_flag_spec_CXX='' | |
10749 | link_all_deplibs_CXX=yes | |
10750 | ||
10751 | if test "$GXX" = yes ; then | |
10752 | lt_int_apple_cc_single_mod=no | |
10753 | output_verbose_link_cmd='echo' | |
10754 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
10755 | lt_int_apple_cc_single_mod=yes | |
10756 | fi | |
10757 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10758 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10759 | else | |
10760 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10761 | fi | |
10762 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10763 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10764 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10765 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10766 | else | |
10767 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10768 | fi | |
10769 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10770 | else | |
10771 | case $cc_basename in | |
10772 | xlc*) | |
10773 | output_verbose_link_cmd='echo' | |
10774 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
10775 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10776 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10777 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10778 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10779 | ;; | |
10780 | *) | |
10781 | ld_shlibs_CXX=no | |
10782 | ;; | |
10783 | esac | |
10784 | fi | |
10785 | ;; | |
10786 | ||
10787 | dgux*) | |
10788 | case $cc_basename in | |
10789 | ec++*) | |
10790 | # FIXME: insert proper C++ library support | |
10791 | ld_shlibs_CXX=no | |
10792 | ;; | |
10793 | ghcx*) | |
10794 | # Green Hills C++ Compiler | |
10795 | # FIXME: insert proper C++ library support | |
10796 | ld_shlibs_CXX=no | |
10797 | ;; | |
10798 | *) | |
10799 | # FIXME: insert proper C++ library support | |
10800 | ld_shlibs_CXX=no | |
10801 | ;; | |
10802 | esac | |
10803 | ;; | |
10804 | freebsd[12]*) | |
10805 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
10806 | ld_shlibs_CXX=no | |
10807 | ;; | |
10808 | freebsd-elf*) | |
10809 | archive_cmds_need_lc_CXX=no | |
10810 | ;; | |
10811 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
10812 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10813 | # conventions | |
10814 | ld_shlibs_CXX=yes | |
10815 | ;; | |
10816 | gnu*) | |
10817 | ;; | |
10818 | hpux9*) | |
10819 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10820 | hardcode_libdir_separator_CXX=: | |
10821 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10822 | hardcode_direct_CXX=yes | |
10823 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10824 | # but as the default | |
10825 | # location of the library. | |
10826 | ||
10827 | case $cc_basename in | |
10828 | CC*) | |
10829 | # FIXME: insert proper C++ library support | |
10830 | ld_shlibs_CXX=no | |
10831 | ;; | |
10832 | aCC*) | |
10833 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10834 | # Commands to make compiler produce verbose output that lists | |
10835 | # what "hidden" libraries, object files and flags are used when | |
10836 | # linking a shared library. | |
10837 | # | |
10838 | # There doesn't appear to be a way to prevent this compiler from | |
10839 | # explicitly linking system object files so we need to strip them | |
10840 | # from the output so that they don't get included in the library | |
10841 | # dependencies. | |
10842 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10843 | ;; | |
10844 | *) | |
10845 | if test "$GXX" = yes; then | |
10846 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10847 | else | |
10848 | # FIXME: insert proper C++ library support | |
10849 | ld_shlibs_CXX=no | |
10850 | fi | |
10851 | ;; | |
10852 | esac | |
10853 | ;; | |
10854 | hpux10*|hpux11*) | |
10855 | if test $with_gnu_ld = no; then | |
10856 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10857 | hardcode_libdir_separator_CXX=: | |
10858 | ||
10859 | case $host_cpu in | |
10860 | hppa*64*|ia64*) | |
10861 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10862 | ;; | |
10863 | *) | |
10864 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10865 | ;; | |
10866 | esac | |
10867 | fi | |
10868 | case $host_cpu in | |
10869 | hppa*64*|ia64*) | |
10870 | hardcode_direct_CXX=no | |
10871 | hardcode_shlibpath_var_CXX=no | |
10872 | ;; | |
10873 | *) | |
10874 | hardcode_direct_CXX=yes | |
10875 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10876 | # but as the default | |
10877 | # location of the library. | |
10878 | ;; | |
10879 | esac | |
10880 | ||
10881 | case $cc_basename in | |
10882 | CC*) | |
10883 | # FIXME: insert proper C++ library support | |
10884 | ld_shlibs_CXX=no | |
10885 | ;; | |
10886 | aCC*) | |
10887 | case $host_cpu in | |
10888 | hppa*64*) | |
10889 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10890 | ;; | |
10891 | ia64*) | |
10892 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10893 | ;; | |
10894 | *) | |
10895 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10896 | ;; | |
10897 | esac | |
10898 | # Commands to make compiler produce verbose output that lists | |
10899 | # what "hidden" libraries, object files and flags are used when | |
10900 | # linking a shared library. | |
10901 | # | |
10902 | # There doesn't appear to be a way to prevent this compiler from | |
10903 | # explicitly linking system object files so we need to strip them | |
10904 | # from the output so that they don't get included in the library | |
10905 | # dependencies. | |
10906 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10907 | ;; | |
10908 | *) | |
10909 | if test "$GXX" = yes; then | |
10910 | if test $with_gnu_ld = no; then | |
10911 | case $host_cpu in | |
10912 | hppa*64*) | |
10913 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10914 | ;; | |
10915 | ia64*) | |
10916 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10917 | ;; | |
10918 | *) | |
10919 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10920 | ;; | |
10921 | esac | |
10922 | fi | |
10923 | else | |
10924 | # FIXME: insert proper C++ library support | |
10925 | ld_shlibs_CXX=no | |
10926 | fi | |
10927 | ;; | |
10928 | esac | |
10929 | ;; | |
10930 | interix3*) | |
10931 | hardcode_direct_CXX=no | |
10932 | hardcode_shlibpath_var_CXX=no | |
10933 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10934 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10935 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10936 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10937 | # default) and relocated if they conflict, which is a slow very memory | |
10938 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10939 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10940 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10941 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10942 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10943 | ;; | |
10944 | irix5* | irix6*) | |
10945 | case $cc_basename in | |
10946 | CC*) | |
10947 | # SGI C++ | |
10948 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10949 | ||
10950 | # Archives containing C++ object files must be created using | |
10951 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10952 | # necessary to make sure instantiated templates are included | |
10953 | # in the archive. | |
10954 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10955 | ;; | |
10956 | *) | |
10957 | if test "$GXX" = yes; then | |
10958 | if test "$with_gnu_ld" = no; then | |
10959 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
10960 | else | |
10961 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
10962 | fi | |
10963 | fi | |
10964 | link_all_deplibs_CXX=yes | |
10965 | ;; | |
10966 | esac | |
10967 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10968 | hardcode_libdir_separator_CXX=: | |
10969 | ;; | |
10970 | linux*) | |
10971 | case $cc_basename in | |
10972 | KCC*) | |
10973 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10974 | ||
10975 | # KCC will only create a shared library if the output file | |
10976 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10977 | # to its proper name (with version) after linking. | |
10978 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
10979 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
10980 | # Commands to make compiler produce verbose output that lists | |
10981 | # what "hidden" libraries, object files and flags are used when | |
10982 | # linking a shared library. | |
10983 | # | |
10984 | # There doesn't appear to be a way to prevent this compiler from | |
10985 | # explicitly linking system object files so we need to strip them | |
10986 | # from the output so that they don't get included in the library | |
10987 | # dependencies. | |
10988 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10989 | ||
10990 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10991 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10992 | ||
10993 | # Archives containing C++ object files must be created using | |
10994 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10995 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10996 | ;; | |
10997 | icpc*) | |
10998 | # Intel C++ | |
10999 | with_gnu_ld=yes | |
11000 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11001 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11002 | # earlier do not add the objects themselves. | |
11003 | case `$CC -V 2>&1` in | |
11004 | *"Version 7."*) | |
11005 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11006 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11007 | ;; | |
11008 | *) # Version 8.0 or newer | |
11009 | tmp_idyn= | |
11010 | case $host_cpu in | |
11011 | ia64*) tmp_idyn=' -i_dynamic';; | |
11012 | esac | |
11013 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11014 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11015 | ;; | |
11016 | esac | |
11017 | archive_cmds_need_lc_CXX=no | |
11018 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11019 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11020 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11021 | ;; | |
11022 | pgCC*) | |
11023 | # Portland Group C++ compiler | |
11024 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11025 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11026 | ||
11027 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11028 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11029 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
11030 | ;; | |
11031 | cxx*) | |
11032 | # Compaq C++ | |
11033 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11034 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
11035 | ||
11036 | runpath_var=LD_RUN_PATH | |
11037 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11038 | hardcode_libdir_separator_CXX=: | |
11039 | ||
11040 | # Commands to make compiler produce verbose output that lists | |
11041 | # what "hidden" libraries, object files and flags are used when | |
11042 | # linking a shared library. | |
11043 | # | |
11044 | # There doesn't appear to be a way to prevent this compiler from | |
11045 | # explicitly linking system object files so we need to strip them | |
11046 | # from the output so that they don't get included in the library | |
11047 | # dependencies. | |
11048 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11049 | ;; | |
11050 | esac | |
11051 | ;; | |
11052 | lynxos*) | |
11053 | # FIXME: insert proper C++ library support | |
11054 | ld_shlibs_CXX=no | |
11055 | ;; | |
11056 | m88k*) | |
11057 | # FIXME: insert proper C++ library support | |
11058 | ld_shlibs_CXX=no | |
11059 | ;; | |
11060 | mvs*) | |
11061 | case $cc_basename in | |
11062 | cxx*) | |
11063 | # FIXME: insert proper C++ library support | |
11064 | ld_shlibs_CXX=no | |
11065 | ;; | |
11066 | *) | |
11067 | # FIXME: insert proper C++ library support | |
11068 | ld_shlibs_CXX=no | |
11069 | ;; | |
11070 | esac | |
11071 | ;; | |
11072 | netbsd*) | |
11073 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11074 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11075 | wlarc= | |
11076 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11077 | hardcode_direct_CXX=yes | |
11078 | hardcode_shlibpath_var_CXX=no | |
11079 | fi | |
11080 | # Workaround some broken pre-1.5 toolchains | |
11081 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11082 | ;; | |
11083 | openbsd2*) | |
11084 | # C++ shared libraries are fairly broken | |
11085 | ld_shlibs_CXX=no | |
11086 | ;; | |
11087 | openbsd*) | |
11088 | hardcode_direct_CXX=yes | |
11089 | hardcode_shlibpath_var_CXX=no | |
11090 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11091 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11092 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11093 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11094 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11095 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11096 | fi | |
11097 | output_verbose_link_cmd='echo' | |
11098 | ;; | |
11099 | osf3*) | |
11100 | case $cc_basename in | |
11101 | KCC*) | |
11102 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11103 | ||
11104 | # KCC will only create a shared library if the output file | |
11105 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11106 | # to its proper name (with version) after linking. | |
11107 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11108 | ||
11109 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11110 | hardcode_libdir_separator_CXX=: | |
11111 | ||
11112 | # Archives containing C++ object files must be created using | |
11113 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11114 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11115 | ||
11116 | ;; | |
11117 | RCC*) | |
11118 | # Rational C++ 2.4.1 | |
11119 | # FIXME: insert proper C++ library support | |
11120 | ld_shlibs_CXX=no | |
11121 | ;; | |
11122 | cxx*) | |
11123 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11124 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11125 | ||
11126 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11127 | hardcode_libdir_separator_CXX=: | |
11128 | ||
11129 | # Commands to make compiler produce verbose output that lists | |
11130 | # what "hidden" libraries, object files and flags are used when | |
11131 | # linking a shared library. | |
11132 | # | |
11133 | # There doesn't appear to be a way to prevent this compiler from | |
11134 | # explicitly linking system object files so we need to strip them | |
11135 | # from the output so that they don't get included in the library | |
11136 | # dependencies. | |
11137 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11138 | ;; | |
11139 | *) | |
11140 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11141 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11142 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
11143 | ||
11144 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11145 | hardcode_libdir_separator_CXX=: | |
11146 | ||
11147 | # Commands to make compiler produce verbose output that lists | |
11148 | # what "hidden" libraries, object files and flags are used when | |
11149 | # linking a shared library. | |
11150 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11151 | ||
11152 | else | |
11153 | # FIXME: insert proper C++ library support | |
11154 | ld_shlibs_CXX=no | |
11155 | fi | |
11156 | ;; | |
11157 | esac | |
11158 | ;; | |
11159 | osf4* | osf5*) | |
11160 | case $cc_basename in | |
11161 | KCC*) | |
11162 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11163 | ||
11164 | # KCC will only create a shared library if the output file | |
11165 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11166 | # to its proper name (with version) after linking. | |
11167 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11168 | ||
11169 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11170 | hardcode_libdir_separator_CXX=: | |
11171 | ||
11172 | # Archives containing C++ object files must be created using | |
11173 | # the KAI C++ compiler. | |
11174 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11175 | ;; | |
11176 | RCC*) | |
11177 | # Rational C++ 2.4.1 | |
11178 | # FIXME: insert proper C++ library support | |
11179 | ld_shlibs_CXX=no | |
11180 | ;; | |
11181 | cxx*) | |
11182 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11183 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11184 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11185 | echo "-hidden">> $lib.exp~ | |
11186 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11187 | $rm $lib.exp' | |
11188 | ||
11189 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11190 | hardcode_libdir_separator_CXX=: | |
11191 | ||
11192 | # Commands to make compiler produce verbose output that lists | |
11193 | # what "hidden" libraries, object files and flags are used when | |
11194 | # linking a shared library. | |
11195 | # | |
11196 | # There doesn't appear to be a way to prevent this compiler from | |
11197 | # explicitly linking system object files so we need to strip them | |
11198 | # from the output so that they don't get included in the library | |
11199 | # dependencies. | |
11200 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11201 | ;; | |
11202 | *) | |
11203 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11204 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11205 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
11206 | ||
11207 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11208 | hardcode_libdir_separator_CXX=: | |
11209 | ||
11210 | # Commands to make compiler produce verbose output that lists | |
11211 | # what "hidden" libraries, object files and flags are used when | |
11212 | # linking a shared library. | |
11213 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11214 | ||
11215 | else | |
11216 | # FIXME: insert proper C++ library support | |
11217 | ld_shlibs_CXX=no | |
11218 | fi | |
11219 | ;; | |
11220 | esac | |
11221 | ;; | |
11222 | psos*) | |
11223 | # FIXME: insert proper C++ library support | |
11224 | ld_shlibs_CXX=no | |
11225 | ;; | |
11226 | sunos4*) | |
11227 | case $cc_basename in | |
11228 | CC*) | |
11229 | # Sun C++ 4.x | |
11230 | # FIXME: insert proper C++ library support | |
11231 | ld_shlibs_CXX=no | |
11232 | ;; | |
11233 | lcc*) | |
11234 | # Lucid | |
11235 | # FIXME: insert proper C++ library support | |
11236 | ld_shlibs_CXX=no | |
11237 | ;; | |
11238 | *) | |
11239 | # FIXME: insert proper C++ library support | |
11240 | ld_shlibs_CXX=no | |
11241 | ;; | |
11242 | esac | |
11243 | ;; | |
11244 | solaris*) | |
11245 | case $cc_basename in | |
11246 | CC*) | |
11247 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11248 | archive_cmds_need_lc_CXX=yes | |
11249 | no_undefined_flag_CXX=' -zdefs' | |
11250 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11251 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11252 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11253 | ||
11254 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11255 | hardcode_shlibpath_var_CXX=no | |
11256 | case $host_os in | |
11257 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11258 | *) | |
11259 | # The C++ compiler is used as linker so we must use $wl | |
11260 | # flag to pass the commands to the underlying system | |
11261 | # linker. We must also pass each convience library through | |
11262 | # to the system linker between allextract/defaultextract. | |
11263 | # The C++ compiler will combine linker options so we | |
11264 | # cannot just pass the convience library names through | |
11265 | # without $wl. | |
11266 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11267 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
11268 | ;; | |
11269 | esac | |
11270 | link_all_deplibs_CXX=yes | |
11271 | ||
11272 | output_verbose_link_cmd='echo' | |
11273 | ||
11274 | # Archives containing C++ object files must be created using | |
11275 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11276 | # necessary to make sure instantiated templates are included | |
11277 | # in the archive. | |
11278 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11279 | ;; | |
11280 | gcx*) | |
11281 | # Green Hills C++ Compiler | |
11282 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11283 | ||
11284 | # The C++ compiler must be used to create the archive. | |
11285 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11286 | ;; | |
11287 | *) | |
11288 | # GNU C++ compiler with Solaris linker | |
11289 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11290 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11291 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
11292 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11293 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11294 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11295 | ||
11296 | # Commands to make compiler produce verbose output that lists | |
11297 | # what "hidden" libraries, object files and flags are used when | |
11298 | # linking a shared library. | |
11299 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11300 | else | |
11301 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11302 | # platform. | |
11303 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11304 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11305 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11306 | ||
11307 | # Commands to make compiler produce verbose output that lists | |
11308 | # what "hidden" libraries, object files and flags are used when | |
11309 | # linking a shared library. | |
11310 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11311 | fi | |
11312 | ||
11313 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11314 | fi | |
11315 | ;; | |
11316 | esac | |
11317 | ;; | |
11318 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11319 | no_undefined_flag_CXX='${wl}-z,text' | |
11320 | archive_cmds_need_lc_CXX=no | |
11321 | hardcode_shlibpath_var_CXX=no | |
11322 | runpath_var='LD_RUN_PATH' | |
11323 | ||
11324 | case $cc_basename in | |
11325 | CC*) | |
11326 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11327 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11328 | ;; | |
11329 | *) | |
11330 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11331 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11332 | ;; | |
11333 | esac | |
11334 | ;; | |
11335 | sysv5* | sco3.2v5* | sco5v6*) | |
11336 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11337 | # link with -lc, and that would cause any symbols used from libc to | |
11338 | # always be unresolved, which means just about no library would | |
11339 | # ever link correctly. If we're not using GNU ld we use -z text | |
11340 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11341 | # as -z defs. | |
11342 | # For security reasons, it is highly recommended that you always | |
11343 | # use absolute paths for naming shared libraries, and exclude the | |
11344 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11345 | # requires that you compile everything twice, which is a pain. | |
11346 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
11347 | # non-empty value in the environment. Most likely only useful for | |
11348 | # creating official distributions of packages. | |
11349 | # This is a hack until libtool officially supports absolute path | |
11350 | # names for shared libraries. | |
11351 | no_undefined_flag_CXX='${wl}-z,text' | |
11352 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11353 | archive_cmds_need_lc_CXX=no | |
11354 | hardcode_shlibpath_var_CXX=no | |
11355 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
11356 | hardcode_libdir_separator_CXX=':' | |
11357 | link_all_deplibs_CXX=yes | |
11358 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11359 | runpath_var='LD_RUN_PATH' | |
11360 | ||
11361 | case $cc_basename in | |
11362 | CC*) | |
11363 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11364 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11365 | ;; | |
11366 | *) | |
11367 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11368 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11369 | ;; | |
11370 | esac | |
11371 | ;; | |
11372 | tandem*) | |
11373 | case $cc_basename in | |
11374 | NCC*) | |
11375 | # NonStop-UX NCC 3.20 | |
11376 | # FIXME: insert proper C++ library support | |
11377 | ld_shlibs_CXX=no | |
11378 | ;; | |
11379 | *) | |
11380 | # FIXME: insert proper C++ library support | |
11381 | ld_shlibs_CXX=no | |
11382 | ;; | |
11383 | esac | |
11384 | ;; | |
11385 | vxworks*) | |
11386 | # FIXME: insert proper C++ library support | |
11387 | ld_shlibs_CXX=no | |
11388 | ;; | |
11389 | *) | |
11390 | # FIXME: insert proper C++ library support | |
11391 | ld_shlibs_CXX=no | |
11392 | ;; | |
11393 | esac | |
11394 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11395 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11396 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11397 | ||
11398 | GCC_CXX="$GXX" | |
11399 | LD_CXX="$LD" | |
11400 | ||
11401 | ||
11402 | cat > conftest.$ac_ext <<EOF | |
11403 | class Foo | |
11404 | { | |
11405 | public: | |
11406 | Foo (void) { a = 0; } | |
11407 | private: | |
11408 | int a; | |
11409 | }; | |
11410 | EOF | |
11411 | ||
11412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11413 | (eval $ac_compile) 2>&5 | |
11414 | ac_status=$? | |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11416 | (exit $ac_status); }; then | |
11417 | # Parse the compiler output and extract the necessary | |
11418 | # objects, libraries and library flags. | |
11419 | ||
11420 | # Sentinel used to keep track of whether or not we are before | |
11421 | # the conftest object file. | |
11422 | pre_test_object_deps_done=no | |
11423 | ||
11424 | # The `*' in the case matches for architectures that use `case' in | |
11425 | # $output_verbose_cmd can trigger glob expansion during the loop | |
11426 | # eval without this substitution. | |
11427 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
11428 | ||
11429 | for p in `eval $output_verbose_link_cmd`; do | |
11430 | case $p in | |
11431 | ||
11432 | -L* | -R* | -l*) | |
11433 | # Some compilers place space between "-{L,R}" and the path. | |
11434 | # Remove the space. | |
11435 | if test $p = "-L" \ | |
11436 | || test $p = "-R"; then | |
11437 | prev=$p | |
11438 | continue | |
11439 | else | |
11440 | prev= | |
11441 | fi | |
11442 | ||
11443 | if test "$pre_test_object_deps_done" = no; then | |
11444 | case $p in | |
11445 | -L* | -R*) | |
11446 | # Internal compiler library paths should come after those | |
11447 | # provided the user. The postdeps already come after the | |
11448 | # user supplied libs so there is no need to process them. | |
11449 | if test -z "$compiler_lib_search_path_CXX"; then | |
11450 | compiler_lib_search_path_CXX="${prev}${p}" | |
11451 | else | |
11452 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
11453 | fi | |
11454 | ;; | |
11455 | # The "-l" case would never come before the object being | |
11456 | # linked, so don't bother handling this case. | |
11457 | esac | |
11458 | else | |
11459 | if test -z "$postdeps_CXX"; then | |
11460 | postdeps_CXX="${prev}${p}" | |
11461 | else | |
11462 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
11463 | fi | |
11464 | fi | |
11465 | ;; | |
11466 | ||
11467 | *.$objext) | |
11468 | # This assumes that the test object file only shows up | |
11469 | # once in the compiler output. | |
11470 | if test "$p" = "conftest.$objext"; then | |
11471 | pre_test_object_deps_done=yes | |
11472 | continue | |
11473 | fi | |
11474 | ||
11475 | if test "$pre_test_object_deps_done" = no; then | |
11476 | if test -z "$predep_objects_CXX"; then | |
11477 | predep_objects_CXX="$p" | |
11478 | else | |
11479 | predep_objects_CXX="$predep_objects_CXX $p" | |
11480 | fi | |
11481 | else | |
11482 | if test -z "$postdep_objects_CXX"; then | |
11483 | postdep_objects_CXX="$p" | |
11484 | else | |
11485 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
11486 | fi | |
11487 | fi | |
11488 | ;; | |
11489 | ||
11490 | *) ;; # Ignore the rest. | |
11491 | ||
11492 | esac | |
11493 | done | |
11494 | ||
11495 | # Clean up. | |
11496 | rm -f a.out a.exe | |
11497 | else | |
11498 | echo "libtool.m4: error: problem compiling CXX test program" | |
11499 | fi | |
11500 | ||
11501 | $rm -f confest.$objext | |
11502 | ||
11503 | # PORTME: override above test on systems where it is broken | |
11504 | case $host_os in | |
11505 | interix3*) | |
11506 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
11507 | # hack all around it, let's just trust "g++" to DTRT. | |
11508 | predep_objects_CXX= | |
11509 | postdep_objects_CXX= | |
11510 | postdeps_CXX= | |
11511 | ;; | |
11512 | ||
11513 | solaris*) | |
11514 | case $cc_basename in | |
11515 | CC*) | |
11516 | # Adding this requires a known-good setup of shared libraries for | |
11517 | # Sun compiler versions before 5.6, else PIC objects from an old | |
11518 | # archive will be linked into the output, leading to subtle bugs. | |
11519 | postdeps_CXX='-lCstd -lCrun' | |
11520 | ;; | |
11521 | esac | |
11522 | ;; | |
11523 | esac | |
11524 | ||
11525 | ||
11526 | case " $postdeps_CXX " in | |
11527 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
11528 | esac | |
11529 | ||
11530 | lt_prog_compiler_wl_CXX= | |
11531 | lt_prog_compiler_pic_CXX= | |
11532 | lt_prog_compiler_static_CXX= | |
11533 | ||
11534 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11535 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11536 | ||
11537 | # C++ specific cases for pic, static, wl, etc. | |
11538 | if test "$GXX" = yes; then | |
11539 | lt_prog_compiler_wl_CXX='-Wl,' | |
11540 | lt_prog_compiler_static_CXX='-static' | |
11541 | ||
11542 | case $host_os in | |
11543 | aix*) | |
11544 | # All AIX code is PIC. | |
11545 | if test "$host_cpu" = ia64; then | |
11546 | # AIX 5 now supports IA64 processor | |
11547 | lt_prog_compiler_static_CXX='-Bstatic' | |
11548 | fi | |
11549 | ;; | |
11550 | amigaos*) | |
11551 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11552 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11553 | # like `-m68040'. | |
11554 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
11555 | ;; | |
11556 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11557 | # PIC is the default for these OSes. | |
11558 | ;; | |
11559 | mingw* | os2* | pw32*) | |
11560 | # This hack is so that the source file can tell whether it is being | |
11561 | # built for inclusion in a dll (and should export symbols for example). | |
11562 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
11563 | ;; | |
11564 | darwin* | rhapsody*) | |
11565 | # PIC is the default on this platform | |
11566 | # Common symbols not allowed in MH_DYLIB files | |
11567 | lt_prog_compiler_pic_CXX='-fno-common' | |
11568 | ;; | |
11569 | *djgpp*) | |
11570 | # DJGPP does not support shared libraries at all | |
11571 | lt_prog_compiler_pic_CXX= | |
11572 | ;; | |
11573 | interix3*) | |
11574 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11575 | # Instead, we relocate shared libraries at runtime. | |
11576 | ;; | |
11577 | sysv4*MP*) | |
11578 | if test -d /usr/nec; then | |
11579 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
11580 | fi | |
11581 | ;; | |
11582 | hpux*) | |
11583 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11584 | # not for PA HP-UX. | |
11585 | case $host_cpu in | |
11586 | hppa*64*|ia64*) | |
11587 | ;; | |
11588 | *) | |
11589 | lt_prog_compiler_pic_CXX='-fPIC' | |
11590 | ;; | |
11591 | esac | |
11592 | ;; | |
11593 | *) | |
11594 | lt_prog_compiler_pic_CXX='-fPIC' | |
11595 | ;; | |
11596 | esac | |
11597 | else | |
11598 | case $host_os in | |
11599 | aix4* | aix5*) | |
11600 | # All AIX code is PIC. | |
11601 | if test "$host_cpu" = ia64; then | |
11602 | # AIX 5 now supports IA64 processor | |
11603 | lt_prog_compiler_static_CXX='-Bstatic' | |
11604 | else | |
11605 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
11606 | fi | |
11607 | ;; | |
11608 | chorus*) | |
11609 | case $cc_basename in | |
11610 | cxch68*) | |
11611 | # Green Hills C++ Compiler | |
11612 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
11613 | ;; | |
11614 | esac | |
11615 | ;; | |
11616 | darwin*) | |
11617 | # PIC is the default on this platform | |
11618 | # Common symbols not allowed in MH_DYLIB files | |
11619 | case $cc_basename in | |
11620 | xlc*) | |
11621 | lt_prog_compiler_pic_CXX='-qnocommon' | |
11622 | lt_prog_compiler_wl_CXX='-Wl,' | |
11623 | ;; | |
11624 | esac | |
11625 | ;; | |
11626 | dgux*) | |
11627 | case $cc_basename in | |
11628 | ec++*) | |
11629 | lt_prog_compiler_pic_CXX='-KPIC' | |
11630 | ;; | |
11631 | ghcx*) | |
11632 | # Green Hills C++ Compiler | |
11633 | lt_prog_compiler_pic_CXX='-pic' | |
11634 | ;; | |
11635 | *) | |
11636 | ;; | |
11637 | esac | |
11638 | ;; | |
11639 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
11640 | # FreeBSD uses GNU C++ | |
11641 | ;; | |
11642 | hpux9* | hpux10* | hpux11*) | |
11643 | case $cc_basename in | |
11644 | CC*) | |
11645 | lt_prog_compiler_wl_CXX='-Wl,' | |
11646 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11647 | if test "$host_cpu" != ia64; then | |
11648 | lt_prog_compiler_pic_CXX='+Z' | |
11649 | fi | |
11650 | ;; | |
11651 | aCC*) | |
11652 | lt_prog_compiler_wl_CXX='-Wl,' | |
11653 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11654 | case $host_cpu in | |
11655 | hppa*64*|ia64*) | |
11656 | # +Z the default | |
11657 | ;; | |
11658 | *) | |
11659 | lt_prog_compiler_pic_CXX='+Z' | |
11660 | ;; | |
11661 | esac | |
11662 | ;; | |
11663 | *) | |
11664 | ;; | |
11665 | esac | |
11666 | ;; | |
11667 | interix*) | |
11668 | # This is c89, which is MS Visual C++ (no shared libs) | |
11669 | # Anyone wants to do a port? | |
11670 | ;; | |
11671 | irix5* | irix6* | nonstopux*) | |
11672 | case $cc_basename in | |
11673 | CC*) | |
11674 | lt_prog_compiler_wl_CXX='-Wl,' | |
11675 | lt_prog_compiler_static_CXX='-non_shared' | |
11676 | # CC pic flag -KPIC is the default. | |
11677 | ;; | |
11678 | *) | |
11679 | ;; | |
11680 | esac | |
11681 | ;; | |
11682 | linux*) | |
11683 | case $cc_basename in | |
11684 | KCC*) | |
11685 | # KAI C++ Compiler | |
11686 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11687 | lt_prog_compiler_pic_CXX='-fPIC' | |
11688 | ;; | |
11689 | icpc* | ecpc*) | |
11690 | # Intel C++ | |
11691 | lt_prog_compiler_wl_CXX='-Wl,' | |
11692 | lt_prog_compiler_pic_CXX='-KPIC' | |
11693 | lt_prog_compiler_static_CXX='-static' | |
11694 | ;; | |
11695 | pgCC*) | |
11696 | # Portland Group C++ compiler. | |
11697 | lt_prog_compiler_wl_CXX='-Wl,' | |
11698 | lt_prog_compiler_pic_CXX='-fpic' | |
11699 | lt_prog_compiler_static_CXX='-Bstatic' | |
11700 | ;; | |
11701 | cxx*) | |
11702 | # Compaq C++ | |
11703 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11704 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11705 | lt_prog_compiler_pic_CXX= | |
11706 | lt_prog_compiler_static_CXX='-non_shared' | |
11707 | ;; | |
11708 | *) | |
11709 | ;; | |
11710 | esac | |
11711 | ;; | |
11712 | lynxos*) | |
11713 | ;; | |
11714 | m88k*) | |
11715 | ;; | |
11716 | mvs*) | |
11717 | case $cc_basename in | |
11718 | cxx*) | |
11719 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
11720 | ;; | |
11721 | *) | |
11722 | ;; | |
11723 | esac | |
11724 | ;; | |
11725 | netbsd*) | |
11726 | ;; | |
11727 | osf3* | osf4* | osf5*) | |
11728 | case $cc_basename in | |
11729 | KCC*) | |
11730 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11731 | ;; | |
11732 | RCC*) | |
11733 | # Rational C++ 2.4.1 | |
11734 | lt_prog_compiler_pic_CXX='-pic' | |
11735 | ;; | |
11736 | cxx*) | |
11737 | # Digital/Compaq C++ | |
11738 | lt_prog_compiler_wl_CXX='-Wl,' | |
11739 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11740 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11741 | lt_prog_compiler_pic_CXX= | |
11742 | lt_prog_compiler_static_CXX='-non_shared' | |
11743 | ;; | |
11744 | *) | |
11745 | ;; | |
11746 | esac | |
11747 | ;; | |
11748 | psos*) | |
11749 | ;; | |
11750 | solaris*) | |
11751 | case $cc_basename in | |
11752 | CC*) | |
11753 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11754 | lt_prog_compiler_pic_CXX='-KPIC' | |
11755 | lt_prog_compiler_static_CXX='-Bstatic' | |
11756 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
11757 | ;; | |
11758 | gcx*) | |
11759 | # Green Hills C++ Compiler | |
11760 | lt_prog_compiler_pic_CXX='-PIC' | |
11761 | ;; | |
11762 | *) | |
11763 | ;; | |
11764 | esac | |
11765 | ;; | |
11766 | sunos4*) | |
11767 | case $cc_basename in | |
11768 | CC*) | |
11769 | # Sun C++ 4.x | |
11770 | lt_prog_compiler_pic_CXX='-pic' | |
11771 | lt_prog_compiler_static_CXX='-Bstatic' | |
11772 | ;; | |
11773 | lcc*) | |
11774 | # Lucid | |
11775 | lt_prog_compiler_pic_CXX='-pic' | |
11776 | ;; | |
11777 | *) | |
11778 | ;; | |
11779 | esac | |
11780 | ;; | |
11781 | tandem*) | |
11782 | case $cc_basename in | |
11783 | NCC*) | |
11784 | # NonStop-UX NCC 3.20 | |
11785 | lt_prog_compiler_pic_CXX='-KPIC' | |
11786 | ;; | |
11787 | *) | |
11788 | ;; | |
11789 | esac | |
11790 | ;; | |
11791 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11792 | case $cc_basename in | |
11793 | CC*) | |
11794 | lt_prog_compiler_wl_CXX='-Wl,' | |
11795 | lt_prog_compiler_pic_CXX='-KPIC' | |
11796 | lt_prog_compiler_static_CXX='-Bstatic' | |
11797 | ;; | |
11798 | esac | |
11799 | ;; | |
11800 | vxworks*) | |
11801 | ;; | |
11802 | *) | |
11803 | lt_prog_compiler_can_build_shared_CXX=no | |
11804 | ;; | |
11805 | esac | |
11806 | fi | |
11807 | ||
11808 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
11809 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
11810 | ||
11811 | # | |
11812 | # Check to make sure the PIC flag actually works. | |
11813 | # | |
11814 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
11815 | ||
11816 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
11817 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
11818 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11820 | else | |
11821 | lt_prog_compiler_pic_works_CXX=no | |
11822 | ac_outfile=conftest.$ac_objext | |
11823 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11824 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11825 | # Insert the option either (1) after the last *FLAGS variable, or | |
11826 | # (2) before a word containing "conftest.", or (3) at the end. | |
11827 | # Note that $ac_compile itself does not contain backslashes and begins | |
11828 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11829 | # The option is referenced via a variable to avoid confusing sed. | |
11830 | lt_compile=`echo "$ac_compile" | $SED \ | |
11831 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11832 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11833 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 11834 | (eval echo "\"\$as_me:11834: $lt_compile\"" >&5) |
bf9f3bac | 11835 | (eval "$lt_compile" 2>conftest.err) |
11836 | ac_status=$? | |
11837 | cat conftest.err >&5 | |
5e9b5d83 | 11838 | echo "$as_me:11838: \$? = $ac_status" >&5 |
bf9f3bac | 11839 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11840 | # The compiler can only warn and ignore the option if not recognized | |
11841 | # So say no if there are warnings other than the usual output. | |
11842 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
11843 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11844 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11845 | lt_prog_compiler_pic_works_CXX=yes | |
11846 | fi | |
11847 | fi | |
11848 | $rm conftest* | |
11849 | ||
11850 | fi | |
11851 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11852 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11853 | ||
11854 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11855 | case $lt_prog_compiler_pic_CXX in | |
11856 | "" | " "*) ;; | |
11857 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11858 | esac | |
11859 | else | |
11860 | lt_prog_compiler_pic_CXX= | |
11861 | lt_prog_compiler_can_build_shared_CXX=no | |
11862 | fi | |
11863 | ||
11864 | fi | |
11865 | case $host_os in | |
11866 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11867 | *djgpp*) | |
11868 | lt_prog_compiler_pic_CXX= | |
11869 | ;; | |
11870 | *) | |
11871 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11872 | ;; | |
11873 | esac | |
11874 | ||
11875 | # | |
11876 | # Check to make sure the static flag actually works. | |
11877 | # | |
11878 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
11879 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11880 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
11881 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
11882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11883 | else | |
11884 | lt_prog_compiler_static_works_CXX=no | |
11885 | save_LDFLAGS="$LDFLAGS" | |
11886 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11887 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
11888 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11889 | # The linker can only warn and ignore the option if not recognized | |
11890 | # So say no if there are warnings | |
11891 | if test -s conftest.err; then | |
11892 | # Append any errors to the config.log. | |
11893 | cat conftest.err 1>&5 | |
11894 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
11895 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11896 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11897 | lt_prog_compiler_static_works_CXX=yes | |
11898 | fi | |
11899 | else | |
11900 | lt_prog_compiler_static_works_CXX=yes | |
11901 | fi | |
11902 | fi | |
11903 | $rm conftest* | |
11904 | LDFLAGS="$save_LDFLAGS" | |
11905 | ||
11906 | fi | |
11907 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
11908 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
11909 | ||
11910 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
11911 | : | |
11912 | else | |
11913 | lt_prog_compiler_static_CXX= | |
11914 | fi | |
11915 | ||
11916 | ||
11917 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11918 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11919 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
11920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11921 | else | |
11922 | lt_cv_prog_compiler_c_o_CXX=no | |
11923 | $rm -r conftest 2>/dev/null | |
11924 | mkdir conftest | |
11925 | cd conftest | |
11926 | mkdir out | |
11927 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11928 | ||
11929 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11930 | # Insert the option either (1) after the last *FLAGS variable, or | |
11931 | # (2) before a word containing "conftest.", or (3) at the end. | |
11932 | # Note that $ac_compile itself does not contain backslashes and begins | |
11933 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11934 | lt_compile=`echo "$ac_compile" | $SED \ | |
11935 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11936 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11937 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 11938 | (eval echo "\"\$as_me:11938: $lt_compile\"" >&5) |
bf9f3bac | 11939 | (eval "$lt_compile" 2>out/conftest.err) |
11940 | ac_status=$? | |
11941 | cat out/conftest.err >&5 | |
5e9b5d83 | 11942 | echo "$as_me:11942: \$? = $ac_status" >&5 |
bf9f3bac | 11943 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11944 | then | |
11945 | # The compiler can only warn and ignore the option if not recognized | |
11946 | # So say no if there are warnings | |
11947 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11948 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11949 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11950 | lt_cv_prog_compiler_c_o_CXX=yes | |
11951 | fi | |
11952 | fi | |
11953 | chmod u+w . 2>&5 | |
11954 | $rm conftest* | |
11955 | # SGI C++ compiler will create directory out/ii_files/ for | |
11956 | # template instantiation | |
11957 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
11958 | $rm out/* && rmdir out | |
11959 | cd .. | |
11960 | rmdir conftest | |
11961 | $rm conftest* | |
11962 | ||
11963 | fi | |
11964 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11965 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11966 | ||
11967 | ||
11968 | hard_links="nottested" | |
11969 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11970 | # do not overwrite the value of need_locks provided by the user | |
11971 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11972 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11973 | hard_links=yes | |
11974 | $rm conftest* | |
11975 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11976 | touch conftest.a | |
11977 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11978 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11979 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11980 | echo "${ECHO_T}$hard_links" >&6 | |
11981 | if test "$hard_links" = no; then | |
11982 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11983 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11984 | need_locks=warn | |
11985 | fi | |
11986 | else | |
11987 | need_locks=no | |
11988 | fi | |
11989 | ||
11990 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11991 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11992 | ||
11993 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11994 | case $host_os in | |
11995 | aix4* | aix5*) | |
11996 | # If we're using GNU nm, then we don't want the "-C" option. | |
11997 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11998 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11999 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12000 | else | |
12001 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12002 | fi | |
12003 | ;; | |
12004 | pw32*) | |
12005 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12006 | ;; | |
12007 | cygwin* | mingw*) | |
12008 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
12009 | ;; | |
12010 | *) | |
12011 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12012 | ;; | |
12013 | esac | |
12014 | ||
12015 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12016 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
12017 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12018 | ||
12019 | # | |
12020 | # Do we need to explicitly link libc? | |
12021 | # | |
12022 | case "x$archive_cmds_need_lc_CXX" in | |
12023 | x|xyes) | |
12024 | # Assume -lc should be added | |
12025 | archive_cmds_need_lc_CXX=yes | |
12026 | ||
12027 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12028 | case $archive_cmds_CXX in | |
12029 | *'~'*) | |
12030 | # FIXME: we may have to deal with multi-command sequences. | |
12031 | ;; | |
12032 | '$CC '*) | |
12033 | # Test whether the compiler implicitly links with -lc since on some | |
12034 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12035 | # to ld, don't add -lc before -lgcc. | |
12036 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12037 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12038 | $rm conftest* | |
12039 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12040 | ||
12041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12042 | (eval $ac_compile) 2>&5 | |
12043 | ac_status=$? | |
12044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12045 | (exit $ac_status); } 2>conftest.err; then | |
12046 | soname=conftest | |
12047 | lib=conftest | |
12048 | libobjs=conftest.$ac_objext | |
12049 | deplibs= | |
12050 | wl=$lt_prog_compiler_wl_CXX | |
12051 | pic_flag=$lt_prog_compiler_pic_CXX | |
12052 | compiler_flags=-v | |
12053 | linker_flags=-v | |
12054 | verstring= | |
12055 | output_objdir=. | |
12056 | libname=conftest | |
12057 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12058 | allow_undefined_flag_CXX= | |
12059 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12060 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12061 | ac_status=$? | |
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 | (exit $ac_status); } | |
12064 | then | |
12065 | archive_cmds_need_lc_CXX=no | |
12066 | else | |
12067 | archive_cmds_need_lc_CXX=yes | |
12068 | fi | |
12069 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12070 | else | |
12071 | cat conftest.err 1>&5 | |
12072 | fi | |
12073 | $rm conftest* | |
12074 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12075 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
12076 | ;; | |
12077 | esac | |
12078 | fi | |
12079 | ;; | |
12080 | esac | |
12081 | ||
12082 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12083 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12084 | library_names_spec= | |
12085 | libname_spec='lib$name' | |
12086 | soname_spec= | |
12087 | shrext_cmds=".so" | |
12088 | postinstall_cmds= | |
12089 | postuninstall_cmds= | |
12090 | finish_cmds= | |
12091 | finish_eval= | |
12092 | shlibpath_var= | |
12093 | shlibpath_overrides_runpath=unknown | |
12094 | version_type=none | |
12095 | dynamic_linker="$host_os ld.so" | |
12096 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12097 | if test "$GCC" = yes; then | |
12098 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12099 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12100 | # if the path contains ";" then we assume it to be the separator | |
12101 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12102 | # assumed that no part of a normal pathname contains ";" but that should | |
12103 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12104 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12105 | else | |
12106 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12107 | fi | |
12108 | else | |
12109 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12110 | fi | |
12111 | need_lib_prefix=unknown | |
12112 | hardcode_into_libs=no | |
12113 | ||
12114 | # when you set need_version to no, make sure it does not cause -set_version | |
12115 | # flags to be left without arguments | |
12116 | need_version=unknown | |
12117 | ||
12118 | case $host_os in | |
12119 | aix3*) | |
12120 | version_type=linux | |
12121 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12122 | shlibpath_var=LIBPATH | |
12123 | ||
12124 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12125 | soname_spec='${libname}${release}${shared_ext}$major' | |
12126 | ;; | |
12127 | ||
12128 | aix4* | aix5*) | |
12129 | version_type=linux | |
12130 | need_lib_prefix=no | |
12131 | need_version=no | |
12132 | hardcode_into_libs=yes | |
12133 | if test "$host_cpu" = ia64; then | |
12134 | # AIX 5 supports IA64 | |
12135 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12136 | shlibpath_var=LD_LIBRARY_PATH | |
12137 | else | |
12138 | # With GCC up to 2.95.x, collect2 would create an import file | |
12139 | # for dependence libraries. The import file would start with | |
12140 | # the line `#! .'. This would cause the generated library to | |
12141 | # depend on `.', always an invalid library. This was fixed in | |
12142 | # development snapshots of GCC prior to 3.0. | |
12143 | case $host_os in | |
12144 | aix4 | aix4.[01] | aix4.[01].*) | |
12145 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12146 | echo ' yes ' | |
12147 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12148 | : | |
12149 | else | |
12150 | can_build_shared=no | |
12151 | fi | |
12152 | ;; | |
12153 | esac | |
12154 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12155 | # soname into executable. Probably we can add versioning support to | |
12156 | # collect2, so additional links can be useful in future. | |
12157 | if test "$aix_use_runtimelinking" = yes; then | |
12158 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12159 | # instead of lib<name>.a to let people know that these are not | |
12160 | # typical AIX shared libraries. | |
12161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12162 | else | |
12163 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12164 | # and later when we are not doing run time linking. | |
12165 | library_names_spec='${libname}${release}.a $libname.a' | |
12166 | soname_spec='${libname}${release}${shared_ext}$major' | |
12167 | fi | |
12168 | shlibpath_var=LIBPATH | |
12169 | fi | |
12170 | ;; | |
12171 | ||
12172 | amigaos*) | |
12173 | library_names_spec='$libname.ixlibrary $libname.a' | |
12174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12175 | 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' | |
12176 | ;; | |
12177 | ||
12178 | beos*) | |
12179 | library_names_spec='${libname}${shared_ext}' | |
12180 | dynamic_linker="$host_os ld.so" | |
12181 | shlibpath_var=LIBRARY_PATH | |
12182 | ;; | |
12183 | ||
12184 | bsdi[45]*) | |
12185 | version_type=linux | |
12186 | need_version=no | |
12187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12188 | soname_spec='${libname}${release}${shared_ext}$major' | |
12189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12190 | shlibpath_var=LD_LIBRARY_PATH | |
12191 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12192 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12193 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12194 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12195 | # libtool to hard-code these into programs | |
12196 | ;; | |
12197 | ||
12198 | cygwin* | mingw* | pw32*) | |
12199 | version_type=windows | |
12200 | shrext_cmds=".dll" | |
12201 | need_version=no | |
12202 | need_lib_prefix=no | |
12203 | ||
12204 | case $GCC,$host_os in | |
12205 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
12206 | library_names_spec='$libname.dll.a' | |
12207 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12208 | postinstall_cmds='base_file=`basename \${file}`~ | |
12209 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
12210 | dldir=$destdir/`dirname \$dlpath`~ | |
12211 | test -d \$dldir || mkdir -p \$dldir~ | |
12212 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12213 | chmod a+x \$dldir/$dlname' | |
12214 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12215 | dlpath=$dir/\$dldll~ | |
12216 | $rm \$dlpath' | |
12217 | shlibpath_overrides_runpath=yes | |
12218 | ||
12219 | case $host_os in | |
12220 | cygwin*) | |
12221 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12222 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12223 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12224 | ;; | |
12225 | mingw*) | |
12226 | # MinGW DLLs use traditional 'lib' prefix | |
12227 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12228 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12229 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
12230 | # It is most probably a Windows format PATH printed by | |
12231 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12232 | # path with ; separators, and with drive letters. We can handle the | |
12233 | # drive letters (cygwin fileutils understands them), so leave them, | |
12234 | # especially as we might pass files found there to a mingw objdump, | |
12235 | # which wouldn't understand a cygwinified path. Ahh. | |
12236 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12237 | else | |
12238 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12239 | fi | |
12240 | ;; | |
12241 | pw32*) | |
12242 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12243 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12244 | ;; | |
12245 | esac | |
12246 | ;; | |
12247 | ||
12248 | *) | |
12249 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12250 | ;; | |
12251 | esac | |
12252 | dynamic_linker='Win32 ld.exe' | |
12253 | # FIXME: first we should search . and the directory the executable is in | |
12254 | shlibpath_var=PATH | |
12255 | ;; | |
12256 | ||
12257 | darwin* | rhapsody*) | |
12258 | dynamic_linker="$host_os dyld" | |
12259 | version_type=darwin | |
12260 | need_lib_prefix=no | |
12261 | need_version=no | |
12262 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12263 | soname_spec='${libname}${release}${major}$shared_ext' | |
12264 | shlibpath_overrides_runpath=yes | |
12265 | shlibpath_var=DYLD_LIBRARY_PATH | |
12266 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12267 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
12268 | if test "$GCC" = yes; then | |
12269 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
12270 | else | |
12271 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
12272 | fi | |
12273 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12274 | ;; | |
12275 | ||
12276 | dgux*) | |
12277 | version_type=linux | |
12278 | need_lib_prefix=no | |
12279 | need_version=no | |
12280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12281 | soname_spec='${libname}${release}${shared_ext}$major' | |
12282 | shlibpath_var=LD_LIBRARY_PATH | |
12283 | ;; | |
12284 | ||
12285 | freebsd1*) | |
12286 | dynamic_linker=no | |
12287 | ;; | |
12288 | ||
12289 | kfreebsd*-gnu) | |
12290 | version_type=linux | |
12291 | need_lib_prefix=no | |
12292 | need_version=no | |
12293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12294 | soname_spec='${libname}${release}${shared_ext}$major' | |
12295 | shlibpath_var=LD_LIBRARY_PATH | |
12296 | shlibpath_overrides_runpath=no | |
12297 | hardcode_into_libs=yes | |
12298 | dynamic_linker='GNU ld.so' | |
12299 | ;; | |
12300 | ||
12301 | freebsd* | dragonfly*) | |
12302 | # DragonFly does not have aout. When/if they implement a new | |
12303 | # versioning mechanism, adjust this. | |
12304 | if test -x /usr/bin/objformat; then | |
12305 | objformat=`/usr/bin/objformat` | |
12306 | else | |
12307 | case $host_os in | |
12308 | freebsd[123]*) objformat=aout ;; | |
12309 | *) objformat=elf ;; | |
12310 | esac | |
12311 | fi | |
12312 | version_type=freebsd-$objformat | |
12313 | case $version_type in | |
12314 | freebsd-elf*) | |
12315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12316 | need_version=no | |
12317 | need_lib_prefix=no | |
12318 | ;; | |
12319 | freebsd-*) | |
12320 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12321 | need_version=yes | |
12322 | ;; | |
12323 | esac | |
12324 | shlibpath_var=LD_LIBRARY_PATH | |
12325 | case $host_os in | |
12326 | freebsd2*) | |
12327 | shlibpath_overrides_runpath=yes | |
12328 | ;; | |
12329 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12330 | shlibpath_overrides_runpath=yes | |
12331 | hardcode_into_libs=yes | |
12332 | ;; | |
12333 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12334 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12335 | shlibpath_overrides_runpath=no | |
12336 | hardcode_into_libs=yes | |
12337 | ;; | |
12338 | freebsd*) # from 4.6 on | |
12339 | shlibpath_overrides_runpath=yes | |
12340 | hardcode_into_libs=yes | |
12341 | ;; | |
12342 | esac | |
12343 | ;; | |
12344 | ||
12345 | gnu*) | |
12346 | version_type=linux | |
12347 | need_lib_prefix=no | |
12348 | need_version=no | |
12349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12350 | soname_spec='${libname}${release}${shared_ext}$major' | |
12351 | shlibpath_var=LD_LIBRARY_PATH | |
12352 | hardcode_into_libs=yes | |
12353 | ;; | |
12354 | ||
12355 | hpux9* | hpux10* | hpux11*) | |
12356 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12357 | # link against other versions. | |
12358 | version_type=sunos | |
12359 | need_lib_prefix=no | |
12360 | need_version=no | |
12361 | case $host_cpu in | |
12362 | ia64*) | |
12363 | shrext_cmds='.so' | |
12364 | hardcode_into_libs=yes | |
12365 | dynamic_linker="$host_os dld.so" | |
12366 | shlibpath_var=LD_LIBRARY_PATH | |
12367 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12369 | soname_spec='${libname}${release}${shared_ext}$major' | |
12370 | if test "X$HPUX_IA64_MODE" = X32; then | |
12371 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12372 | else | |
12373 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12374 | fi | |
12375 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12376 | ;; | |
12377 | hppa*64*) | |
12378 | shrext_cmds='.sl' | |
12379 | hardcode_into_libs=yes | |
12380 | dynamic_linker="$host_os dld.sl" | |
12381 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12382 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12384 | soname_spec='${libname}${release}${shared_ext}$major' | |
12385 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12386 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12387 | ;; | |
12388 | *) | |
12389 | shrext_cmds='.sl' | |
12390 | dynamic_linker="$host_os dld.sl" | |
12391 | shlibpath_var=SHLIB_PATH | |
12392 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12394 | soname_spec='${libname}${release}${shared_ext}$major' | |
12395 | ;; | |
12396 | esac | |
12397 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12398 | postinstall_cmds='chmod 555 $lib' | |
12399 | ;; | |
12400 | ||
12401 | interix3*) | |
12402 | version_type=linux | |
12403 | need_lib_prefix=no | |
12404 | need_version=no | |
12405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12406 | soname_spec='${libname}${release}${shared_ext}$major' | |
12407 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12408 | shlibpath_var=LD_LIBRARY_PATH | |
12409 | shlibpath_overrides_runpath=no | |
12410 | hardcode_into_libs=yes | |
12411 | ;; | |
12412 | ||
12413 | irix5* | irix6* | nonstopux*) | |
12414 | case $host_os in | |
12415 | nonstopux*) version_type=nonstopux ;; | |
12416 | *) | |
12417 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12418 | version_type=linux | |
12419 | else | |
12420 | version_type=irix | |
12421 | fi ;; | |
12422 | esac | |
12423 | need_lib_prefix=no | |
12424 | need_version=no | |
12425 | soname_spec='${libname}${release}${shared_ext}$major' | |
12426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12427 | case $host_os in | |
12428 | irix5* | nonstopux*) | |
12429 | libsuff= shlibsuff= | |
12430 | ;; | |
12431 | *) | |
12432 | case $LD in # libtool.m4 will add one of these switches to LD | |
12433 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12434 | libsuff= shlibsuff= libmagic=32-bit;; | |
12435 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12436 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12437 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12438 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12439 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12440 | esac | |
12441 | ;; | |
12442 | esac | |
12443 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12444 | shlibpath_overrides_runpath=no | |
12445 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12446 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12447 | hardcode_into_libs=yes | |
12448 | ;; | |
12449 | ||
12450 | # No shared lib support for Linux oldld, aout, or coff. | |
12451 | linux*oldld* | linux*aout* | linux*coff*) | |
12452 | dynamic_linker=no | |
12453 | ;; | |
12454 | ||
12455 | # This must be Linux ELF. | |
12456 | linux*) | |
12457 | version_type=linux | |
12458 | need_lib_prefix=no | |
12459 | need_version=no | |
12460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12461 | soname_spec='${libname}${release}${shared_ext}$major' | |
12462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12463 | shlibpath_var=LD_LIBRARY_PATH | |
12464 | shlibpath_overrides_runpath=no | |
12465 | # This implies no fast_install, which is unacceptable. | |
12466 | # Some rework will be needed to allow for fast_install | |
12467 | # before this can be enabled. | |
12468 | hardcode_into_libs=yes | |
12469 | ||
12470 | # find out which ABI we are using | |
12471 | libsuff= | |
12472 | case "$host_cpu" in | |
12473 | x86_64*|s390x*|powerpc64*) | |
5e9b5d83 | 12474 | echo '#line 12474 "configure"' > conftest.$ac_ext |
bf9f3bac | 12475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12476 | (eval $ac_compile) 2>&5 | |
12477 | ac_status=$? | |
12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12479 | (exit $ac_status); }; then | |
12480 | case `/usr/bin/file conftest.$ac_objext` in | |
12481 | *64-bit*) | |
12482 | libsuff=64 | |
12483 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
12484 | ;; | |
12485 | esac | |
12486 | fi | |
12487 | rm -rf conftest* | |
12488 | ;; | |
12489 | esac | |
12490 | ||
12491 | # Append ld.so.conf contents to the search path | |
12492 | if test -f /etc/ld.so.conf; then | |
12493 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
12494 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
12495 | fi | |
12496 | ||
12497 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12498 | # powerpc, because MkLinux only supported shared libraries with the | |
12499 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12500 | # most powerpc-linux boxes support dynamic linking these days and | |
12501 | # people can always --disable-shared, the test was removed, and we | |
12502 | # assume the GNU/Linux dynamic linker is in use. | |
12503 | dynamic_linker='GNU/Linux ld.so' | |
12504 | ;; | |
12505 | ||
12506 | knetbsd*-gnu) | |
12507 | version_type=linux | |
12508 | need_lib_prefix=no | |
12509 | need_version=no | |
12510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12511 | soname_spec='${libname}${release}${shared_ext}$major' | |
12512 | shlibpath_var=LD_LIBRARY_PATH | |
12513 | shlibpath_overrides_runpath=no | |
12514 | hardcode_into_libs=yes | |
12515 | dynamic_linker='GNU ld.so' | |
12516 | ;; | |
12517 | ||
12518 | netbsd*) | |
12519 | version_type=sunos | |
12520 | need_lib_prefix=no | |
12521 | need_version=no | |
12522 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12525 | dynamic_linker='NetBSD (a.out) ld.so' | |
12526 | else | |
12527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12528 | soname_spec='${libname}${release}${shared_ext}$major' | |
12529 | dynamic_linker='NetBSD ld.elf_so' | |
12530 | fi | |
12531 | shlibpath_var=LD_LIBRARY_PATH | |
12532 | shlibpath_overrides_runpath=yes | |
12533 | hardcode_into_libs=yes | |
12534 | ;; | |
12535 | ||
12536 | newsos6) | |
12537 | version_type=linux | |
12538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12539 | shlibpath_var=LD_LIBRARY_PATH | |
12540 | shlibpath_overrides_runpath=yes | |
12541 | ;; | |
12542 | ||
12543 | nto-qnx*) | |
12544 | version_type=linux | |
12545 | need_lib_prefix=no | |
12546 | need_version=no | |
12547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12548 | soname_spec='${libname}${release}${shared_ext}$major' | |
12549 | shlibpath_var=LD_LIBRARY_PATH | |
12550 | shlibpath_overrides_runpath=yes | |
12551 | ;; | |
12552 | ||
12553 | openbsd*) | |
12554 | version_type=sunos | |
12555 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12556 | need_lib_prefix=no | |
12557 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12558 | case $host_os in | |
12559 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12560 | *) need_version=no ;; | |
12561 | esac | |
12562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12563 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12564 | shlibpath_var=LD_LIBRARY_PATH | |
12565 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12566 | case $host_os in | |
12567 | openbsd2.[89] | openbsd2.[89].*) | |
12568 | shlibpath_overrides_runpath=no | |
12569 | ;; | |
12570 | *) | |
12571 | shlibpath_overrides_runpath=yes | |
12572 | ;; | |
12573 | esac | |
12574 | else | |
12575 | shlibpath_overrides_runpath=yes | |
12576 | fi | |
12577 | ;; | |
12578 | ||
12579 | os2*) | |
12580 | libname_spec='$name' | |
12581 | shrext_cmds=".dll" | |
12582 | need_lib_prefix=no | |
12583 | library_names_spec='$libname${shared_ext} $libname.a' | |
12584 | dynamic_linker='OS/2 ld.exe' | |
12585 | shlibpath_var=LIBPATH | |
12586 | ;; | |
12587 | ||
12588 | osf3* | osf4* | osf5*) | |
12589 | version_type=osf | |
12590 | need_lib_prefix=no | |
12591 | need_version=no | |
12592 | soname_spec='${libname}${release}${shared_ext}$major' | |
12593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12594 | shlibpath_var=LD_LIBRARY_PATH | |
12595 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12596 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12597 | ;; | |
12598 | ||
12599 | solaris*) | |
12600 | version_type=linux | |
12601 | need_lib_prefix=no | |
12602 | need_version=no | |
12603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12604 | soname_spec='${libname}${release}${shared_ext}$major' | |
12605 | shlibpath_var=LD_LIBRARY_PATH | |
12606 | shlibpath_overrides_runpath=yes | |
12607 | hardcode_into_libs=yes | |
12608 | # ldd complains unless libraries are executable | |
12609 | postinstall_cmds='chmod +x $lib' | |
12610 | ;; | |
12611 | ||
12612 | sunos4*) | |
12613 | version_type=sunos | |
12614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12615 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12616 | shlibpath_var=LD_LIBRARY_PATH | |
12617 | shlibpath_overrides_runpath=yes | |
12618 | if test "$with_gnu_ld" = yes; then | |
12619 | need_lib_prefix=no | |
12620 | fi | |
12621 | need_version=yes | |
12622 | ;; | |
12623 | ||
12624 | sysv4 | sysv4.3*) | |
12625 | version_type=linux | |
12626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12627 | soname_spec='${libname}${release}${shared_ext}$major' | |
12628 | shlibpath_var=LD_LIBRARY_PATH | |
12629 | case $host_vendor in | |
12630 | sni) | |
12631 | shlibpath_overrides_runpath=no | |
12632 | need_lib_prefix=no | |
12633 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
12634 | runpath_var=LD_RUN_PATH | |
12635 | ;; | |
12636 | siemens) | |
12637 | need_lib_prefix=no | |
12638 | ;; | |
12639 | motorola) | |
12640 | need_lib_prefix=no | |
12641 | need_version=no | |
12642 | shlibpath_overrides_runpath=no | |
12643 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12644 | ;; | |
12645 | esac | |
12646 | ;; | |
12647 | ||
12648 | sysv4*MP*) | |
12649 | if test -d /usr/nec ;then | |
12650 | version_type=linux | |
12651 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12652 | soname_spec='$libname${shared_ext}.$major' | |
12653 | shlibpath_var=LD_LIBRARY_PATH | |
12654 | fi | |
12655 | ;; | |
12656 | ||
12657 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12658 | version_type=freebsd-elf | |
12659 | need_lib_prefix=no | |
12660 | need_version=no | |
12661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12662 | soname_spec='${libname}${release}${shared_ext}$major' | |
12663 | shlibpath_var=LD_LIBRARY_PATH | |
12664 | hardcode_into_libs=yes | |
12665 | if test "$with_gnu_ld" = yes; then | |
12666 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12667 | shlibpath_overrides_runpath=no | |
12668 | else | |
12669 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12670 | shlibpath_overrides_runpath=yes | |
12671 | case $host_os in | |
12672 | sco3.2v5*) | |
12673 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12674 | ;; | |
12675 | esac | |
12676 | fi | |
12677 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12678 | ;; | |
12679 | ||
12680 | uts4*) | |
12681 | version_type=linux | |
12682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12683 | soname_spec='${libname}${release}${shared_ext}$major' | |
12684 | shlibpath_var=LD_LIBRARY_PATH | |
12685 | ;; | |
12686 | ||
12687 | *) | |
12688 | dynamic_linker=no | |
12689 | ;; | |
12690 | esac | |
12691 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12692 | echo "${ECHO_T}$dynamic_linker" >&6 | |
12693 | test "$dynamic_linker" = no && can_build_shared=no | |
12694 | ||
12695 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12696 | if test "$GCC" = yes; then | |
12697 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12698 | fi | |
12699 | ||
12700 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12701 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12702 | hardcode_action_CXX= | |
12703 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
12704 | test -n "$runpath_var_CXX" || \ | |
12705 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
12706 | ||
12707 | # We can hardcode non-existant directories. | |
12708 | if test "$hardcode_direct_CXX" != no && | |
12709 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12710 | # have to relink, otherwise we might link with an installed library | |
12711 | # when we should be linking with a yet-to-be-installed one | |
12712 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
12713 | test "$hardcode_minus_L_CXX" != no; then | |
12714 | # Linking always hardcodes the temporary library directory. | |
12715 | hardcode_action_CXX=relink | |
12716 | else | |
12717 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12718 | hardcode_action_CXX=immediate | |
12719 | fi | |
12720 | else | |
12721 | # We cannot hardcode anything, or else we can only hardcode existing | |
12722 | # directories. | |
12723 | hardcode_action_CXX=unsupported | |
12724 | fi | |
12725 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
12726 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
12727 | ||
12728 | if test "$hardcode_action_CXX" = relink; then | |
12729 | # Fast installation is not supported | |
12730 | enable_fast_install=no | |
12731 | elif test "$shlibpath_overrides_runpath" = yes || | |
12732 | test "$enable_shared" = no; then | |
12733 | # Fast installation is not necessary | |
12734 | enable_fast_install=needless | |
12735 | fi | |
12736 | ||
12737 | ||
12738 | # The else clause should only fire when bootstrapping the | |
12739 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12740 | # with your package, and you will get complaints that there are | |
12741 | # no rules to generate ltmain.sh. | |
12742 | if test -f "$ltmain"; then | |
12743 | # See if we are running on zsh, and set the options which allow our commands through | |
12744 | # without removal of \ escapes. | |
12745 | if test -n "${ZSH_VERSION+set}" ; then | |
12746 | setopt NO_GLOB_SUBST | |
12747 | fi | |
12748 | # Now quote all the things that may contain metacharacters while being | |
12749 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12750 | # variables and quote the copies for generation of the libtool script. | |
12751 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
12752 | SED SHELL STRIP \ | |
12753 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12754 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12755 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
12756 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12757 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12758 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12759 | old_postinstall_cmds old_postuninstall_cmds \ | |
12760 | compiler_CXX \ | |
12761 | CC_CXX \ | |
12762 | LD_CXX \ | |
12763 | lt_prog_compiler_wl_CXX \ | |
12764 | lt_prog_compiler_pic_CXX \ | |
12765 | lt_prog_compiler_static_CXX \ | |
12766 | lt_prog_compiler_no_builtin_flag_CXX \ | |
12767 | export_dynamic_flag_spec_CXX \ | |
12768 | thread_safe_flag_spec_CXX \ | |
12769 | whole_archive_flag_spec_CXX \ | |
12770 | enable_shared_with_static_runtimes_CXX \ | |
12771 | old_archive_cmds_CXX \ | |
12772 | old_archive_from_new_cmds_CXX \ | |
12773 | predep_objects_CXX \ | |
12774 | postdep_objects_CXX \ | |
12775 | predeps_CXX \ | |
12776 | postdeps_CXX \ | |
12777 | compiler_lib_search_path_CXX \ | |
12778 | archive_cmds_CXX \ | |
12779 | archive_expsym_cmds_CXX \ | |
12780 | postinstall_cmds_CXX \ | |
12781 | postuninstall_cmds_CXX \ | |
12782 | old_archive_from_expsyms_cmds_CXX \ | |
12783 | allow_undefined_flag_CXX \ | |
12784 | no_undefined_flag_CXX \ | |
12785 | export_symbols_cmds_CXX \ | |
12786 | hardcode_libdir_flag_spec_CXX \ | |
12787 | hardcode_libdir_flag_spec_ld_CXX \ | |
12788 | hardcode_libdir_separator_CXX \ | |
12789 | hardcode_automatic_CXX \ | |
12790 | module_cmds_CXX \ | |
12791 | module_expsym_cmds_CXX \ | |
12792 | lt_cv_prog_compiler_c_o_CXX \ | |
12793 | exclude_expsyms_CXX \ | |
12794 | include_expsyms_CXX; do | |
12795 | ||
12796 | case $var in | |
12797 | old_archive_cmds_CXX | \ | |
12798 | old_archive_from_new_cmds_CXX | \ | |
12799 | archive_cmds_CXX | \ | |
12800 | archive_expsym_cmds_CXX | \ | |
12801 | module_cmds_CXX | \ | |
12802 | module_expsym_cmds_CXX | \ | |
12803 | old_archive_from_expsyms_cmds_CXX | \ | |
12804 | export_symbols_cmds_CXX | \ | |
12805 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12806 | postinstall_cmds | postuninstall_cmds | \ | |
12807 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
12808 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12809 | # Double-quote double-evaled strings. | |
12810 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12811 | ;; | |
12812 | *) | |
12813 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12814 | ;; | |
12815 | esac | |
12816 | done | |
12817 | ||
12818 | case $lt_echo in | |
12819 | *'\$0 --fallback-echo"') | |
12820 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12821 | ;; | |
12822 | esac | |
12823 | ||
12824 | cfgfile="$ofile" | |
12825 | ||
12826 | cat <<__EOF__ >> "$cfgfile" | |
12827 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
12828 | ||
12829 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12830 | ||
12831 | # Shell to use when invoking shell scripts. | |
12832 | SHELL=$lt_SHELL | |
12833 | ||
12834 | # Whether or not to build shared libraries. | |
12835 | build_libtool_libs=$enable_shared | |
12836 | ||
12837 | # Whether or not to build static libraries. | |
12838 | build_old_libs=$enable_static | |
12839 | ||
12840 | # Whether or not to add -lc for building shared libraries. | |
12841 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
12842 | ||
12843 | # Whether or not to disallow shared libs when runtime libs are static | |
12844 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
12845 | ||
12846 | # Whether or not to optimize for fast installation. | |
12847 | fast_install=$enable_fast_install | |
12848 | ||
12849 | # The host system. | |
12850 | host_alias=$host_alias | |
12851 | host=$host | |
12852 | host_os=$host_os | |
12853 | ||
12854 | # The build system. | |
12855 | build_alias=$build_alias | |
12856 | build=$build | |
12857 | build_os=$build_os | |
12858 | ||
12859 | # An echo program that does not interpret backslashes. | |
12860 | echo=$lt_echo | |
12861 | ||
12862 | # The archiver. | |
12863 | AR=$lt_AR | |
12864 | AR_FLAGS=$lt_AR_FLAGS | |
12865 | ||
12866 | # A C compiler. | |
12867 | LTCC=$lt_LTCC | |
12868 | ||
12869 | # LTCC compiler flags. | |
12870 | LTCFLAGS=$lt_LTCFLAGS | |
12871 | ||
12872 | # A language-specific compiler. | |
12873 | CC=$lt_compiler_CXX | |
12874 | ||
12875 | # Is the compiler the GNU C compiler? | |
12876 | with_gcc=$GCC_CXX | |
12877 | ||
12878 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
12879 | gcc_ver=\`gcc -dumpversion\` | |
12880 | ||
12881 | # An ERE matcher. | |
12882 | EGREP=$lt_EGREP | |
12883 | ||
12884 | # The linker used to build libraries. | |
12885 | LD=$lt_LD_CXX | |
12886 | ||
12887 | # Whether we need hard or soft links. | |
12888 | LN_S=$lt_LN_S | |
12889 | ||
12890 | # A BSD-compatible nm program. | |
12891 | NM=$lt_NM | |
12892 | ||
12893 | # A symbol stripping program | |
12894 | STRIP=$lt_STRIP | |
12895 | ||
12896 | # Used to examine libraries when file_magic_cmd begins "file" | |
12897 | MAGIC_CMD=$MAGIC_CMD | |
12898 | ||
12899 | # Used on cygwin: DLL creation program. | |
12900 | DLLTOOL="$DLLTOOL" | |
12901 | ||
12902 | # Used on cygwin: object dumper. | |
12903 | OBJDUMP="$OBJDUMP" | |
12904 | ||
12905 | # Used on cygwin: assembler. | |
12906 | AS="$AS" | |
12907 | ||
12908 | # The name of the directory that contains temporary libtool files. | |
12909 | objdir=$objdir | |
12910 | ||
12911 | # How to create reloadable object files. | |
12912 | reload_flag=$lt_reload_flag | |
12913 | reload_cmds=$lt_reload_cmds | |
12914 | ||
12915 | # How to pass a linker flag through the compiler. | |
12916 | wl=$lt_lt_prog_compiler_wl_CXX | |
12917 | ||
12918 | # Object file suffix (normally "o"). | |
12919 | objext="$ac_objext" | |
12920 | ||
12921 | # Old archive suffix (normally "a"). | |
12922 | libext="$libext" | |
12923 | ||
12924 | # Shared library suffix (normally ".so"). | |
12925 | shrext_cmds='$shrext_cmds' | |
12926 | ||
12927 | # Executable file suffix (normally ""). | |
12928 | exeext="$exeext" | |
12929 | ||
12930 | # Additional compiler flags for building library objects. | |
12931 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
12932 | pic_mode=$pic_mode | |
12933 | ||
12934 | # What is the maximum length of a command? | |
12935 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
12936 | ||
12937 | # Does compiler simultaneously support -c and -o options? | |
12938 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
12939 | ||
12940 | # Must we lock files when doing compilation? | |
12941 | need_locks=$lt_need_locks | |
12942 | ||
12943 | # Do we need the lib prefix for modules? | |
12944 | need_lib_prefix=$need_lib_prefix | |
12945 | ||
12946 | # Do we need a version for libraries? | |
12947 | need_version=$need_version | |
12948 | ||
12949 | # Whether dlopen is supported. | |
12950 | dlopen_support=$enable_dlopen | |
12951 | ||
12952 | # Whether dlopen of programs is supported. | |
12953 | dlopen_self=$enable_dlopen_self | |
12954 | ||
12955 | # Whether dlopen of statically linked programs is supported. | |
12956 | dlopen_self_static=$enable_dlopen_self_static | |
12957 | ||
12958 | # Compiler flag to prevent dynamic linking. | |
12959 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
12960 | ||
12961 | # Compiler flag to turn off builtin functions. | |
12962 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
12963 | ||
12964 | # Compiler flag to allow reflexive dlopens. | |
12965 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
12966 | ||
12967 | # Compiler flag to generate shared objects directly from archives. | |
12968 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
12969 | ||
12970 | # Compiler flag to generate thread-safe objects. | |
12971 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
12972 | ||
12973 | # Library versioning type. | |
12974 | version_type=$version_type | |
12975 | ||
12976 | # Format of library name prefix. | |
12977 | libname_spec=$lt_libname_spec | |
12978 | ||
12979 | # List of archive names. First name is the real one, the rest are links. | |
12980 | # The last name is the one that the linker finds with -lNAME. | |
12981 | library_names_spec=$lt_library_names_spec | |
12982 | ||
12983 | # The coded name of the library, if different from the real name. | |
12984 | soname_spec=$lt_soname_spec | |
12985 | ||
12986 | # Commands used to build and install an old-style archive. | |
12987 | RANLIB=$lt_RANLIB | |
12988 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
12989 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12990 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12991 | ||
12992 | # Create an old-style archive from a shared archive. | |
12993 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
12994 | ||
12995 | # Create a temporary old-style archive to link instead of a shared archive. | |
12996 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
12997 | ||
12998 | # Commands used to build and install a shared archive. | |
12999 | archive_cmds=$lt_archive_cmds_CXX | |
13000 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13001 | postinstall_cmds=$lt_postinstall_cmds | |
13002 | postuninstall_cmds=$lt_postuninstall_cmds | |
13003 | ||
13004 | # Commands used to build a loadable module (assumed same as above if empty) | |
13005 | module_cmds=$lt_module_cmds_CXX | |
13006 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13007 | ||
13008 | # Commands to strip libraries. | |
13009 | old_striplib=$lt_old_striplib | |
13010 | striplib=$lt_striplib | |
13011 | ||
13012 | # Dependencies to place before the objects being linked to create a | |
13013 | # shared library. | |
13014 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13015 | ||
13016 | # Dependencies to place after the objects being linked to create a | |
13017 | # shared library. | |
13018 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13019 | ||
13020 | # Dependencies to place before the objects being linked to create a | |
13021 | # shared library. | |
13022 | predeps=$lt_predeps_CXX | |
13023 | ||
13024 | # Dependencies to place after the objects being linked to create a | |
13025 | # shared library. | |
13026 | postdeps=$lt_postdeps_CXX | |
13027 | ||
13028 | # The library search path used internally by the compiler when linking | |
13029 | # a shared library. | |
13030 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13031 | ||
13032 | # Method to check whether dependent libraries are shared objects. | |
13033 | deplibs_check_method=$lt_deplibs_check_method | |
13034 | ||
13035 | # Command to use when deplibs_check_method == file_magic. | |
13036 | file_magic_cmd=$lt_file_magic_cmd | |
13037 | ||
13038 | # Flag that allows shared libraries with undefined symbols to be built. | |
13039 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13040 | ||
13041 | # Flag that forces no undefined symbols. | |
13042 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
13043 | ||
13044 | # Commands used to finish a libtool library installation in a directory. | |
13045 | finish_cmds=$lt_finish_cmds | |
13046 | ||
13047 | # Same as above, but a single script fragment to be evaled but not shown. | |
13048 | finish_eval=$lt_finish_eval | |
13049 | ||
13050 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13051 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13052 | ||
13053 | # Transform the output of nm in a proper C declaration | |
13054 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13055 | ||
13056 | # Transform the output of nm in a C name address pair | |
13057 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13058 | ||
13059 | # This is the shared library runtime path variable. | |
13060 | runpath_var=$runpath_var | |
13061 | ||
13062 | # This is the shared library path variable. | |
13063 | shlibpath_var=$shlibpath_var | |
13064 | ||
13065 | # Is shlibpath searched before the hard-coded library search path? | |
13066 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13067 | ||
13068 | # How to hardcode a shared library path into an executable. | |
13069 | hardcode_action=$hardcode_action_CXX | |
13070 | ||
13071 | # Whether we should hardcode library paths into libraries. | |
13072 | hardcode_into_libs=$hardcode_into_libs | |
13073 | ||
13074 | # Flag to hardcode \$libdir into a binary during linking. | |
13075 | # This must work even if \$libdir does not exist. | |
13076 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13077 | ||
13078 | # If ld is used when linking, flag to hardcode \$libdir into | |
13079 | # a binary during linking. This must work even if \$libdir does | |
13080 | # not exist. | |
13081 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13082 | ||
13083 | # Whether we need a single -rpath flag with a separated argument. | |
13084 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13085 | ||
13086 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13087 | # resulting binary. | |
13088 | hardcode_direct=$hardcode_direct_CXX | |
13089 | ||
13090 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13091 | # resulting binary. | |
13092 | hardcode_minus_L=$hardcode_minus_L_CXX | |
13093 | ||
13094 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13095 | # the resulting binary. | |
13096 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13097 | ||
13098 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13099 | # and all subsequent libraries and executables linked against it. | |
13100 | hardcode_automatic=$hardcode_automatic_CXX | |
13101 | ||
13102 | # Variables whose values should be saved in libtool wrapper scripts and | |
13103 | # restored at relink time. | |
13104 | variables_saved_for_relink="$variables_saved_for_relink" | |
13105 | ||
13106 | # Whether libtool must link a program against all its dependency libraries. | |
13107 | link_all_deplibs=$link_all_deplibs_CXX | |
13108 | ||
13109 | # Compile-time system search path for libraries | |
13110 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13111 | ||
13112 | # Run-time system search path for libraries | |
13113 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13114 | ||
13115 | # Fix the shell variable \$srcfile for the compiler. | |
13116 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
13117 | ||
13118 | # Set to yes if exported symbols are required. | |
13119 | always_export_symbols=$always_export_symbols_CXX | |
13120 | ||
13121 | # The commands to list exported symbols. | |
13122 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13123 | ||
13124 | # The commands to extract the exported symbol list from a shared archive. | |
13125 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13126 | ||
13127 | # Symbols that should not be listed in the preloaded symbols. | |
13128 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
13129 | ||
13130 | # Symbols that must always be exported. | |
13131 | include_expsyms=$lt_include_expsyms_CXX | |
13132 | ||
13133 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13134 | ||
13135 | __EOF__ | |
13136 | ||
13137 | ||
13138 | else | |
13139 | # If there is no Makefile yet, we rely on a make rule to execute | |
13140 | # `config.status --recheck' to rerun these tests and create the | |
13141 | # libtool script then. | |
13142 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13143 | if test -f "$ltmain_in"; then | |
13144 | test -f Makefile && make "$ltmain" | |
13145 | fi | |
13146 | fi | |
13147 | ||
13148 | ||
13149 | ac_ext=c | |
13150 | ac_cpp='$CPP $CPPFLAGS' | |
13151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13154 | ||
13155 | CC=$lt_save_CC | |
13156 | LDCXX=$LD | |
13157 | LD=$lt_save_LD | |
13158 | GCC=$lt_save_GCC | |
13159 | with_gnu_ldcxx=$with_gnu_ld | |
13160 | with_gnu_ld=$lt_save_with_gnu_ld | |
13161 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13162 | lt_cv_path_LD=$lt_save_path_LD | |
13163 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13164 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13165 | ||
13166 | else | |
13167 | tagname="" | |
13168 | fi | |
13169 | ;; | |
13170 | ||
13171 | F77) | |
13172 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
13173 | ||
13174 | ac_ext=f | |
13175 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13176 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13177 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13178 | ||
13179 | ||
13180 | archive_cmds_need_lc_F77=no | |
13181 | allow_undefined_flag_F77= | |
13182 | always_export_symbols_F77=no | |
13183 | archive_expsym_cmds_F77= | |
13184 | export_dynamic_flag_spec_F77= | |
13185 | hardcode_direct_F77=no | |
13186 | hardcode_libdir_flag_spec_F77= | |
13187 | hardcode_libdir_flag_spec_ld_F77= | |
13188 | hardcode_libdir_separator_F77= | |
13189 | hardcode_minus_L_F77=no | |
13190 | hardcode_automatic_F77=no | |
13191 | module_cmds_F77= | |
13192 | module_expsym_cmds_F77= | |
13193 | link_all_deplibs_F77=unknown | |
13194 | old_archive_cmds_F77=$old_archive_cmds | |
13195 | no_undefined_flag_F77= | |
13196 | whole_archive_flag_spec_F77= | |
13197 | enable_shared_with_static_runtimes_F77=no | |
13198 | ||
13199 | # Source file extension for f77 test sources. | |
13200 | ac_ext=f | |
13201 | ||
13202 | # Object file extension for compiled f77 test sources. | |
13203 | objext=o | |
13204 | objext_F77=$objext | |
13205 | ||
13206 | # Code to be used in simple compile tests | |
13207 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13208 | ||
13209 | # Code to be used in simple link tests | |
13210 | lt_simple_link_test_code=" program t\n end\n" | |
13211 | ||
13212 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13213 | ||
13214 | # If no C compiler was specified, use CC. | |
13215 | LTCC=${LTCC-"$CC"} | |
13216 | ||
13217 | # If no C compiler flags were specified, use CFLAGS. | |
13218 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13219 | ||
13220 | # Allow CC to be a program name with arguments. | |
13221 | compiler=$CC | |
13222 | ||
13223 | ||
13224 | # save warnings/boilerplate of simple test code | |
13225 | ac_outfile=conftest.$ac_objext | |
13226 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13227 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13228 | _lt_compiler_boilerplate=`cat conftest.err` | |
13229 | $rm conftest* | |
13230 | ||
13231 | ac_outfile=conftest.$ac_objext | |
13232 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
13233 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13234 | _lt_linker_boilerplate=`cat conftest.err` | |
13235 | $rm conftest* | |
13236 | ||
13237 | ||
13238 | # Allow CC to be a program name with arguments. | |
13239 | lt_save_CC="$CC" | |
13240 | CC=${F77-"f77"} | |
13241 | compiler=$CC | |
13242 | compiler_F77=$CC | |
13243 | for cc_temp in $compiler""; do | |
13244 | case $cc_temp in | |
13245 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13246 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13247 | \-*) ;; | |
13248 | *) break;; | |
13249 | esac | |
13250 | done | |
13251 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13252 | ||
13253 | ||
13254 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13255 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13256 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13257 | echo "${ECHO_T}$can_build_shared" >&6 | |
13258 | ||
13259 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13260 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13261 | test "$can_build_shared" = "no" && enable_shared=no | |
13262 | ||
13263 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13264 | # are all built from PIC. | |
13265 | case $host_os in | |
13266 | aix3*) | |
13267 | test "$enable_shared" = yes && enable_static=no | |
13268 | if test -n "$RANLIB"; then | |
13269 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13270 | postinstall_cmds='$RANLIB $lib' | |
13271 | fi | |
13272 | ;; | |
13273 | aix4* | aix5*) | |
13274 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13275 | test "$enable_shared" = yes && enable_static=no | |
13276 | fi | |
13277 | ;; | |
13278 | esac | |
13279 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13280 | echo "${ECHO_T}$enable_shared" >&6 | |
13281 | ||
13282 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13283 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13284 | # Make sure either enable_shared or enable_static is yes. | |
13285 | test "$enable_shared" = yes || enable_static=yes | |
13286 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13287 | echo "${ECHO_T}$enable_static" >&6 | |
13288 | ||
13289 | GCC_F77="$G77" | |
13290 | LD_F77="$LD" | |
13291 | ||
13292 | lt_prog_compiler_wl_F77= | |
13293 | lt_prog_compiler_pic_F77= | |
13294 | lt_prog_compiler_static_F77= | |
13295 | ||
13296 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13297 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13298 | ||
13299 | if test "$GCC" = yes; then | |
13300 | lt_prog_compiler_wl_F77='-Wl,' | |
13301 | lt_prog_compiler_static_F77='-static' | |
13302 | ||
13303 | case $host_os in | |
13304 | aix*) | |
13305 | # All AIX code is PIC. | |
13306 | if test "$host_cpu" = ia64; then | |
13307 | # AIX 5 now supports IA64 processor | |
13308 | lt_prog_compiler_static_F77='-Bstatic' | |
13309 | fi | |
13310 | ;; | |
13311 | ||
13312 | amigaos*) | |
13313 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13314 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13315 | # like `-m68040'. | |
13316 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13317 | ;; | |
13318 | ||
13319 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13320 | # PIC is the default for these OSes. | |
13321 | ;; | |
13322 | ||
13323 | mingw* | pw32* | os2*) | |
13324 | # This hack is so that the source file can tell whether it is being | |
13325 | # built for inclusion in a dll (and should export symbols for example). | |
13326 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13327 | ;; | |
13328 | ||
13329 | darwin* | rhapsody*) | |
13330 | # PIC is the default on this platform | |
13331 | # Common symbols not allowed in MH_DYLIB files | |
13332 | lt_prog_compiler_pic_F77='-fno-common' | |
13333 | ;; | |
13334 | ||
13335 | interix3*) | |
13336 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13337 | # Instead, we relocate shared libraries at runtime. | |
13338 | ;; | |
13339 | ||
13340 | msdosdjgpp*) | |
13341 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13342 | # on systems that don't support them. | |
13343 | lt_prog_compiler_can_build_shared_F77=no | |
13344 | enable_shared=no | |
13345 | ;; | |
13346 | ||
13347 | sysv4*MP*) | |
13348 | if test -d /usr/nec; then | |
13349 | lt_prog_compiler_pic_F77=-Kconform_pic | |
13350 | fi | |
13351 | ;; | |
13352 | ||
13353 | hpux*) | |
13354 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13355 | # not for PA HP-UX. | |
13356 | case $host_cpu in | |
13357 | hppa*64*|ia64*) | |
13358 | # +Z the default | |
13359 | ;; | |
13360 | *) | |
13361 | lt_prog_compiler_pic_F77='-fPIC' | |
13362 | ;; | |
13363 | esac | |
13364 | ;; | |
13365 | ||
13366 | *) | |
13367 | lt_prog_compiler_pic_F77='-fPIC' | |
13368 | ;; | |
13369 | esac | |
13370 | else | |
13371 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13372 | case $host_os in | |
13373 | aix*) | |
13374 | lt_prog_compiler_wl_F77='-Wl,' | |
13375 | if test "$host_cpu" = ia64; then | |
13376 | # AIX 5 now supports IA64 processor | |
13377 | lt_prog_compiler_static_F77='-Bstatic' | |
13378 | else | |
13379 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13380 | fi | |
13381 | ;; | |
13382 | darwin*) | |
13383 | # PIC is the default on this platform | |
13384 | # Common symbols not allowed in MH_DYLIB files | |
13385 | case $cc_basename in | |
13386 | xlc*) | |
13387 | lt_prog_compiler_pic_F77='-qnocommon' | |
13388 | lt_prog_compiler_wl_F77='-Wl,' | |
13389 | ;; | |
13390 | esac | |
13391 | ;; | |
13392 | ||
13393 | mingw* | pw32* | os2*) | |
13394 | # This hack is so that the source file can tell whether it is being | |
13395 | # built for inclusion in a dll (and should export symbols for example). | |
13396 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13397 | ;; | |
13398 | ||
13399 | hpux9* | hpux10* | hpux11*) | |
13400 | lt_prog_compiler_wl_F77='-Wl,' | |
13401 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13402 | # not for PA HP-UX. | |
13403 | case $host_cpu in | |
13404 | hppa*64*|ia64*) | |
13405 | # +Z the default | |
13406 | ;; | |
13407 | *) | |
13408 | lt_prog_compiler_pic_F77='+Z' | |
13409 | ;; | |
13410 | esac | |
13411 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13412 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13413 | ;; | |
13414 | ||
13415 | irix5* | irix6* | nonstopux*) | |
13416 | lt_prog_compiler_wl_F77='-Wl,' | |
13417 | # PIC (with -KPIC) is the default. | |
13418 | lt_prog_compiler_static_F77='-non_shared' | |
13419 | ;; | |
13420 | ||
13421 | newsos6) | |
13422 | lt_prog_compiler_pic_F77='-KPIC' | |
13423 | lt_prog_compiler_static_F77='-Bstatic' | |
13424 | ;; | |
13425 | ||
13426 | linux*) | |
13427 | case $cc_basename in | |
13428 | icc* | ecc*) | |
13429 | lt_prog_compiler_wl_F77='-Wl,' | |
13430 | lt_prog_compiler_pic_F77='-KPIC' | |
13431 | lt_prog_compiler_static_F77='-static' | |
13432 | ;; | |
13433 | pgcc* | pgf77* | pgf90* | pgf95*) | |
13434 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
13435 | # which looks to be a dead project) | |
13436 | lt_prog_compiler_wl_F77='-Wl,' | |
13437 | lt_prog_compiler_pic_F77='-fpic' | |
13438 | lt_prog_compiler_static_F77='-Bstatic' | |
13439 | ;; | |
13440 | ccc*) | |
13441 | lt_prog_compiler_wl_F77='-Wl,' | |
13442 | # All Alpha code is PIC. | |
13443 | lt_prog_compiler_static_F77='-non_shared' | |
13444 | ;; | |
13445 | esac | |
13446 | ;; | |
13447 | ||
13448 | osf3* | osf4* | osf5*) | |
13449 | lt_prog_compiler_wl_F77='-Wl,' | |
13450 | # All OSF/1 code is PIC. | |
13451 | lt_prog_compiler_static_F77='-non_shared' | |
13452 | ;; | |
13453 | ||
13454 | solaris*) | |
13455 | lt_prog_compiler_pic_F77='-KPIC' | |
13456 | lt_prog_compiler_static_F77='-Bstatic' | |
13457 | case $cc_basename in | |
13458 | f77* | f90* | f95*) | |
13459 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13460 | *) | |
13461 | lt_prog_compiler_wl_F77='-Wl,';; | |
13462 | esac | |
13463 | ;; | |
13464 | ||
13465 | sunos4*) | |
13466 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
13467 | lt_prog_compiler_pic_F77='-PIC' | |
13468 | lt_prog_compiler_static_F77='-Bstatic' | |
13469 | ;; | |
13470 | ||
13471 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13472 | lt_prog_compiler_wl_F77='-Wl,' | |
13473 | lt_prog_compiler_pic_F77='-KPIC' | |
13474 | lt_prog_compiler_static_F77='-Bstatic' | |
13475 | ;; | |
13476 | ||
13477 | sysv4*MP*) | |
13478 | if test -d /usr/nec ;then | |
13479 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
13480 | lt_prog_compiler_static_F77='-Bstatic' | |
13481 | fi | |
13482 | ;; | |
13483 | ||
13484 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13485 | lt_prog_compiler_wl_F77='-Wl,' | |
13486 | lt_prog_compiler_pic_F77='-KPIC' | |
13487 | lt_prog_compiler_static_F77='-Bstatic' | |
13488 | ;; | |
13489 | ||
13490 | unicos*) | |
13491 | lt_prog_compiler_wl_F77='-Wl,' | |
13492 | lt_prog_compiler_can_build_shared_F77=no | |
13493 | ;; | |
13494 | ||
13495 | uts4*) | |
13496 | lt_prog_compiler_pic_F77='-pic' | |
13497 | lt_prog_compiler_static_F77='-Bstatic' | |
13498 | ;; | |
13499 | ||
13500 | *) | |
13501 | lt_prog_compiler_can_build_shared_F77=no | |
13502 | ;; | |
13503 | esac | |
13504 | fi | |
13505 | ||
13506 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13507 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13508 | ||
13509 | # | |
13510 | # Check to make sure the PIC flag actually works. | |
13511 | # | |
13512 | if test -n "$lt_prog_compiler_pic_F77"; then | |
13513 | ||
13514 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13515 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13516 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13518 | else | |
13519 | lt_prog_compiler_pic_works_F77=no | |
13520 | ac_outfile=conftest.$ac_objext | |
13521 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13522 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13523 | # Insert the option either (1) after the last *FLAGS variable, or | |
13524 | # (2) before a word containing "conftest.", or (3) at the end. | |
13525 | # Note that $ac_compile itself does not contain backslashes and begins | |
13526 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13527 | # The option is referenced via a variable to avoid confusing sed. | |
13528 | lt_compile=`echo "$ac_compile" | $SED \ | |
13529 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13530 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13531 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 13532 | (eval echo "\"\$as_me:13532: $lt_compile\"" >&5) |
bf9f3bac | 13533 | (eval "$lt_compile" 2>conftest.err) |
13534 | ac_status=$? | |
13535 | cat conftest.err >&5 | |
5e9b5d83 | 13536 | echo "$as_me:13536: \$? = $ac_status" >&5 |
bf9f3bac | 13537 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13538 | # The compiler can only warn and ignore the option if not recognized | |
13539 | # So say no if there are warnings other than the usual output. | |
13540 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13541 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13542 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13543 | lt_prog_compiler_pic_works_F77=yes | |
13544 | fi | |
13545 | fi | |
13546 | $rm conftest* | |
13547 | ||
13548 | fi | |
13549 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13550 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13551 | ||
13552 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13553 | case $lt_prog_compiler_pic_F77 in | |
13554 | "" | " "*) ;; | |
13555 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13556 | esac | |
13557 | else | |
13558 | lt_prog_compiler_pic_F77= | |
13559 | lt_prog_compiler_can_build_shared_F77=no | |
13560 | fi | |
13561 | ||
13562 | fi | |
13563 | case $host_os in | |
13564 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13565 | *djgpp*) | |
13566 | lt_prog_compiler_pic_F77= | |
13567 | ;; | |
13568 | *) | |
13569 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13570 | ;; | |
13571 | esac | |
13572 | ||
13573 | # | |
13574 | # Check to make sure the static flag actually works. | |
13575 | # | |
13576 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
13577 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13578 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
13579 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
13580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13581 | else | |
13582 | lt_prog_compiler_static_works_F77=no | |
13583 | save_LDFLAGS="$LDFLAGS" | |
13584 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13585 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
13586 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13587 | # The linker can only warn and ignore the option if not recognized | |
13588 | # So say no if there are warnings | |
13589 | if test -s conftest.err; then | |
13590 | # Append any errors to the config.log. | |
13591 | cat conftest.err 1>&5 | |
13592 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13593 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13594 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13595 | lt_prog_compiler_static_works_F77=yes | |
13596 | fi | |
13597 | else | |
13598 | lt_prog_compiler_static_works_F77=yes | |
13599 | fi | |
13600 | fi | |
13601 | $rm conftest* | |
13602 | LDFLAGS="$save_LDFLAGS" | |
13603 | ||
13604 | fi | |
13605 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
13606 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | |
13607 | ||
13608 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
13609 | : | |
13610 | else | |
13611 | lt_prog_compiler_static_F77= | |
13612 | fi | |
13613 | ||
13614 | ||
13615 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13616 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13617 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13619 | else | |
13620 | lt_cv_prog_compiler_c_o_F77=no | |
13621 | $rm -r conftest 2>/dev/null | |
13622 | mkdir conftest | |
13623 | cd conftest | |
13624 | mkdir out | |
13625 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13626 | ||
13627 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13628 | # Insert the option either (1) after the last *FLAGS variable, or | |
13629 | # (2) before a word containing "conftest.", or (3) at the end. | |
13630 | # Note that $ac_compile itself does not contain backslashes and begins | |
13631 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13632 | lt_compile=`echo "$ac_compile" | $SED \ | |
13633 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13634 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13635 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 13636 | (eval echo "\"\$as_me:13636: $lt_compile\"" >&5) |
bf9f3bac | 13637 | (eval "$lt_compile" 2>out/conftest.err) |
13638 | ac_status=$? | |
13639 | cat out/conftest.err >&5 | |
5e9b5d83 | 13640 | echo "$as_me:13640: \$? = $ac_status" >&5 |
bf9f3bac | 13641 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13642 | then | |
13643 | # The compiler can only warn and ignore the option if not recognized | |
13644 | # So say no if there are warnings | |
13645 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13646 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13647 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13648 | lt_cv_prog_compiler_c_o_F77=yes | |
13649 | fi | |
13650 | fi | |
13651 | chmod u+w . 2>&5 | |
13652 | $rm conftest* | |
13653 | # SGI C++ compiler will create directory out/ii_files/ for | |
13654 | # template instantiation | |
13655 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13656 | $rm out/* && rmdir out | |
13657 | cd .. | |
13658 | rmdir conftest | |
13659 | $rm conftest* | |
13660 | ||
13661 | fi | |
13662 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13663 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13664 | ||
13665 | ||
13666 | hard_links="nottested" | |
13667 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13668 | # do not overwrite the value of need_locks provided by the user | |
13669 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13670 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13671 | hard_links=yes | |
13672 | $rm conftest* | |
13673 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13674 | touch conftest.a | |
13675 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13676 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13677 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13678 | echo "${ECHO_T}$hard_links" >&6 | |
13679 | if test "$hard_links" = no; then | |
13680 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13681 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13682 | need_locks=warn | |
13683 | fi | |
13684 | else | |
13685 | need_locks=no | |
13686 | fi | |
13687 | ||
13688 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13689 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13690 | ||
13691 | runpath_var= | |
13692 | allow_undefined_flag_F77= | |
13693 | enable_shared_with_static_runtimes_F77=no | |
13694 | archive_cmds_F77= | |
13695 | archive_expsym_cmds_F77= | |
13696 | old_archive_From_new_cmds_F77= | |
13697 | old_archive_from_expsyms_cmds_F77= | |
13698 | export_dynamic_flag_spec_F77= | |
13699 | whole_archive_flag_spec_F77= | |
13700 | thread_safe_flag_spec_F77= | |
13701 | hardcode_libdir_flag_spec_F77= | |
13702 | hardcode_libdir_flag_spec_ld_F77= | |
13703 | hardcode_libdir_separator_F77= | |
13704 | hardcode_direct_F77=no | |
13705 | hardcode_minus_L_F77=no | |
13706 | hardcode_shlibpath_var_F77=unsupported | |
13707 | link_all_deplibs_F77=unknown | |
13708 | hardcode_automatic_F77=no | |
13709 | module_cmds_F77= | |
13710 | module_expsym_cmds_F77= | |
13711 | always_export_symbols_F77=no | |
13712 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13713 | # include_expsyms should be a list of space-separated symbols to be *always* | |
13714 | # included in the symbol list | |
13715 | include_expsyms_F77= | |
13716 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
13717 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13718 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13719 | # as well as any symbol that contains `d'. | |
13720 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13721 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13722 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
13723 | # the symbol is explicitly referenced. Since portable code cannot | |
13724 | # rely on this symbol name, it's probably fine to never include it in | |
13725 | # preloaded symbol tables. | |
13726 | extract_expsyms_cmds= | |
13727 | # Just being paranoid about ensuring that cc_basename is set. | |
13728 | for cc_temp in $compiler""; do | |
13729 | case $cc_temp in | |
13730 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13731 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13732 | \-*) ;; | |
13733 | *) break;; | |
13734 | esac | |
13735 | done | |
13736 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13737 | ||
13738 | case $host_os in | |
13739 | cygwin* | mingw* | pw32*) | |
13740 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13741 | # When not using gcc, we currently assume that we are using | |
13742 | # Microsoft Visual C++. | |
13743 | if test "$GCC" != yes; then | |
13744 | with_gnu_ld=no | |
13745 | fi | |
13746 | ;; | |
13747 | interix*) | |
13748 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13749 | with_gnu_ld=yes | |
13750 | ;; | |
13751 | openbsd*) | |
13752 | with_gnu_ld=no | |
13753 | ;; | |
13754 | esac | |
13755 | ||
13756 | ld_shlibs_F77=yes | |
13757 | if test "$with_gnu_ld" = yes; then | |
13758 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13759 | wlarc='${wl}' | |
13760 | ||
13761 | # Set some defaults for GNU ld with shared library support. These | |
13762 | # are reset later if shared libraries are not supported. Putting them | |
13763 | # here allows them to be overridden if necessary. | |
13764 | runpath_var=LD_RUN_PATH | |
13765 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13766 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13767 | # ancient GNU ld didn't support --whole-archive et. al. | |
13768 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13769 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13770 | else | |
13771 | whole_archive_flag_spec_F77= | |
13772 | fi | |
13773 | supports_anon_versioning=no | |
13774 | case `$LD -v 2>/dev/null` in | |
13775 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13776 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13777 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13778 | *\ 2.11.*) ;; # other 2.11 versions | |
13779 | *) supports_anon_versioning=yes ;; | |
13780 | esac | |
13781 | ||
13782 | # See if GNU ld supports shared libraries. | |
13783 | case $host_os in | |
13784 | aix3* | aix4* | aix5*) | |
13785 | # On AIX/PPC, the GNU linker is very broken | |
13786 | if test "$host_cpu" != ia64; then | |
13787 | ld_shlibs_F77=no | |
13788 | cat <<EOF 1>&2 | |
13789 | ||
13790 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13791 | *** to be unable to reliably create shared libraries on AIX. | |
13792 | *** Therefore, libtool is disabling shared libraries support. If you | |
13793 | *** really care for shared libraries, you may want to modify your PATH | |
13794 | *** so that a non-GNU linker is found, and then restart. | |
13795 | ||
13796 | EOF | |
13797 | fi | |
13798 | ;; | |
13799 | ||
13800 | amigaos*) | |
13801 | archive_cmds_F77='$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)' | |
13802 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13803 | hardcode_minus_L_F77=yes | |
13804 | ||
13805 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13806 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
13807 | # to version 4, is to share data among multiple programs linked | |
13808 | # with the same dynamic library. Since this doesn't match the | |
13809 | # behavior of shared libraries on other platforms, we can't use | |
13810 | # them. | |
13811 | ld_shlibs_F77=no | |
13812 | ;; | |
13813 | ||
13814 | beos*) | |
13815 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13816 | allow_undefined_flag_F77=unsupported | |
13817 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13818 | # support --undefined. This deserves some investigation. FIXME | |
13819 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13820 | else | |
13821 | ld_shlibs_F77=no | |
13822 | fi | |
13823 | ;; | |
13824 | ||
13825 | cygwin* | mingw* | pw32*) | |
13826 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13827 | # as there is no search path for DLLs. | |
13828 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13829 | allow_undefined_flag_F77=unsupported | |
13830 | always_export_symbols_F77=no | |
13831 | enable_shared_with_static_runtimes_F77=yes | |
13832 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
13833 | ||
13834 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13835 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13836 | # If the export-symbols file already is a .def file (1st line | |
13837 | # is EXPORTS), use it as is; otherwise, prepend... | |
13838 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13839 | cp $export_symbols $output_objdir/$soname.def; | |
13840 | else | |
13841 | echo EXPORTS > $output_objdir/$soname.def; | |
13842 | cat $export_symbols >> $output_objdir/$soname.def; | |
13843 | fi~ | |
13844 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13845 | else | |
13846 | ld_shlibs_F77=no | |
13847 | fi | |
13848 | ;; | |
13849 | ||
13850 | interix3*) | |
13851 | hardcode_direct_F77=no | |
13852 | hardcode_shlibpath_var_F77=no | |
13853 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
13854 | export_dynamic_flag_spec_F77='${wl}-E' | |
13855 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13856 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13857 | # default) and relocated if they conflict, which is a slow very memory | |
13858 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13859 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13860 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13861 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13862 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13863 | ;; | |
13864 | ||
13865 | linux*) | |
13866 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13867 | tmp_addflag= | |
13868 | case $cc_basename,$host_cpu in | |
13869 | pgcc*) # Portland Group C compiler | |
13870 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13871 | tmp_addflag=' $pic_flag' | |
13872 | ;; | |
13873 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
13874 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13875 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
13876 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13877 | tmp_addflag=' -i_dynamic' ;; | |
13878 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13879 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13880 | ifc* | ifort*) # Intel Fortran compiler | |
13881 | tmp_addflag=' -nofor_main' ;; | |
13882 | esac | |
13883 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13884 | ||
13885 | if test $supports_anon_versioning = yes; then | |
13886 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13887 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13888 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13889 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13890 | fi | |
13891 | else | |
13892 | ld_shlibs_F77=no | |
13893 | fi | |
13894 | ;; | |
13895 | ||
13896 | netbsd*) | |
13897 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13898 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13899 | wlarc= | |
13900 | else | |
13901 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13902 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13903 | fi | |
13904 | ;; | |
13905 | ||
13906 | solaris*) | |
13907 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
13908 | ld_shlibs_F77=no | |
13909 | cat <<EOF 1>&2 | |
13910 | ||
13911 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13912 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13913 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13914 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13915 | *** your PATH or compiler configuration so that the native linker is | |
13916 | *** used, and then restart. | |
13917 | ||
13918 | EOF | |
13919 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13920 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13921 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13922 | else | |
13923 | ld_shlibs_F77=no | |
13924 | fi | |
13925 | ;; | |
13926 | ||
13927 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13928 | case `$LD -v 2>&1` in | |
13929 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13930 | ld_shlibs_F77=no | |
13931 | cat <<_LT_EOF 1>&2 | |
13932 | ||
13933 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13934 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13935 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13936 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13937 | *** your PATH or compiler configuration so that the native linker is | |
13938 | *** used, and then restart. | |
13939 | ||
13940 | _LT_EOF | |
13941 | ;; | |
13942 | *) | |
13943 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13944 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
13945 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
13946 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
13947 | else | |
13948 | ld_shlibs_F77=no | |
13949 | fi | |
13950 | ;; | |
13951 | esac | |
13952 | ;; | |
13953 | ||
13954 | sunos4*) | |
13955 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13956 | wlarc= | |
13957 | hardcode_direct_F77=yes | |
13958 | hardcode_shlibpath_var_F77=no | |
13959 | ;; | |
13960 | ||
13961 | *) | |
13962 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13963 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13964 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13965 | else | |
13966 | ld_shlibs_F77=no | |
13967 | fi | |
13968 | ;; | |
13969 | esac | |
13970 | ||
13971 | if test "$ld_shlibs_F77" = no; then | |
13972 | runpath_var= | |
13973 | hardcode_libdir_flag_spec_F77= | |
13974 | export_dynamic_flag_spec_F77= | |
13975 | whole_archive_flag_spec_F77= | |
13976 | fi | |
13977 | else | |
13978 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13979 | case $host_os in | |
13980 | aix3*) | |
13981 | allow_undefined_flag_F77=unsupported | |
13982 | always_export_symbols_F77=yes | |
13983 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
13984 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13985 | # are no directories specified by -L. | |
13986 | hardcode_minus_L_F77=yes | |
13987 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13988 | # Neither direct hardcoding nor static linking is supported with a | |
13989 | # broken collect2. | |
13990 | hardcode_direct_F77=unsupported | |
13991 | fi | |
13992 | ;; | |
13993 | ||
13994 | aix4* | aix5*) | |
13995 | if test "$host_cpu" = ia64; then | |
13996 | # On IA64, the linker does run time linking by default, so we don't | |
13997 | # have to do anything special. | |
13998 | aix_use_runtimelinking=no | |
13999 | exp_sym_flag='-Bexport' | |
14000 | no_entry_flag="" | |
14001 | else | |
14002 | # If we're using GNU nm, then we don't want the "-C" option. | |
14003 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14004 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14005 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14006 | else | |
14007 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14008 | fi | |
14009 | aix_use_runtimelinking=no | |
14010 | ||
14011 | # Test if we are trying to use run time linking or normal | |
14012 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14013 | # need to do runtime linking. | |
14014 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14015 | for ld_flag in $LDFLAGS; do | |
14016 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14017 | aix_use_runtimelinking=yes | |
14018 | break | |
14019 | fi | |
14020 | done | |
14021 | ;; | |
14022 | esac | |
14023 | ||
14024 | exp_sym_flag='-bexport' | |
14025 | no_entry_flag='-bnoentry' | |
14026 | fi | |
14027 | ||
14028 | # When large executables or shared objects are built, AIX ld can | |
14029 | # have problems creating the table of contents. If linking a library | |
14030 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14031 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14032 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14033 | ||
14034 | archive_cmds_F77='' | |
14035 | hardcode_direct_F77=yes | |
14036 | hardcode_libdir_separator_F77=':' | |
14037 | link_all_deplibs_F77=yes | |
14038 | ||
14039 | if test "$GCC" = yes; then | |
14040 | case $host_os in aix4.[012]|aix4.[012].*) | |
14041 | # We only want to do this on AIX 4.2 and lower, the check | |
14042 | # below for broken collect2 doesn't work under 4.3+ | |
14043 | collect2name=`${CC} -print-prog-name=collect2` | |
14044 | if test -f "$collect2name" && \ | |
14045 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14046 | then | |
14047 | # We have reworked collect2 | |
14048 | hardcode_direct_F77=yes | |
14049 | else | |
14050 | # We have old collect2 | |
14051 | hardcode_direct_F77=unsupported | |
14052 | # It fails to find uninstalled libraries when the uninstalled | |
14053 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14054 | # to unsupported forces relinking | |
14055 | hardcode_minus_L_F77=yes | |
14056 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14057 | hardcode_libdir_separator_F77= | |
14058 | fi | |
14059 | ;; | |
14060 | esac | |
14061 | shared_flag='-shared' | |
14062 | if test "$aix_use_runtimelinking" = yes; then | |
14063 | shared_flag="$shared_flag "'${wl}-G' | |
14064 | fi | |
14065 | else | |
14066 | # not using gcc | |
14067 | if test "$host_cpu" = ia64; then | |
14068 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14069 | # chokes on -Wl,-G. The following line is correct: | |
14070 | shared_flag='-G' | |
14071 | else | |
14072 | if test "$aix_use_runtimelinking" = yes; then | |
14073 | shared_flag='${wl}-G' | |
14074 | else | |
14075 | shared_flag='${wl}-bM:SRE' | |
14076 | fi | |
14077 | fi | |
14078 | fi | |
14079 | ||
14080 | # It seems that -bexpall does not export symbols beginning with | |
14081 | # underscore (_), so it is better to generate a list of symbols to export. | |
14082 | always_export_symbols_F77=yes | |
14083 | if test "$aix_use_runtimelinking" = yes; then | |
14084 | # Warning - without using the other runtime loading flags (-brtl), | |
14085 | # -berok will link without error, but may produce a broken library. | |
14086 | allow_undefined_flag_F77='-berok' | |
14087 | # Determine the default libpath from the value encoded in an empty executable. | |
14088 | cat >conftest.$ac_ext <<_ACEOF | |
14089 | program main | |
14090 | ||
14091 | end | |
14092 | _ACEOF | |
14093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14095 | (eval $ac_link) 2>conftest.er1 | |
14096 | ac_status=$? | |
14097 | grep -v '^ *+' conftest.er1 >conftest.err | |
14098 | rm -f conftest.er1 | |
14099 | cat conftest.err >&5 | |
14100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14101 | (exit $ac_status); } && | |
14102 | { ac_try='test -z "$ac_f77_werror_flag" | |
14103 | || test ! -s conftest.err' | |
14104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14105 | (eval $ac_try) 2>&5 | |
14106 | ac_status=$? | |
14107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14108 | (exit $ac_status); }; } && | |
14109 | { ac_try='test -s conftest$ac_exeext' | |
14110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14111 | (eval $ac_try) 2>&5 | |
14112 | ac_status=$? | |
14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14114 | (exit $ac_status); }; }; then | |
14115 | ||
14116 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14117 | }'` | |
14118 | # Check for a 64-bit object if we didn't find anything. | |
14119 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14120 | }'`; fi | |
14121 | else | |
14122 | echo "$as_me: failed program was:" >&5 | |
14123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14124 | ||
14125 | fi | |
14126 | rm -f conftest.err conftest.$ac_objext \ | |
14127 | conftest$ac_exeext conftest.$ac_ext | |
14128 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14129 | ||
14130 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14131 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
14132 | else | |
14133 | if test "$host_cpu" = ia64; then | |
14134 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14135 | allow_undefined_flag_F77="-z nodefs" | |
14136 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
14137 | else | |
14138 | # Determine the default libpath from the value encoded in an empty executable. | |
14139 | cat >conftest.$ac_ext <<_ACEOF | |
14140 | program main | |
14141 | ||
14142 | end | |
14143 | _ACEOF | |
14144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14146 | (eval $ac_link) 2>conftest.er1 | |
14147 | ac_status=$? | |
14148 | grep -v '^ *+' conftest.er1 >conftest.err | |
14149 | rm -f conftest.er1 | |
14150 | cat conftest.err >&5 | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); } && | |
14153 | { ac_try='test -z "$ac_f77_werror_flag" | |
14154 | || test ! -s conftest.err' | |
14155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14156 | (eval $ac_try) 2>&5 | |
14157 | ac_status=$? | |
14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14159 | (exit $ac_status); }; } && | |
14160 | { ac_try='test -s conftest$ac_exeext' | |
14161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14162 | (eval $ac_try) 2>&5 | |
14163 | ac_status=$? | |
14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14165 | (exit $ac_status); }; }; then | |
14166 | ||
14167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14168 | }'` | |
14169 | # Check for a 64-bit object if we didn't find anything. | |
14170 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14171 | }'`; fi | |
14172 | else | |
14173 | echo "$as_me: failed program was:" >&5 | |
14174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14175 | ||
14176 | fi | |
14177 | rm -f conftest.err conftest.$ac_objext \ | |
14178 | conftest$ac_exeext conftest.$ac_ext | |
14179 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14180 | ||
14181 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14182 | # Warning - without using the other run time loading flags, | |
14183 | # -berok will link without error, but may produce a broken library. | |
14184 | no_undefined_flag_F77=' ${wl}-bernotok' | |
14185 | allow_undefined_flag_F77=' ${wl}-berok' | |
14186 | # Exported symbols can be pulled into shared objects from archives | |
14187 | whole_archive_flag_spec_F77='$convenience' | |
14188 | archive_cmds_need_lc_F77=yes | |
14189 | # This is similar to how AIX traditionally builds its shared libraries. | |
14190 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
14191 | fi | |
14192 | fi | |
14193 | ;; | |
14194 | ||
14195 | amigaos*) | |
14196 | archive_cmds_F77='$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)' | |
14197 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14198 | hardcode_minus_L_F77=yes | |
14199 | # see comment about different semantics on the GNU ld section | |
14200 | ld_shlibs_F77=no | |
14201 | ;; | |
14202 | ||
14203 | bsdi[45]*) | |
14204 | export_dynamic_flag_spec_F77=-rdynamic | |
14205 | ;; | |
14206 | ||
14207 | cygwin* | mingw* | pw32*) | |
14208 | # When not using gcc, we currently assume that we are using | |
14209 | # Microsoft Visual C++. | |
14210 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14211 | # no search path for DLLs. | |
14212 | hardcode_libdir_flag_spec_F77=' ' | |
14213 | allow_undefined_flag_F77=unsupported | |
14214 | # Tell ltmain to make .lib files, not .a files. | |
14215 | libext=lib | |
14216 | # Tell ltmain to make .dll files, not .so files. | |
14217 | shrext_cmds=".dll" | |
14218 | # FIXME: Setting linknames here is a bad hack. | |
14219 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14220 | # The linker will automatically build a .lib file if we build a DLL. | |
14221 | old_archive_From_new_cmds_F77='true' | |
14222 | # FIXME: Should let the user specify the lib program. | |
14223 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
14224 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
14225 | enable_shared_with_static_runtimes_F77=yes | |
14226 | ;; | |
14227 | ||
14228 | darwin* | rhapsody*) | |
14229 | case $host_os in | |
14230 | rhapsody* | darwin1.[012]) | |
14231 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14232 | ;; | |
14233 | *) # Darwin 1.3 on | |
14234 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14235 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14236 | else | |
14237 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
14238 | 10.[012]) | |
14239 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14240 | ;; | |
14241 | 10.*) | |
14242 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14243 | ;; | |
14244 | esac | |
14245 | fi | |
14246 | ;; | |
14247 | esac | |
14248 | archive_cmds_need_lc_F77=no | |
14249 | hardcode_direct_F77=no | |
14250 | hardcode_automatic_F77=yes | |
14251 | hardcode_shlibpath_var_F77=unsupported | |
14252 | whole_archive_flag_spec_F77='' | |
14253 | link_all_deplibs_F77=yes | |
14254 | if test "$GCC" = yes ; then | |
14255 | output_verbose_link_cmd='echo' | |
14256 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14257 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14258 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14259 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14260 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14261 | else | |
14262 | case $cc_basename in | |
14263 | xlc*) | |
14264 | output_verbose_link_cmd='echo' | |
14265 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14266 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14267 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14268 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14269 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14270 | ;; | |
14271 | *) | |
14272 | ld_shlibs_F77=no | |
14273 | ;; | |
14274 | esac | |
14275 | fi | |
14276 | ;; | |
14277 | ||
14278 | dgux*) | |
14279 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14280 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14281 | hardcode_shlibpath_var_F77=no | |
14282 | ;; | |
14283 | ||
14284 | freebsd1*) | |
14285 | ld_shlibs_F77=no | |
14286 | ;; | |
14287 | ||
14288 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14289 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14290 | # does not break anything, and helps significantly (at the cost of a little | |
14291 | # extra space). | |
14292 | freebsd2.2*) | |
14293 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14294 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14295 | hardcode_direct_F77=yes | |
14296 | hardcode_shlibpath_var_F77=no | |
14297 | ;; | |
14298 | ||
14299 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14300 | freebsd2*) | |
14301 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14302 | hardcode_direct_F77=yes | |
14303 | hardcode_minus_L_F77=yes | |
14304 | hardcode_shlibpath_var_F77=no | |
14305 | ;; | |
14306 | ||
14307 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14308 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
14309 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14310 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14311 | hardcode_direct_F77=yes | |
14312 | hardcode_shlibpath_var_F77=no | |
14313 | ;; | |
14314 | ||
14315 | hpux9*) | |
14316 | if test "$GCC" = yes; then | |
14317 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14318 | else | |
14319 | archive_cmds_F77='$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' | |
14320 | fi | |
14321 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14322 | hardcode_libdir_separator_F77=: | |
14323 | hardcode_direct_F77=yes | |
14324 | ||
14325 | # hardcode_minus_L: Not really in the search PATH, | |
14326 | # but as the default location of the library. | |
14327 | hardcode_minus_L_F77=yes | |
14328 | export_dynamic_flag_spec_F77='${wl}-E' | |
14329 | ;; | |
14330 | ||
14331 | hpux10*) | |
14332 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14333 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14334 | else | |
14335 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14336 | fi | |
14337 | if test "$with_gnu_ld" = no; then | |
14338 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14339 | hardcode_libdir_separator_F77=: | |
14340 | ||
14341 | hardcode_direct_F77=yes | |
14342 | export_dynamic_flag_spec_F77='${wl}-E' | |
14343 | ||
14344 | # hardcode_minus_L: Not really in the search PATH, | |
14345 | # but as the default location of the library. | |
14346 | hardcode_minus_L_F77=yes | |
14347 | fi | |
14348 | ;; | |
14349 | ||
14350 | hpux11*) | |
14351 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14352 | case $host_cpu in | |
14353 | hppa*64*) | |
14354 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14355 | ;; | |
14356 | ia64*) | |
14357 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14358 | ;; | |
14359 | *) | |
14360 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14361 | ;; | |
14362 | esac | |
14363 | else | |
14364 | case $host_cpu in | |
14365 | hppa*64*) | |
14366 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14367 | ;; | |
14368 | ia64*) | |
14369 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14370 | ;; | |
14371 | *) | |
14372 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14373 | ;; | |
14374 | esac | |
14375 | fi | |
14376 | if test "$with_gnu_ld" = no; then | |
14377 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14378 | hardcode_libdir_separator_F77=: | |
14379 | ||
14380 | case $host_cpu in | |
14381 | hppa*64*|ia64*) | |
14382 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14383 | hardcode_direct_F77=no | |
14384 | hardcode_shlibpath_var_F77=no | |
14385 | ;; | |
14386 | *) | |
14387 | hardcode_direct_F77=yes | |
14388 | export_dynamic_flag_spec_F77='${wl}-E' | |
14389 | ||
14390 | # hardcode_minus_L: Not really in the search PATH, | |
14391 | # but as the default location of the library. | |
14392 | hardcode_minus_L_F77=yes | |
14393 | ;; | |
14394 | esac | |
14395 | fi | |
14396 | ;; | |
14397 | ||
14398 | irix5* | irix6* | nonstopux*) | |
14399 | if test "$GCC" = yes; then | |
14400 | archive_cmds_F77='$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' | |
14401 | else | |
14402 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14403 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14404 | fi | |
14405 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14406 | hardcode_libdir_separator_F77=: | |
14407 | link_all_deplibs_F77=yes | |
14408 | ;; | |
14409 | ||
14410 | netbsd*) | |
14411 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14412 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14413 | else | |
14414 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14415 | fi | |
14416 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14417 | hardcode_direct_F77=yes | |
14418 | hardcode_shlibpath_var_F77=no | |
14419 | ;; | |
14420 | ||
14421 | newsos6) | |
14422 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14423 | hardcode_direct_F77=yes | |
14424 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14425 | hardcode_libdir_separator_F77=: | |
14426 | hardcode_shlibpath_var_F77=no | |
14427 | ;; | |
14428 | ||
14429 | openbsd*) | |
14430 | hardcode_direct_F77=yes | |
14431 | hardcode_shlibpath_var_F77=no | |
14432 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14433 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14434 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14435 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14436 | export_dynamic_flag_spec_F77='${wl}-E' | |
14437 | else | |
14438 | case $host_os in | |
14439 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14440 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14441 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14442 | ;; | |
14443 | *) | |
14444 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14445 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14446 | ;; | |
14447 | esac | |
14448 | fi | |
14449 | ;; | |
14450 | ||
14451 | os2*) | |
14452 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14453 | hardcode_minus_L_F77=yes | |
14454 | allow_undefined_flag_F77=unsupported | |
14455 | archive_cmds_F77='$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' | |
14456 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14457 | ;; | |
14458 | ||
14459 | osf3*) | |
14460 | if test "$GCC" = yes; then | |
14461 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14462 | archive_cmds_F77='$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' | |
14463 | else | |
14464 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14465 | archive_cmds_F77='$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' | |
14466 | fi | |
14467 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14468 | hardcode_libdir_separator_F77=: | |
14469 | ;; | |
14470 | ||
14471 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14472 | if test "$GCC" = yes; then | |
14473 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14474 | archive_cmds_F77='$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' | |
14475 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14476 | else | |
14477 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14478 | archive_cmds_F77='$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' | |
14479 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
14480 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
14481 | ||
14482 | # Both c and cxx compiler support -rpath directly | |
14483 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14484 | fi | |
14485 | hardcode_libdir_separator_F77=: | |
14486 | ;; | |
14487 | ||
14488 | solaris*) | |
14489 | no_undefined_flag_F77=' -z text' | |
14490 | if test "$GCC" = yes; then | |
14491 | wlarc='${wl}' | |
14492 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14493 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14494 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14495 | else | |
14496 | wlarc='' | |
14497 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14498 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14499 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14500 | fi | |
14501 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14502 | hardcode_shlibpath_var_F77=no | |
14503 | case $host_os in | |
14504 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14505 | *) | |
14506 | # The compiler driver will combine linker options so we | |
14507 | # cannot just pass the convience library names through | |
14508 | # without $wl, iff we do not link with $LD. | |
14509 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14510 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14511 | case $wlarc in | |
14512 | '') | |
14513 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14514 | *) | |
14515 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14516 | esac ;; | |
14517 | esac | |
14518 | link_all_deplibs_F77=yes | |
14519 | ;; | |
14520 | ||
14521 | sunos4*) | |
14522 | if test "x$host_vendor" = xsequent; then | |
14523 | # Use $CC to link under sequent, because it throws in some extra .o | |
14524 | # files that make .init and .fini sections work. | |
14525 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14526 | else | |
14527 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14528 | fi | |
14529 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14530 | hardcode_direct_F77=yes | |
14531 | hardcode_minus_L_F77=yes | |
14532 | hardcode_shlibpath_var_F77=no | |
14533 | ;; | |
14534 | ||
14535 | sysv4) | |
14536 | case $host_vendor in | |
14537 | sni) | |
14538 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14539 | hardcode_direct_F77=yes # is this really true??? | |
14540 | ;; | |
14541 | siemens) | |
14542 | ## LD is ld it makes a PLAMLIB | |
14543 | ## CC just makes a GrossModule. | |
14544 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14545 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14546 | hardcode_direct_F77=no | |
14547 | ;; | |
14548 | motorola) | |
14549 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14550 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14551 | ;; | |
14552 | esac | |
14553 | runpath_var='LD_RUN_PATH' | |
14554 | hardcode_shlibpath_var_F77=no | |
14555 | ;; | |
14556 | ||
14557 | sysv4.3*) | |
14558 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14559 | hardcode_shlibpath_var_F77=no | |
14560 | export_dynamic_flag_spec_F77='-Bexport' | |
14561 | ;; | |
14562 | ||
14563 | sysv4*MP*) | |
14564 | if test -d /usr/nec; then | |
14565 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14566 | hardcode_shlibpath_var_F77=no | |
14567 | runpath_var=LD_RUN_PATH | |
14568 | hardcode_runpath_var=yes | |
14569 | ld_shlibs_F77=yes | |
14570 | fi | |
14571 | ;; | |
14572 | ||
14573 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
14574 | no_undefined_flag_F77='${wl}-z,text' | |
14575 | archive_cmds_need_lc_F77=no | |
14576 | hardcode_shlibpath_var_F77=no | |
14577 | runpath_var='LD_RUN_PATH' | |
14578 | ||
14579 | if test "$GCC" = yes; then | |
14580 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14581 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14582 | else | |
14583 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14584 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14585 | fi | |
14586 | ;; | |
14587 | ||
14588 | sysv5* | sco3.2v5* | sco5v6*) | |
14589 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14590 | # link with -lc, and that would cause any symbols used from libc to | |
14591 | # always be unresolved, which means just about no library would | |
14592 | # ever link correctly. If we're not using GNU ld we use -z text | |
14593 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14594 | # as -z defs. | |
14595 | no_undefined_flag_F77='${wl}-z,text' | |
14596 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
14597 | archive_cmds_need_lc_F77=no | |
14598 | hardcode_shlibpath_var_F77=no | |
14599 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
14600 | hardcode_libdir_separator_F77=':' | |
14601 | link_all_deplibs_F77=yes | |
14602 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14603 | runpath_var='LD_RUN_PATH' | |
14604 | ||
14605 | if test "$GCC" = yes; then | |
14606 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14607 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14608 | else | |
14609 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14610 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14611 | fi | |
14612 | ;; | |
14613 | ||
14614 | uts4*) | |
14615 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14616 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14617 | hardcode_shlibpath_var_F77=no | |
14618 | ;; | |
14619 | ||
14620 | *) | |
14621 | ld_shlibs_F77=no | |
14622 | ;; | |
14623 | esac | |
14624 | fi | |
14625 | ||
14626 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14627 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14628 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
14629 | ||
14630 | # | |
14631 | # Do we need to explicitly link libc? | |
14632 | # | |
14633 | case "x$archive_cmds_need_lc_F77" in | |
14634 | x|xyes) | |
14635 | # Assume -lc should be added | |
14636 | archive_cmds_need_lc_F77=yes | |
14637 | ||
14638 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14639 | case $archive_cmds_F77 in | |
14640 | *'~'*) | |
14641 | # FIXME: we may have to deal with multi-command sequences. | |
14642 | ;; | |
14643 | '$CC '*) | |
14644 | # Test whether the compiler implicitly links with -lc since on some | |
14645 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14646 | # to ld, don't add -lc before -lgcc. | |
14647 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14648 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14649 | $rm conftest* | |
14650 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14651 | ||
14652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14653 | (eval $ac_compile) 2>&5 | |
14654 | ac_status=$? | |
14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14656 | (exit $ac_status); } 2>conftest.err; then | |
14657 | soname=conftest | |
14658 | lib=conftest | |
14659 | libobjs=conftest.$ac_objext | |
14660 | deplibs= | |
14661 | wl=$lt_prog_compiler_wl_F77 | |
14662 | pic_flag=$lt_prog_compiler_pic_F77 | |
14663 | compiler_flags=-v | |
14664 | linker_flags=-v | |
14665 | verstring= | |
14666 | output_objdir=. | |
14667 | libname=conftest | |
14668 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14669 | allow_undefined_flag_F77= | |
14670 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14671 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14672 | ac_status=$? | |
14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14674 | (exit $ac_status); } | |
14675 | then | |
14676 | archive_cmds_need_lc_F77=no | |
14677 | else | |
14678 | archive_cmds_need_lc_F77=yes | |
14679 | fi | |
14680 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14681 | else | |
14682 | cat conftest.err 1>&5 | |
14683 | fi | |
14684 | $rm conftest* | |
14685 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14686 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14687 | ;; | |
14688 | esac | |
14689 | fi | |
14690 | ;; | |
14691 | esac | |
14692 | ||
14693 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14694 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14695 | library_names_spec= | |
14696 | libname_spec='lib$name' | |
14697 | soname_spec= | |
14698 | shrext_cmds=".so" | |
14699 | postinstall_cmds= | |
14700 | postuninstall_cmds= | |
14701 | finish_cmds= | |
14702 | finish_eval= | |
14703 | shlibpath_var= | |
14704 | shlibpath_overrides_runpath=unknown | |
14705 | version_type=none | |
14706 | dynamic_linker="$host_os ld.so" | |
14707 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14708 | if test "$GCC" = yes; then | |
14709 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14710 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14711 | # if the path contains ";" then we assume it to be the separator | |
14712 | # otherwise default to the standard path separator (i.e. ":") - it is | |
14713 | # assumed that no part of a normal pathname contains ";" but that should | |
14714 | # okay in the real world where ";" in dirpaths is itself problematic. | |
14715 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14716 | else | |
14717 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14718 | fi | |
14719 | else | |
14720 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14721 | fi | |
14722 | need_lib_prefix=unknown | |
14723 | hardcode_into_libs=no | |
14724 | ||
14725 | # when you set need_version to no, make sure it does not cause -set_version | |
14726 | # flags to be left without arguments | |
14727 | need_version=unknown | |
14728 | ||
14729 | case $host_os in | |
14730 | aix3*) | |
14731 | version_type=linux | |
14732 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14733 | shlibpath_var=LIBPATH | |
14734 | ||
14735 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14736 | soname_spec='${libname}${release}${shared_ext}$major' | |
14737 | ;; | |
14738 | ||
14739 | aix4* | aix5*) | |
14740 | version_type=linux | |
14741 | need_lib_prefix=no | |
14742 | need_version=no | |
14743 | hardcode_into_libs=yes | |
14744 | if test "$host_cpu" = ia64; then | |
14745 | # AIX 5 supports IA64 | |
14746 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14747 | shlibpath_var=LD_LIBRARY_PATH | |
14748 | else | |
14749 | # With GCC up to 2.95.x, collect2 would create an import file | |
14750 | # for dependence libraries. The import file would start with | |
14751 | # the line `#! .'. This would cause the generated library to | |
14752 | # depend on `.', always an invalid library. This was fixed in | |
14753 | # development snapshots of GCC prior to 3.0. | |
14754 | case $host_os in | |
14755 | aix4 | aix4.[01] | aix4.[01].*) | |
14756 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14757 | echo ' yes ' | |
14758 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14759 | : | |
14760 | else | |
14761 | can_build_shared=no | |
14762 | fi | |
14763 | ;; | |
14764 | esac | |
14765 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14766 | # soname into executable. Probably we can add versioning support to | |
14767 | # collect2, so additional links can be useful in future. | |
14768 | if test "$aix_use_runtimelinking" = yes; then | |
14769 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14770 | # instead of lib<name>.a to let people know that these are not | |
14771 | # typical AIX shared libraries. | |
14772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14773 | else | |
14774 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14775 | # and later when we are not doing run time linking. | |
14776 | library_names_spec='${libname}${release}.a $libname.a' | |
14777 | soname_spec='${libname}${release}${shared_ext}$major' | |
14778 | fi | |
14779 | shlibpath_var=LIBPATH | |
14780 | fi | |
14781 | ;; | |
14782 | ||
14783 | amigaos*) | |
14784 | library_names_spec='$libname.ixlibrary $libname.a' | |
14785 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14786 | 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' | |
14787 | ;; | |
14788 | ||
14789 | beos*) | |
14790 | library_names_spec='${libname}${shared_ext}' | |
14791 | dynamic_linker="$host_os ld.so" | |
14792 | shlibpath_var=LIBRARY_PATH | |
14793 | ;; | |
14794 | ||
14795 | bsdi[45]*) | |
14796 | version_type=linux | |
14797 | need_version=no | |
14798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14799 | soname_spec='${libname}${release}${shared_ext}$major' | |
14800 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14801 | shlibpath_var=LD_LIBRARY_PATH | |
14802 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14803 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14804 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14805 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14806 | # libtool to hard-code these into programs | |
14807 | ;; | |
14808 | ||
14809 | cygwin* | mingw* | pw32*) | |
14810 | version_type=windows | |
14811 | shrext_cmds=".dll" | |
14812 | need_version=no | |
14813 | need_lib_prefix=no | |
14814 | ||
14815 | case $GCC,$host_os in | |
14816 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14817 | library_names_spec='$libname.dll.a' | |
14818 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14819 | postinstall_cmds='base_file=`basename \${file}`~ | |
14820 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14821 | dldir=$destdir/`dirname \$dlpath`~ | |
14822 | test -d \$dldir || mkdir -p \$dldir~ | |
14823 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14824 | chmod a+x \$dldir/$dlname' | |
14825 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14826 | dlpath=$dir/\$dldll~ | |
14827 | $rm \$dlpath' | |
14828 | shlibpath_overrides_runpath=yes | |
14829 | ||
14830 | case $host_os in | |
14831 | cygwin*) | |
14832 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14833 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14834 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14835 | ;; | |
14836 | mingw*) | |
14837 | # MinGW DLLs use traditional 'lib' prefix | |
14838 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14839 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14840 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14841 | # It is most probably a Windows format PATH printed by | |
14842 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14843 | # path with ; separators, and with drive letters. We can handle the | |
14844 | # drive letters (cygwin fileutils understands them), so leave them, | |
14845 | # especially as we might pass files found there to a mingw objdump, | |
14846 | # which wouldn't understand a cygwinified path. Ahh. | |
14847 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14848 | else | |
14849 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14850 | fi | |
14851 | ;; | |
14852 | pw32*) | |
14853 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14854 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14855 | ;; | |
14856 | esac | |
14857 | ;; | |
14858 | ||
14859 | *) | |
14860 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14861 | ;; | |
14862 | esac | |
14863 | dynamic_linker='Win32 ld.exe' | |
14864 | # FIXME: first we should search . and the directory the executable is in | |
14865 | shlibpath_var=PATH | |
14866 | ;; | |
14867 | ||
14868 | darwin* | rhapsody*) | |
14869 | dynamic_linker="$host_os dyld" | |
14870 | version_type=darwin | |
14871 | need_lib_prefix=no | |
14872 | need_version=no | |
14873 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14874 | soname_spec='${libname}${release}${major}$shared_ext' | |
14875 | shlibpath_overrides_runpath=yes | |
14876 | shlibpath_var=DYLD_LIBRARY_PATH | |
14877 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14878 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14879 | if test "$GCC" = yes; then | |
14880 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
14881 | else | |
14882 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14883 | fi | |
14884 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14885 | ;; | |
14886 | ||
14887 | dgux*) | |
14888 | version_type=linux | |
14889 | need_lib_prefix=no | |
14890 | need_version=no | |
14891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14892 | soname_spec='${libname}${release}${shared_ext}$major' | |
14893 | shlibpath_var=LD_LIBRARY_PATH | |
14894 | ;; | |
14895 | ||
14896 | freebsd1*) | |
14897 | dynamic_linker=no | |
14898 | ;; | |
14899 | ||
14900 | kfreebsd*-gnu) | |
14901 | version_type=linux | |
14902 | need_lib_prefix=no | |
14903 | need_version=no | |
14904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14905 | soname_spec='${libname}${release}${shared_ext}$major' | |
14906 | shlibpath_var=LD_LIBRARY_PATH | |
14907 | shlibpath_overrides_runpath=no | |
14908 | hardcode_into_libs=yes | |
14909 | dynamic_linker='GNU ld.so' | |
14910 | ;; | |
14911 | ||
14912 | freebsd* | dragonfly*) | |
14913 | # DragonFly does not have aout. When/if they implement a new | |
14914 | # versioning mechanism, adjust this. | |
14915 | if test -x /usr/bin/objformat; then | |
14916 | objformat=`/usr/bin/objformat` | |
14917 | else | |
14918 | case $host_os in | |
14919 | freebsd[123]*) objformat=aout ;; | |
14920 | *) objformat=elf ;; | |
14921 | esac | |
14922 | fi | |
14923 | version_type=freebsd-$objformat | |
14924 | case $version_type in | |
14925 | freebsd-elf*) | |
14926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14927 | need_version=no | |
14928 | need_lib_prefix=no | |
14929 | ;; | |
14930 | freebsd-*) | |
14931 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14932 | need_version=yes | |
14933 | ;; | |
14934 | esac | |
14935 | shlibpath_var=LD_LIBRARY_PATH | |
14936 | case $host_os in | |
14937 | freebsd2*) | |
14938 | shlibpath_overrides_runpath=yes | |
14939 | ;; | |
14940 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14941 | shlibpath_overrides_runpath=yes | |
14942 | hardcode_into_libs=yes | |
14943 | ;; | |
14944 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14945 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14946 | shlibpath_overrides_runpath=no | |
14947 | hardcode_into_libs=yes | |
14948 | ;; | |
14949 | freebsd*) # from 4.6 on | |
14950 | shlibpath_overrides_runpath=yes | |
14951 | hardcode_into_libs=yes | |
14952 | ;; | |
14953 | esac | |
14954 | ;; | |
14955 | ||
14956 | gnu*) | |
14957 | version_type=linux | |
14958 | need_lib_prefix=no | |
14959 | need_version=no | |
14960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14961 | soname_spec='${libname}${release}${shared_ext}$major' | |
14962 | shlibpath_var=LD_LIBRARY_PATH | |
14963 | hardcode_into_libs=yes | |
14964 | ;; | |
14965 | ||
14966 | hpux9* | hpux10* | hpux11*) | |
14967 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14968 | # link against other versions. | |
14969 | version_type=sunos | |
14970 | need_lib_prefix=no | |
14971 | need_version=no | |
14972 | case $host_cpu in | |
14973 | ia64*) | |
14974 | shrext_cmds='.so' | |
14975 | hardcode_into_libs=yes | |
14976 | dynamic_linker="$host_os dld.so" | |
14977 | shlibpath_var=LD_LIBRARY_PATH | |
14978 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14980 | soname_spec='${libname}${release}${shared_ext}$major' | |
14981 | if test "X$HPUX_IA64_MODE" = X32; then | |
14982 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14983 | else | |
14984 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14985 | fi | |
14986 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14987 | ;; | |
14988 | hppa*64*) | |
14989 | shrext_cmds='.sl' | |
14990 | hardcode_into_libs=yes | |
14991 | dynamic_linker="$host_os dld.sl" | |
14992 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14993 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14995 | soname_spec='${libname}${release}${shared_ext}$major' | |
14996 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14997 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14998 | ;; | |
14999 | *) | |
15000 | shrext_cmds='.sl' | |
15001 | dynamic_linker="$host_os dld.sl" | |
15002 | shlibpath_var=SHLIB_PATH | |
15003 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15005 | soname_spec='${libname}${release}${shared_ext}$major' | |
15006 | ;; | |
15007 | esac | |
15008 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15009 | postinstall_cmds='chmod 555 $lib' | |
15010 | ;; | |
15011 | ||
15012 | interix3*) | |
15013 | version_type=linux | |
15014 | need_lib_prefix=no | |
15015 | need_version=no | |
15016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15017 | soname_spec='${libname}${release}${shared_ext}$major' | |
15018 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15019 | shlibpath_var=LD_LIBRARY_PATH | |
15020 | shlibpath_overrides_runpath=no | |
15021 | hardcode_into_libs=yes | |
15022 | ;; | |
15023 | ||
15024 | irix5* | irix6* | nonstopux*) | |
15025 | case $host_os in | |
15026 | nonstopux*) version_type=nonstopux ;; | |
15027 | *) | |
15028 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15029 | version_type=linux | |
15030 | else | |
15031 | version_type=irix | |
15032 | fi ;; | |
15033 | esac | |
15034 | need_lib_prefix=no | |
15035 | need_version=no | |
15036 | soname_spec='${libname}${release}${shared_ext}$major' | |
15037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15038 | case $host_os in | |
15039 | irix5* | nonstopux*) | |
15040 | libsuff= shlibsuff= | |
15041 | ;; | |
15042 | *) | |
15043 | case $LD in # libtool.m4 will add one of these switches to LD | |
15044 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15045 | libsuff= shlibsuff= libmagic=32-bit;; | |
15046 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15047 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15048 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15049 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15050 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15051 | esac | |
15052 | ;; | |
15053 | esac | |
15054 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15055 | shlibpath_overrides_runpath=no | |
15056 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15057 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15058 | hardcode_into_libs=yes | |
15059 | ;; | |
15060 | ||
15061 | # No shared lib support for Linux oldld, aout, or coff. | |
15062 | linux*oldld* | linux*aout* | linux*coff*) | |
15063 | dynamic_linker=no | |
15064 | ;; | |
15065 | ||
15066 | # This must be Linux ELF. | |
15067 | linux*) | |
15068 | version_type=linux | |
15069 | need_lib_prefix=no | |
15070 | need_version=no | |
15071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15072 | soname_spec='${libname}${release}${shared_ext}$major' | |
15073 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15074 | shlibpath_var=LD_LIBRARY_PATH | |
15075 | shlibpath_overrides_runpath=no | |
15076 | # This implies no fast_install, which is unacceptable. | |
15077 | # Some rework will be needed to allow for fast_install | |
15078 | # before this can be enabled. | |
15079 | hardcode_into_libs=yes | |
15080 | ||
15081 | # find out which ABI we are using | |
15082 | libsuff= | |
15083 | case "$host_cpu" in | |
15084 | x86_64*|s390x*|powerpc64*) | |
5e9b5d83 | 15085 | echo '#line 15085 "configure"' > conftest.$ac_ext |
bf9f3bac | 15086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15087 | (eval $ac_compile) 2>&5 | |
15088 | ac_status=$? | |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); }; then | |
15091 | case `/usr/bin/file conftest.$ac_objext` in | |
15092 | *64-bit*) | |
15093 | libsuff=64 | |
15094 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
15095 | ;; | |
15096 | esac | |
15097 | fi | |
15098 | rm -rf conftest* | |
15099 | ;; | |
15100 | esac | |
15101 | ||
15102 | # Append ld.so.conf contents to the search path | |
15103 | if test -f /etc/ld.so.conf; then | |
15104 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
15105 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
15106 | fi | |
15107 | ||
15108 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15109 | # powerpc, because MkLinux only supported shared libraries with the | |
15110 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15111 | # most powerpc-linux boxes support dynamic linking these days and | |
15112 | # people can always --disable-shared, the test was removed, and we | |
15113 | # assume the GNU/Linux dynamic linker is in use. | |
15114 | dynamic_linker='GNU/Linux ld.so' | |
15115 | ;; | |
15116 | ||
15117 | knetbsd*-gnu) | |
15118 | version_type=linux | |
15119 | need_lib_prefix=no | |
15120 | need_version=no | |
15121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15122 | soname_spec='${libname}${release}${shared_ext}$major' | |
15123 | shlibpath_var=LD_LIBRARY_PATH | |
15124 | shlibpath_overrides_runpath=no | |
15125 | hardcode_into_libs=yes | |
15126 | dynamic_linker='GNU ld.so' | |
15127 | ;; | |
15128 | ||
15129 | netbsd*) | |
15130 | version_type=sunos | |
15131 | need_lib_prefix=no | |
15132 | need_version=no | |
15133 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15135 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15136 | dynamic_linker='NetBSD (a.out) ld.so' | |
15137 | else | |
15138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15139 | soname_spec='${libname}${release}${shared_ext}$major' | |
15140 | dynamic_linker='NetBSD ld.elf_so' | |
15141 | fi | |
15142 | shlibpath_var=LD_LIBRARY_PATH | |
15143 | shlibpath_overrides_runpath=yes | |
15144 | hardcode_into_libs=yes | |
15145 | ;; | |
15146 | ||
15147 | newsos6) | |
15148 | version_type=linux | |
15149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15150 | shlibpath_var=LD_LIBRARY_PATH | |
15151 | shlibpath_overrides_runpath=yes | |
15152 | ;; | |
15153 | ||
15154 | nto-qnx*) | |
15155 | version_type=linux | |
15156 | need_lib_prefix=no | |
15157 | need_version=no | |
15158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15159 | soname_spec='${libname}${release}${shared_ext}$major' | |
15160 | shlibpath_var=LD_LIBRARY_PATH | |
15161 | shlibpath_overrides_runpath=yes | |
15162 | ;; | |
15163 | ||
15164 | openbsd*) | |
15165 | version_type=sunos | |
15166 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15167 | need_lib_prefix=no | |
15168 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15169 | case $host_os in | |
15170 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15171 | *) need_version=no ;; | |
15172 | esac | |
15173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15174 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15175 | shlibpath_var=LD_LIBRARY_PATH | |
15176 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15177 | case $host_os in | |
15178 | openbsd2.[89] | openbsd2.[89].*) | |
15179 | shlibpath_overrides_runpath=no | |
15180 | ;; | |
15181 | *) | |
15182 | shlibpath_overrides_runpath=yes | |
15183 | ;; | |
15184 | esac | |
15185 | else | |
15186 | shlibpath_overrides_runpath=yes | |
15187 | fi | |
15188 | ;; | |
15189 | ||
15190 | os2*) | |
15191 | libname_spec='$name' | |
15192 | shrext_cmds=".dll" | |
15193 | need_lib_prefix=no | |
15194 | library_names_spec='$libname${shared_ext} $libname.a' | |
15195 | dynamic_linker='OS/2 ld.exe' | |
15196 | shlibpath_var=LIBPATH | |
15197 | ;; | |
15198 | ||
15199 | osf3* | osf4* | osf5*) | |
15200 | version_type=osf | |
15201 | need_lib_prefix=no | |
15202 | need_version=no | |
15203 | soname_spec='${libname}${release}${shared_ext}$major' | |
15204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15205 | shlibpath_var=LD_LIBRARY_PATH | |
15206 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15207 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15208 | ;; | |
15209 | ||
15210 | solaris*) | |
15211 | version_type=linux | |
15212 | need_lib_prefix=no | |
15213 | need_version=no | |
15214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15215 | soname_spec='${libname}${release}${shared_ext}$major' | |
15216 | shlibpath_var=LD_LIBRARY_PATH | |
15217 | shlibpath_overrides_runpath=yes | |
15218 | hardcode_into_libs=yes | |
15219 | # ldd complains unless libraries are executable | |
15220 | postinstall_cmds='chmod +x $lib' | |
15221 | ;; | |
15222 | ||
15223 | sunos4*) | |
15224 | version_type=sunos | |
15225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15226 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15227 | shlibpath_var=LD_LIBRARY_PATH | |
15228 | shlibpath_overrides_runpath=yes | |
15229 | if test "$with_gnu_ld" = yes; then | |
15230 | need_lib_prefix=no | |
15231 | fi | |
15232 | need_version=yes | |
15233 | ;; | |
15234 | ||
15235 | sysv4 | sysv4.3*) | |
15236 | version_type=linux | |
15237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15238 | soname_spec='${libname}${release}${shared_ext}$major' | |
15239 | shlibpath_var=LD_LIBRARY_PATH | |
15240 | case $host_vendor in | |
15241 | sni) | |
15242 | shlibpath_overrides_runpath=no | |
15243 | need_lib_prefix=no | |
15244 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15245 | runpath_var=LD_RUN_PATH | |
15246 | ;; | |
15247 | siemens) | |
15248 | need_lib_prefix=no | |
15249 | ;; | |
15250 | motorola) | |
15251 | need_lib_prefix=no | |
15252 | need_version=no | |
15253 | shlibpath_overrides_runpath=no | |
15254 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15255 | ;; | |
15256 | esac | |
15257 | ;; | |
15258 | ||
15259 | sysv4*MP*) | |
15260 | if test -d /usr/nec ;then | |
15261 | version_type=linux | |
15262 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15263 | soname_spec='$libname${shared_ext}.$major' | |
15264 | shlibpath_var=LD_LIBRARY_PATH | |
15265 | fi | |
15266 | ;; | |
15267 | ||
15268 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15269 | version_type=freebsd-elf | |
15270 | need_lib_prefix=no | |
15271 | need_version=no | |
15272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15273 | soname_spec='${libname}${release}${shared_ext}$major' | |
15274 | shlibpath_var=LD_LIBRARY_PATH | |
15275 | hardcode_into_libs=yes | |
15276 | if test "$with_gnu_ld" = yes; then | |
15277 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15278 | shlibpath_overrides_runpath=no | |
15279 | else | |
15280 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15281 | shlibpath_overrides_runpath=yes | |
15282 | case $host_os in | |
15283 | sco3.2v5*) | |
15284 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15285 | ;; | |
15286 | esac | |
15287 | fi | |
15288 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15289 | ;; | |
15290 | ||
15291 | uts4*) | |
15292 | version_type=linux | |
15293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15294 | soname_spec='${libname}${release}${shared_ext}$major' | |
15295 | shlibpath_var=LD_LIBRARY_PATH | |
15296 | ;; | |
15297 | ||
15298 | *) | |
15299 | dynamic_linker=no | |
15300 | ;; | |
15301 | esac | |
15302 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15303 | echo "${ECHO_T}$dynamic_linker" >&6 | |
15304 | test "$dynamic_linker" = no && can_build_shared=no | |
15305 | ||
15306 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15307 | if test "$GCC" = yes; then | |
15308 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15309 | fi | |
15310 | ||
15311 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15312 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
15313 | hardcode_action_F77= | |
15314 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
15315 | test -n "$runpath_var_F77" || \ | |
15316 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
15317 | ||
15318 | # We can hardcode non-existant directories. | |
15319 | if test "$hardcode_direct_F77" != no && | |
15320 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15321 | # have to relink, otherwise we might link with an installed library | |
15322 | # when we should be linking with a yet-to-be-installed one | |
15323 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15324 | test "$hardcode_minus_L_F77" != no; then | |
15325 | # Linking always hardcodes the temporary library directory. | |
15326 | hardcode_action_F77=relink | |
15327 | else | |
15328 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15329 | hardcode_action_F77=immediate | |
15330 | fi | |
15331 | else | |
15332 | # We cannot hardcode anything, or else we can only hardcode existing | |
15333 | # directories. | |
15334 | hardcode_action_F77=unsupported | |
15335 | fi | |
15336 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15337 | echo "${ECHO_T}$hardcode_action_F77" >&6 | |
15338 | ||
15339 | if test "$hardcode_action_F77" = relink; then | |
15340 | # Fast installation is not supported | |
15341 | enable_fast_install=no | |
15342 | elif test "$shlibpath_overrides_runpath" = yes || | |
15343 | test "$enable_shared" = no; then | |
15344 | # Fast installation is not necessary | |
15345 | enable_fast_install=needless | |
15346 | fi | |
15347 | ||
15348 | ||
15349 | # The else clause should only fire when bootstrapping the | |
15350 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15351 | # with your package, and you will get complaints that there are | |
15352 | # no rules to generate ltmain.sh. | |
15353 | if test -f "$ltmain"; then | |
15354 | # See if we are running on zsh, and set the options which allow our commands through | |
15355 | # without removal of \ escapes. | |
15356 | if test -n "${ZSH_VERSION+set}" ; then | |
15357 | setopt NO_GLOB_SUBST | |
15358 | fi | |
15359 | # Now quote all the things that may contain metacharacters while being | |
15360 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15361 | # variables and quote the copies for generation of the libtool script. | |
15362 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15363 | SED SHELL STRIP \ | |
15364 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15365 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15366 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
15367 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15368 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15369 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15370 | old_postinstall_cmds old_postuninstall_cmds \ | |
15371 | compiler_F77 \ | |
15372 | CC_F77 \ | |
15373 | LD_F77 \ | |
15374 | lt_prog_compiler_wl_F77 \ | |
15375 | lt_prog_compiler_pic_F77 \ | |
15376 | lt_prog_compiler_static_F77 \ | |
15377 | lt_prog_compiler_no_builtin_flag_F77 \ | |
15378 | export_dynamic_flag_spec_F77 \ | |
15379 | thread_safe_flag_spec_F77 \ | |
15380 | whole_archive_flag_spec_F77 \ | |
15381 | enable_shared_with_static_runtimes_F77 \ | |
15382 | old_archive_cmds_F77 \ | |
15383 | old_archive_from_new_cmds_F77 \ | |
15384 | predep_objects_F77 \ | |
15385 | postdep_objects_F77 \ | |
15386 | predeps_F77 \ | |
15387 | postdeps_F77 \ | |
15388 | compiler_lib_search_path_F77 \ | |
15389 | archive_cmds_F77 \ | |
15390 | archive_expsym_cmds_F77 \ | |
15391 | postinstall_cmds_F77 \ | |
15392 | postuninstall_cmds_F77 \ | |
15393 | old_archive_from_expsyms_cmds_F77 \ | |
15394 | allow_undefined_flag_F77 \ | |
15395 | no_undefined_flag_F77 \ | |
15396 | export_symbols_cmds_F77 \ | |
15397 | hardcode_libdir_flag_spec_F77 \ | |
15398 | hardcode_libdir_flag_spec_ld_F77 \ | |
15399 | hardcode_libdir_separator_F77 \ | |
15400 | hardcode_automatic_F77 \ | |
15401 | module_cmds_F77 \ | |
15402 | module_expsym_cmds_F77 \ | |
15403 | lt_cv_prog_compiler_c_o_F77 \ | |
15404 | exclude_expsyms_F77 \ | |
15405 | include_expsyms_F77; do | |
15406 | ||
15407 | case $var in | |
15408 | old_archive_cmds_F77 | \ | |
15409 | old_archive_from_new_cmds_F77 | \ | |
15410 | archive_cmds_F77 | \ | |
15411 | archive_expsym_cmds_F77 | \ | |
15412 | module_cmds_F77 | \ | |
15413 | module_expsym_cmds_F77 | \ | |
15414 | old_archive_from_expsyms_cmds_F77 | \ | |
15415 | export_symbols_cmds_F77 | \ | |
15416 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15417 | postinstall_cmds | postuninstall_cmds | \ | |
15418 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
15419 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15420 | # Double-quote double-evaled strings. | |
15421 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15422 | ;; | |
15423 | *) | |
15424 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15425 | ;; | |
15426 | esac | |
15427 | done | |
15428 | ||
15429 | case $lt_echo in | |
15430 | *'\$0 --fallback-echo"') | |
15431 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15432 | ;; | |
15433 | esac | |
15434 | ||
15435 | cfgfile="$ofile" | |
15436 | ||
15437 | cat <<__EOF__ >> "$cfgfile" | |
15438 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15439 | ||
15440 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15441 | ||
15442 | # Shell to use when invoking shell scripts. | |
15443 | SHELL=$lt_SHELL | |
15444 | ||
15445 | # Whether or not to build shared libraries. | |
15446 | build_libtool_libs=$enable_shared | |
15447 | ||
15448 | # Whether or not to build static libraries. | |
15449 | build_old_libs=$enable_static | |
15450 | ||
15451 | # Whether or not to add -lc for building shared libraries. | |
15452 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15453 | ||
15454 | # Whether or not to disallow shared libs when runtime libs are static | |
15455 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15456 | ||
15457 | # Whether or not to optimize for fast installation. | |
15458 | fast_install=$enable_fast_install | |
15459 | ||
15460 | # The host system. | |
15461 | host_alias=$host_alias | |
15462 | host=$host | |
15463 | host_os=$host_os | |
15464 | ||
15465 | # The build system. | |
15466 | build_alias=$build_alias | |
15467 | build=$build | |
15468 | build_os=$build_os | |
15469 | ||
15470 | # An echo program that does not interpret backslashes. | |
15471 | echo=$lt_echo | |
15472 | ||
15473 | # The archiver. | |
15474 | AR=$lt_AR | |
15475 | AR_FLAGS=$lt_AR_FLAGS | |
15476 | ||
15477 | # A C compiler. | |
15478 | LTCC=$lt_LTCC | |
15479 | ||
15480 | # LTCC compiler flags. | |
15481 | LTCFLAGS=$lt_LTCFLAGS | |
15482 | ||
15483 | # A language-specific compiler. | |
15484 | CC=$lt_compiler_F77 | |
15485 | ||
15486 | # Is the compiler the GNU C compiler? | |
15487 | with_gcc=$GCC_F77 | |
15488 | ||
15489 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
15490 | gcc_ver=\`gcc -dumpversion\` | |
15491 | ||
15492 | # An ERE matcher. | |
15493 | EGREP=$lt_EGREP | |
15494 | ||
15495 | # The linker used to build libraries. | |
15496 | LD=$lt_LD_F77 | |
15497 | ||
15498 | # Whether we need hard or soft links. | |
15499 | LN_S=$lt_LN_S | |
15500 | ||
15501 | # A BSD-compatible nm program. | |
15502 | NM=$lt_NM | |
15503 | ||
15504 | # A symbol stripping program | |
15505 | STRIP=$lt_STRIP | |
15506 | ||
15507 | # Used to examine libraries when file_magic_cmd begins "file" | |
15508 | MAGIC_CMD=$MAGIC_CMD | |
15509 | ||
15510 | # Used on cygwin: DLL creation program. | |
15511 | DLLTOOL="$DLLTOOL" | |
15512 | ||
15513 | # Used on cygwin: object dumper. | |
15514 | OBJDUMP="$OBJDUMP" | |
15515 | ||
15516 | # Used on cygwin: assembler. | |
15517 | AS="$AS" | |
15518 | ||
15519 | # The name of the directory that contains temporary libtool files. | |
15520 | objdir=$objdir | |
15521 | ||
15522 | # How to create reloadable object files. | |
15523 | reload_flag=$lt_reload_flag | |
15524 | reload_cmds=$lt_reload_cmds | |
15525 | ||
15526 | # How to pass a linker flag through the compiler. | |
15527 | wl=$lt_lt_prog_compiler_wl_F77 | |
15528 | ||
15529 | # Object file suffix (normally "o"). | |
15530 | objext="$ac_objext" | |
15531 | ||
15532 | # Old archive suffix (normally "a"). | |
15533 | libext="$libext" | |
15534 | ||
15535 | # Shared library suffix (normally ".so"). | |
15536 | shrext_cmds='$shrext_cmds' | |
15537 | ||
15538 | # Executable file suffix (normally ""). | |
15539 | exeext="$exeext" | |
15540 | ||
15541 | # Additional compiler flags for building library objects. | |
15542 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15543 | pic_mode=$pic_mode | |
15544 | ||
15545 | # What is the maximum length of a command? | |
15546 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
15547 | ||
15548 | # Does compiler simultaneously support -c and -o options? | |
15549 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15550 | ||
15551 | # Must we lock files when doing compilation? | |
15552 | need_locks=$lt_need_locks | |
15553 | ||
15554 | # Do we need the lib prefix for modules? | |
15555 | need_lib_prefix=$need_lib_prefix | |
15556 | ||
15557 | # Do we need a version for libraries? | |
15558 | need_version=$need_version | |
15559 | ||
15560 | # Whether dlopen is supported. | |
15561 | dlopen_support=$enable_dlopen | |
15562 | ||
15563 | # Whether dlopen of programs is supported. | |
15564 | dlopen_self=$enable_dlopen_self | |
15565 | ||
15566 | # Whether dlopen of statically linked programs is supported. | |
15567 | dlopen_self_static=$enable_dlopen_self_static | |
15568 | ||
15569 | # Compiler flag to prevent dynamic linking. | |
15570 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15571 | ||
15572 | # Compiler flag to turn off builtin functions. | |
15573 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15574 | ||
15575 | # Compiler flag to allow reflexive dlopens. | |
15576 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15577 | ||
15578 | # Compiler flag to generate shared objects directly from archives. | |
15579 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15580 | ||
15581 | # Compiler flag to generate thread-safe objects. | |
15582 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15583 | ||
15584 | # Library versioning type. | |
15585 | version_type=$version_type | |
15586 | ||
15587 | # Format of library name prefix. | |
15588 | libname_spec=$lt_libname_spec | |
15589 | ||
15590 | # List of archive names. First name is the real one, the rest are links. | |
15591 | # The last name is the one that the linker finds with -lNAME. | |
15592 | library_names_spec=$lt_library_names_spec | |
15593 | ||
15594 | # The coded name of the library, if different from the real name. | |
15595 | soname_spec=$lt_soname_spec | |
15596 | ||
15597 | # Commands used to build and install an old-style archive. | |
15598 | RANLIB=$lt_RANLIB | |
15599 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
15600 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15601 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15602 | ||
15603 | # Create an old-style archive from a shared archive. | |
15604 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15605 | ||
15606 | # Create a temporary old-style archive to link instead of a shared archive. | |
15607 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15608 | ||
15609 | # Commands used to build and install a shared archive. | |
15610 | archive_cmds=$lt_archive_cmds_F77 | |
15611 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15612 | postinstall_cmds=$lt_postinstall_cmds | |
15613 | postuninstall_cmds=$lt_postuninstall_cmds | |
15614 | ||
15615 | # Commands used to build a loadable module (assumed same as above if empty) | |
15616 | module_cmds=$lt_module_cmds_F77 | |
15617 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15618 | ||
15619 | # Commands to strip libraries. | |
15620 | old_striplib=$lt_old_striplib | |
15621 | striplib=$lt_striplib | |
15622 | ||
15623 | # Dependencies to place before the objects being linked to create a | |
15624 | # shared library. | |
15625 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15626 | ||
15627 | # Dependencies to place after the objects being linked to create a | |
15628 | # shared library. | |
15629 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15630 | ||
15631 | # Dependencies to place before the objects being linked to create a | |
15632 | # shared library. | |
15633 | predeps=$lt_predeps_F77 | |
15634 | ||
15635 | # Dependencies to place after the objects being linked to create a | |
15636 | # shared library. | |
15637 | postdeps=$lt_postdeps_F77 | |
15638 | ||
15639 | # The library search path used internally by the compiler when linking | |
15640 | # a shared library. | |
15641 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15642 | ||
15643 | # Method to check whether dependent libraries are shared objects. | |
15644 | deplibs_check_method=$lt_deplibs_check_method | |
15645 | ||
15646 | # Command to use when deplibs_check_method == file_magic. | |
15647 | file_magic_cmd=$lt_file_magic_cmd | |
15648 | ||
15649 | # Flag that allows shared libraries with undefined symbols to be built. | |
15650 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15651 | ||
15652 | # Flag that forces no undefined symbols. | |
15653 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
15654 | ||
15655 | # Commands used to finish a libtool library installation in a directory. | |
15656 | finish_cmds=$lt_finish_cmds | |
15657 | ||
15658 | # Same as above, but a single script fragment to be evaled but not shown. | |
15659 | finish_eval=$lt_finish_eval | |
15660 | ||
15661 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15662 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15663 | ||
15664 | # Transform the output of nm in a proper C declaration | |
15665 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15666 | ||
15667 | # Transform the output of nm in a C name address pair | |
15668 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15669 | ||
15670 | # This is the shared library runtime path variable. | |
15671 | runpath_var=$runpath_var | |
15672 | ||
15673 | # This is the shared library path variable. | |
15674 | shlibpath_var=$shlibpath_var | |
15675 | ||
15676 | # Is shlibpath searched before the hard-coded library search path? | |
15677 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15678 | ||
15679 | # How to hardcode a shared library path into an executable. | |
15680 | hardcode_action=$hardcode_action_F77 | |
15681 | ||
15682 | # Whether we should hardcode library paths into libraries. | |
15683 | hardcode_into_libs=$hardcode_into_libs | |
15684 | ||
15685 | # Flag to hardcode \$libdir into a binary during linking. | |
15686 | # This must work even if \$libdir does not exist. | |
15687 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15688 | ||
15689 | # If ld is used when linking, flag to hardcode \$libdir into | |
15690 | # a binary during linking. This must work even if \$libdir does | |
15691 | # not exist. | |
15692 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15693 | ||
15694 | # Whether we need a single -rpath flag with a separated argument. | |
15695 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15696 | ||
15697 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15698 | # resulting binary. | |
15699 | hardcode_direct=$hardcode_direct_F77 | |
15700 | ||
15701 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15702 | # resulting binary. | |
15703 | hardcode_minus_L=$hardcode_minus_L_F77 | |
15704 | ||
15705 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15706 | # the resulting binary. | |
15707 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15708 | ||
15709 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15710 | # and all subsequent libraries and executables linked against it. | |
15711 | hardcode_automatic=$hardcode_automatic_F77 | |
15712 | ||
15713 | # Variables whose values should be saved in libtool wrapper scripts and | |
15714 | # restored at relink time. | |
15715 | variables_saved_for_relink="$variables_saved_for_relink" | |
15716 | ||
15717 | # Whether libtool must link a program against all its dependency libraries. | |
15718 | link_all_deplibs=$link_all_deplibs_F77 | |
15719 | ||
15720 | # Compile-time system search path for libraries | |
15721 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15722 | ||
15723 | # Run-time system search path for libraries | |
15724 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15725 | ||
15726 | # Fix the shell variable \$srcfile for the compiler. | |
15727 | fix_srcfile_path="$fix_srcfile_path_F77" | |
15728 | ||
15729 | # Set to yes if exported symbols are required. | |
15730 | always_export_symbols=$always_export_symbols_F77 | |
15731 | ||
15732 | # The commands to list exported symbols. | |
15733 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15734 | ||
15735 | # The commands to extract the exported symbol list from a shared archive. | |
15736 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15737 | ||
15738 | # Symbols that should not be listed in the preloaded symbols. | |
15739 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
15740 | ||
15741 | # Symbols that must always be exported. | |
15742 | include_expsyms=$lt_include_expsyms_F77 | |
15743 | ||
15744 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15745 | ||
15746 | __EOF__ | |
15747 | ||
15748 | ||
15749 | else | |
15750 | # If there is no Makefile yet, we rely on a make rule to execute | |
15751 | # `config.status --recheck' to rerun these tests and create the | |
15752 | # libtool script then. | |
15753 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15754 | if test -f "$ltmain_in"; then | |
15755 | test -f Makefile && make "$ltmain" | |
15756 | fi | |
15757 | fi | |
15758 | ||
15759 | ||
15760 | ac_ext=c | |
15761 | ac_cpp='$CPP $CPPFLAGS' | |
15762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15765 | ||
15766 | CC="$lt_save_CC" | |
15767 | ||
15768 | else | |
15769 | tagname="" | |
15770 | fi | |
15771 | ;; | |
15772 | ||
15773 | GCJ) | |
15774 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15775 | ||
15776 | ||
15777 | ||
15778 | # Source file extension for Java test sources. | |
15779 | ac_ext=java | |
15780 | ||
15781 | # Object file extension for compiled Java test sources. | |
15782 | objext=o | |
15783 | objext_GCJ=$objext | |
15784 | ||
15785 | # Code to be used in simple compile tests | |
15786 | lt_simple_compile_test_code="class foo {}\n" | |
15787 | ||
15788 | # Code to be used in simple link tests | |
15789 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
15790 | ||
15791 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15792 | ||
15793 | # If no C compiler was specified, use CC. | |
15794 | LTCC=${LTCC-"$CC"} | |
15795 | ||
15796 | # If no C compiler flags were specified, use CFLAGS. | |
15797 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15798 | ||
15799 | # Allow CC to be a program name with arguments. | |
15800 | compiler=$CC | |
15801 | ||
15802 | ||
15803 | # save warnings/boilerplate of simple test code | |
15804 | ac_outfile=conftest.$ac_objext | |
15805 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15806 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15807 | _lt_compiler_boilerplate=`cat conftest.err` | |
15808 | $rm conftest* | |
15809 | ||
15810 | ac_outfile=conftest.$ac_objext | |
15811 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
15812 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15813 | _lt_linker_boilerplate=`cat conftest.err` | |
15814 | $rm conftest* | |
15815 | ||
15816 | ||
15817 | # Allow CC to be a program name with arguments. | |
15818 | lt_save_CC="$CC" | |
15819 | CC=${GCJ-"gcj"} | |
15820 | compiler=$CC | |
15821 | compiler_GCJ=$CC | |
15822 | for cc_temp in $compiler""; do | |
15823 | case $cc_temp in | |
15824 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15825 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15826 | \-*) ;; | |
15827 | *) break;; | |
15828 | esac | |
15829 | done | |
15830 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15831 | ||
15832 | ||
15833 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15834 | archive_cmds_need_lc_GCJ=no | |
15835 | ||
15836 | old_archive_cmds_GCJ=$old_archive_cmds | |
15837 | ||
15838 | ||
15839 | lt_prog_compiler_no_builtin_flag_GCJ= | |
15840 | ||
15841 | if test "$GCC" = yes; then | |
15842 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15843 | ||
15844 | ||
15845 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15846 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15847 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15849 | else | |
15850 | lt_cv_prog_compiler_rtti_exceptions=no | |
15851 | ac_outfile=conftest.$ac_objext | |
15852 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15853 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15854 | # Insert the option either (1) after the last *FLAGS variable, or | |
15855 | # (2) before a word containing "conftest.", or (3) at the end. | |
15856 | # Note that $ac_compile itself does not contain backslashes and begins | |
15857 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15858 | # The option is referenced via a variable to avoid confusing sed. | |
15859 | lt_compile=`echo "$ac_compile" | $SED \ | |
15860 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15861 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15862 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 15863 | (eval echo "\"\$as_me:15863: $lt_compile\"" >&5) |
bf9f3bac | 15864 | (eval "$lt_compile" 2>conftest.err) |
15865 | ac_status=$? | |
15866 | cat conftest.err >&5 | |
5e9b5d83 | 15867 | echo "$as_me:15867: \$? = $ac_status" >&5 |
bf9f3bac | 15868 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15869 | # The compiler can only warn and ignore the option if not recognized | |
15870 | # So say no if there are warnings other than the usual output. | |
15871 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15872 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15873 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15874 | lt_cv_prog_compiler_rtti_exceptions=yes | |
15875 | fi | |
15876 | fi | |
15877 | $rm conftest* | |
15878 | ||
15879 | fi | |
15880 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15881 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15882 | ||
15883 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15884 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15885 | else | |
15886 | : | |
15887 | fi | |
15888 | ||
15889 | fi | |
15890 | ||
15891 | lt_prog_compiler_wl_GCJ= | |
15892 | lt_prog_compiler_pic_GCJ= | |
15893 | lt_prog_compiler_static_GCJ= | |
15894 | ||
15895 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15896 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15897 | ||
15898 | if test "$GCC" = yes; then | |
15899 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15900 | lt_prog_compiler_static_GCJ='-static' | |
15901 | ||
15902 | case $host_os in | |
15903 | aix*) | |
15904 | # All AIX code is PIC. | |
15905 | if test "$host_cpu" = ia64; then | |
15906 | # AIX 5 now supports IA64 processor | |
15907 | lt_prog_compiler_static_GCJ='-Bstatic' | |
15908 | fi | |
15909 | ;; | |
15910 | ||
15911 | amigaos*) | |
15912 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15913 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15914 | # like `-m68040'. | |
15915 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15916 | ;; | |
15917 | ||
15918 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15919 | # PIC is the default for these OSes. | |
15920 | ;; | |
15921 | ||
15922 | mingw* | pw32* | os2*) | |
15923 | # This hack is so that the source file can tell whether it is being | |
15924 | # built for inclusion in a dll (and should export symbols for example). | |
15925 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15926 | ;; | |
15927 | ||
15928 | darwin* | rhapsody*) | |
15929 | # PIC is the default on this platform | |
15930 | # Common symbols not allowed in MH_DYLIB files | |
15931 | lt_prog_compiler_pic_GCJ='-fno-common' | |
15932 | ;; | |
15933 | ||
15934 | interix3*) | |
15935 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15936 | # Instead, we relocate shared libraries at runtime. | |
15937 | ;; | |
15938 | ||
15939 | msdosdjgpp*) | |
15940 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15941 | # on systems that don't support them. | |
15942 | lt_prog_compiler_can_build_shared_GCJ=no | |
15943 | enable_shared=no | |
15944 | ;; | |
15945 | ||
15946 | sysv4*MP*) | |
15947 | if test -d /usr/nec; then | |
15948 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15949 | fi | |
15950 | ;; | |
15951 | ||
15952 | hpux*) | |
15953 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15954 | # not for PA HP-UX. | |
15955 | case $host_cpu in | |
15956 | hppa*64*|ia64*) | |
15957 | # +Z the default | |
15958 | ;; | |
15959 | *) | |
15960 | lt_prog_compiler_pic_GCJ='-fPIC' | |
15961 | ;; | |
15962 | esac | |
15963 | ;; | |
15964 | ||
15965 | *) | |
15966 | lt_prog_compiler_pic_GCJ='-fPIC' | |
15967 | ;; | |
15968 | esac | |
15969 | else | |
15970 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15971 | case $host_os in | |
15972 | aix*) | |
15973 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15974 | if test "$host_cpu" = ia64; then | |
15975 | # AIX 5 now supports IA64 processor | |
15976 | lt_prog_compiler_static_GCJ='-Bstatic' | |
15977 | else | |
15978 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
15979 | fi | |
15980 | ;; | |
15981 | darwin*) | |
15982 | # PIC is the default on this platform | |
15983 | # Common symbols not allowed in MH_DYLIB files | |
15984 | case $cc_basename in | |
15985 | xlc*) | |
15986 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
15987 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15988 | ;; | |
15989 | esac | |
15990 | ;; | |
15991 | ||
15992 | mingw* | pw32* | os2*) | |
15993 | # This hack is so that the source file can tell whether it is being | |
15994 | # built for inclusion in a dll (and should export symbols for example). | |
15995 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15996 | ;; | |
15997 | ||
15998 | hpux9* | hpux10* | hpux11*) | |
15999 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16000 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16001 | # not for PA HP-UX. | |
16002 | case $host_cpu in | |
16003 | hppa*64*|ia64*) | |
16004 | # +Z the default | |
16005 | ;; | |
16006 | *) | |
16007 | lt_prog_compiler_pic_GCJ='+Z' | |
16008 | ;; | |
16009 | esac | |
16010 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16011 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16012 | ;; | |
16013 | ||
16014 | irix5* | irix6* | nonstopux*) | |
16015 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16016 | # PIC (with -KPIC) is the default. | |
16017 | lt_prog_compiler_static_GCJ='-non_shared' | |
16018 | ;; | |
16019 | ||
16020 | newsos6) | |
16021 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16022 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16023 | ;; | |
16024 | ||
16025 | linux*) | |
16026 | case $cc_basename in | |
16027 | icc* | ecc*) | |
16028 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16029 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16030 | lt_prog_compiler_static_GCJ='-static' | |
16031 | ;; | |
16032 | pgcc* | pgf77* | pgf90* | pgf95*) | |
16033 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
16034 | # which looks to be a dead project) | |
16035 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16036 | lt_prog_compiler_pic_GCJ='-fpic' | |
16037 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16038 | ;; | |
16039 | ccc*) | |
16040 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16041 | # All Alpha code is PIC. | |
16042 | lt_prog_compiler_static_GCJ='-non_shared' | |
16043 | ;; | |
16044 | esac | |
16045 | ;; | |
16046 | ||
16047 | osf3* | osf4* | osf5*) | |
16048 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16049 | # All OSF/1 code is PIC. | |
16050 | lt_prog_compiler_static_GCJ='-non_shared' | |
16051 | ;; | |
16052 | ||
16053 | solaris*) | |
16054 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16055 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16056 | case $cc_basename in | |
16057 | f77* | f90* | f95*) | |
16058 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16059 | *) | |
16060 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
16061 | esac | |
16062 | ;; | |
16063 | ||
16064 | sunos4*) | |
16065 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16066 | lt_prog_compiler_pic_GCJ='-PIC' | |
16067 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16068 | ;; | |
16069 | ||
16070 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
16071 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16072 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16073 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16074 | ;; | |
16075 | ||
16076 | sysv4*MP*) | |
16077 | if test -d /usr/nec ;then | |
16078 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16079 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16080 | fi | |
16081 | ;; | |
16082 | ||
16083 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16084 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16085 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16086 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16087 | ;; | |
16088 | ||
16089 | unicos*) | |
16090 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16091 | lt_prog_compiler_can_build_shared_GCJ=no | |
16092 | ;; | |
16093 | ||
16094 | uts4*) | |
16095 | lt_prog_compiler_pic_GCJ='-pic' | |
16096 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16097 | ;; | |
16098 | ||
16099 | *) | |
16100 | lt_prog_compiler_can_build_shared_GCJ=no | |
16101 | ;; | |
16102 | esac | |
16103 | fi | |
16104 | ||
16105 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16106 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
16107 | ||
16108 | # | |
16109 | # Check to make sure the PIC flag actually works. | |
16110 | # | |
16111 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16112 | ||
16113 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16114 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
16115 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16117 | else | |
16118 | lt_prog_compiler_pic_works_GCJ=no | |
16119 | ac_outfile=conftest.$ac_objext | |
16120 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16121 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16122 | # Insert the option either (1) after the last *FLAGS variable, or | |
16123 | # (2) before a word containing "conftest.", or (3) at the end. | |
16124 | # Note that $ac_compile itself does not contain backslashes and begins | |
16125 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16126 | # The option is referenced via a variable to avoid confusing sed. | |
16127 | lt_compile=`echo "$ac_compile" | $SED \ | |
16128 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16129 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16130 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 16131 | (eval echo "\"\$as_me:16131: $lt_compile\"" >&5) |
bf9f3bac | 16132 | (eval "$lt_compile" 2>conftest.err) |
16133 | ac_status=$? | |
16134 | cat conftest.err >&5 | |
5e9b5d83 | 16135 | echo "$as_me:16135: \$? = $ac_status" >&5 |
bf9f3bac | 16136 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16137 | # The compiler can only warn and ignore the option if not recognized | |
16138 | # So say no if there are warnings other than the usual output. | |
16139 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16140 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16141 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16142 | lt_prog_compiler_pic_works_GCJ=yes | |
16143 | fi | |
16144 | fi | |
16145 | $rm conftest* | |
16146 | ||
16147 | fi | |
16148 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16149 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
16150 | ||
16151 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16152 | case $lt_prog_compiler_pic_GCJ in | |
16153 | "" | " "*) ;; | |
16154 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16155 | esac | |
16156 | else | |
16157 | lt_prog_compiler_pic_GCJ= | |
16158 | lt_prog_compiler_can_build_shared_GCJ=no | |
16159 | fi | |
16160 | ||
16161 | fi | |
16162 | case $host_os in | |
16163 | # For platforms which do not support PIC, -DPIC is meaningless: | |
16164 | *djgpp*) | |
16165 | lt_prog_compiler_pic_GCJ= | |
16166 | ;; | |
16167 | *) | |
16168 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16169 | ;; | |
16170 | esac | |
16171 | ||
16172 | # | |
16173 | # Check to make sure the static flag actually works. | |
16174 | # | |
16175 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16176 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16177 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
16178 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16180 | else | |
16181 | lt_prog_compiler_static_works_GCJ=no | |
16182 | save_LDFLAGS="$LDFLAGS" | |
16183 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16184 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16185 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16186 | # The linker can only warn and ignore the option if not recognized | |
16187 | # So say no if there are warnings | |
16188 | if test -s conftest.err; then | |
16189 | # Append any errors to the config.log. | |
16190 | cat conftest.err 1>&5 | |
16191 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16192 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16193 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16194 | lt_prog_compiler_static_works_GCJ=yes | |
16195 | fi | |
16196 | else | |
16197 | lt_prog_compiler_static_works_GCJ=yes | |
16198 | fi | |
16199 | fi | |
16200 | $rm conftest* | |
16201 | LDFLAGS="$save_LDFLAGS" | |
16202 | ||
16203 | fi | |
16204 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16205 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | |
16206 | ||
16207 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16208 | : | |
16209 | else | |
16210 | lt_prog_compiler_static_GCJ= | |
16211 | fi | |
16212 | ||
16213 | ||
16214 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16215 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
16216 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16218 | else | |
16219 | lt_cv_prog_compiler_c_o_GCJ=no | |
16220 | $rm -r conftest 2>/dev/null | |
16221 | mkdir conftest | |
16222 | cd conftest | |
16223 | mkdir out | |
16224 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16225 | ||
16226 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16227 | # Insert the option either (1) after the last *FLAGS variable, or | |
16228 | # (2) before a word containing "conftest.", or (3) at the end. | |
16229 | # Note that $ac_compile itself does not contain backslashes and begins | |
16230 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16231 | lt_compile=`echo "$ac_compile" | $SED \ | |
16232 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16233 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16234 | -e 's:$: $lt_compiler_flag:'` | |
5e9b5d83 | 16235 | (eval echo "\"\$as_me:16235: $lt_compile\"" >&5) |
bf9f3bac | 16236 | (eval "$lt_compile" 2>out/conftest.err) |
16237 | ac_status=$? | |
16238 | cat out/conftest.err >&5 | |
5e9b5d83 | 16239 | echo "$as_me:16239: \$? = $ac_status" >&5 |
bf9f3bac | 16240 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16241 | then | |
16242 | # The compiler can only warn and ignore the option if not recognized | |
16243 | # So say no if there are warnings | |
16244 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16245 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16246 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16247 | lt_cv_prog_compiler_c_o_GCJ=yes | |
16248 | fi | |
16249 | fi | |
16250 | chmod u+w . 2>&5 | |
16251 | $rm conftest* | |
16252 | # SGI C++ compiler will create directory out/ii_files/ for | |
16253 | # template instantiation | |
16254 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16255 | $rm out/* && rmdir out | |
16256 | cd .. | |
16257 | rmdir conftest | |
16258 | $rm conftest* | |
16259 | ||
16260 | fi | |
16261 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16262 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
16263 | ||
16264 | ||
16265 | hard_links="nottested" | |
16266 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16267 | # do not overwrite the value of need_locks provided by the user | |
16268 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16269 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
16270 | hard_links=yes | |
16271 | $rm conftest* | |
16272 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16273 | touch conftest.a | |
16274 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16275 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16276 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16277 | echo "${ECHO_T}$hard_links" >&6 | |
16278 | if test "$hard_links" = no; then | |
16279 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16280 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16281 | need_locks=warn | |
16282 | fi | |
16283 | else | |
16284 | need_locks=no | |
16285 | fi | |
16286 | ||
16287 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16288 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
16289 | ||
16290 | runpath_var= | |
16291 | allow_undefined_flag_GCJ= | |
16292 | enable_shared_with_static_runtimes_GCJ=no | |
16293 | archive_cmds_GCJ= | |
16294 | archive_expsym_cmds_GCJ= | |
16295 | old_archive_From_new_cmds_GCJ= | |
16296 | old_archive_from_expsyms_cmds_GCJ= | |
16297 | export_dynamic_flag_spec_GCJ= | |
16298 | whole_archive_flag_spec_GCJ= | |
16299 | thread_safe_flag_spec_GCJ= | |
16300 | hardcode_libdir_flag_spec_GCJ= | |
16301 | hardcode_libdir_flag_spec_ld_GCJ= | |
16302 | hardcode_libdir_separator_GCJ= | |
16303 | hardcode_direct_GCJ=no | |
16304 | hardcode_minus_L_GCJ=no | |
16305 | hardcode_shlibpath_var_GCJ=unsupported | |
16306 | link_all_deplibs_GCJ=unknown | |
16307 | hardcode_automatic_GCJ=no | |
16308 | module_cmds_GCJ= | |
16309 | module_expsym_cmds_GCJ= | |
16310 | always_export_symbols_GCJ=no | |
16311 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16312 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16313 | # included in the symbol list | |
16314 | include_expsyms_GCJ= | |
16315 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
16316 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16317 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16318 | # as well as any symbol that contains `d'. | |
16319 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16320 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16321 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16322 | # the symbol is explicitly referenced. Since portable code cannot | |
16323 | # rely on this symbol name, it's probably fine to never include it in | |
16324 | # preloaded symbol tables. | |
16325 | extract_expsyms_cmds= | |
16326 | # Just being paranoid about ensuring that cc_basename is set. | |
16327 | for cc_temp in $compiler""; do | |
16328 | case $cc_temp in | |
16329 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16330 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16331 | \-*) ;; | |
16332 | *) break;; | |
16333 | esac | |
16334 | done | |
16335 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16336 | ||
16337 | case $host_os in | |
16338 | cygwin* | mingw* | pw32*) | |
16339 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16340 | # When not using gcc, we currently assume that we are using | |
16341 | # Microsoft Visual C++. | |
16342 | if test "$GCC" != yes; then | |
16343 | with_gnu_ld=no | |
16344 | fi | |
16345 | ;; | |
16346 | interix*) | |
16347 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16348 | with_gnu_ld=yes | |
16349 | ;; | |
16350 | openbsd*) | |
16351 | with_gnu_ld=no | |
16352 | ;; | |
16353 | esac | |
16354 | ||
16355 | ld_shlibs_GCJ=yes | |
16356 | if test "$with_gnu_ld" = yes; then | |
16357 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16358 | wlarc='${wl}' | |
16359 | ||
16360 | # Set some defaults for GNU ld with shared library support. These | |
16361 | # are reset later if shared libraries are not supported. Putting them | |
16362 | # here allows them to be overridden if necessary. | |
16363 | runpath_var=LD_RUN_PATH | |
16364 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16365 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16366 | # ancient GNU ld didn't support --whole-archive et. al. | |
16367 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16368 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16369 | else | |
16370 | whole_archive_flag_spec_GCJ= | |
16371 | fi | |
16372 | supports_anon_versioning=no | |
16373 | case `$LD -v 2>/dev/null` in | |
16374 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16375 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16376 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16377 | *\ 2.11.*) ;; # other 2.11 versions | |
16378 | *) supports_anon_versioning=yes ;; | |
16379 | esac | |
16380 | ||
16381 | # See if GNU ld supports shared libraries. | |
16382 | case $host_os in | |
16383 | aix3* | aix4* | aix5*) | |
16384 | # On AIX/PPC, the GNU linker is very broken | |
16385 | if test "$host_cpu" != ia64; then | |
16386 | ld_shlibs_GCJ=no | |
16387 | cat <<EOF 1>&2 | |
16388 | ||
16389 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16390 | *** to be unable to reliably create shared libraries on AIX. | |
16391 | *** Therefore, libtool is disabling shared libraries support. If you | |
16392 | *** really care for shared libraries, you may want to modify your PATH | |
16393 | *** so that a non-GNU linker is found, and then restart. | |
16394 | ||
16395 | EOF | |
16396 | fi | |
16397 | ;; | |
16398 | ||
16399 | amigaos*) | |
16400 | archive_cmds_GCJ='$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)' | |
16401 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16402 | hardcode_minus_L_GCJ=yes | |
16403 | ||
16404 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16405 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16406 | # to version 4, is to share data among multiple programs linked | |
16407 | # with the same dynamic library. Since this doesn't match the | |
16408 | # behavior of shared libraries on other platforms, we can't use | |
16409 | # them. | |
16410 | ld_shlibs_GCJ=no | |
16411 | ;; | |
16412 | ||
16413 | beos*) | |
16414 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16415 | allow_undefined_flag_GCJ=unsupported | |
16416 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16417 | # support --undefined. This deserves some investigation. FIXME | |
16418 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16419 | else | |
16420 | ld_shlibs_GCJ=no | |
16421 | fi | |
16422 | ;; | |
16423 | ||
16424 | cygwin* | mingw* | pw32*) | |
16425 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16426 | # as there is no search path for DLLs. | |
16427 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16428 | allow_undefined_flag_GCJ=unsupported | |
16429 | always_export_symbols_GCJ=no | |
16430 | enable_shared_with_static_runtimes_GCJ=yes | |
16431 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16432 | ||
16433 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16434 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16435 | # If the export-symbols file already is a .def file (1st line | |
16436 | # is EXPORTS), use it as is; otherwise, prepend... | |
16437 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16438 | cp $export_symbols $output_objdir/$soname.def; | |
16439 | else | |
16440 | echo EXPORTS > $output_objdir/$soname.def; | |
16441 | cat $export_symbols >> $output_objdir/$soname.def; | |
16442 | fi~ | |
16443 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16444 | else | |
16445 | ld_shlibs_GCJ=no | |
16446 | fi | |
16447 | ;; | |
16448 | ||
16449 | interix3*) | |
16450 | hardcode_direct_GCJ=no | |
16451 | hardcode_shlibpath_var_GCJ=no | |
16452 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16453 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16454 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16455 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16456 | # default) and relocated if they conflict, which is a slow very memory | |
16457 | # consuming and fragmenting process. To avoid this, we pick a random, | |
16458 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16459 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16460 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16461 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16462 | ;; | |
16463 | ||
16464 | linux*) | |
16465 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16466 | tmp_addflag= | |
16467 | case $cc_basename,$host_cpu in | |
16468 | pgcc*) # Portland Group C compiler | |
16469 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16470 | tmp_addflag=' $pic_flag' | |
16471 | ;; | |
16472 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16473 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16474 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
16475 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16476 | tmp_addflag=' -i_dynamic' ;; | |
16477 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16478 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16479 | ifc* | ifort*) # Intel Fortran compiler | |
16480 | tmp_addflag=' -nofor_main' ;; | |
16481 | esac | |
16482 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16483 | ||
16484 | if test $supports_anon_versioning = yes; then | |
16485 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16486 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16487 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16488 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16489 | fi | |
16490 | else | |
16491 | ld_shlibs_GCJ=no | |
16492 | fi | |
16493 | ;; | |
16494 | ||
16495 | netbsd*) | |
16496 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16497 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16498 | wlarc= | |
16499 | else | |
16500 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16501 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16502 | fi | |
16503 | ;; | |
16504 | ||
16505 | solaris*) | |
16506 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16507 | ld_shlibs_GCJ=no | |
16508 | cat <<EOF 1>&2 | |
16509 | ||
16510 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16511 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16512 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16513 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16514 | *** your PATH or compiler configuration so that the native linker is | |
16515 | *** used, and then restart. | |
16516 | ||
16517 | EOF | |
16518 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16519 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16520 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16521 | else | |
16522 | ld_shlibs_GCJ=no | |
16523 | fi | |
16524 | ;; | |
16525 | ||
16526 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16527 | case `$LD -v 2>&1` in | |
16528 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16529 | ld_shlibs_GCJ=no | |
16530 | cat <<_LT_EOF 1>&2 | |
16531 | ||
16532 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16533 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16534 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16535 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16536 | *** your PATH or compiler configuration so that the native linker is | |
16537 | *** used, and then restart. | |
16538 | ||
16539 | _LT_EOF | |
16540 | ;; | |
16541 | *) | |
16542 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16543 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16544 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16545 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16546 | else | |
16547 | ld_shlibs_GCJ=no | |
16548 | fi | |
16549 | ;; | |
16550 | esac | |
16551 | ;; | |
16552 | ||
16553 | sunos4*) | |
16554 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16555 | wlarc= | |
16556 | hardcode_direct_GCJ=yes | |
16557 | hardcode_shlibpath_var_GCJ=no | |
16558 | ;; | |
16559 | ||
16560 | *) | |
16561 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16562 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16563 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16564 | else | |
16565 | ld_shlibs_GCJ=no | |
16566 | fi | |
16567 | ;; | |
16568 | esac | |
16569 | ||
16570 | if test "$ld_shlibs_GCJ" = no; then | |
16571 | runpath_var= | |
16572 | hardcode_libdir_flag_spec_GCJ= | |
16573 | export_dynamic_flag_spec_GCJ= | |
16574 | whole_archive_flag_spec_GCJ= | |
16575 | fi | |
16576 | else | |
16577 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16578 | case $host_os in | |
16579 | aix3*) | |
16580 | allow_undefined_flag_GCJ=unsupported | |
16581 | always_export_symbols_GCJ=yes | |
16582 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16583 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16584 | # are no directories specified by -L. | |
16585 | hardcode_minus_L_GCJ=yes | |
16586 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16587 | # Neither direct hardcoding nor static linking is supported with a | |
16588 | # broken collect2. | |
16589 | hardcode_direct_GCJ=unsupported | |
16590 | fi | |
16591 | ;; | |
16592 | ||
16593 | aix4* | aix5*) | |
16594 | if test "$host_cpu" = ia64; then | |
16595 | # On IA64, the linker does run time linking by default, so we don't | |
16596 | # have to do anything special. | |
16597 | aix_use_runtimelinking=no | |
16598 | exp_sym_flag='-Bexport' | |
16599 | no_entry_flag="" | |
16600 | else | |
16601 | # If we're using GNU nm, then we don't want the "-C" option. | |
16602 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16603 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16604 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16605 | else | |
16606 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16607 | fi | |
16608 | aix_use_runtimelinking=no | |
16609 | ||
16610 | # Test if we are trying to use run time linking or normal | |
16611 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16612 | # need to do runtime linking. | |
16613 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16614 | for ld_flag in $LDFLAGS; do | |
16615 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16616 | aix_use_runtimelinking=yes | |
16617 | break | |
16618 | fi | |
16619 | done | |
16620 | ;; | |
16621 | esac | |
16622 | ||
16623 | exp_sym_flag='-bexport' | |
16624 | no_entry_flag='-bnoentry' | |
16625 | fi | |
16626 | ||
16627 | # When large executables or shared objects are built, AIX ld can | |
16628 | # have problems creating the table of contents. If linking a library | |
16629 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16630 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16631 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16632 | ||
16633 | archive_cmds_GCJ='' | |
16634 | hardcode_direct_GCJ=yes | |
16635 | hardcode_libdir_separator_GCJ=':' | |
16636 | link_all_deplibs_GCJ=yes | |
16637 | ||
16638 | if test "$GCC" = yes; then | |
16639 | case $host_os in aix4.[012]|aix4.[012].*) | |
16640 | # We only want to do this on AIX 4.2 and lower, the check | |
16641 | # below for broken collect2 doesn't work under 4.3+ | |
16642 | collect2name=`${CC} -print-prog-name=collect2` | |
16643 | if test -f "$collect2name" && \ | |
16644 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16645 | then | |
16646 | # We have reworked collect2 | |
16647 | hardcode_direct_GCJ=yes | |
16648 | else | |
16649 | # We have old collect2 | |
16650 | hardcode_direct_GCJ=unsupported | |
16651 | # It fails to find uninstalled libraries when the uninstalled | |
16652 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16653 | # to unsupported forces relinking | |
16654 | hardcode_minus_L_GCJ=yes | |
16655 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16656 | hardcode_libdir_separator_GCJ= | |
16657 | fi | |
16658 | ;; | |
16659 | esac | |
16660 | shared_flag='-shared' | |
16661 | if test "$aix_use_runtimelinking" = yes; then | |
16662 | shared_flag="$shared_flag "'${wl}-G' | |
16663 | fi | |
16664 | else | |
16665 | # not using gcc | |
16666 | if test "$host_cpu" = ia64; then | |
16667 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16668 | # chokes on -Wl,-G. The following line is correct: | |
16669 | shared_flag='-G' | |
16670 | else | |
16671 | if test "$aix_use_runtimelinking" = yes; then | |
16672 | shared_flag='${wl}-G' | |
16673 | else | |
16674 | shared_flag='${wl}-bM:SRE' | |
16675 | fi | |
16676 | fi | |
16677 | fi | |
16678 | ||
16679 | # It seems that -bexpall does not export symbols beginning with | |
16680 | # underscore (_), so it is better to generate a list of symbols to export. | |
16681 | always_export_symbols_GCJ=yes | |
16682 | if test "$aix_use_runtimelinking" = yes; then | |
16683 | # Warning - without using the other runtime loading flags (-brtl), | |
16684 | # -berok will link without error, but may produce a broken library. | |
16685 | allow_undefined_flag_GCJ='-berok' | |
16686 | # Determine the default libpath from the value encoded in an empty executable. | |
16687 | cat >conftest.$ac_ext <<_ACEOF | |
16688 | /* confdefs.h. */ | |
16689 | _ACEOF | |
16690 | cat confdefs.h >>conftest.$ac_ext | |
16691 | cat >>conftest.$ac_ext <<_ACEOF | |
16692 | /* end confdefs.h. */ | |
16693 | ||
16694 | int | |
16695 | main () | |
16696 | { | |
16697 | ||
16698 | ; | |
16699 | return 0; | |
16700 | } | |
16701 | _ACEOF | |
16702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16704 | (eval $ac_link) 2>conftest.er1 | |
16705 | ac_status=$? | |
16706 | grep -v '^ *+' conftest.er1 >conftest.err | |
16707 | rm -f conftest.er1 | |
16708 | cat conftest.err >&5 | |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 | (exit $ac_status); } && | |
16711 | { ac_try='test -z "$ac_c_werror_flag" | |
16712 | || test ! -s conftest.err' | |
16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16714 | (eval $ac_try) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); }; } && | |
16718 | { ac_try='test -s conftest$ac_exeext' | |
16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16720 | (eval $ac_try) 2>&5 | |
16721 | ac_status=$? | |
16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16723 | (exit $ac_status); }; }; then | |
16724 | ||
16725 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16726 | }'` | |
16727 | # Check for a 64-bit object if we didn't find anything. | |
16728 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16729 | }'`; fi | |
16730 | else | |
16731 | echo "$as_me: failed program was:" >&5 | |
16732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16733 | ||
16734 | fi | |
16735 | rm -f conftest.err conftest.$ac_objext \ | |
16736 | conftest$ac_exeext conftest.$ac_ext | |
16737 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16738 | ||
16739 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16740 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16741 | else | |
16742 | if test "$host_cpu" = ia64; then | |
16743 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16744 | allow_undefined_flag_GCJ="-z nodefs" | |
16745 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
16746 | else | |
16747 | # Determine the default libpath from the value encoded in an empty executable. | |
16748 | cat >conftest.$ac_ext <<_ACEOF | |
16749 | /* confdefs.h. */ | |
16750 | _ACEOF | |
16751 | cat confdefs.h >>conftest.$ac_ext | |
16752 | cat >>conftest.$ac_ext <<_ACEOF | |
16753 | /* end confdefs.h. */ | |
16754 | ||
16755 | int | |
16756 | main () | |
16757 | { | |
16758 | ||
16759 | ; | |
16760 | return 0; | |
16761 | } | |
16762 | _ACEOF | |
16763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16765 | (eval $ac_link) 2>conftest.er1 | |
16766 | ac_status=$? | |
16767 | grep -v '^ *+' conftest.er1 >conftest.err | |
16768 | rm -f conftest.er1 | |
16769 | cat conftest.err >&5 | |
16770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16771 | (exit $ac_status); } && | |
16772 | { ac_try='test -z "$ac_c_werror_flag" | |
16773 | || test ! -s conftest.err' | |
16774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16775 | (eval $ac_try) 2>&5 | |
16776 | ac_status=$? | |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16778 | (exit $ac_status); }; } && | |
16779 | { ac_try='test -s conftest$ac_exeext' | |
16780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16781 | (eval $ac_try) 2>&5 | |
16782 | ac_status=$? | |
16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16784 | (exit $ac_status); }; }; then | |
16785 | ||
16786 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16787 | }'` | |
16788 | # Check for a 64-bit object if we didn't find anything. | |
16789 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16790 | }'`; fi | |
16791 | else | |
16792 | echo "$as_me: failed program was:" >&5 | |
16793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16794 | ||
16795 | fi | |
16796 | rm -f conftest.err conftest.$ac_objext \ | |
16797 | conftest$ac_exeext conftest.$ac_ext | |
16798 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16799 | ||
16800 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16801 | # Warning - without using the other run time loading flags, | |
16802 | # -berok will link without error, but may produce a broken library. | |
16803 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16804 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
16805 | # Exported symbols can be pulled into shared objects from archives | |
16806 | whole_archive_flag_spec_GCJ='$convenience' | |
16807 | archive_cmds_need_lc_GCJ=yes | |
16808 | # This is similar to how AIX traditionally builds its shared libraries. | |
16809 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16810 | fi | |
16811 | fi | |
16812 | ;; | |
16813 | ||
16814 | amigaos*) | |
16815 | archive_cmds_GCJ='$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)' | |
16816 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16817 | hardcode_minus_L_GCJ=yes | |
16818 | # see comment about different semantics on the GNU ld section | |
16819 | ld_shlibs_GCJ=no | |
16820 | ;; | |
16821 | ||
16822 | bsdi[45]*) | |
16823 | export_dynamic_flag_spec_GCJ=-rdynamic | |
16824 | ;; | |
16825 | ||
16826 | cygwin* | mingw* | pw32*) | |
16827 | # When not using gcc, we currently assume that we are using | |
16828 | # Microsoft Visual C++. | |
16829 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16830 | # no search path for DLLs. | |
16831 | hardcode_libdir_flag_spec_GCJ=' ' | |
16832 | allow_undefined_flag_GCJ=unsupported | |
16833 | # Tell ltmain to make .lib files, not .a files. | |
16834 | libext=lib | |
16835 | # Tell ltmain to make .dll files, not .so files. | |
16836 | shrext_cmds=".dll" | |
16837 | # FIXME: Setting linknames here is a bad hack. | |
16838 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16839 | # The linker will automatically build a .lib file if we build a DLL. | |
16840 | old_archive_From_new_cmds_GCJ='true' | |
16841 | # FIXME: Should let the user specify the lib program. | |
16842 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16843 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
16844 | enable_shared_with_static_runtimes_GCJ=yes | |
16845 | ;; | |
16846 | ||
16847 | darwin* | rhapsody*) | |
16848 | case $host_os in | |
16849 | rhapsody* | darwin1.[012]) | |
16850 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
16851 | ;; | |
16852 | *) # Darwin 1.3 on | |
16853 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16854 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16855 | else | |
16856 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16857 | 10.[012]) | |
16858 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16859 | ;; | |
16860 | 10.*) | |
16861 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
16862 | ;; | |
16863 | esac | |
16864 | fi | |
16865 | ;; | |
16866 | esac | |
16867 | archive_cmds_need_lc_GCJ=no | |
16868 | hardcode_direct_GCJ=no | |
16869 | hardcode_automatic_GCJ=yes | |
16870 | hardcode_shlibpath_var_GCJ=unsupported | |
16871 | whole_archive_flag_spec_GCJ='' | |
16872 | link_all_deplibs_GCJ=yes | |
16873 | if test "$GCC" = yes ; then | |
16874 | output_verbose_link_cmd='echo' | |
16875 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16876 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16877 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16878 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16879 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16880 | else | |
16881 | case $cc_basename in | |
16882 | xlc*) | |
16883 | output_verbose_link_cmd='echo' | |
16884 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
16885 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16886 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16887 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16888 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16889 | ;; | |
16890 | *) | |
16891 | ld_shlibs_GCJ=no | |
16892 | ;; | |
16893 | esac | |
16894 | fi | |
16895 | ;; | |
16896 | ||
16897 | dgux*) | |
16898 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16899 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16900 | hardcode_shlibpath_var_GCJ=no | |
16901 | ;; | |
16902 | ||
16903 | freebsd1*) | |
16904 | ld_shlibs_GCJ=no | |
16905 | ;; | |
16906 | ||
16907 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16908 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16909 | # does not break anything, and helps significantly (at the cost of a little | |
16910 | # extra space). | |
16911 | freebsd2.2*) | |
16912 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16913 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16914 | hardcode_direct_GCJ=yes | |
16915 | hardcode_shlibpath_var_GCJ=no | |
16916 | ;; | |
16917 | ||
16918 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16919 | freebsd2*) | |
16920 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16921 | hardcode_direct_GCJ=yes | |
16922 | hardcode_minus_L_GCJ=yes | |
16923 | hardcode_shlibpath_var_GCJ=no | |
16924 | ;; | |
16925 | ||
16926 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16927 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
16928 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16929 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16930 | hardcode_direct_GCJ=yes | |
16931 | hardcode_shlibpath_var_GCJ=no | |
16932 | ;; | |
16933 | ||
16934 | hpux9*) | |
16935 | if test "$GCC" = yes; then | |
16936 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16937 | else | |
16938 | archive_cmds_GCJ='$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' | |
16939 | fi | |
16940 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16941 | hardcode_libdir_separator_GCJ=: | |
16942 | hardcode_direct_GCJ=yes | |
16943 | ||
16944 | # hardcode_minus_L: Not really in the search PATH, | |
16945 | # but as the default location of the library. | |
16946 | hardcode_minus_L_GCJ=yes | |
16947 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16948 | ;; | |
16949 | ||
16950 | hpux10*) | |
16951 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16952 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16953 | else | |
16954 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16955 | fi | |
16956 | if test "$with_gnu_ld" = no; then | |
16957 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16958 | hardcode_libdir_separator_GCJ=: | |
16959 | ||
16960 | hardcode_direct_GCJ=yes | |
16961 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16962 | ||
16963 | # hardcode_minus_L: Not really in the search PATH, | |
16964 | # but as the default location of the library. | |
16965 | hardcode_minus_L_GCJ=yes | |
16966 | fi | |
16967 | ;; | |
16968 | ||
16969 | hpux11*) | |
16970 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16971 | case $host_cpu in | |
16972 | hppa*64*) | |
16973 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16974 | ;; | |
16975 | ia64*) | |
16976 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16977 | ;; | |
16978 | *) | |
16979 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16980 | ;; | |
16981 | esac | |
16982 | else | |
16983 | case $host_cpu in | |
16984 | hppa*64*) | |
16985 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16986 | ;; | |
16987 | ia64*) | |
16988 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16989 | ;; | |
16990 | *) | |
16991 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16992 | ;; | |
16993 | esac | |
16994 | fi | |
16995 | if test "$with_gnu_ld" = no; then | |
16996 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16997 | hardcode_libdir_separator_GCJ=: | |
16998 | ||
16999 | case $host_cpu in | |
17000 | hppa*64*|ia64*) | |
17001 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
17002 | hardcode_direct_GCJ=no | |
17003 | hardcode_shlibpath_var_GCJ=no | |
17004 | ;; | |
17005 | *) | |
17006 | hardcode_direct_GCJ=yes | |
17007 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17008 | ||
17009 | # hardcode_minus_L: Not really in the search PATH, | |
17010 | # but as the default location of the library. | |
17011 | hardcode_minus_L_GCJ=yes | |
17012 | ;; | |
17013 | esac | |
17014 | fi | |
17015 | ;; | |
17016 | ||
17017 | irix5* | irix6* | nonstopux*) | |
17018 | if test "$GCC" = yes; then | |
17019 | archive_cmds_GCJ='$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' | |
17020 | else | |
17021 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17022 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17023 | fi | |
17024 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17025 | hardcode_libdir_separator_GCJ=: | |
17026 | link_all_deplibs_GCJ=yes | |
17027 | ;; | |
17028 | ||
17029 | netbsd*) | |
17030 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17031 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17032 | else | |
17033 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17034 | fi | |
17035 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17036 | hardcode_direct_GCJ=yes | |
17037 | hardcode_shlibpath_var_GCJ=no | |
17038 | ;; | |
17039 | ||
17040 | newsos6) | |
17041 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17042 | hardcode_direct_GCJ=yes | |
17043 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17044 | hardcode_libdir_separator_GCJ=: | |
17045 | hardcode_shlibpath_var_GCJ=no | |
17046 | ;; | |
17047 | ||
17048 | openbsd*) | |
17049 | hardcode_direct_GCJ=yes | |
17050 | hardcode_shlibpath_var_GCJ=no | |
17051 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17052 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17053 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17054 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17055 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17056 | else | |
17057 | case $host_os in | |
17058 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17059 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17060 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17061 | ;; | |
17062 | *) | |
17063 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17064 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17065 | ;; | |
17066 | esac | |
17067 | fi | |
17068 | ;; | |
17069 | ||
17070 | os2*) | |
17071 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17072 | hardcode_minus_L_GCJ=yes | |
17073 | allow_undefined_flag_GCJ=unsupported | |
17074 | archive_cmds_GCJ='$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' | |
17075 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17076 | ;; | |
17077 | ||
17078 | osf3*) | |
17079 | if test "$GCC" = yes; then | |
17080 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17081 | archive_cmds_GCJ='$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' | |
17082 | else | |
17083 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17084 | archive_cmds_GCJ='$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' | |
17085 | fi | |
17086 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17087 | hardcode_libdir_separator_GCJ=: | |
17088 | ;; | |
17089 | ||
17090 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17091 | if test "$GCC" = yes; then | |
17092 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17093 | archive_cmds_GCJ='$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' | |
17094 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17095 | else | |
17096 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17097 | archive_cmds_GCJ='$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' | |
17098 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
17099 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
17100 | ||
17101 | # Both c and cxx compiler support -rpath directly | |
17102 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17103 | fi | |
17104 | hardcode_libdir_separator_GCJ=: | |
17105 | ;; | |
17106 | ||
17107 | solaris*) | |
17108 | no_undefined_flag_GCJ=' -z text' | |
17109 | if test "$GCC" = yes; then | |
17110 | wlarc='${wl}' | |
17111 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17112 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17113 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17114 | else | |
17115 | wlarc='' | |
17116 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17117 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17118 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17119 | fi | |
17120 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17121 | hardcode_shlibpath_var_GCJ=no | |
17122 | case $host_os in | |
17123 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17124 | *) | |
17125 | # The compiler driver will combine linker options so we | |
17126 | # cannot just pass the convience library names through | |
17127 | # without $wl, iff we do not link with $LD. | |
17128 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17129 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17130 | case $wlarc in | |
17131 | '') | |
17132 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17133 | *) | |
17134 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17135 | esac ;; | |
17136 | esac | |
17137 | link_all_deplibs_GCJ=yes | |
17138 | ;; | |
17139 | ||
17140 | sunos4*) | |
17141 | if test "x$host_vendor" = xsequent; then | |
17142 | # Use $CC to link under sequent, because it throws in some extra .o | |
17143 | # files that make .init and .fini sections work. | |
17144 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17145 | else | |
17146 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17147 | fi | |
17148 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17149 | hardcode_direct_GCJ=yes | |
17150 | hardcode_minus_L_GCJ=yes | |
17151 | hardcode_shlibpath_var_GCJ=no | |
17152 | ;; | |
17153 | ||
17154 | sysv4) | |
17155 | case $host_vendor in | |
17156 | sni) | |
17157 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17158 | hardcode_direct_GCJ=yes # is this really true??? | |
17159 | ;; | |
17160 | siemens) | |
17161 | ## LD is ld it makes a PLAMLIB | |
17162 | ## CC just makes a GrossModule. | |
17163 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17164 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17165 | hardcode_direct_GCJ=no | |
17166 | ;; | |
17167 | motorola) | |
17168 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17169 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17170 | ;; | |
17171 | esac | |
17172 | runpath_var='LD_RUN_PATH' | |
17173 | hardcode_shlibpath_var_GCJ=no | |
17174 | ;; | |
17175 | ||
17176 | sysv4.3*) | |
17177 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17178 | hardcode_shlibpath_var_GCJ=no | |
17179 | export_dynamic_flag_spec_GCJ='-Bexport' | |
17180 | ;; | |
17181 | ||
17182 | sysv4*MP*) | |
17183 | if test -d /usr/nec; then | |
17184 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17185 | hardcode_shlibpath_var_GCJ=no | |
17186 | runpath_var=LD_RUN_PATH | |
17187 | hardcode_runpath_var=yes | |
17188 | ld_shlibs_GCJ=yes | |
17189 | fi | |
17190 | ;; | |
17191 | ||
17192 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
17193 | no_undefined_flag_GCJ='${wl}-z,text' | |
17194 | archive_cmds_need_lc_GCJ=no | |
17195 | hardcode_shlibpath_var_GCJ=no | |
17196 | runpath_var='LD_RUN_PATH' | |
17197 | ||
17198 | if test "$GCC" = yes; then | |
17199 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17200 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17201 | else | |
17202 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17203 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17204 | fi | |
17205 | ;; | |
17206 | ||
17207 | sysv5* | sco3.2v5* | sco5v6*) | |
17208 | # Note: We can NOT use -z defs as we might desire, because we do not | |
17209 | # link with -lc, and that would cause any symbols used from libc to | |
17210 | # always be unresolved, which means just about no library would | |
17211 | # ever link correctly. If we're not using GNU ld we use -z text | |
17212 | # though, which does catch some bad symbols but isn't as heavy-handed | |
17213 | # as -z defs. | |
17214 | no_undefined_flag_GCJ='${wl}-z,text' | |
17215 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
17216 | archive_cmds_need_lc_GCJ=no | |
17217 | hardcode_shlibpath_var_GCJ=no | |
17218 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
17219 | hardcode_libdir_separator_GCJ=':' | |
17220 | link_all_deplibs_GCJ=yes | |
17221 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
17222 | runpath_var='LD_RUN_PATH' | |
17223 | ||
17224 | if test "$GCC" = yes; then | |
17225 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17226 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17227 | else | |
17228 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17229 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17230 | fi | |
17231 | ;; | |
17232 | ||
17233 | uts4*) | |
17234 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17235 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17236 | hardcode_shlibpath_var_GCJ=no | |
17237 | ;; | |
17238 | ||
17239 | *) | |
17240 | ld_shlibs_GCJ=no | |
17241 | ;; | |
17242 | esac | |
17243 | fi | |
17244 | ||
17245 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17246 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
17247 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17248 | ||
17249 | # | |
17250 | # Do we need to explicitly link libc? | |
17251 | # | |
17252 | case "x$archive_cmds_need_lc_GCJ" in | |
17253 | x|xyes) | |
17254 | # Assume -lc should be added | |
17255 | archive_cmds_need_lc_GCJ=yes | |
17256 | ||
17257 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17258 | case $archive_cmds_GCJ in | |
17259 | *'~'*) | |
17260 | # FIXME: we may have to deal with multi-command sequences. | |
17261 | ;; | |
17262 | '$CC '*) | |
17263 | # Test whether the compiler implicitly links with -lc since on some | |
17264 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17265 | # to ld, don't add -lc before -lgcc. | |
17266 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17267 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
17268 | $rm conftest* | |
17269 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17270 | ||
17271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17272 | (eval $ac_compile) 2>&5 | |
17273 | ac_status=$? | |
17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17275 | (exit $ac_status); } 2>conftest.err; then | |
17276 | soname=conftest | |
17277 | lib=conftest | |
17278 | libobjs=conftest.$ac_objext | |
17279 | deplibs= | |
17280 | wl=$lt_prog_compiler_wl_GCJ | |
17281 | pic_flag=$lt_prog_compiler_pic_GCJ | |
17282 | compiler_flags=-v | |
17283 | linker_flags=-v | |
17284 | verstring= | |
17285 | output_objdir=. | |
17286 | libname=conftest | |
17287 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17288 | allow_undefined_flag_GCJ= | |
17289 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17290 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17291 | ac_status=$? | |
17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17293 | (exit $ac_status); } | |
17294 | then | |
17295 | archive_cmds_need_lc_GCJ=no | |
17296 | else | |
17297 | archive_cmds_need_lc_GCJ=yes | |
17298 | fi | |
17299 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17300 | else | |
17301 | cat conftest.err 1>&5 | |
17302 | fi | |
17303 | $rm conftest* | |
17304 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17305 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
17306 | ;; | |
17307 | esac | |
17308 | fi | |
17309 | ;; | |
17310 | esac | |
17311 | ||
17312 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17313 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
17314 | library_names_spec= | |
17315 | libname_spec='lib$name' | |
17316 | soname_spec= | |
17317 | shrext_cmds=".so" | |
17318 | postinstall_cmds= | |
17319 | postuninstall_cmds= | |
17320 | finish_cmds= | |
17321 | finish_eval= | |
17322 | shlibpath_var= | |
17323 | shlibpath_overrides_runpath=unknown | |
17324 | version_type=none | |
17325 | dynamic_linker="$host_os ld.so" | |
17326 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17327 | if test "$GCC" = yes; then | |
17328 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17329 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17330 | # if the path contains ";" then we assume it to be the separator | |
17331 | # otherwise default to the standard path separator (i.e. ":") - it is | |
17332 | # assumed that no part of a normal pathname contains ";" but that should | |
17333 | # okay in the real world where ";" in dirpaths is itself problematic. | |
17334 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17335 | else | |
17336 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17337 | fi | |
17338 | else | |
17339 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17340 | fi | |
17341 | need_lib_prefix=unknown | |
17342 | hardcode_into_libs=no | |
17343 | ||
17344 | # when you set need_version to no, make sure it does not cause -set_version | |
17345 | # flags to be left without arguments | |
17346 | need_version=unknown | |
17347 | ||
17348 | case $host_os in | |
17349 | aix3*) | |
17350 | version_type=linux | |
17351 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17352 | shlibpath_var=LIBPATH | |
17353 | ||
17354 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17355 | soname_spec='${libname}${release}${shared_ext}$major' | |
17356 | ;; | |
17357 | ||
17358 | aix4* | aix5*) | |
17359 | version_type=linux | |
17360 | need_lib_prefix=no | |
17361 | need_version=no | |
17362 | hardcode_into_libs=yes | |
17363 | if test "$host_cpu" = ia64; then | |
17364 | # AIX 5 supports IA64 | |
17365 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17366 | shlibpath_var=LD_LIBRARY_PATH | |
17367 | else | |
17368 | # With GCC up to 2.95.x, collect2 would create an import file | |
17369 | # for dependence libraries. The import file would start with | |
17370 | # the line `#! .'. This would cause the generated library to | |
17371 | # depend on `.', always an invalid library. This was fixed in | |
17372 | # development snapshots of GCC prior to 3.0. | |
17373 | case $host_os in | |
17374 | aix4 | aix4.[01] | aix4.[01].*) | |
17375 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17376 | echo ' yes ' | |
17377 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17378 | : | |
17379 | else | |
17380 | can_build_shared=no | |
17381 | fi | |
17382 | ;; | |
17383 | esac | |
17384 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17385 | # soname into executable. Probably we can add versioning support to | |
17386 | # collect2, so additional links can be useful in future. | |
17387 | if test "$aix_use_runtimelinking" = yes; then | |
17388 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17389 | # instead of lib<name>.a to let people know that these are not | |
17390 | # typical AIX shared libraries. | |
17391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17392 | else | |
17393 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17394 | # and later when we are not doing run time linking. | |
17395 | library_names_spec='${libname}${release}.a $libname.a' | |
17396 | soname_spec='${libname}${release}${shared_ext}$major' | |
17397 | fi | |
17398 | shlibpath_var=LIBPATH | |
17399 | fi | |
17400 | ;; | |
17401 | ||
17402 | amigaos*) | |
17403 | library_names_spec='$libname.ixlibrary $libname.a' | |
17404 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17405 | 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' | |
17406 | ;; | |
17407 | ||
17408 | beos*) | |
17409 | library_names_spec='${libname}${shared_ext}' | |
17410 | dynamic_linker="$host_os ld.so" | |
17411 | shlibpath_var=LIBRARY_PATH | |
17412 | ;; | |
17413 | ||
17414 | bsdi[45]*) | |
17415 | version_type=linux | |
17416 | need_version=no | |
17417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17418 | soname_spec='${libname}${release}${shared_ext}$major' | |
17419 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17420 | shlibpath_var=LD_LIBRARY_PATH | |
17421 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17422 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17423 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17424 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17425 | # libtool to hard-code these into programs | |
17426 | ;; | |
17427 | ||
17428 | cygwin* | mingw* | pw32*) | |
17429 | version_type=windows | |
17430 | shrext_cmds=".dll" | |
17431 | need_version=no | |
17432 | need_lib_prefix=no | |
17433 | ||
17434 | case $GCC,$host_os in | |
17435 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
17436 | library_names_spec='$libname.dll.a' | |
17437 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17438 | postinstall_cmds='base_file=`basename \${file}`~ | |
17439 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17440 | dldir=$destdir/`dirname \$dlpath`~ | |
17441 | test -d \$dldir || mkdir -p \$dldir~ | |
17442 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17443 | chmod a+x \$dldir/$dlname' | |
17444 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17445 | dlpath=$dir/\$dldll~ | |
17446 | $rm \$dlpath' | |
17447 | shlibpath_overrides_runpath=yes | |
17448 | ||
17449 | case $host_os in | |
17450 | cygwin*) | |
17451 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17452 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17453 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17454 | ;; | |
17455 | mingw*) | |
17456 | # MinGW DLLs use traditional 'lib' prefix | |
17457 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17458 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17459 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17460 | # It is most probably a Windows format PATH printed by | |
17461 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17462 | # path with ; separators, and with drive letters. We can handle the | |
17463 | # drive letters (cygwin fileutils understands them), so leave them, | |
17464 | # especially as we might pass files found there to a mingw objdump, | |
17465 | # which wouldn't understand a cygwinified path. Ahh. | |
17466 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17467 | else | |
17468 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17469 | fi | |
17470 | ;; | |
17471 | pw32*) | |
17472 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17473 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17474 | ;; | |
17475 | esac | |
17476 | ;; | |
17477 | ||
17478 | *) | |
17479 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17480 | ;; | |
17481 | esac | |
17482 | dynamic_linker='Win32 ld.exe' | |
17483 | # FIXME: first we should search . and the directory the executable is in | |
17484 | shlibpath_var=PATH | |
17485 | ;; | |
17486 | ||
17487 | darwin* | rhapsody*) | |
17488 | dynamic_linker="$host_os dyld" | |
17489 | version_type=darwin | |
17490 | need_lib_prefix=no | |
17491 | need_version=no | |
17492 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17493 | soname_spec='${libname}${release}${major}$shared_ext' | |
17494 | shlibpath_overrides_runpath=yes | |
17495 | shlibpath_var=DYLD_LIBRARY_PATH | |
17496 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17497 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17498 | if test "$GCC" = yes; then | |
17499 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
17500 | else | |
17501 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17502 | fi | |
17503 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17504 | ;; | |
17505 | ||
17506 | dgux*) | |
17507 | version_type=linux | |
17508 | need_lib_prefix=no | |
17509 | need_version=no | |
17510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17511 | soname_spec='${libname}${release}${shared_ext}$major' | |
17512 | shlibpath_var=LD_LIBRARY_PATH | |
17513 | ;; | |
17514 | ||
17515 | freebsd1*) | |
17516 | dynamic_linker=no | |
17517 | ;; | |
17518 | ||
17519 | kfreebsd*-gnu) | |
17520 | version_type=linux | |
17521 | need_lib_prefix=no | |
17522 | need_version=no | |
17523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17524 | soname_spec='${libname}${release}${shared_ext}$major' | |
17525 | shlibpath_var=LD_LIBRARY_PATH | |
17526 | shlibpath_overrides_runpath=no | |
17527 | hardcode_into_libs=yes | |
17528 | dynamic_linker='GNU ld.so' | |
17529 | ;; | |
17530 | ||
17531 | freebsd* | dragonfly*) | |
17532 | # DragonFly does not have aout. When/if they implement a new | |
17533 | # versioning mechanism, adjust this. | |
17534 | if test -x /usr/bin/objformat; then | |
17535 | objformat=`/usr/bin/objformat` | |
17536 | else | |
17537 | case $host_os in | |
17538 | freebsd[123]*) objformat=aout ;; | |
17539 | *) objformat=elf ;; | |
17540 | esac | |
17541 | fi | |
17542 | version_type=freebsd-$objformat | |
17543 | case $version_type in | |
17544 | freebsd-elf*) | |
17545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17546 | need_version=no | |
17547 | need_lib_prefix=no | |
17548 | ;; | |
17549 | freebsd-*) | |
17550 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17551 | need_version=yes | |
17552 | ;; | |
17553 | esac | |
17554 | shlibpath_var=LD_LIBRARY_PATH | |
17555 | case $host_os in | |
17556 | freebsd2*) | |
17557 | shlibpath_overrides_runpath=yes | |
17558 | ;; | |
17559 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17560 | shlibpath_overrides_runpath=yes | |
17561 | hardcode_into_libs=yes | |
17562 | ;; | |
17563 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17564 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17565 | shlibpath_overrides_runpath=no | |
17566 | hardcode_into_libs=yes | |
17567 | ;; | |
17568 | freebsd*) # from 4.6 on | |
17569 | shlibpath_overrides_runpath=yes | |
17570 | hardcode_into_libs=yes | |
17571 | ;; | |
17572 | esac | |
17573 | ;; | |
17574 | ||
17575 | gnu*) | |
17576 | version_type=linux | |
17577 | need_lib_prefix=no | |
17578 | need_version=no | |
17579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17580 | soname_spec='${libname}${release}${shared_ext}$major' | |
17581 | shlibpath_var=LD_LIBRARY_PATH | |
17582 | hardcode_into_libs=yes | |
17583 | ;; | |
17584 | ||
17585 | hpux9* | hpux10* | hpux11*) | |
17586 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17587 | # link against other versions. | |
17588 | version_type=sunos | |
17589 | need_lib_prefix=no | |
17590 | need_version=no | |
17591 | case $host_cpu in | |
17592 | ia64*) | |
17593 | shrext_cmds='.so' | |
17594 | hardcode_into_libs=yes | |
17595 | dynamic_linker="$host_os dld.so" | |
17596 | shlibpath_var=LD_LIBRARY_PATH | |
17597 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17599 | soname_spec='${libname}${release}${shared_ext}$major' | |
17600 | if test "X$HPUX_IA64_MODE" = X32; then | |
17601 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17602 | else | |
17603 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17604 | fi | |
17605 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17606 | ;; | |
17607 | hppa*64*) | |
17608 | shrext_cmds='.sl' | |
17609 | hardcode_into_libs=yes | |
17610 | dynamic_linker="$host_os dld.sl" | |
17611 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17612 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17614 | soname_spec='${libname}${release}${shared_ext}$major' | |
17615 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17616 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17617 | ;; | |
17618 | *) | |
17619 | shrext_cmds='.sl' | |
17620 | dynamic_linker="$host_os dld.sl" | |
17621 | shlibpath_var=SHLIB_PATH | |
17622 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17624 | soname_spec='${libname}${release}${shared_ext}$major' | |
17625 | ;; | |
17626 | esac | |
17627 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17628 | postinstall_cmds='chmod 555 $lib' | |
17629 | ;; | |
17630 | ||
17631 | interix3*) | |
17632 | version_type=linux | |
17633 | need_lib_prefix=no | |
17634 | need_version=no | |
17635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17636 | soname_spec='${libname}${release}${shared_ext}$major' | |
17637 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17638 | shlibpath_var=LD_LIBRARY_PATH | |
17639 | shlibpath_overrides_runpath=no | |
17640 | hardcode_into_libs=yes | |
17641 | ;; | |
17642 | ||
17643 | irix5* | irix6* | nonstopux*) | |
17644 | case $host_os in | |
17645 | nonstopux*) version_type=nonstopux ;; | |
17646 | *) | |
17647 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17648 | version_type=linux | |
17649 | else | |
17650 | version_type=irix | |
17651 | fi ;; | |
17652 | esac | |
17653 | need_lib_prefix=no | |
17654 | need_version=no | |
17655 | soname_spec='${libname}${release}${shared_ext}$major' | |
17656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17657 | case $host_os in | |
17658 | irix5* | nonstopux*) | |
17659 | libsuff= shlibsuff= | |
17660 | ;; | |
17661 | *) | |
17662 | case $LD in # libtool.m4 will add one of these switches to LD | |
17663 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17664 | libsuff= shlibsuff= libmagic=32-bit;; | |
17665 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17666 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17667 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17668 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17669 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17670 | esac | |
17671 | ;; | |
17672 | esac | |
17673 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17674 | shlibpath_overrides_runpath=no | |
17675 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17676 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17677 | hardcode_into_libs=yes | |
17678 | ;; | |
17679 | ||
17680 | # No shared lib support for Linux oldld, aout, or coff. | |
17681 | linux*oldld* | linux*aout* | linux*coff*) | |
17682 | dynamic_linker=no | |
17683 | ;; | |
17684 | ||
17685 | # This must be Linux ELF. | |
17686 | linux*) | |
17687 | version_type=linux | |
17688 | need_lib_prefix=no | |
17689 | need_version=no | |
17690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17691 | soname_spec='${libname}${release}${shared_ext}$major' | |
17692 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17693 | shlibpath_var=LD_LIBRARY_PATH | |
17694 | shlibpath_overrides_runpath=no | |
17695 | # This implies no fast_install, which is unacceptable. | |
17696 | # Some rework will be needed to allow for fast_install | |
17697 | # before this can be enabled. | |
17698 | hardcode_into_libs=yes | |
17699 | ||
17700 | # find out which ABI we are using | |
17701 | libsuff= | |
17702 | case "$host_cpu" in | |
17703 | x86_64*|s390x*|powerpc64*) | |
5e9b5d83 | 17704 | echo '#line 17704 "configure"' > conftest.$ac_ext |
bf9f3bac | 17705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17706 | (eval $ac_compile) 2>&5 | |
17707 | ac_status=$? | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17709 | (exit $ac_status); }; then | |
17710 | case `/usr/bin/file conftest.$ac_objext` in | |
17711 | *64-bit*) | |
17712 | libsuff=64 | |
17713 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
17714 | ;; | |
17715 | esac | |
17716 | fi | |
17717 | rm -rf conftest* | |
17718 | ;; | |
17719 | esac | |
17720 | ||
17721 | # Append ld.so.conf contents to the search path | |
17722 | if test -f /etc/ld.so.conf; then | |
17723 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17724 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
17725 | fi | |
17726 | ||
17727 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17728 | # powerpc, because MkLinux only supported shared libraries with the | |
17729 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17730 | # most powerpc-linux boxes support dynamic linking these days and | |
17731 | # people can always --disable-shared, the test was removed, and we | |
17732 | # assume the GNU/Linux dynamic linker is in use. | |
17733 | dynamic_linker='GNU/Linux ld.so' | |
17734 | ;; | |
17735 | ||
17736 | knetbsd*-gnu) | |
17737 | version_type=linux | |
17738 | need_lib_prefix=no | |
17739 | need_version=no | |
17740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17741 | soname_spec='${libname}${release}${shared_ext}$major' | |
17742 | shlibpath_var=LD_LIBRARY_PATH | |
17743 | shlibpath_overrides_runpath=no | |
17744 | hardcode_into_libs=yes | |
17745 | dynamic_linker='GNU ld.so' | |
17746 | ;; | |
17747 | ||
17748 | netbsd*) | |
17749 | version_type=sunos | |
17750 | need_lib_prefix=no | |
17751 | need_version=no | |
17752 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17754 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17755 | dynamic_linker='NetBSD (a.out) ld.so' | |
17756 | else | |
17757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17758 | soname_spec='${libname}${release}${shared_ext}$major' | |
17759 | dynamic_linker='NetBSD ld.elf_so' | |
17760 | fi | |
17761 | shlibpath_var=LD_LIBRARY_PATH | |
17762 | shlibpath_overrides_runpath=yes | |
17763 | hardcode_into_libs=yes | |
17764 | ;; | |
17765 | ||
17766 | newsos6) | |
17767 | version_type=linux | |
17768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17769 | shlibpath_var=LD_LIBRARY_PATH | |
17770 | shlibpath_overrides_runpath=yes | |
17771 | ;; | |
17772 | ||
17773 | nto-qnx*) | |
17774 | version_type=linux | |
17775 | need_lib_prefix=no | |
17776 | need_version=no | |
17777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17778 | soname_spec='${libname}${release}${shared_ext}$major' | |
17779 | shlibpath_var=LD_LIBRARY_PATH | |
17780 | shlibpath_overrides_runpath=yes | |
17781 | ;; | |
17782 | ||
17783 | openbsd*) | |
17784 | version_type=sunos | |
17785 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17786 | need_lib_prefix=no | |
17787 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17788 | case $host_os in | |
17789 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17790 | *) need_version=no ;; | |
17791 | esac | |
17792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17793 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17794 | shlibpath_var=LD_LIBRARY_PATH | |
17795 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17796 | case $host_os in | |
17797 | openbsd2.[89] | openbsd2.[89].*) | |
17798 | shlibpath_overrides_runpath=no | |
17799 | ;; | |
17800 | *) | |
17801 | shlibpath_overrides_runpath=yes | |
17802 | ;; | |
17803 | esac | |
17804 | else | |
17805 | shlibpath_overrides_runpath=yes | |
17806 | fi | |
17807 | ;; | |
17808 | ||
17809 | os2*) | |
17810 | libname_spec='$name' | |
17811 | shrext_cmds=".dll" | |
17812 | need_lib_prefix=no | |
17813 | library_names_spec='$libname${shared_ext} $libname.a' | |
17814 | dynamic_linker='OS/2 ld.exe' | |
17815 | shlibpath_var=LIBPATH | |
17816 | ;; | |
17817 | ||
17818 | osf3* | osf4* | osf5*) | |
17819 | version_type=osf | |
17820 | need_lib_prefix=no | |
17821 | need_version=no | |
17822 | soname_spec='${libname}${release}${shared_ext}$major' | |
17823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17824 | shlibpath_var=LD_LIBRARY_PATH | |
17825 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17826 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17827 | ;; | |
17828 | ||
17829 | solaris*) | |
17830 | version_type=linux | |
17831 | need_lib_prefix=no | |
17832 | need_version=no | |
17833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17834 | soname_spec='${libname}${release}${shared_ext}$major' | |
17835 | shlibpath_var=LD_LIBRARY_PATH | |
17836 | shlibpath_overrides_runpath=yes | |
17837 | hardcode_into_libs=yes | |
17838 | # ldd complains unless libraries are executable | |
17839 | postinstall_cmds='chmod +x $lib' | |
17840 | ;; | |
17841 | ||
17842 | sunos4*) | |
17843 | version_type=sunos | |
17844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17845 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17846 | shlibpath_var=LD_LIBRARY_PATH | |
17847 | shlibpath_overrides_runpath=yes | |
17848 | if test "$with_gnu_ld" = yes; then | |
17849 | need_lib_prefix=no | |
17850 | fi | |
17851 | need_version=yes | |
17852 | ;; | |
17853 | ||
17854 | sysv4 | sysv4.3*) | |
17855 | version_type=linux | |
17856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17857 | soname_spec='${libname}${release}${shared_ext}$major' | |
17858 | shlibpath_var=LD_LIBRARY_PATH | |
17859 | case $host_vendor in | |
17860 | sni) | |
17861 | shlibpath_overrides_runpath=no | |
17862 | need_lib_prefix=no | |
17863 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17864 | runpath_var=LD_RUN_PATH | |
17865 | ;; | |
17866 | siemens) | |
17867 | need_lib_prefix=no | |
17868 | ;; | |
17869 | motorola) | |
17870 | need_lib_prefix=no | |
17871 | need_version=no | |
17872 | shlibpath_overrides_runpath=no | |
17873 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17874 | ;; | |
17875 | esac | |
17876 | ;; | |
17877 | ||
17878 | sysv4*MP*) | |
17879 | if test -d /usr/nec ;then | |
17880 | version_type=linux | |
17881 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17882 | soname_spec='$libname${shared_ext}.$major' | |
17883 | shlibpath_var=LD_LIBRARY_PATH | |
17884 | fi | |
17885 | ;; | |
17886 | ||
17887 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17888 | version_type=freebsd-elf | |
17889 | need_lib_prefix=no | |
17890 | need_version=no | |
17891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17892 | soname_spec='${libname}${release}${shared_ext}$major' | |
17893 | shlibpath_var=LD_LIBRARY_PATH | |
17894 | hardcode_into_libs=yes | |
17895 | if test "$with_gnu_ld" = yes; then | |
17896 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17897 | shlibpath_overrides_runpath=no | |
17898 | else | |
17899 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17900 | shlibpath_overrides_runpath=yes | |
17901 | case $host_os in | |
17902 | sco3.2v5*) | |
17903 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17904 | ;; | |
17905 | esac | |
17906 | fi | |
17907 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17908 | ;; | |
17909 | ||
17910 | uts4*) | |
17911 | version_type=linux | |
17912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17913 | soname_spec='${libname}${release}${shared_ext}$major' | |
17914 | shlibpath_var=LD_LIBRARY_PATH | |
17915 | ;; | |
17916 | ||
17917 | *) | |
17918 | dynamic_linker=no | |
17919 | ;; | |
17920 | esac | |
17921 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17922 | echo "${ECHO_T}$dynamic_linker" >&6 | |
17923 | test "$dynamic_linker" = no && can_build_shared=no | |
17924 | ||
17925 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
17926 | if test "$GCC" = yes; then | |
17927 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17928 | fi | |
17929 | ||
17930 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17931 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17932 | hardcode_action_GCJ= | |
17933 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17934 | test -n "$runpath_var_GCJ" || \ | |
17935 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
17936 | ||
17937 | # We can hardcode non-existant directories. | |
17938 | if test "$hardcode_direct_GCJ" != no && | |
17939 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17940 | # have to relink, otherwise we might link with an installed library | |
17941 | # when we should be linking with a yet-to-be-installed one | |
17942 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17943 | test "$hardcode_minus_L_GCJ" != no; then | |
17944 | # Linking always hardcodes the temporary library directory. | |
17945 | hardcode_action_GCJ=relink | |
17946 | else | |
17947 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17948 | hardcode_action_GCJ=immediate | |
17949 | fi | |
17950 | else | |
17951 | # We cannot hardcode anything, or else we can only hardcode existing | |
17952 | # directories. | |
17953 | hardcode_action_GCJ=unsupported | |
17954 | fi | |
17955 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17956 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17957 | ||
17958 | if test "$hardcode_action_GCJ" = relink; then | |
17959 | # Fast installation is not supported | |
17960 | enable_fast_install=no | |
17961 | elif test "$shlibpath_overrides_runpath" = yes || | |
17962 | test "$enable_shared" = no; then | |
17963 | # Fast installation is not necessary | |
17964 | enable_fast_install=needless | |
17965 | fi | |
17966 | ||
17967 | ||
17968 | # The else clause should only fire when bootstrapping the | |
17969 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17970 | # with your package, and you will get complaints that there are | |
17971 | # no rules to generate ltmain.sh. | |
17972 | if test -f "$ltmain"; then | |
17973 | # See if we are running on zsh, and set the options which allow our commands through | |
17974 | # without removal of \ escapes. | |
17975 | if test -n "${ZSH_VERSION+set}" ; then | |
17976 | setopt NO_GLOB_SUBST | |
17977 | fi | |
17978 | # Now quote all the things that may contain metacharacters while being | |
17979 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17980 | # variables and quote the copies for generation of the libtool script. | |
17981 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
17982 | SED SHELL STRIP \ | |
17983 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17984 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17985 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17986 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17987 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17988 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17989 | old_postinstall_cmds old_postuninstall_cmds \ | |
17990 | compiler_GCJ \ | |
17991 | CC_GCJ \ | |
17992 | LD_GCJ \ | |
17993 | lt_prog_compiler_wl_GCJ \ | |
17994 | lt_prog_compiler_pic_GCJ \ | |
17995 | lt_prog_compiler_static_GCJ \ | |
17996 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
17997 | export_dynamic_flag_spec_GCJ \ | |
17998 | thread_safe_flag_spec_GCJ \ | |
17999 | whole_archive_flag_spec_GCJ \ | |
18000 | enable_shared_with_static_runtimes_GCJ \ | |
18001 | old_archive_cmds_GCJ \ | |
18002 | old_archive_from_new_cmds_GCJ \ | |
18003 | predep_objects_GCJ \ | |
18004 | postdep_objects_GCJ \ | |
18005 | predeps_GCJ \ | |
18006 | postdeps_GCJ \ | |
18007 | compiler_lib_search_path_GCJ \ | |
18008 | archive_cmds_GCJ \ | |
18009 | archive_expsym_cmds_GCJ \ | |
18010 | postinstall_cmds_GCJ \ | |
18011 | postuninstall_cmds_GCJ \ | |
18012 | old_archive_from_expsyms_cmds_GCJ \ | |
18013 | allow_undefined_flag_GCJ \ | |
18014 | no_undefined_flag_GCJ \ | |
18015 | export_symbols_cmds_GCJ \ | |
18016 | hardcode_libdir_flag_spec_GCJ \ | |
18017 | hardcode_libdir_flag_spec_ld_GCJ \ | |
18018 | hardcode_libdir_separator_GCJ \ | |
18019 | hardcode_automatic_GCJ \ | |
18020 | module_cmds_GCJ \ | |
18021 | module_expsym_cmds_GCJ \ | |
18022 | lt_cv_prog_compiler_c_o_GCJ \ | |
18023 | exclude_expsyms_GCJ \ | |
18024 | include_expsyms_GCJ; do | |
18025 | ||
18026 | case $var in | |
18027 | old_archive_cmds_GCJ | \ | |
18028 | old_archive_from_new_cmds_GCJ | \ | |
18029 | archive_cmds_GCJ | \ | |
18030 | archive_expsym_cmds_GCJ | \ | |
18031 | module_cmds_GCJ | \ | |
18032 | module_expsym_cmds_GCJ | \ | |
18033 | old_archive_from_expsyms_cmds_GCJ | \ | |
18034 | export_symbols_cmds_GCJ | \ | |
18035 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18036 | postinstall_cmds | postuninstall_cmds | \ | |
18037 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18038 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18039 | # Double-quote double-evaled strings. | |
18040 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18041 | ;; | |
18042 | *) | |
18043 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18044 | ;; | |
18045 | esac | |
18046 | done | |
18047 | ||
18048 | case $lt_echo in | |
18049 | *'\$0 --fallback-echo"') | |
18050 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18051 | ;; | |
18052 | esac | |
18053 | ||
18054 | cfgfile="$ofile" | |
18055 | ||
18056 | cat <<__EOF__ >> "$cfgfile" | |
18057 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18058 | ||
18059 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18060 | ||
18061 | # Shell to use when invoking shell scripts. | |
18062 | SHELL=$lt_SHELL | |
18063 | ||
18064 | # Whether or not to build shared libraries. | |
18065 | build_libtool_libs=$enable_shared | |
18066 | ||
18067 | # Whether or not to build static libraries. | |
18068 | build_old_libs=$enable_static | |
18069 | ||
18070 | # Whether or not to add -lc for building shared libraries. | |
18071 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18072 | ||
18073 | # Whether or not to disallow shared libs when runtime libs are static | |
18074 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18075 | ||
18076 | # Whether or not to optimize for fast installation. | |
18077 | fast_install=$enable_fast_install | |
18078 | ||
18079 | # The host system. | |
18080 | host_alias=$host_alias | |
18081 | host=$host | |
18082 | host_os=$host_os | |
18083 | ||
18084 | # The build system. | |
18085 | build_alias=$build_alias | |
18086 | build=$build | |
18087 | build_os=$build_os | |
18088 | ||
18089 | # An echo program that does not interpret backslashes. | |
18090 | echo=$lt_echo | |
18091 | ||
18092 | # The archiver. | |
18093 | AR=$lt_AR | |
18094 | AR_FLAGS=$lt_AR_FLAGS | |
18095 | ||
18096 | # A C compiler. | |
18097 | LTCC=$lt_LTCC | |
18098 | ||
18099 | # LTCC compiler flags. | |
18100 | LTCFLAGS=$lt_LTCFLAGS | |
18101 | ||
18102 | # A language-specific compiler. | |
18103 | CC=$lt_compiler_GCJ | |
18104 | ||
18105 | # Is the compiler the GNU C compiler? | |
18106 | with_gcc=$GCC_GCJ | |
18107 | ||
18108 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
18109 | gcc_ver=\`gcc -dumpversion\` | |
18110 | ||
18111 | # An ERE matcher. | |
18112 | EGREP=$lt_EGREP | |
18113 | ||
18114 | # The linker used to build libraries. | |
18115 | LD=$lt_LD_GCJ | |
18116 | ||
18117 | # Whether we need hard or soft links. | |
18118 | LN_S=$lt_LN_S | |
18119 | ||
18120 | # A BSD-compatible nm program. | |
18121 | NM=$lt_NM | |
18122 | ||
18123 | # A symbol stripping program | |
18124 | STRIP=$lt_STRIP | |
18125 | ||
18126 | # Used to examine libraries when file_magic_cmd begins "file" | |
18127 | MAGIC_CMD=$MAGIC_CMD | |
18128 | ||
18129 | # Used on cygwin: DLL creation program. | |
18130 | DLLTOOL="$DLLTOOL" | |
18131 | ||
18132 | # Used on cygwin: object dumper. | |
18133 | OBJDUMP="$OBJDUMP" | |
18134 | ||
18135 | # Used on cygwin: assembler. | |
18136 | AS="$AS" | |
18137 | ||
18138 | # The name of the directory that contains temporary libtool files. | |
18139 | objdir=$objdir | |
18140 | ||
18141 | # How to create reloadable object files. | |
18142 | reload_flag=$lt_reload_flag | |
18143 | reload_cmds=$lt_reload_cmds | |
18144 | ||
18145 | # How to pass a linker flag through the compiler. | |
18146 | wl=$lt_lt_prog_compiler_wl_GCJ | |
18147 | ||
18148 | # Object file suffix (normally "o"). | |
18149 | objext="$ac_objext" | |
18150 | ||
18151 | # Old archive suffix (normally "a"). | |
18152 | libext="$libext" | |
18153 | ||
18154 | # Shared library suffix (normally ".so"). | |
18155 | shrext_cmds='$shrext_cmds' | |
18156 | ||
18157 | # Executable file suffix (normally ""). | |
18158 | exeext="$exeext" | |
18159 | ||
18160 | # Additional compiler flags for building library objects. | |
18161 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18162 | pic_mode=$pic_mode | |
18163 | ||
18164 | # What is the maximum length of a command? | |
18165 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18166 | ||
18167 | # Does compiler simultaneously support -c and -o options? | |
18168 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18169 | ||
18170 | # Must we lock files when doing compilation? | |
18171 | need_locks=$lt_need_locks | |
18172 | ||
18173 | # Do we need the lib prefix for modules? | |
18174 | need_lib_prefix=$need_lib_prefix | |
18175 | ||
18176 | # Do we need a version for libraries? | |
18177 | need_version=$need_version | |
18178 | ||
18179 | # Whether dlopen is supported. | |
18180 | dlopen_support=$enable_dlopen | |
18181 | ||
18182 | # Whether dlopen of programs is supported. | |
18183 | dlopen_self=$enable_dlopen_self | |
18184 | ||
18185 | # Whether dlopen of statically linked programs is supported. | |
18186 | dlopen_self_static=$enable_dlopen_self_static | |
18187 | ||
18188 | # Compiler flag to prevent dynamic linking. | |
18189 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18190 | ||
18191 | # Compiler flag to turn off builtin functions. | |
18192 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18193 | ||
18194 | # Compiler flag to allow reflexive dlopens. | |
18195 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18196 | ||
18197 | # Compiler flag to generate shared objects directly from archives. | |
18198 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18199 | ||
18200 | # Compiler flag to generate thread-safe objects. | |
18201 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18202 | ||
18203 | # Library versioning type. | |
18204 | version_type=$version_type | |
18205 | ||
18206 | # Format of library name prefix. | |
18207 | libname_spec=$lt_libname_spec | |
18208 | ||
18209 | # List of archive names. First name is the real one, the rest are links. | |
18210 | # The last name is the one that the linker finds with -lNAME. | |
18211 | library_names_spec=$lt_library_names_spec | |
18212 | ||
18213 | # The coded name of the library, if different from the real name. | |
18214 | soname_spec=$lt_soname_spec | |
18215 | ||
18216 | # Commands used to build and install an old-style archive. | |
18217 | RANLIB=$lt_RANLIB | |
18218 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18219 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18220 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18221 | ||
18222 | # Create an old-style archive from a shared archive. | |
18223 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18224 | ||
18225 | # Create a temporary old-style archive to link instead of a shared archive. | |
18226 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18227 | ||
18228 | # Commands used to build and install a shared archive. | |
18229 | archive_cmds=$lt_archive_cmds_GCJ | |
18230 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18231 | postinstall_cmds=$lt_postinstall_cmds | |
18232 | postuninstall_cmds=$lt_postuninstall_cmds | |
18233 | ||
18234 | # Commands used to build a loadable module (assumed same as above if empty) | |
18235 | module_cmds=$lt_module_cmds_GCJ | |
18236 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18237 | ||
18238 | # Commands to strip libraries. | |
18239 | old_striplib=$lt_old_striplib | |
18240 | striplib=$lt_striplib | |
18241 | ||
18242 | # Dependencies to place before the objects being linked to create a | |
18243 | # shared library. | |
18244 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18245 | ||
18246 | # Dependencies to place after the objects being linked to create a | |
18247 | # shared library. | |
18248 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18249 | ||
18250 | # Dependencies to place before the objects being linked to create a | |
18251 | # shared library. | |
18252 | predeps=$lt_predeps_GCJ | |
18253 | ||
18254 | # Dependencies to place after the objects being linked to create a | |
18255 | # shared library. | |
18256 | postdeps=$lt_postdeps_GCJ | |
18257 | ||
18258 | # The library search path used internally by the compiler when linking | |
18259 | # a shared library. | |
18260 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18261 | ||
18262 | # Method to check whether dependent libraries are shared objects. | |
18263 | deplibs_check_method=$lt_deplibs_check_method | |
18264 | ||
18265 | # Command to use when deplibs_check_method == file_magic. | |
18266 | file_magic_cmd=$lt_file_magic_cmd | |
18267 | ||
18268 | # Flag that allows shared libraries with undefined symbols to be built. | |
18269 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18270 | ||
18271 | # Flag that forces no undefined symbols. | |
18272 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18273 | ||
18274 | # Commands used to finish a libtool library installation in a directory. | |
18275 | finish_cmds=$lt_finish_cmds | |
18276 | ||
18277 | # Same as above, but a single script fragment to be evaled but not shown. | |
18278 | finish_eval=$lt_finish_eval | |
18279 | ||
18280 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18281 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18282 | ||
18283 | # Transform the output of nm in a proper C declaration | |
18284 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18285 | ||
18286 | # Transform the output of nm in a C name address pair | |
18287 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18288 | ||
18289 | # This is the shared library runtime path variable. | |
18290 | runpath_var=$runpath_var | |
18291 | ||
18292 | # This is the shared library path variable. | |
18293 | shlibpath_var=$shlibpath_var | |
18294 | ||
18295 | # Is shlibpath searched before the hard-coded library search path? | |
18296 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18297 | ||
18298 | # How to hardcode a shared library path into an executable. | |
18299 | hardcode_action=$hardcode_action_GCJ | |
18300 | ||
18301 | # Whether we should hardcode library paths into libraries. | |
18302 | hardcode_into_libs=$hardcode_into_libs | |
18303 | ||
18304 | # Flag to hardcode \$libdir into a binary during linking. | |
18305 | # This must work even if \$libdir does not exist. | |
18306 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18307 | ||
18308 | # If ld is used when linking, flag to hardcode \$libdir into | |
18309 | # a binary during linking. This must work even if \$libdir does | |
18310 | # not exist. | |
18311 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18312 | ||
18313 | # Whether we need a single -rpath flag with a separated argument. | |
18314 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18315 | ||
18316 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18317 | # resulting binary. | |
18318 | hardcode_direct=$hardcode_direct_GCJ | |
18319 | ||
18320 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18321 | # resulting binary. | |
18322 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
18323 | ||
18324 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18325 | # the resulting binary. | |
18326 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18327 | ||
18328 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18329 | # and all subsequent libraries and executables linked against it. | |
18330 | hardcode_automatic=$hardcode_automatic_GCJ | |
18331 | ||
18332 | # Variables whose values should be saved in libtool wrapper scripts and | |
18333 | # restored at relink time. | |
18334 | variables_saved_for_relink="$variables_saved_for_relink" | |
18335 | ||
18336 | # Whether libtool must link a program against all its dependency libraries. | |
18337 | link_all_deplibs=$link_all_deplibs_GCJ | |
18338 | ||
18339 | # Compile-time system search path for libraries | |
18340 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18341 | ||
18342 | # Run-time system search path for libraries | |
18343 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18344 | ||
18345 | # Fix the shell variable \$srcfile for the compiler. | |
18346 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18347 | ||
18348 | # Set to yes if exported symbols are required. | |
18349 | always_export_symbols=$always_export_symbols_GCJ | |
18350 | ||
18351 | # The commands to list exported symbols. | |
18352 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18353 | ||
18354 | # The commands to extract the exported symbol list from a shared archive. | |
18355 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18356 | ||
18357 | # Symbols that should not be listed in the preloaded symbols. | |
18358 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18359 | ||
18360 | # Symbols that must always be exported. | |
18361 | include_expsyms=$lt_include_expsyms_GCJ | |
18362 | ||
18363 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18364 | ||
18365 | __EOF__ | |
18366 | ||
18367 | ||
18368 | else | |
18369 | # If there is no Makefile yet, we rely on a make rule to execute | |
18370 | # `config.status --recheck' to rerun these tests and create the | |
18371 | # libtool script then. | |
18372 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18373 | if test -f "$ltmain_in"; then | |
18374 | test -f Makefile && make "$ltmain" | |
18375 | fi | |
18376 | fi | |
18377 | ||
18378 | ||
18379 | ac_ext=c | |
18380 | ac_cpp='$CPP $CPPFLAGS' | |
18381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18384 | ||
18385 | CC="$lt_save_CC" | |
18386 | ||
18387 | else | |
18388 | tagname="" | |
18389 | fi | |
18390 | ;; | |
18391 | ||
18392 | RC) | |
18393 | ||
18394 | ||
18395 | ||
18396 | # Source file extension for RC test sources. | |
18397 | ac_ext=rc | |
18398 | ||
18399 | # Object file extension for compiled RC test sources. | |
18400 | objext=o | |
18401 | objext_RC=$objext | |
18402 | ||
18403 | # Code to be used in simple compile tests | |
18404 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18405 | ||
18406 | # Code to be used in simple link tests | |
18407 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18408 | ||
18409 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18410 | ||
18411 | # If no C compiler was specified, use CC. | |
18412 | LTCC=${LTCC-"$CC"} | |
18413 | ||
18414 | # If no C compiler flags were specified, use CFLAGS. | |
18415 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18416 | ||
18417 | # Allow CC to be a program name with arguments. | |
18418 | compiler=$CC | |
18419 | ||
18420 | ||
18421 | # save warnings/boilerplate of simple test code | |
18422 | ac_outfile=conftest.$ac_objext | |
18423 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18424 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18425 | _lt_compiler_boilerplate=`cat conftest.err` | |
18426 | $rm conftest* | |
18427 | ||
18428 | ac_outfile=conftest.$ac_objext | |
18429 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18430 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18431 | _lt_linker_boilerplate=`cat conftest.err` | |
18432 | $rm conftest* | |
18433 | ||
18434 | ||
18435 | # Allow CC to be a program name with arguments. | |
18436 | lt_save_CC="$CC" | |
18437 | CC=${RC-"windres"} | |
18438 | compiler=$CC | |
18439 | compiler_RC=$CC | |
18440 | for cc_temp in $compiler""; do | |
18441 | case $cc_temp in | |
18442 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18443 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18444 | \-*) ;; | |
18445 | *) break;; | |
18446 | esac | |
18447 | done | |
18448 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18449 | ||
18450 | lt_cv_prog_compiler_c_o_RC=yes | |
18451 | ||
18452 | # The else clause should only fire when bootstrapping the | |
18453 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18454 | # with your package, and you will get complaints that there are | |
18455 | # no rules to generate ltmain.sh. | |
18456 | if test -f "$ltmain"; then | |
18457 | # See if we are running on zsh, and set the options which allow our commands through | |
18458 | # without removal of \ escapes. | |
18459 | if test -n "${ZSH_VERSION+set}" ; then | |
18460 | setopt NO_GLOB_SUBST | |
18461 | fi | |
18462 | # Now quote all the things that may contain metacharacters while being | |
18463 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18464 | # variables and quote the copies for generation of the libtool script. | |
18465 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18466 | SED SHELL STRIP \ | |
18467 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18468 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18469 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18470 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18471 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18472 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18473 | old_postinstall_cmds old_postuninstall_cmds \ | |
18474 | compiler_RC \ | |
18475 | CC_RC \ | |
18476 | LD_RC \ | |
18477 | lt_prog_compiler_wl_RC \ | |
18478 | lt_prog_compiler_pic_RC \ | |
18479 | lt_prog_compiler_static_RC \ | |
18480 | lt_prog_compiler_no_builtin_flag_RC \ | |
18481 | export_dynamic_flag_spec_RC \ | |
18482 | thread_safe_flag_spec_RC \ | |
18483 | whole_archive_flag_spec_RC \ | |
18484 | enable_shared_with_static_runtimes_RC \ | |
18485 | old_archive_cmds_RC \ | |
18486 | old_archive_from_new_cmds_RC \ | |
18487 | predep_objects_RC \ | |
18488 | postdep_objects_RC \ | |
18489 | predeps_RC \ | |
18490 | postdeps_RC \ | |
18491 | compiler_lib_search_path_RC \ | |
18492 | archive_cmds_RC \ | |
18493 | archive_expsym_cmds_RC \ | |
18494 | postinstall_cmds_RC \ | |
18495 | postuninstall_cmds_RC \ | |
18496 | old_archive_from_expsyms_cmds_RC \ | |
18497 | allow_undefined_flag_RC \ | |
18498 | no_undefined_flag_RC \ | |
18499 | export_symbols_cmds_RC \ | |
18500 | hardcode_libdir_flag_spec_RC \ | |
18501 | hardcode_libdir_flag_spec_ld_RC \ | |
18502 | hardcode_libdir_separator_RC \ | |
18503 | hardcode_automatic_RC \ | |
18504 | module_cmds_RC \ | |
18505 | module_expsym_cmds_RC \ | |
18506 | lt_cv_prog_compiler_c_o_RC \ | |
18507 | exclude_expsyms_RC \ | |
18508 | include_expsyms_RC; do | |
18509 | ||
18510 | case $var in | |
18511 | old_archive_cmds_RC | \ | |
18512 | old_archive_from_new_cmds_RC | \ | |
18513 | archive_cmds_RC | \ | |
18514 | archive_expsym_cmds_RC | \ | |
18515 | module_cmds_RC | \ | |
18516 | module_expsym_cmds_RC | \ | |
18517 | old_archive_from_expsyms_cmds_RC | \ | |
18518 | export_symbols_cmds_RC | \ | |
18519 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18520 | postinstall_cmds | postuninstall_cmds | \ | |
18521 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18522 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18523 | # Double-quote double-evaled strings. | |
18524 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18525 | ;; | |
18526 | *) | |
18527 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18528 | ;; | |
18529 | esac | |
18530 | done | |
18531 | ||
18532 | case $lt_echo in | |
18533 | *'\$0 --fallback-echo"') | |
18534 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18535 | ;; | |
18536 | esac | |
18537 | ||
18538 | cfgfile="$ofile" | |
18539 | ||
18540 | cat <<__EOF__ >> "$cfgfile" | |
18541 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18542 | ||
18543 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18544 | ||
18545 | # Shell to use when invoking shell scripts. | |
18546 | SHELL=$lt_SHELL | |
18547 | ||
18548 | # Whether or not to build shared libraries. | |
18549 | build_libtool_libs=$enable_shared | |
18550 | ||
18551 | # Whether or not to build static libraries. | |
18552 | build_old_libs=$enable_static | |
18553 | ||
18554 | # Whether or not to add -lc for building shared libraries. | |
18555 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18556 | ||
18557 | # Whether or not to disallow shared libs when runtime libs are static | |
18558 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18559 | ||
18560 | # Whether or not to optimize for fast installation. | |
18561 | fast_install=$enable_fast_install | |
18562 | ||
18563 | # The host system. | |
18564 | host_alias=$host_alias | |
18565 | host=$host | |
18566 | host_os=$host_os | |
18567 | ||
18568 | # The build system. | |
18569 | build_alias=$build_alias | |
18570 | build=$build | |
18571 | build_os=$build_os | |
18572 | ||
18573 | # An echo program that does not interpret backslashes. | |
18574 | echo=$lt_echo | |
18575 | ||
18576 | # The archiver. | |
18577 | AR=$lt_AR | |
18578 | AR_FLAGS=$lt_AR_FLAGS | |
18579 | ||
18580 | # A C compiler. | |
18581 | LTCC=$lt_LTCC | |
18582 | ||
18583 | # LTCC compiler flags. | |
18584 | LTCFLAGS=$lt_LTCFLAGS | |
18585 | ||
18586 | # A language-specific compiler. | |
18587 | CC=$lt_compiler_RC | |
18588 | ||
18589 | # Is the compiler the GNU C compiler? | |
18590 | with_gcc=$GCC_RC | |
18591 | ||
18592 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
18593 | gcc_ver=\`gcc -dumpversion\` | |
18594 | ||
18595 | # An ERE matcher. | |
18596 | EGREP=$lt_EGREP | |
18597 | ||
18598 | # The linker used to build libraries. | |
18599 | LD=$lt_LD_RC | |
18600 | ||
18601 | # Whether we need hard or soft links. | |
18602 | LN_S=$lt_LN_S | |
18603 | ||
18604 | # A BSD-compatible nm program. | |
18605 | NM=$lt_NM | |
18606 | ||
18607 | # A symbol stripping program | |
18608 | STRIP=$lt_STRIP | |
18609 | ||
18610 | # Used to examine libraries when file_magic_cmd begins "file" | |
18611 | MAGIC_CMD=$MAGIC_CMD | |
18612 | ||
18613 | # Used on cygwin: DLL creation program. | |
18614 | DLLTOOL="$DLLTOOL" | |
18615 | ||
18616 | # Used on cygwin: object dumper. | |
18617 | OBJDUMP="$OBJDUMP" | |
18618 | ||
18619 | # Used on cygwin: assembler. | |
18620 | AS="$AS" | |
18621 | ||
18622 | # The name of the directory that contains temporary libtool files. | |
18623 | objdir=$objdir | |
18624 | ||
18625 | # How to create reloadable object files. | |
18626 | reload_flag=$lt_reload_flag | |
18627 | reload_cmds=$lt_reload_cmds | |
18628 | ||
18629 | # How to pass a linker flag through the compiler. | |
18630 | wl=$lt_lt_prog_compiler_wl_RC | |
18631 | ||
18632 | # Object file suffix (normally "o"). | |
18633 | objext="$ac_objext" | |
18634 | ||
18635 | # Old archive suffix (normally "a"). | |
18636 | libext="$libext" | |
18637 | ||
18638 | # Shared library suffix (normally ".so"). | |
18639 | shrext_cmds='$shrext_cmds' | |
18640 | ||
18641 | # Executable file suffix (normally ""). | |
18642 | exeext="$exeext" | |
18643 | ||
18644 | # Additional compiler flags for building library objects. | |
18645 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
18646 | pic_mode=$pic_mode | |
18647 | ||
18648 | # What is the maximum length of a command? | |
18649 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18650 | ||
18651 | # Does compiler simultaneously support -c and -o options? | |
18652 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18653 | ||
18654 | # Must we lock files when doing compilation? | |
18655 | need_locks=$lt_need_locks | |
18656 | ||
18657 | # Do we need the lib prefix for modules? | |
18658 | need_lib_prefix=$need_lib_prefix | |
18659 | ||
18660 | # Do we need a version for libraries? | |
18661 | need_version=$need_version | |
18662 | ||
18663 | # Whether dlopen is supported. | |
18664 | dlopen_support=$enable_dlopen | |
18665 | ||
18666 | # Whether dlopen of programs is supported. | |
18667 | dlopen_self=$enable_dlopen_self | |
18668 | ||
18669 | # Whether dlopen of statically linked programs is supported. | |
18670 | dlopen_self_static=$enable_dlopen_self_static | |
18671 | ||
18672 | # Compiler flag to prevent dynamic linking. | |
18673 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
18674 | ||
18675 | # Compiler flag to turn off builtin functions. | |
18676 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18677 | ||
18678 | # Compiler flag to allow reflexive dlopens. | |
18679 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18680 | ||
18681 | # Compiler flag to generate shared objects directly from archives. | |
18682 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18683 | ||
18684 | # Compiler flag to generate thread-safe objects. | |
18685 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18686 | ||
18687 | # Library versioning type. | |
18688 | version_type=$version_type | |
18689 | ||
18690 | # Format of library name prefix. | |
18691 | libname_spec=$lt_libname_spec | |
18692 | ||
18693 | # List of archive names. First name is the real one, the rest are links. | |
18694 | # The last name is the one that the linker finds with -lNAME. | |
18695 | library_names_spec=$lt_library_names_spec | |
18696 | ||
18697 | # The coded name of the library, if different from the real name. | |
18698 | soname_spec=$lt_soname_spec | |
18699 | ||
18700 | # Commands used to build and install an old-style archive. | |
18701 | RANLIB=$lt_RANLIB | |
18702 | old_archive_cmds=$lt_old_archive_cmds_RC | |
18703 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18704 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18705 | ||
18706 | # Create an old-style archive from a shared archive. | |
18707 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18708 | ||
18709 | # Create a temporary old-style archive to link instead of a shared archive. | |
18710 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18711 | ||
18712 | # Commands used to build and install a shared archive. | |
18713 | archive_cmds=$lt_archive_cmds_RC | |
18714 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18715 | postinstall_cmds=$lt_postinstall_cmds | |
18716 | postuninstall_cmds=$lt_postuninstall_cmds | |
18717 | ||
18718 | # Commands used to build a loadable module (assumed same as above if empty) | |
18719 | module_cmds=$lt_module_cmds_RC | |
18720 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18721 | ||
18722 | # Commands to strip libraries. | |
18723 | old_striplib=$lt_old_striplib | |
18724 | striplib=$lt_striplib | |
18725 | ||
18726 | # Dependencies to place before the objects being linked to create a | |
18727 | # shared library. | |
18728 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18729 | ||
18730 | # Dependencies to place after the objects being linked to create a | |
18731 | # shared library. | |
18732 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18733 | ||
18734 | # Dependencies to place before the objects being linked to create a | |
18735 | # shared library. | |
18736 | predeps=$lt_predeps_RC | |
18737 | ||
18738 | # Dependencies to place after the objects being linked to create a | |
18739 | # shared library. | |
18740 | postdeps=$lt_postdeps_RC | |
18741 | ||
18742 | # The library search path used internally by the compiler when linking | |
18743 | # a shared library. | |
18744 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18745 | ||
18746 | # Method to check whether dependent libraries are shared objects. | |
18747 | deplibs_check_method=$lt_deplibs_check_method | |
18748 | ||
18749 | # Command to use when deplibs_check_method == file_magic. | |
18750 | file_magic_cmd=$lt_file_magic_cmd | |
18751 | ||
18752 | # Flag that allows shared libraries with undefined symbols to be built. | |
18753 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18754 | ||
18755 | # Flag that forces no undefined symbols. | |
18756 | no_undefined_flag=$lt_no_undefined_flag_RC | |
18757 | ||
18758 | # Commands used to finish a libtool library installation in a directory. | |
18759 | finish_cmds=$lt_finish_cmds | |
18760 | ||
18761 | # Same as above, but a single script fragment to be evaled but not shown. | |
18762 | finish_eval=$lt_finish_eval | |
18763 | ||
18764 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18765 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18766 | ||
18767 | # Transform the output of nm in a proper C declaration | |
18768 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18769 | ||
18770 | # Transform the output of nm in a C name address pair | |
18771 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18772 | ||
18773 | # This is the shared library runtime path variable. | |
18774 | runpath_var=$runpath_var | |
18775 | ||
18776 | # This is the shared library path variable. | |
18777 | shlibpath_var=$shlibpath_var | |
18778 | ||
18779 | # Is shlibpath searched before the hard-coded library search path? | |
18780 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18781 | ||
18782 | # How to hardcode a shared library path into an executable. | |
18783 | hardcode_action=$hardcode_action_RC | |
18784 | ||
18785 | # Whether we should hardcode library paths into libraries. | |
18786 | hardcode_into_libs=$hardcode_into_libs | |
18787 | ||
18788 | # Flag to hardcode \$libdir into a binary during linking. | |
18789 | # This must work even if \$libdir does not exist. | |
18790 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18791 | ||
18792 | # If ld is used when linking, flag to hardcode \$libdir into | |
18793 | # a binary during linking. This must work even if \$libdir does | |
18794 | # not exist. | |
18795 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18796 | ||
18797 | # Whether we need a single -rpath flag with a separated argument. | |
18798 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18799 | ||
18800 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18801 | # resulting binary. | |
18802 | hardcode_direct=$hardcode_direct_RC | |
18803 | ||
18804 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18805 | # resulting binary. | |
18806 | hardcode_minus_L=$hardcode_minus_L_RC | |
18807 | ||
18808 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18809 | # the resulting binary. | |
18810 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18811 | ||
18812 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18813 | # and all subsequent libraries and executables linked against it. | |
18814 | hardcode_automatic=$hardcode_automatic_RC | |
18815 | ||
18816 | # Variables whose values should be saved in libtool wrapper scripts and | |
18817 | # restored at relink time. | |
18818 | variables_saved_for_relink="$variables_saved_for_relink" | |
18819 | ||
18820 | # Whether libtool must link a program against all its dependency libraries. | |
18821 | link_all_deplibs=$link_all_deplibs_RC | |
18822 | ||
18823 | # Compile-time system search path for libraries | |
18824 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18825 | ||
18826 | # Run-time system search path for libraries | |
18827 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18828 | ||
18829 | # Fix the shell variable \$srcfile for the compiler. | |
18830 | fix_srcfile_path="$fix_srcfile_path_RC" | |
18831 | ||
18832 | # Set to yes if exported symbols are required. | |
18833 | always_export_symbols=$always_export_symbols_RC | |
18834 | ||
18835 | # The commands to list exported symbols. | |
18836 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18837 | ||
18838 | # The commands to extract the exported symbol list from a shared archive. | |
18839 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18840 | ||
18841 | # Symbols that should not be listed in the preloaded symbols. | |
18842 | exclude_expsyms=$lt_exclude_expsyms_RC | |
18843 | ||
18844 | # Symbols that must always be exported. | |
18845 | include_expsyms=$lt_include_expsyms_RC | |
18846 | ||
18847 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18848 | ||
18849 | __EOF__ | |
18850 | ||
18851 | ||
18852 | else | |
18853 | # If there is no Makefile yet, we rely on a make rule to execute | |
18854 | # `config.status --recheck' to rerun these tests and create the | |
18855 | # libtool script then. | |
18856 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18857 | if test -f "$ltmain_in"; then | |
18858 | test -f Makefile && make "$ltmain" | |
18859 | fi | |
18860 | fi | |
18861 | ||
18862 | ||
18863 | ac_ext=c | |
18864 | ac_cpp='$CPP $CPPFLAGS' | |
18865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18868 | ||
18869 | CC="$lt_save_CC" | |
18870 | ||
18871 | ;; | |
18872 | ||
18873 | *) | |
18874 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18875 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18876 | { (exit 1); exit 1; }; } | |
18877 | ;; | |
18878 | esac | |
18879 | ||
18880 | # Append the new tag name to the list of available tags. | |
18881 | if test -n "$tagname" ; then | |
18882 | available_tags="$available_tags $tagname" | |
18883 | fi | |
18884 | fi | |
18885 | done | |
18886 | IFS="$lt_save_ifs" | |
18887 | ||
18888 | # Now substitute the updated list of available tags. | |
18889 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
18890 | mv "${ofile}T" "$ofile" | |
18891 | chmod +x "$ofile" | |
18892 | else | |
18893 | rm -f "${ofile}T" | |
18894 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
18895 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
18896 | { (exit 1); exit 1; }; } | |
18897 | fi | |
18898 | fi | |
18899 | ||
18900 | ||
18901 | ||
18902 | # This can be used to rebuild libtool when needed | |
18903 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
18904 | ||
18905 | # Always use our own libtool. | |
18906 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
18907 | ||
18908 | # Prevent multiple expansion | |
18909 | ||
18910 | ||
18911 | ||
18912 | ||
18913 | ||
18914 | ||
18915 | ||
18916 | ||
18917 | ||
18918 | ||
18919 | ||
18920 | ||
18921 | ||
18922 | ||
18923 | ||
18924 | ||
18925 | ||
18926 | ||
18927 | ||
18928 | ||
bf9f3bac | 18929 | |
86933a6e BB |
18930 | |
18931 | echo "$as_me:$LINENO: checking spl license" >&5 | |
18932 | echo $ECHO_N "checking spl license... $ECHO_C" >&6 | |
18933 | LICENSE=GPL | |
18934 | echo "$as_me:$LINENO: result: $LICENSE" >&5 | |
18935 | echo "${ECHO_T}$LICENSE" >&6 | |
18936 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS" | |
18937 | ||
18938 | ||
18939 | ||
18940 | SPL_CONFIG=all | |
18941 | ||
18942 | # Check whether --with-config or --without-config was given. | |
18943 | if test "${with_config+set}" = set; then | |
18944 | withval="$with_config" | |
18945 | SPL_CONFIG="$withval" | |
18946 | fi; | |
18947 | ||
18948 | echo "$as_me:$LINENO: checking spl config" >&5 | |
18949 | echo $ECHO_N "checking spl config... $ECHO_C" >&6 | |
18950 | echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5 | |
18951 | echo "${ECHO_T}$SPL_CONFIG" >&6; | |
18952 | ||
18953 | ||
18954 | case "$SPL_CONFIG" in | |
18955 | kernel) | |
18956 | ||
18957 | ||
18958 | # Check whether --with-linux or --without-linux was given. | |
18959 | if test "${with_linux+set}" = set; then | |
18960 | withval="$with_linux" | |
18961 | kernelsrc="$withval" | |
18962 | fi; | |
18963 | ||
18964 | ||
18965 | # Check whether --with-linux-obj or --without-linux-obj was given. | |
18966 | if test "${with_linux_obj+set}" = set; then | |
18967 | withval="$with_linux_obj" | |
18968 | kernelbuild="$withval" | |
18969 | fi; | |
18970 | ||
18971 | echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
18972 | echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6 | |
18973 | if test -z "$kernelsrc"; then | |
18974 | sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \ | |
18975 | 2>/dev/null | grep -v obj | tail -1` | |
18976 | ||
18977 | if test -e ${sourcelink}; then | |
18978 | kernelsrc=`readlink -f ${sourcelink}` | |
18979 | else | |
18980 | echo "$as_me:$LINENO: result: Not found" >&5 | |
18981 | echo "${ECHO_T}Not found" >&6 | |
18982 | { { echo "$as_me:$LINENO: error: | |
18983 | *** Please specify the location of the kernel source | |
18984 | *** with the '--with-linux=PATH' option" >&5 | |
18985 | echo "$as_me: error: | |
18986 | *** Please specify the location of the kernel source | |
18987 | *** with the '--with-linux=PATH' option" >&2;} | |
18988 | { (exit 1); exit 1; }; } | |
18989 | fi | |
18990 | else | |
18991 | if test "$kernelsrc" = "NONE"; then | |
18992 | kernsrcver=NONE | |
18993 | fi | |
18994 | fi | |
18995 | ||
18996 | echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
18997 | echo "${ECHO_T}$kernelsrc" >&6 | |
18998 | echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
18999 | echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6 | |
19000 | if test -z "$kernelbuild"; then | |
749e5eb1 | 19001 | if test -d ${kernelsrc}-obj/`arch`/`arch`; then |
86933a6e | 19002 | kernelbuild=${kernelsrc}-obj/`arch`/`arch` |
749e5eb1 BB |
19003 | elif test -d ${kernelsrc}-obj/`arch`/default; then |
19004 | kernelbuild=${kernelsrc}-obj/`arch`/default | |
86933a6e BB |
19005 | elif test -d `dirname ${kernelsrc}`/build-`arch`; then |
19006 | kernelbuild=`dirname ${kernelsrc}`/build-`arch` | |
19007 | else | |
19008 | kernelbuild=${kernelsrc} | |
19009 | fi | |
19010 | fi | |
19011 | echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
19012 | echo "${ECHO_T}$kernelbuild" >&6 | |
19013 | ||
19014 | echo "$as_me:$LINENO: checking kernel source version" >&5 | |
19015 | echo $ECHO_N "checking kernel source version... $ECHO_C" >&6 | |
19016 | if test -r $kernelbuild/include/linux/version.h && | |
19017 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then | |
19018 | ||
19019 | kernsrcver=`(echo "#include <linux/version.h>"; | |
19020 | echo "kernsrcver=UTS_RELEASE") | | |
19021 | cpp -I $kernelbuild/include | | |
19022 | grep "^kernsrcver=" | cut -d \" -f 2` | |
19023 | ||
19024 | elif test -r $kernelbuild/include/linux/utsrelease.h && | |
19025 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then | |
19026 | ||
19027 | kernsrcver=`(echo "#include <linux/utsrelease.h>"; | |
19028 | echo "kernsrcver=UTS_RELEASE") | | |
19029 | cpp -I $kernelbuild/include | | |
19030 | grep "^kernsrcver=" | cut -d \" -f 2` | |
19031 | fi | |
19032 | ||
19033 | if test -z "$kernsrcver"; then | |
19034 | echo "$as_me:$LINENO: result: Not found" >&5 | |
19035 | echo "${ECHO_T}Not found" >&6 | |
19036 | { { echo "$as_me:$LINENO: error: | |
19037 | *** Cannot determine the version of the linux kernel source. | |
19038 | *** Please prepare the kernel before running this script" >&5 | |
19039 | echo "$as_me: error: | |
19040 | *** Cannot determine the version of the linux kernel source. | |
19041 | *** Please prepare the kernel before running this script" >&2;} | |
19042 | { (exit 1); exit 1; }; } | |
19043 | fi | |
19044 | ||
19045 | echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
19046 | echo "${ECHO_T}$kernsrcver" >&6 | |
19047 | ||
19048 | LINUX=${kernelsrc} | |
19049 | LINUX_OBJ=${kernelbuild} | |
19050 | LINUX_VERSION=${kernsrcver} | |
19051 | ||
19052 | ||
19053 | ||
19054 | ||
19055 | ||
19056 | ||
bb339d06 | 19057 | modpost=$LINUX/scripts/Makefile.modpost |
86933a6e BB |
19058 | echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
19059 | echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6 | |
bb339d06 BB |
19060 | if test -f "$modpost"; then |
19061 | if grep -q Modules.symvers $modpost; then | |
19062 | LINUX_SYMBOLS=Modules.symvers | |
19063 | else | |
19064 | LINUX_SYMBOLS=Module.symvers | |
19065 | fi | |
86933a6e | 19066 | else |
bb339d06 | 19067 | LINUX_SYMBOLS=NONE |
86933a6e BB |
19068 | fi |
19069 | echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
19070 | echo "${ECHO_T}$LINUX_SYMBOLS" >&6 | |
19071 | ||
19072 | ||
19073 | ||
19074 | ||
19075 | KERNELMAKE_PARAMS="V=1" | |
19076 | ||
19077 | abs_srcdir=`readlink -f ${srcdir}` | |
19078 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror" | |
19079 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include" | |
19080 | ||
19081 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
19082 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
19083 | fi | |
19084 | ||
19085 | ||
19086 | ||
19087 | ||
19088 | ||
86933a6e BB |
19089 | # Check whether --enable-debug or --disable-debug was given. |
19090 | if test "${enable_debug+set}" = set; then | |
19091 | enableval="$enable_debug" | |
86933a6e | 19092 | |
055ffd98 BB |
19093 | else |
19094 | enable_debug=no | |
86933a6e | 19095 | fi; |
055ffd98 BB |
19096 | |
19097 | if test "x$enable_debug" = xyes; then | |
19098 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG" | |
19099 | else | |
19100 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
19101 | fi | |
19102 | ||
19103 | ||
19104 | echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 | |
19105 | echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6 | |
19106 | echo "$as_me:$LINENO: result: $enable_debug" >&5 | |
19107 | echo "${ECHO_T}$enable_debug" >&6 | |
86933a6e BB |
19108 | |
19109 | ||
86933a6e BB |
19110 | # Check whether --enable-debug-kmem or --disable-debug-kmem was given. |
19111 | if test "${enable_debug_kmem+set}" = set; then | |
19112 | enableval="$enable_debug_kmem" | |
86933a6e | 19113 | |
055ffd98 BB |
19114 | else |
19115 | enable_debug_kmem=yes | |
86933a6e | 19116 | fi; |
055ffd98 BB |
19117 | |
19118 | if test "x$enable_debug_kmem" = xyes; then | |
86933a6e BB |
19119 | |
19120 | cat >>confdefs.h <<\_ACEOF | |
19121 | #define DEBUG_KMEM 1 | |
19122 | _ACEOF | |
19123 | ||
19124 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
055ffd98 | 19125 | fi |
86933a6e | 19126 | |
86933a6e | 19127 | |
055ffd98 BB |
19128 | echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 |
19129 | echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6 | |
19130 | echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
19131 | echo "${ECHO_T}$enable_debug_kmem" >&6 | |
86933a6e BB |
19132 | |
19133 | ||
055ffd98 BB |
19134 | # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given. |
19135 | if test "${enable_debug_kmem_tracking+set}" = set; then | |
19136 | enableval="$enable_debug_kmem_tracking" | |
86933a6e | 19137 | |
055ffd98 BB |
19138 | else |
19139 | enable_debug_kmem_tracking=no | |
86933a6e | 19140 | fi; |
055ffd98 BB |
19141 | |
19142 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
86933a6e BB |
19143 | |
19144 | cat >>confdefs.h <<\_ACEOF | |
055ffd98 | 19145 | #define DEBUG_KMEM_TRACKING 1 |
86933a6e BB |
19146 | _ACEOF |
19147 | ||
055ffd98 BB |
19148 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" |
19149 | fi | |
19150 | ||
19151 | ||
19152 | echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 | |
19153 | echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6 | |
19154 | echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
19155 | echo "${ECHO_T}$enable_debug_kmem_tracking" >&6 | |
86933a6e | 19156 | |
5e9b5d83 BB |
19157 | |
19158 | # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given. | |
19159 | if test "${enable_atomic_spinlocks+set}" = set; then | |
19160 | enableval="$enable_atomic_spinlocks" | |
19161 | ||
19162 | else | |
d04c8a56 | 19163 | enable_atomic_spinlocks=check |
5e9b5d83 BB |
19164 | fi; |
19165 | ||
86933a6e BB |
19166 | |
19167 | ||
19168 | cat >conftest.c <<_ACEOF | |
19169 | /* confdefs.h. */ | |
19170 | _ACEOF | |
19171 | cat confdefs.h >>conftest.$ac_ext | |
19172 | cat >>conftest.$ac_ext <<_ACEOF | |
19173 | /* end confdefs.h. */ | |
19174 | ||
19175 | ||
d04c8a56 | 19176 | #include <asm/atomic.h> |
86933a6e BB |
19177 | |
19178 | int | |
19179 | main (void) | |
19180 | { | |
19181 | ||
d04c8a56 | 19182 | atomic64_t *ptr; |
86933a6e BB |
19183 | |
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | ||
19188 | _ACEOF | |
19189 | ||
19190 | ||
19191 | rm -Rf build && mkdir -p build | |
19192 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19193 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19195 | (eval $ac_try) 2>&5 | |
19196 | ac_status=$? | |
19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19198 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19200 | (eval $ac_try) 2>&5 | |
19201 | ac_status=$? | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); }; }; then | |
19204 | ||
d04c8a56 | 19205 | have_atomic64_t=yes |
86933a6e BB |
19206 | |
19207 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 19208 | #define HAVE_ATOMIC64_T 1 |
86933a6e BB |
19209 | _ACEOF |
19210 | ||
19211 | ||
19212 | else | |
19213 | echo "$as_me: failed program was:" >&5 | |
19214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19215 | ||
d04c8a56 | 19216 | have_atomic64_t=no |
86933a6e BB |
19217 | |
19218 | ||
19219 | ||
19220 | fi | |
19221 | ||
19222 | rm -Rf build | |
19223 | ||
19224 | ||
19225 | ||
d04c8a56 BB |
19226 | if test "x$enable_atomic_spinlocks" = xcheck; then |
19227 | ||
19228 | if test "x$have_atomic64_t" = xyes; then | |
19229 | ||
19230 | enable_atomic_spinlocks=no | |
19231 | ||
19232 | else | |
19233 | ||
19234 | enable_atomic_spinlocks=yes | |
19235 | ||
19236 | fi | |
19237 | ||
19238 | ||
19239 | fi | |
19240 | ||
19241 | ||
19242 | if test "x$enable_atomic_spinlocks" = xyes; then | |
19243 | ||
19244 | ||
19245 | cat >>confdefs.h <<\_ACEOF | |
19246 | #define ATOMIC_SPINLOCK 1 | |
19247 | _ACEOF | |
19248 | ||
19249 | ||
19250 | else | |
19251 | ||
19252 | if test "x$have_atomic64_t" = xno; then | |
19253 | ||
19254 | { { echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
19255 | See \`config.log' for more details." >&5 | |
19256 | echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
19257 | See \`config.log' for more details." >&2;} | |
19258 | { (exit 1); exit 1; }; } | |
19259 | ||
19260 | fi | |
19261 | ||
19262 | ||
19263 | fi | |
19264 | ||
19265 | ||
19266 | echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 | |
19267 | echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6 | |
19268 | echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
19269 | echo "${ECHO_T}$enable_atomic_spinlocks" >&6 | |
19270 | ||
86933a6e BB |
19271 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
19272 | echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6 | |
d04c8a56 BB |
19273 | echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 |
19274 | echo "${ECHO_T}$have_atomic64_t" >&6 | |
19275 | ||
19276 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 | |
19277 | echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6 | |
86933a6e BB |
19278 | |
19279 | ||
19280 | cat >conftest.c <<_ACEOF | |
19281 | /* confdefs.h. */ | |
19282 | _ACEOF | |
19283 | cat confdefs.h >>conftest.$ac_ext | |
19284 | cat >>conftest.$ac_ext <<_ACEOF | |
19285 | /* end confdefs.h. */ | |
19286 | ||
19287 | ||
19288 | #include <asm/atomic.h> | |
19289 | ||
19290 | int | |
19291 | main (void) | |
19292 | { | |
19293 | ||
d04c8a56 | 19294 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); |
86933a6e BB |
19295 | |
19296 | ; | |
19297 | return 0; | |
19298 | } | |
19299 | ||
19300 | _ACEOF | |
19301 | ||
19302 | ||
19303 | rm -Rf build && mkdir -p build | |
19304 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19305 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19307 | (eval $ac_try) 2>&5 | |
19308 | ac_status=$? | |
19309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19310 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19312 | (eval $ac_try) 2>&5 | |
19313 | ac_status=$? | |
19314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19315 | (exit $ac_status); }; }; then | |
19316 | ||
19317 | echo "$as_me:$LINENO: result: yes" >&5 | |
19318 | echo "${ECHO_T}yes" >&6 | |
19319 | ||
19320 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 19321 | #define HAVE_ATOMIC64_CMPXCHG 1 |
86933a6e BB |
19322 | _ACEOF |
19323 | ||
19324 | ||
19325 | else | |
19326 | echo "$as_me: failed program was:" >&5 | |
19327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19328 | ||
19329 | echo "$as_me:$LINENO: result: no" >&5 | |
19330 | echo "${ECHO_T}no" >&6 | |
19331 | ||
19332 | ||
19333 | ||
302b88e6 BB |
19334 | fi |
19335 | ||
19336 | rm -Rf build | |
19337 | ||
19338 | ||
19339 | ||
d04c8a56 BB |
19340 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 |
19341 | echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6 | |
302b88e6 BB |
19342 | |
19343 | ||
19344 | cat >conftest.c <<_ACEOF | |
19345 | /* confdefs.h. */ | |
19346 | _ACEOF | |
19347 | cat confdefs.h >>conftest.$ac_ext | |
19348 | cat >>conftest.$ac_ext <<_ACEOF | |
19349 | /* end confdefs.h. */ | |
19350 | ||
19351 | ||
19352 | #include <asm/atomic.h> | |
19353 | ||
19354 | int | |
19355 | main (void) | |
19356 | { | |
19357 | ||
d04c8a56 | 19358 | atomic64_xchg((atomic64_t *)NULL, 0); |
302b88e6 BB |
19359 | |
19360 | ; | |
19361 | return 0; | |
19362 | } | |
19363 | ||
19364 | _ACEOF | |
19365 | ||
19366 | ||
19367 | rm -Rf build && mkdir -p build | |
19368 | echo "obj-m := conftest.o" >build/Makefile | |
19369 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
19370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19371 | (eval $ac_try) 2>&5 | |
19372 | ac_status=$? | |
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19374 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19376 | (eval $ac_try) 2>&5 | |
19377 | ac_status=$? | |
19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19379 | (exit $ac_status); }; }; then | |
19380 | ||
19381 | echo "$as_me:$LINENO: result: yes" >&5 | |
19382 | echo "${ECHO_T}yes" >&6 | |
19383 | ||
19384 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 19385 | #define HAVE_ATOMIC64_XCHG 1 |
302b88e6 BB |
19386 | _ACEOF |
19387 | ||
19388 | ||
19389 | else | |
19390 | echo "$as_me: failed program was:" >&5 | |
19391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19392 | ||
19393 | echo "$as_me:$LINENO: result: no" >&5 | |
19394 | echo "${ECHO_T}no" >&6 | |
19395 | ||
19396 | ||
19397 | ||
19398 | fi | |
19399 | ||
19400 | rm -Rf build | |
19401 | ||
19402 | ||
19403 | ||
d04c8a56 BB |
19404 | echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
19405 | echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6 | |
302b88e6 BB |
19406 | |
19407 | ||
19408 | cat >conftest.c <<_ACEOF | |
19409 | /* confdefs.h. */ | |
19410 | _ACEOF | |
19411 | cat confdefs.h >>conftest.$ac_ext | |
19412 | cat >>conftest.$ac_ext <<_ACEOF | |
19413 | /* end confdefs.h. */ | |
19414 | ||
19415 | ||
d04c8a56 | 19416 | #include <linux/types.h> |
302b88e6 BB |
19417 | |
19418 | int | |
19419 | main (void) | |
19420 | { | |
19421 | ||
d04c8a56 | 19422 | uintptr_t *ptr; |
302b88e6 BB |
19423 | |
19424 | ; | |
19425 | return 0; | |
19426 | } | |
19427 | ||
19428 | _ACEOF | |
19429 | ||
19430 | ||
19431 | rm -Rf build && mkdir -p build | |
19432 | echo "obj-m := conftest.o" >build/Makefile | |
19433 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
19434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19435 | (eval $ac_try) 2>&5 | |
19436 | ac_status=$? | |
19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19438 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19440 | (eval $ac_try) 2>&5 | |
19441 | ac_status=$? | |
19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19443 | (exit $ac_status); }; }; then | |
19444 | ||
19445 | echo "$as_me:$LINENO: result: yes" >&5 | |
19446 | echo "${ECHO_T}yes" >&6 | |
19447 | ||
19448 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 19449 | #define HAVE_UINTPTR_T 1 |
302b88e6 BB |
19450 | _ACEOF |
19451 | ||
19452 | ||
19453 | else | |
19454 | echo "$as_me: failed program was:" >&5 | |
19455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19456 | ||
19457 | echo "$as_me:$LINENO: result: no" >&5 | |
19458 | echo "${ECHO_T}no" >&6 | |
19459 | ||
19460 | ||
19461 | ||
86933a6e BB |
19462 | fi |
19463 | ||
19464 | rm -Rf build | |
19465 | ||
19466 | ||
19467 | ||
19468 | echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 | |
19469 | echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6 | |
19470 | ||
19471 | ||
19472 | cat >conftest.c <<_ACEOF | |
19473 | /* confdefs.h. */ | |
19474 | _ACEOF | |
19475 | cat confdefs.h >>conftest.$ac_ext | |
19476 | cat >>conftest.$ac_ext <<_ACEOF | |
19477 | /* end confdefs.h. */ | |
19478 | ||
19479 | ||
19480 | #include <linux/workqueue.h> | |
19481 | ||
19482 | int | |
19483 | main (void) | |
19484 | { | |
19485 | ||
19486 | struct work_struct work; | |
19487 | INIT_WORK(&work, NULL, NULL); | |
19488 | ||
19489 | ; | |
19490 | return 0; | |
19491 | } | |
19492 | ||
19493 | _ACEOF | |
19494 | ||
19495 | ||
19496 | rm -Rf build && mkdir -p build | |
19497 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19498 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19500 | (eval $ac_try) 2>&5 | |
19501 | ac_status=$? | |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19503 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19505 | (eval $ac_try) 2>&5 | |
19506 | ac_status=$? | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); }; }; then | |
19509 | ||
19510 | echo "$as_me:$LINENO: result: yes" >&5 | |
19511 | echo "${ECHO_T}yes" >&6 | |
19512 | ||
19513 | cat >>confdefs.h <<\_ACEOF | |
19514 | #define HAVE_3ARGS_INIT_WORK 1 | |
19515 | _ACEOF | |
19516 | ||
19517 | ||
19518 | else | |
19519 | echo "$as_me: failed program was:" >&5 | |
19520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19521 | ||
19522 | echo "$as_me:$LINENO: result: no" >&5 | |
19523 | echo "${ECHO_T}no" >&6 | |
19524 | ||
19525 | ||
19526 | ||
19527 | fi | |
19528 | ||
19529 | rm -Rf build | |
19530 | ||
19531 | ||
19532 | ||
19533 | echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 | |
19534 | echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6 | |
19535 | ||
19536 | ||
19537 | cat >conftest.c <<_ACEOF | |
19538 | /* confdefs.h. */ | |
19539 | _ACEOF | |
19540 | cat confdefs.h >>conftest.$ac_ext | |
19541 | cat >>conftest.$ac_ext <<_ACEOF | |
19542 | /* end confdefs.h. */ | |
19543 | ||
19544 | ||
19545 | #include <linux/sysctl.h> | |
19546 | ||
19547 | int | |
19548 | main (void) | |
19549 | { | |
19550 | ||
19551 | return register_sysctl_table(NULL,0); | |
19552 | ||
19553 | ; | |
19554 | return 0; | |
19555 | } | |
19556 | ||
19557 | _ACEOF | |
19558 | ||
19559 | ||
19560 | rm -Rf build && mkdir -p build | |
19561 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19562 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19564 | (eval $ac_try) 2>&5 | |
19565 | ac_status=$? | |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19567 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19569 | (eval $ac_try) 2>&5 | |
19570 | ac_status=$? | |
19571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19572 | (exit $ac_status); }; }; then | |
19573 | ||
19574 | echo "$as_me:$LINENO: result: yes" >&5 | |
19575 | echo "${ECHO_T}yes" >&6 | |
19576 | ||
19577 | cat >>confdefs.h <<\_ACEOF | |
19578 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
19579 | _ACEOF | |
19580 | ||
19581 | ||
19582 | else | |
19583 | echo "$as_me: failed program was:" >&5 | |
19584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19585 | ||
19586 | echo "$as_me:$LINENO: result: no" >&5 | |
19587 | echo "${ECHO_T}no" >&6 | |
19588 | ||
19589 | ||
19590 | ||
19591 | fi | |
19592 | ||
19593 | rm -Rf build | |
19594 | ||
19595 | ||
19596 | ||
19597 | ||
19598 | echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 | |
19599 | echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6 | |
19600 | ||
19601 | ||
19602 | cat >conftest.c <<_ACEOF | |
19603 | /* confdefs.h. */ | |
19604 | _ACEOF | |
19605 | cat confdefs.h >>conftest.$ac_ext | |
19606 | cat >>conftest.$ac_ext <<_ACEOF | |
19607 | /* end confdefs.h. */ | |
19608 | ||
19609 | ||
19610 | #include <linux/mm.h> | |
19611 | ||
19612 | int | |
19613 | main (void) | |
19614 | { | |
19615 | ||
19616 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
19617 | ||
19618 | ; | |
19619 | return 0; | |
19620 | } | |
19621 | ||
19622 | _ACEOF | |
19623 | ||
19624 | ||
19625 | rm -Rf build && mkdir -p build | |
19626 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19627 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19629 | (eval $ac_try) 2>&5 | |
19630 | ac_status=$? | |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19632 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19634 | (eval $ac_try) 2>&5 | |
19635 | ac_status=$? | |
19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19637 | (exit $ac_status); }; }; then | |
19638 | ||
19639 | echo "$as_me:$LINENO: result: yes" >&5 | |
19640 | echo "${ECHO_T}yes" >&6 | |
19641 | ||
19642 | cat >>confdefs.h <<\_ACEOF | |
19643 | #define HAVE_SET_SHRINKER 1 | |
19644 | _ACEOF | |
19645 | ||
19646 | ||
19647 | else | |
19648 | echo "$as_me: failed program was:" >&5 | |
19649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650 | ||
19651 | echo "$as_me:$LINENO: result: no" >&5 | |
19652 | echo "${ECHO_T}no" >&6 | |
19653 | ||
19654 | ||
19655 | ||
19656 | fi | |
19657 | ||
19658 | rm -Rf build | |
19659 | ||
19660 | ||
19661 | ||
19662 | echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 | |
19663 | echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6 | |
19664 | ||
19665 | ||
19666 | cat >conftest.c <<_ACEOF | |
19667 | /* confdefs.h. */ | |
19668 | _ACEOF | |
19669 | cat confdefs.h >>conftest.$ac_ext | |
19670 | cat >>conftest.$ac_ext <<_ACEOF | |
19671 | /* end confdefs.h. */ | |
19672 | ||
19673 | ||
19674 | #include <linux/namei.h> | |
19675 | ||
19676 | int | |
19677 | main (void) | |
19678 | { | |
19679 | ||
19680 | struct nameidata nd; | |
19681 | ||
19682 | nd.path.mnt = NULL; | |
19683 | nd.path.dentry = NULL; | |
19684 | ||
19685 | ; | |
19686 | return 0; | |
19687 | } | |
19688 | ||
19689 | _ACEOF | |
19690 | ||
19691 | ||
19692 | rm -Rf build && mkdir -p build | |
19693 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19694 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19696 | (eval $ac_try) 2>&5 | |
19697 | ac_status=$? | |
19698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19699 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19701 | (eval $ac_try) 2>&5 | |
19702 | ac_status=$? | |
19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19704 | (exit $ac_status); }; }; then | |
19705 | ||
19706 | echo "$as_me:$LINENO: result: yes" >&5 | |
19707 | echo "${ECHO_T}yes" >&6 | |
19708 | ||
19709 | cat >>confdefs.h <<\_ACEOF | |
19710 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
19711 | _ACEOF | |
19712 | ||
19713 | ||
19714 | else | |
19715 | echo "$as_me: failed program was:" >&5 | |
19716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19717 | ||
19718 | echo "$as_me:$LINENO: result: no" >&5 | |
19719 | echo "${ECHO_T}no" >&6 | |
19720 | ||
19721 | ||
19722 | ||
19723 | fi | |
19724 | ||
19725 | rm -Rf build | |
19726 | ||
19727 | ||
19728 | ||
19729 | ||
19730 | echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 | |
19731 | echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6 | |
19732 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ | |
19733 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19734 | rc=$? | |
19735 | if test $rc -ne 0; then | |
19736 | export=0 | |
19737 | for file in kernel/sched.c; do | |
19738 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ | |
19739 | "$LINUX_OBJ/$file" 2>/dev/null | |
19740 | rc=$? | |
19741 | if test $rc -eq 0; then | |
19742 | export=1 | |
19743 | break; | |
19744 | fi | |
19745 | done | |
19746 | if test $export -eq 0; then | |
19747 | echo "$as_me:$LINENO: result: no" >&5 | |
19748 | echo "${ECHO_T}no" >&6 | |
19749 | ||
19750 | else | |
19751 | echo "$as_me:$LINENO: result: yes" >&5 | |
19752 | echo "${ECHO_T}yes" >&6 | |
19753 | ||
19754 | cat >>confdefs.h <<\_ACEOF | |
19755 | #define HAVE_TASK_CURR 1 | |
19756 | _ACEOF | |
19757 | ||
19758 | fi | |
19759 | else | |
19760 | echo "$as_me:$LINENO: result: yes" >&5 | |
19761 | echo "${ECHO_T}yes" >&6 | |
19762 | ||
19763 | cat >>confdefs.h <<\_ACEOF | |
19764 | #define HAVE_TASK_CURR 1 | |
19765 | _ACEOF | |
19766 | ||
19767 | fi | |
19768 | ||
19769 | ||
19770 | echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 | |
19771 | echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6 | |
19772 | ||
19773 | ||
19774 | cat >conftest.c <<_ACEOF | |
19775 | /* confdefs.h. */ | |
19776 | _ACEOF | |
19777 | cat confdefs.h >>conftest.$ac_ext | |
19778 | cat >>conftest.$ac_ext <<_ACEOF | |
19779 | /* end confdefs.h. */ | |
19780 | ||
19781 | ||
19782 | #include <linux/sysctl.h> | |
19783 | ||
19784 | int | |
19785 | main (void) | |
19786 | { | |
19787 | ||
19788 | #ifndef CTL_UNNUMBERED | |
19789 | #error CTL_UNNUMBERED undefined | |
19790 | #endif | |
19791 | ||
19792 | ; | |
19793 | return 0; | |
19794 | } | |
19795 | ||
19796 | _ACEOF | |
19797 | ||
19798 | ||
19799 | rm -Rf build && mkdir -p build | |
19800 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19801 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19803 | (eval $ac_try) 2>&5 | |
19804 | ac_status=$? | |
19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19806 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19808 | (eval $ac_try) 2>&5 | |
19809 | ac_status=$? | |
19810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19811 | (exit $ac_status); }; }; then | |
19812 | ||
19813 | echo "$as_me:$LINENO: result: yes" >&5 | |
19814 | echo "${ECHO_T}yes" >&6 | |
19815 | ||
19816 | cat >>confdefs.h <<\_ACEOF | |
19817 | #define HAVE_CTL_UNNUMBERED 1 | |
19818 | _ACEOF | |
19819 | ||
19820 | ||
19821 | else | |
19822 | echo "$as_me: failed program was:" >&5 | |
19823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19824 | ||
19825 | echo "$as_me:$LINENO: result: no" >&5 | |
19826 | echo "${ECHO_T}no" >&6 | |
19827 | ||
19828 | ||
19829 | ||
19830 | fi | |
19831 | ||
19832 | rm -Rf build | |
19833 | ||
19834 | ||
19835 | ||
19836 | echo "$as_me:$LINENO: checking whether fls64() is available" >&5 | |
19837 | echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6 | |
19838 | ||
19839 | ||
19840 | cat >conftest.c <<_ACEOF | |
19841 | /* confdefs.h. */ | |
19842 | _ACEOF | |
19843 | cat confdefs.h >>conftest.$ac_ext | |
19844 | cat >>conftest.$ac_ext <<_ACEOF | |
19845 | /* end confdefs.h. */ | |
19846 | ||
19847 | ||
19848 | #include <linux/bitops.h> | |
19849 | ||
19850 | int | |
19851 | main (void) | |
19852 | { | |
19853 | ||
19854 | return fls64(0); | |
19855 | ||
19856 | ; | |
19857 | return 0; | |
19858 | } | |
19859 | ||
19860 | _ACEOF | |
19861 | ||
19862 | ||
19863 | rm -Rf build && mkdir -p build | |
19864 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19865 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19867 | (eval $ac_try) 2>&5 | |
19868 | ac_status=$? | |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19870 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19872 | (eval $ac_try) 2>&5 | |
19873 | ac_status=$? | |
19874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19875 | (exit $ac_status); }; }; then | |
19876 | ||
19877 | echo "$as_me:$LINENO: result: yes" >&5 | |
19878 | echo "${ECHO_T}yes" >&6 | |
19879 | ||
19880 | cat >>confdefs.h <<\_ACEOF | |
19881 | #define HAVE_FLS64 1 | |
19882 | _ACEOF | |
19883 | ||
19884 | ||
19885 | else | |
19886 | echo "$as_me: failed program was:" >&5 | |
19887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19888 | ||
19889 | echo "$as_me:$LINENO: result: no" >&5 | |
19890 | echo "${ECHO_T}no" >&6 | |
19891 | ||
19892 | ||
19893 | ||
19894 | fi | |
19895 | ||
19896 | rm -Rf build | |
19897 | ||
19898 | ||
19899 | ||
19900 | ||
19901 | echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 | |
19902 | echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6 | |
19903 | grep -q -E '[[:space:]]device_create[[:space:]]' \ | |
19904 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19905 | rc=$? | |
19906 | if test $rc -ne 0; then | |
19907 | export=0 | |
19908 | for file in drivers/base/core.c; do | |
19909 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ | |
19910 | "$LINUX_OBJ/$file" 2>/dev/null | |
19911 | rc=$? | |
19912 | if test $rc -eq 0; then | |
19913 | export=1 | |
19914 | break; | |
19915 | fi | |
19916 | done | |
19917 | if test $export -eq 0; then | |
19918 | echo "$as_me:$LINENO: result: no" >&5 | |
19919 | echo "${ECHO_T}no" >&6 | |
19920 | ||
19921 | else | |
19922 | echo "$as_me:$LINENO: result: yes" >&5 | |
19923 | echo "${ECHO_T}yes" >&6 | |
19924 | ||
19925 | cat >>confdefs.h <<\_ACEOF | |
19926 | #define HAVE_DEVICE_CREATE 1 | |
19927 | _ACEOF | |
19928 | ||
19929 | fi | |
19930 | else | |
19931 | echo "$as_me:$LINENO: result: yes" >&5 | |
19932 | echo "${ECHO_T}yes" >&6 | |
19933 | ||
19934 | cat >>confdefs.h <<\_ACEOF | |
19935 | #define HAVE_DEVICE_CREATE 1 | |
19936 | _ACEOF | |
19937 | ||
19938 | fi | |
19939 | ||
19940 | ||
19941 | ||
19942 | echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 | |
19943 | echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6 | |
19944 | tmp_flags="$EXTRA_KCFLAGS" | |
19945 | EXTRA_KCFLAGS="-Werror" | |
19946 | ||
19947 | ||
19948 | cat >conftest.c <<_ACEOF | |
19949 | /* confdefs.h. */ | |
19950 | _ACEOF | |
19951 | cat confdefs.h >>conftest.$ac_ext | |
19952 | cat >>conftest.$ac_ext <<_ACEOF | |
19953 | /* end confdefs.h. */ | |
19954 | ||
19955 | ||
19956 | #include <linux/device.h> | |
19957 | ||
19958 | int | |
19959 | main (void) | |
19960 | { | |
19961 | ||
19962 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
19963 | ||
19964 | ; | |
19965 | return 0; | |
19966 | } | |
19967 | ||
19968 | _ACEOF | |
19969 | ||
19970 | ||
19971 | rm -Rf build && mkdir -p build | |
19972 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19973 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19975 | (eval $ac_try) 2>&5 | |
19976 | ac_status=$? | |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19978 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19980 | (eval $ac_try) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; }; then | |
19984 | ||
19985 | echo "$as_me:$LINENO: result: yes" >&5 | |
19986 | echo "${ECHO_T}yes" >&6 | |
19987 | ||
19988 | cat >>confdefs.h <<\_ACEOF | |
19989 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
19990 | _ACEOF | |
19991 | ||
19992 | ||
19993 | else | |
19994 | echo "$as_me: failed program was:" >&5 | |
19995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19996 | ||
19997 | echo "$as_me:$LINENO: result: no" >&5 | |
19998 | echo "${ECHO_T}no" >&6 | |
19999 | ||
20000 | ||
20001 | ||
20002 | fi | |
20003 | ||
20004 | rm -Rf build | |
20005 | ||
20006 | ||
20007 | EXTRA_KCFLAGS="$tmp_flags" | |
20008 | ||
20009 | ||
20010 | echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 | |
20011 | echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6 | |
20012 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ | |
20013 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20014 | rc=$? | |
20015 | if test $rc -ne 0; then | |
20016 | export=0 | |
20017 | for file in drivers/base/class.c; do | |
20018 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ | |
20019 | "$LINUX_OBJ/$file" 2>/dev/null | |
20020 | rc=$? | |
20021 | if test $rc -eq 0; then | |
20022 | export=1 | |
20023 | break; | |
20024 | fi | |
20025 | done | |
20026 | if test $export -eq 0; then | |
20027 | echo "$as_me:$LINENO: result: no" >&5 | |
20028 | echo "${ECHO_T}no" >&6 | |
20029 | ||
20030 | else | |
20031 | echo "$as_me:$LINENO: result: yes" >&5 | |
20032 | echo "${ECHO_T}yes" >&6 | |
20033 | ||
20034 | cat >>confdefs.h <<\_ACEOF | |
20035 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
20036 | _ACEOF | |
20037 | ||
20038 | fi | |
20039 | else | |
20040 | echo "$as_me:$LINENO: result: yes" >&5 | |
20041 | echo "${ECHO_T}yes" >&6 | |
20042 | ||
20043 | cat >>confdefs.h <<\_ACEOF | |
20044 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
20045 | _ACEOF | |
20046 | ||
20047 | fi | |
20048 | ||
20049 | ||
20050 | ||
20051 | echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 | |
20052 | echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6 | |
20053 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ | |
20054 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20055 | rc=$? | |
20056 | if test $rc -ne 0; then | |
20057 | export=0 | |
20058 | for file in kernel/time.c; do | |
20059 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ | |
20060 | "$LINUX_OBJ/$file" 2>/dev/null | |
20061 | rc=$? | |
20062 | if test $rc -eq 0; then | |
20063 | export=1 | |
20064 | break; | |
20065 | fi | |
20066 | done | |
20067 | if test $export -eq 0; then | |
20068 | echo "$as_me:$LINENO: result: no" >&5 | |
20069 | echo "${ECHO_T}no" >&6 | |
20070 | ||
20071 | else | |
20072 | echo "$as_me:$LINENO: result: yes" >&5 | |
20073 | echo "${ECHO_T}yes" >&6 | |
20074 | ||
20075 | cat >>confdefs.h <<\_ACEOF | |
20076 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
20077 | _ACEOF | |
20078 | ||
20079 | fi | |
20080 | else | |
20081 | echo "$as_me:$LINENO: result: yes" >&5 | |
20082 | echo "${ECHO_T}yes" >&6 | |
20083 | ||
20084 | cat >>confdefs.h <<\_ACEOF | |
20085 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
20086 | _ACEOF | |
20087 | ||
20088 | fi | |
20089 | ||
20090 | ||
20091 | ||
20092 | echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 | |
20093 | echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6 | |
20094 | ||
20095 | ||
20096 | cat >conftest.c <<_ACEOF | |
20097 | /* confdefs.h. */ | |
20098 | _ACEOF | |
20099 | cat confdefs.h >>conftest.$ac_ext | |
20100 | cat >>conftest.$ac_ext <<_ACEOF | |
20101 | /* end confdefs.h. */ | |
20102 | ||
20103 | ||
20104 | #include <linux/time.h> | |
20105 | void set_normalized_timespec(struct timespec *ts, | |
20106 | time_t sec, long nsec) { } | |
20107 | ||
20108 | int | |
20109 | main (void) | |
20110 | { | |
20111 | ||
20112 | ; | |
20113 | return 0; | |
20114 | } | |
20115 | ||
20116 | _ACEOF | |
20117 | ||
20118 | ||
20119 | rm -Rf build && mkdir -p build | |
20120 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20121 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20123 | (eval $ac_try) 2>&5 | |
20124 | ac_status=$? | |
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20126 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20128 | (eval $ac_try) 2>&5 | |
20129 | ac_status=$? | |
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20131 | (exit $ac_status); }; }; then | |
20132 | ||
20133 | echo "$as_me:$LINENO: result: no" >&5 | |
20134 | echo "${ECHO_T}no" >&6 | |
20135 | ||
20136 | else | |
20137 | echo "$as_me: failed program was:" >&5 | |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20139 | ||
20140 | echo "$as_me:$LINENO: result: yes" >&5 | |
20141 | echo "${ECHO_T}yes" >&6 | |
20142 | ||
20143 | cat >>confdefs.h <<\_ACEOF | |
20144 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
20145 | _ACEOF | |
20146 | ||
20147 | ||
20148 | ||
20149 | ||
20150 | fi | |
20151 | ||
20152 | rm -Rf build | |
20153 | ||
20154 | ||
20155 | ||
20156 | ||
20157 | echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 | |
20158 | echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6 | |
20159 | ||
20160 | ||
20161 | cat >conftest.c <<_ACEOF | |
20162 | /* confdefs.h. */ | |
20163 | _ACEOF | |
20164 | cat confdefs.h >>conftest.$ac_ext | |
20165 | cat >>conftest.$ac_ext <<_ACEOF | |
20166 | /* end confdefs.h. */ | |
20167 | ||
20168 | ||
20169 | #include <linux/time.h> | |
20170 | ||
20171 | int | |
20172 | main (void) | |
20173 | { | |
20174 | ||
20175 | struct timespec a, b, c = { 0 }; | |
20176 | c = timespec_sub(a, b); | |
20177 | ||
20178 | ; | |
20179 | return 0; | |
20180 | } | |
20181 | ||
20182 | _ACEOF | |
20183 | ||
20184 | ||
20185 | rm -Rf build && mkdir -p build | |
20186 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20187 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20189 | (eval $ac_try) 2>&5 | |
20190 | ac_status=$? | |
20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20192 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20194 | (eval $ac_try) 2>&5 | |
20195 | ac_status=$? | |
20196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20197 | (exit $ac_status); }; }; then | |
20198 | ||
20199 | echo "$as_me:$LINENO: result: yes" >&5 | |
20200 | echo "${ECHO_T}yes" >&6 | |
20201 | ||
20202 | cat >>confdefs.h <<\_ACEOF | |
20203 | #define HAVE_TIMESPEC_SUB 1 | |
20204 | _ACEOF | |
20205 | ||
20206 | ||
20207 | else | |
20208 | echo "$as_me: failed program was:" >&5 | |
20209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20210 | ||
20211 | echo "$as_me:$LINENO: result: no" >&5 | |
20212 | echo "${ECHO_T}no" >&6 | |
20213 | ||
20214 | ||
20215 | ||
20216 | fi | |
20217 | ||
20218 | rm -Rf build | |
20219 | ||
20220 | ||
20221 | ||
20222 | ||
20223 | echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 | |
20224 | echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6 | |
20225 | ||
20226 | ||
20227 | cat >conftest.c <<_ACEOF | |
20228 | /* confdefs.h. */ | |
20229 | _ACEOF | |
20230 | cat confdefs.h >>conftest.$ac_ext | |
20231 | cat >>conftest.$ac_ext <<_ACEOF | |
20232 | /* end confdefs.h. */ | |
20233 | ||
20234 | ||
20235 | #include <linux/utsname.h> | |
20236 | ||
20237 | int | |
20238 | main (void) | |
20239 | { | |
20240 | ||
20241 | struct new_utsname *a = init_utsname(); | |
20242 | ||
20243 | ; | |
20244 | return 0; | |
20245 | } | |
20246 | ||
20247 | _ACEOF | |
20248 | ||
20249 | ||
20250 | rm -Rf build && mkdir -p build | |
20251 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20252 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20254 | (eval $ac_try) 2>&5 | |
20255 | ac_status=$? | |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20257 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20259 | (eval $ac_try) 2>&5 | |
20260 | ac_status=$? | |
20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20262 | (exit $ac_status); }; }; then | |
20263 | ||
20264 | echo "$as_me:$LINENO: result: yes" >&5 | |
20265 | echo "${ECHO_T}yes" >&6 | |
20266 | ||
20267 | cat >>confdefs.h <<\_ACEOF | |
20268 | #define HAVE_INIT_UTSNAME 1 | |
20269 | _ACEOF | |
20270 | ||
20271 | ||
20272 | else | |
20273 | echo "$as_me: failed program was:" >&5 | |
20274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20275 | ||
20276 | echo "$as_me:$LINENO: result: no" >&5 | |
20277 | echo "${ECHO_T}no" >&6 | |
20278 | ||
20279 | ||
20280 | ||
20281 | fi | |
20282 | ||
20283 | rm -Rf build | |
20284 | ||
20285 | ||
20286 | ||
20287 | ||
20288 | echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 | |
20289 | echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6 | |
20290 | ||
20291 | ||
20292 | cat >conftest.c <<_ACEOF | |
20293 | /* confdefs.h. */ | |
20294 | _ACEOF | |
20295 | cat confdefs.h >>conftest.$ac_ext | |
20296 | cat >>conftest.$ac_ext <<_ACEOF | |
20297 | /* end confdefs.h. */ | |
20298 | ||
20299 | ||
20300 | #include <linux/fdtable.h> | |
20301 | ||
20302 | int | |
20303 | main (void) | |
20304 | { | |
20305 | ||
20306 | return 0; | |
20307 | ||
20308 | ; | |
20309 | return 0; | |
20310 | } | |
20311 | ||
20312 | _ACEOF | |
20313 | ||
20314 | ||
20315 | rm -Rf build && mkdir -p build | |
20316 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20317 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20319 | (eval $ac_try) 2>&5 | |
20320 | ac_status=$? | |
20321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20322 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20324 | (eval $ac_try) 2>&5 | |
20325 | ac_status=$? | |
20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20327 | (exit $ac_status); }; }; then | |
20328 | ||
20329 | ||
20330 | cat >>confdefs.h <<\_ACEOF | |
20331 | #define HAVE_FDTABLE_HEADER 1 | |
20332 | _ACEOF | |
20333 | ||
20334 | echo "$as_me:$LINENO: result: yes" >&5 | |
20335 | echo "${ECHO_T}yes" >&6 | |
20336 | ||
20337 | ||
20338 | else | |
20339 | echo "$as_me: failed program was:" >&5 | |
20340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20341 | ||
20342 | echo "$as_me:$LINENO: result: no" >&5 | |
20343 | echo "${ECHO_T}no" >&6 | |
20344 | ||
20345 | ||
20346 | ||
20347 | ||
20348 | fi | |
20349 | ||
20350 | rm -Rf build | |
20351 | ||
20352 | ||
20353 | ||
20354 | ||
20355 | ||
20356 | echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 | |
20357 | echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6 | |
20358 | ||
20359 | ||
20360 | cat >conftest.c <<_ACEOF | |
20361 | /* confdefs.h. */ | |
20362 | _ACEOF | |
20363 | cat confdefs.h >>conftest.$ac_ext | |
20364 | cat >>conftest.$ac_ext <<_ACEOF | |
20365 | /* end confdefs.h. */ | |
20366 | ||
20367 | ||
20368 | #include <linux/sched.h> | |
20369 | #include <linux/file.h> | |
20370 | #ifdef HAVE_FDTABLE_HEADER | |
20371 | #include <linux/fdtable.h> | |
20372 | #endif | |
20373 | ||
20374 | int | |
20375 | main (void) | |
20376 | { | |
20377 | ||
20378 | struct files_struct *files = current->files; | |
20379 | struct fdtable *fdt = files_fdtable(files); | |
20380 | ||
20381 | ; | |
20382 | return 0; | |
20383 | } | |
20384 | ||
20385 | _ACEOF | |
20386 | ||
20387 | ||
20388 | rm -Rf build && mkdir -p build | |
20389 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20390 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20392 | (eval $ac_try) 2>&5 | |
20393 | ac_status=$? | |
20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20395 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20397 | (eval $ac_try) 2>&5 | |
20398 | ac_status=$? | |
20399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20400 | (exit $ac_status); }; }; then | |
20401 | ||
20402 | echo "$as_me:$LINENO: result: yes" >&5 | |
20403 | echo "${ECHO_T}yes" >&6 | |
20404 | ||
20405 | cat >>confdefs.h <<\_ACEOF | |
20406 | #define HAVE_FILES_FDTABLE 1 | |
20407 | _ACEOF | |
20408 | ||
20409 | ||
20410 | else | |
20411 | echo "$as_me: failed program was:" >&5 | |
20412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20413 | ||
20414 | echo "$as_me:$LINENO: result: no" >&5 | |
20415 | echo "${ECHO_T}no" >&6 | |
20416 | ||
20417 | ||
20418 | ||
20419 | fi | |
20420 | ||
20421 | rm -Rf build | |
20422 | ||
20423 | ||
20424 | ||
20425 | ||
20426 | echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 | |
20427 | echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6 | |
20428 | ||
20429 | ||
20430 | cat >conftest.c <<_ACEOF | |
20431 | /* confdefs.h. */ | |
20432 | _ACEOF | |
20433 | cat confdefs.h >>conftest.$ac_ext | |
20434 | cat >>conftest.$ac_ext <<_ACEOF | |
20435 | /* end confdefs.h. */ | |
20436 | ||
20437 | ||
20438 | #include <linux/uaccess.h> | |
20439 | ||
20440 | int | |
20441 | main (void) | |
20442 | { | |
20443 | ||
20444 | return 0; | |
20445 | ||
20446 | ; | |
20447 | return 0; | |
20448 | } | |
20449 | ||
20450 | _ACEOF | |
20451 | ||
20452 | ||
20453 | rm -Rf build && mkdir -p build | |
20454 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20455 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20457 | (eval $ac_try) 2>&5 | |
20458 | ac_status=$? | |
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20460 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20462 | (eval $ac_try) 2>&5 | |
20463 | ac_status=$? | |
20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20465 | (exit $ac_status); }; }; then | |
20466 | ||
20467 | ||
20468 | cat >>confdefs.h <<\_ACEOF | |
20469 | #define HAVE_UACCESS_HEADER 1 | |
20470 | _ACEOF | |
20471 | ||
20472 | echo "$as_me:$LINENO: result: yes" >&5 | |
20473 | echo "${ECHO_T}yes" >&6 | |
20474 | ||
20475 | ||
20476 | else | |
20477 | echo "$as_me: failed program was:" >&5 | |
20478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20479 | ||
20480 | echo "$as_me:$LINENO: result: no" >&5 | |
20481 | echo "${ECHO_T}no" >&6 | |
20482 | ||
20483 | ||
20484 | ||
20485 | ||
20486 | fi | |
20487 | ||
20488 | rm -Rf build | |
20489 | ||
20490 | ||
20491 | ||
20492 | ||
20493 | ||
20494 | echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 | |
20495 | echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6 | |
20496 | ||
20497 | ||
20498 | cat >conftest.c <<_ACEOF | |
20499 | /* confdefs.h. */ | |
20500 | _ACEOF | |
20501 | cat confdefs.h >>conftest.$ac_ext | |
20502 | cat >>conftest.$ac_ext <<_ACEOF | |
20503 | /* end confdefs.h. */ | |
20504 | ||
20505 | ||
20506 | #include <linux/slab.h> | |
20507 | ||
20508 | int | |
20509 | main (void) | |
20510 | { | |
20511 | ||
20512 | void *a = kmalloc_node(1, GFP_KERNEL, 0); | |
20513 | ||
20514 | ; | |
20515 | return 0; | |
20516 | } | |
20517 | ||
20518 | _ACEOF | |
20519 | ||
20520 | ||
20521 | rm -Rf build && mkdir -p build | |
20522 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20523 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20525 | (eval $ac_try) 2>&5 | |
20526 | ac_status=$? | |
20527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20528 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20530 | (eval $ac_try) 2>&5 | |
20531 | ac_status=$? | |
20532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20533 | (exit $ac_status); }; }; then | |
20534 | ||
20535 | echo "$as_me:$LINENO: result: yes" >&5 | |
20536 | echo "${ECHO_T}yes" >&6 | |
20537 | ||
20538 | cat >>confdefs.h <<\_ACEOF | |
20539 | #define HAVE_KMALLOC_NODE 1 | |
20540 | _ACEOF | |
20541 | ||
20542 | ||
20543 | else | |
20544 | echo "$as_me: failed program was:" >&5 | |
20545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20546 | ||
20547 | echo "$as_me:$LINENO: result: no" >&5 | |
20548 | echo "${ECHO_T}no" >&6 | |
20549 | ||
20550 | ||
20551 | ||
20552 | fi | |
20553 | ||
20554 | rm -Rf build | |
20555 | ||
20556 | ||
20557 | ||
20558 | ||
20559 | echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 | |
20560 | echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6 | |
20561 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
20562 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20563 | rc=$? | |
20564 | if test $rc -ne 0; then | |
20565 | export=0 | |
20566 | for file in ; do | |
20567 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
20568 | "$LINUX_OBJ/$file" 2>/dev/null | |
20569 | rc=$? | |
20570 | if test $rc -eq 0; then | |
20571 | export=1 | |
20572 | break; | |
20573 | fi | |
20574 | done | |
20575 | if test $export -eq 0; then | |
20576 | echo "$as_me:$LINENO: result: no" >&5 | |
20577 | echo "${ECHO_T}no" >&6 | |
20578 | ||
20579 | else | |
20580 | echo "$as_me:$LINENO: result: yes" >&5 | |
20581 | echo "${ECHO_T}yes" >&6 | |
20582 | ||
20583 | cat >>confdefs.h <<\_ACEOF | |
20584 | #define HAVE_MONOTONIC_CLOCK 1 | |
20585 | _ACEOF | |
20586 | ||
20587 | fi | |
20588 | else | |
20589 | echo "$as_me:$LINENO: result: yes" >&5 | |
20590 | echo "${ECHO_T}yes" >&6 | |
20591 | ||
20592 | cat >>confdefs.h <<\_ACEOF | |
20593 | #define HAVE_MONOTONIC_CLOCK 1 | |
20594 | _ACEOF | |
20595 | ||
20596 | fi | |
20597 | ||
20598 | ||
20599 | ||
20600 | echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
20601 | echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6 | |
20602 | ||
20603 | ||
20604 | cat >conftest.c <<_ACEOF | |
20605 | /* confdefs.h. */ | |
20606 | _ACEOF | |
20607 | cat confdefs.h >>conftest.$ac_ext | |
20608 | cat >>conftest.$ac_ext <<_ACEOF | |
20609 | /* end confdefs.h. */ | |
20610 | ||
20611 | ||
20612 | #include <linux/fs.h> | |
20613 | #include <linux/mutex.h> | |
20614 | ||
20615 | int | |
20616 | main (void) | |
20617 | { | |
20618 | ||
20619 | struct inode i; | |
20620 | mutex_init(&i.i_mutex); | |
20621 | ||
20622 | ; | |
20623 | return 0; | |
20624 | } | |
20625 | ||
20626 | _ACEOF | |
20627 | ||
20628 | ||
20629 | rm -Rf build && mkdir -p build | |
20630 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20631 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20633 | (eval $ac_try) 2>&5 | |
20634 | ac_status=$? | |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20636 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20638 | (eval $ac_try) 2>&5 | |
20639 | ac_status=$? | |
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20641 | (exit $ac_status); }; }; then | |
20642 | ||
20643 | echo "$as_me:$LINENO: result: yes" >&5 | |
20644 | echo "${ECHO_T}yes" >&6 | |
20645 | ||
20646 | cat >>confdefs.h <<\_ACEOF | |
20647 | #define HAVE_INODE_I_MUTEX 1 | |
20648 | _ACEOF | |
20649 | ||
20650 | ||
20651 | else | |
20652 | echo "$as_me: failed program was:" >&5 | |
20653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20654 | ||
20655 | echo "$as_me:$LINENO: result: no" >&5 | |
20656 | echo "${ECHO_T}no" >&6 | |
20657 | ||
20658 | ||
20659 | ||
20660 | fi | |
20661 | ||
20662 | rm -Rf build | |
20663 | ||
20664 | ||
20665 | ||
20666 | ||
4d54fdee BB |
20667 | echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 |
20668 | echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6 | |
20669 | ||
20670 | ||
20671 | cat >conftest.c <<_ACEOF | |
20672 | /* confdefs.h. */ | |
20673 | _ACEOF | |
20674 | cat confdefs.h >>conftest.$ac_ext | |
20675 | cat >>conftest.$ac_ext <<_ACEOF | |
20676 | /* end confdefs.h. */ | |
20677 | ||
20678 | ||
20679 | #include <linux/mutex.h> | |
20680 | ||
20681 | int | |
20682 | main (void) | |
20683 | { | |
20684 | ||
20685 | struct mutex mtx; | |
20686 | mtx.owner = NULL; | |
20687 | ||
20688 | ; | |
20689 | return 0; | |
20690 | } | |
20691 | ||
20692 | _ACEOF | |
20693 | ||
20694 | ||
20695 | rm -Rf build && mkdir -p build | |
20696 | echo "obj-m := conftest.o" >build/Makefile | |
20697 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
20698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20699 | (eval $ac_try) 2>&5 | |
20700 | ac_status=$? | |
20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20702 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20704 | (eval $ac_try) 2>&5 | |
20705 | ac_status=$? | |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20707 | (exit $ac_status); }; }; then | |
20708 | ||
20709 | echo "$as_me:$LINENO: result: yes" >&5 | |
20710 | echo "${ECHO_T}yes" >&6 | |
20711 | ||
20712 | cat >>confdefs.h <<\_ACEOF | |
20713 | #define HAVE_MUTEX_OWNER 1 | |
20714 | _ACEOF | |
20715 | ||
20716 | ||
20717 | else | |
20718 | echo "$as_me: failed program was:" >&5 | |
20719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20720 | ||
20721 | echo "$as_me:$LINENO: result: no" >&5 | |
20722 | echo "${ECHO_T}no" >&6 | |
20723 | ||
20724 | ||
20725 | ||
20726 | fi | |
20727 | ||
20728 | rm -Rf build | |
20729 | ||
20730 | ||
20731 | ||
20732 | ||
86933a6e BB |
20733 | echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
20734 | echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6 | |
20735 | ||
20736 | ||
20737 | cat >conftest.c <<_ACEOF | |
20738 | /* confdefs.h. */ | |
20739 | _ACEOF | |
20740 | cat confdefs.h >>conftest.$ac_ext | |
20741 | cat >>conftest.$ac_ext <<_ACEOF | |
20742 | /* end confdefs.h. */ | |
20743 | ||
20744 | ||
20745 | #include <linux/mutex.h> | |
20746 | ||
20747 | int | |
20748 | main (void) | |
20749 | { | |
20750 | ||
20751 | struct mutex mutex; | |
20752 | mutex_init(&mutex); | |
20753 | mutex_lock_nested(&mutex, 0); | |
20754 | ||
20755 | ; | |
20756 | return 0; | |
20757 | } | |
20758 | ||
20759 | _ACEOF | |
20760 | ||
20761 | ||
20762 | rm -Rf build && mkdir -p build | |
20763 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20764 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20766 | (eval $ac_try) 2>&5 | |
20767 | ac_status=$? | |
20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20769 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20771 | (eval $ac_try) 2>&5 | |
20772 | ac_status=$? | |
20773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20774 | (exit $ac_status); }; }; then | |
20775 | ||
20776 | echo "$as_me:$LINENO: result: yes" >&5 | |
20777 | echo "${ECHO_T}yes" >&6 | |
20778 | ||
20779 | cat >>confdefs.h <<\_ACEOF | |
20780 | #define HAVE_MUTEX_LOCK_NESTED 1 | |
20781 | _ACEOF | |
20782 | ||
20783 | ||
20784 | else | |
20785 | echo "$as_me: failed program was:" >&5 | |
20786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20787 | ||
20788 | echo "$as_me:$LINENO: result: no" >&5 | |
20789 | echo "${ECHO_T}no" >&6 | |
20790 | ||
20791 | ||
20792 | ||
20793 | fi | |
20794 | ||
20795 | rm -Rf build | |
20796 | ||
20797 | ||
20798 | ||
20799 | ||
20800 | echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5 | |
20801 | echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6 | |
20802 | grep -q -E '[[:space:]]div64_64[[:space:]]' \ | |
20803 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20804 | rc=$? | |
20805 | if test $rc -ne 0; then | |
20806 | export=0 | |
20807 | for file in ; do | |
20808 | grep -q -E "EXPORT_SYMBOL.*(div64_64)" \ | |
20809 | "$LINUX_OBJ/$file" 2>/dev/null | |
20810 | rc=$? | |
20811 | if test $rc -eq 0; then | |
20812 | export=1 | |
20813 | break; | |
20814 | fi | |
20815 | done | |
20816 | if test $export -eq 0; then | |
20817 | echo "$as_me:$LINENO: result: no" >&5 | |
20818 | echo "${ECHO_T}no" >&6 | |
20819 | ||
20820 | else | |
20821 | echo "$as_me:$LINENO: result: yes" >&5 | |
20822 | echo "${ECHO_T}yes" >&6 | |
20823 | ||
20824 | cat >>confdefs.h <<\_ACEOF | |
20825 | #define HAVE_DIV64_64 1 | |
20826 | _ACEOF | |
20827 | ||
20828 | fi | |
20829 | else | |
20830 | echo "$as_me:$LINENO: result: yes" >&5 | |
20831 | echo "${ECHO_T}yes" >&6 | |
20832 | ||
20833 | cat >>confdefs.h <<\_ACEOF | |
20834 | #define HAVE_DIV64_64 1 | |
20835 | _ACEOF | |
20836 | ||
20837 | fi | |
20838 | ||
20839 | ||
20840 | ||
20841 | echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5 | |
20842 | echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6 | |
20843 | grep -q -E '[[:space:]]div64_u64[[:space:]]' \ | |
20844 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20845 | rc=$? | |
20846 | if test $rc -ne 0; then | |
20847 | export=0 | |
20848 | for file in ; do | |
20849 | grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \ | |
20850 | "$LINUX_OBJ/$file" 2>/dev/null | |
20851 | rc=$? | |
20852 | if test $rc -eq 0; then | |
20853 | export=1 | |
20854 | break; | |
20855 | fi | |
20856 | done | |
20857 | if test $export -eq 0; then | |
20858 | echo "$as_me:$LINENO: result: no" >&5 | |
20859 | echo "${ECHO_T}no" >&6 | |
20860 | ||
20861 | else | |
20862 | echo "$as_me:$LINENO: result: yes" >&5 | |
20863 | echo "${ECHO_T}yes" >&6 | |
20864 | ||
20865 | cat >>confdefs.h <<\_ACEOF | |
20866 | #define HAVE_DIV64_U64 1 | |
20867 | _ACEOF | |
20868 | ||
20869 | fi | |
20870 | else | |
20871 | echo "$as_me:$LINENO: result: yes" >&5 | |
20872 | echo "${ECHO_T}yes" >&6 | |
20873 | ||
20874 | cat >>confdefs.h <<\_ACEOF | |
20875 | #define HAVE_DIV64_U64 1 | |
20876 | _ACEOF | |
20877 | ||
20878 | fi | |
20879 | ||
20880 | ||
20881 | ||
20882 | echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 | |
20883 | echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6 | |
20884 | ||
20885 | ||
20886 | cat >conftest.c <<_ACEOF | |
20887 | /* confdefs.h. */ | |
20888 | _ACEOF | |
20889 | cat confdefs.h >>conftest.$ac_ext | |
20890 | cat >>conftest.$ac_ext <<_ACEOF | |
20891 | /* end confdefs.h. */ | |
20892 | ||
20893 | ||
20894 | #include <linux/smp.h> | |
20895 | ||
20896 | int | |
20897 | main (void) | |
20898 | { | |
20899 | ||
20900 | on_each_cpu(NULL, NULL, 0); | |
20901 | ||
20902 | ; | |
20903 | return 0; | |
20904 | } | |
20905 | ||
20906 | _ACEOF | |
20907 | ||
20908 | ||
20909 | rm -Rf build && mkdir -p build | |
20910 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20911 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20913 | (eval $ac_try) 2>&5 | |
20914 | ac_status=$? | |
20915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20916 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20918 | (eval $ac_try) 2>&5 | |
20919 | ac_status=$? | |
20920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20921 | (exit $ac_status); }; }; then | |
20922 | ||
20923 | echo "$as_me:$LINENO: result: yes" >&5 | |
20924 | echo "${ECHO_T}yes" >&6 | |
20925 | ||
20926 | cat >>confdefs.h <<\_ACEOF | |
20927 | #define HAVE_3ARGS_ON_EACH_CPU 1 | |
20928 | _ACEOF | |
20929 | ||
20930 | ||
20931 | else | |
20932 | echo "$as_me: failed program was:" >&5 | |
20933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20934 | ||
20935 | echo "$as_me:$LINENO: result: no" >&5 | |
20936 | echo "${ECHO_T}no" >&6 | |
20937 | ||
20938 | ||
20939 | ||
20940 | fi | |
20941 | ||
20942 | rm -Rf build | |
20943 | ||
20944 | ||
20945 | ||
20946 | ||
20947 | echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 | |
20948 | echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6 | |
20949 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
20950 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20951 | rc=$? | |
20952 | if test $rc -ne 0; then | |
20953 | export=0 | |
20954 | for file in ; do | |
20955 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
20956 | "$LINUX_OBJ/$file" 2>/dev/null | |
20957 | rc=$? | |
20958 | if test $rc -eq 0; then | |
20959 | export=1 | |
20960 | break; | |
20961 | fi | |
20962 | done | |
20963 | if test $export -eq 0; then | |
20964 | echo "$as_me:$LINENO: result: no" >&5 | |
20965 | echo "${ECHO_T}no" >&6 | |
20966 | ||
20967 | else | |
20968 | echo "$as_me:$LINENO: result: yes" >&5 | |
20969 | echo "${ECHO_T}yes" >&6 | |
20970 | ||
20971 | cat >>confdefs.h <<\_ACEOF | |
20972 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
20973 | _ACEOF | |
20974 | ||
20975 | fi | |
20976 | else | |
20977 | echo "$as_me:$LINENO: result: yes" >&5 | |
20978 | echo "${ECHO_T}yes" >&6 | |
20979 | ||
20980 | cat >>confdefs.h <<\_ACEOF | |
20981 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
20982 | _ACEOF | |
20983 | ||
20984 | fi | |
20985 | ||
20986 | ||
20987 | ||
20988 | echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 | |
20989 | echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6 | |
20990 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ | |
20991 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20992 | rc=$? | |
20993 | if test $rc -ne 0; then | |
20994 | export=0 | |
20995 | for file in ; do | |
20996 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
20997 | "$LINUX_OBJ/$file" 2>/dev/null | |
20998 | rc=$? | |
20999 | if test $rc -eq 0; then | |
21000 | export=1 | |
21001 | break; | |
21002 | fi | |
21003 | done | |
21004 | if test $export -eq 0; then | |
21005 | echo "$as_me:$LINENO: result: no" >&5 | |
21006 | echo "${ECHO_T}no" >&6 | |
21007 | ||
21008 | else | |
21009 | echo "$as_me:$LINENO: result: yes" >&5 | |
21010 | echo "${ECHO_T}yes" >&6 | |
21011 | ||
21012 | cat >>confdefs.h <<\_ACEOF | |
21013 | #define HAVE_GET_VMALLOC_INFO 1 | |
21014 | _ACEOF | |
21015 | ||
21016 | fi | |
21017 | else | |
21018 | echo "$as_me:$LINENO: result: yes" >&5 | |
21019 | echo "${ECHO_T}yes" >&6 | |
21020 | ||
21021 | cat >>confdefs.h <<\_ACEOF | |
21022 | #define HAVE_GET_VMALLOC_INFO 1 | |
21023 | _ACEOF | |
21024 | ||
21025 | fi | |
21026 | ||
21027 | ||
21028 | ||
21029 | echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 | |
21030 | echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6 | |
21031 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
21032 | rc=$? | |
21033 | if test $rc -eq 0; then | |
21034 | echo "$as_me:$LINENO: result: yes" >&5 | |
21035 | echo "${ECHO_T}yes" >&6 | |
21036 | ||
21037 | cat >>confdefs.h <<\_ACEOF | |
21038 | #define HAVE_PGDAT_HELPERS 1 | |
21039 | _ACEOF | |
21040 | ||
21041 | else | |
21042 | echo "$as_me:$LINENO: result: no" >&5 | |
21043 | echo "${ECHO_T}no" >&6 | |
21044 | fi | |
21045 | ||
21046 | ||
21047 | echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 | |
21048 | echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6 | |
21049 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
21050 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21051 | rc=$? | |
21052 | if test $rc -ne 0; then | |
21053 | export=0 | |
21054 | for file in ; do | |
21055 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
21056 | "$LINUX_OBJ/$file" 2>/dev/null | |
21057 | rc=$? | |
21058 | if test $rc -eq 0; then | |
21059 | export=1 | |
21060 | break; | |
21061 | fi | |
21062 | done | |
21063 | if test $export -eq 0; then | |
21064 | echo "$as_me:$LINENO: result: no" >&5 | |
21065 | echo "${ECHO_T}no" >&6 | |
21066 | ||
21067 | else | |
21068 | echo "$as_me:$LINENO: result: yes" >&5 | |
21069 | echo "${ECHO_T}yes" >&6 | |
21070 | ||
21071 | cat >>confdefs.h <<\_ACEOF | |
21072 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
21073 | _ACEOF | |
21074 | ||
21075 | fi | |
21076 | else | |
21077 | echo "$as_me:$LINENO: result: yes" >&5 | |
21078 | echo "${ECHO_T}yes" >&6 | |
21079 | ||
21080 | cat >>confdefs.h <<\_ACEOF | |
21081 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
21082 | _ACEOF | |
21083 | ||
21084 | fi | |
21085 | ||
21086 | ||
21087 | ||
21088 | echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 | |
21089 | echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6 | |
21090 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
21091 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21092 | rc=$? | |
21093 | if test $rc -ne 0; then | |
21094 | export=0 | |
21095 | for file in ; do | |
21096 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
21097 | "$LINUX_OBJ/$file" 2>/dev/null | |
21098 | rc=$? | |
21099 | if test $rc -eq 0; then | |
21100 | export=1 | |
21101 | break; | |
21102 | fi | |
21103 | done | |
21104 | if test $export -eq 0; then | |
21105 | echo "$as_me:$LINENO: result: no" >&5 | |
21106 | echo "${ECHO_T}no" >&6 | |
21107 | ||
21108 | else | |
21109 | echo "$as_me:$LINENO: result: yes" >&5 | |
21110 | echo "${ECHO_T}yes" >&6 | |
21111 | ||
21112 | cat >>confdefs.h <<\_ACEOF | |
21113 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
21114 | _ACEOF | |
21115 | ||
21116 | fi | |
21117 | else | |
21118 | echo "$as_me:$LINENO: result: yes" >&5 | |
21119 | echo "${ECHO_T}yes" >&6 | |
21120 | ||
21121 | cat >>confdefs.h <<\_ACEOF | |
21122 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
21123 | _ACEOF | |
21124 | ||
21125 | fi | |
21126 | ||
21127 | ||
21128 | ||
21129 | echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 | |
21130 | echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6 | |
21131 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
21132 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21133 | rc=$? | |
21134 | if test $rc -ne 0; then | |
21135 | export=0 | |
21136 | for file in ; do | |
21137 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
21138 | "$LINUX_OBJ/$file" 2>/dev/null | |
21139 | rc=$? | |
21140 | if test $rc -eq 0; then | |
21141 | export=1 | |
21142 | break; | |
21143 | fi | |
21144 | done | |
21145 | if test $export -eq 0; then | |
21146 | echo "$as_me:$LINENO: result: no" >&5 | |
21147 | echo "${ECHO_T}no" >&6 | |
21148 | ||
21149 | else | |
21150 | echo "$as_me:$LINENO: result: yes" >&5 | |
21151 | echo "${ECHO_T}yes" >&6 | |
21152 | ||
21153 | cat >>confdefs.h <<\_ACEOF | |
21154 | #define HAVE_NEXT_ZONE 1 | |
21155 | _ACEOF | |
21156 | ||
21157 | fi | |
21158 | else | |
21159 | echo "$as_me:$LINENO: result: yes" >&5 | |
21160 | echo "${ECHO_T}yes" >&6 | |
21161 | ||
21162 | cat >>confdefs.h <<\_ACEOF | |
21163 | #define HAVE_NEXT_ZONE 1 | |
21164 | _ACEOF | |
21165 | ||
21166 | fi | |
21167 | ||
21168 | ||
21169 | ||
21170 | echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 | |
21171 | echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6 | |
21172 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ | |
21173 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21174 | rc=$? | |
21175 | if test $rc -ne 0; then | |
21176 | export=0 | |
21177 | for file in ; do | |
21178 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
21179 | "$LINUX_OBJ/$file" 2>/dev/null | |
21180 | rc=$? | |
21181 | if test $rc -eq 0; then | |
21182 | export=1 | |
21183 | break; | |
21184 | fi | |
21185 | done | |
21186 | if test $export -eq 0; then | |
21187 | echo "$as_me:$LINENO: result: no" >&5 | |
21188 | echo "${ECHO_T}no" >&6 | |
21189 | ||
21190 | else | |
21191 | echo "$as_me:$LINENO: result: yes" >&5 | |
21192 | echo "${ECHO_T}yes" >&6 | |
21193 | ||
21194 | cat >>confdefs.h <<\_ACEOF | |
21195 | #define HAVE_PGDAT_LIST 1 | |
21196 | _ACEOF | |
21197 | ||
21198 | fi | |
21199 | else | |
21200 | echo "$as_me:$LINENO: result: yes" >&5 | |
21201 | echo "${ECHO_T}yes" >&6 | |
21202 | ||
21203 | cat >>confdefs.h <<\_ACEOF | |
21204 | #define HAVE_PGDAT_LIST 1 | |
21205 | _ACEOF | |
21206 | ||
21207 | fi | |
21208 | ||
21209 | ||
21210 | ||
6ae7fef5 BB |
21211 | echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 |
21212 | echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6 | |
86933a6e | 21213 | |
86933a6e | 21214 | |
6ae7fef5 BB |
21215 | cat >conftest.c <<_ACEOF |
21216 | /* confdefs.h. */ | |
86933a6e | 21217 | _ACEOF |
6ae7fef5 BB |
21218 | cat confdefs.h >>conftest.$ac_ext |
21219 | cat >>conftest.$ac_ext <<_ACEOF | |
21220 | /* end confdefs.h. */ | |
21221 | ||
21222 | ||
21223 | #include <linux/mm.h> | |
21224 | ||
21225 | int | |
21226 | main (void) | |
21227 | { | |
21228 | ||
21229 | unsigned long state; | |
21230 | state = global_page_state(0); | |
21231 | ||
21232 | ; | |
21233 | return 0; | |
21234 | } | |
21235 | ||
21236 | _ACEOF | |
21237 | ||
21238 | ||
21239 | rm -Rf build && mkdir -p build | |
21240 | echo "obj-m := conftest.o" >build/Makefile | |
21241 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21243 | (eval $ac_try) 2>&5 | |
21244 | ac_status=$? | |
21245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21246 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21248 | (eval $ac_try) 2>&5 | |
21249 | ac_status=$? | |
21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21251 | (exit $ac_status); }; }; then | |
86933a6e | 21252 | |
86933a6e BB |
21253 | echo "$as_me:$LINENO: result: yes" >&5 |
21254 | echo "${ECHO_T}yes" >&6 | |
21255 | ||
21256 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21257 | #define HAVE_GLOBAL_PAGE_STATE 1 |
86933a6e BB |
21258 | _ACEOF |
21259 | ||
6ae7fef5 BB |
21260 | |
21261 | else | |
21262 | echo "$as_me: failed program was:" >&5 | |
21263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21264 | ||
21265 | echo "$as_me:$LINENO: result: no" >&5 | |
21266 | echo "${ECHO_T}no" >&6 | |
21267 | ||
21268 | ||
21269 | ||
21270 | fi | |
21271 | ||
21272 | rm -Rf build | |
86933a6e BB |
21273 | |
21274 | ||
21275 | ||
6ae7fef5 BB |
21276 | |
21277 | echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 | |
21278 | echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6 | |
86933a6e BB |
21279 | |
21280 | ||
21281 | cat >conftest.c <<_ACEOF | |
21282 | /* confdefs.h. */ | |
21283 | _ACEOF | |
21284 | cat confdefs.h >>conftest.$ac_ext | |
21285 | cat >>conftest.$ac_ext <<_ACEOF | |
21286 | /* end confdefs.h. */ | |
21287 | ||
21288 | ||
6ae7fef5 | 21289 | #include <linux/mm.h> |
86933a6e BB |
21290 | |
21291 | int | |
21292 | main (void) | |
21293 | { | |
21294 | ||
6ae7fef5 BB |
21295 | enum zone_stat_item zsi; |
21296 | zsi = NR_FREE_PAGES; | |
86933a6e BB |
21297 | |
21298 | ; | |
21299 | return 0; | |
21300 | } | |
21301 | ||
21302 | _ACEOF | |
21303 | ||
21304 | ||
21305 | rm -Rf build && mkdir -p build | |
21306 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21307 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21309 | (eval $ac_try) 2>&5 | |
21310 | ac_status=$? | |
21311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21312 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21314 | (eval $ac_try) 2>&5 | |
21315 | ac_status=$? | |
21316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21317 | (exit $ac_status); }; }; then | |
21318 | ||
21319 | echo "$as_me:$LINENO: result: yes" >&5 | |
21320 | echo "${ECHO_T}yes" >&6 | |
21321 | ||
21322 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21323 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
86933a6e BB |
21324 | _ACEOF |
21325 | ||
21326 | ||
21327 | else | |
21328 | echo "$as_me: failed program was:" >&5 | |
21329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21330 | ||
21331 | echo "$as_me:$LINENO: result: no" >&5 | |
21332 | echo "${ECHO_T}no" >&6 | |
21333 | ||
21334 | ||
21335 | ||
21336 | fi | |
21337 | ||
21338 | rm -Rf build | |
21339 | ||
21340 | ||
21341 | ||
21342 | ||
6ae7fef5 BB |
21343 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
21344 | echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6 | |
86933a6e BB |
21345 | |
21346 | ||
21347 | cat >conftest.c <<_ACEOF | |
21348 | /* confdefs.h. */ | |
21349 | _ACEOF | |
21350 | cat confdefs.h >>conftest.$ac_ext | |
21351 | cat >>conftest.$ac_ext <<_ACEOF | |
21352 | /* end confdefs.h. */ | |
21353 | ||
21354 | ||
6ae7fef5 | 21355 | #include <linux/mm.h> |
86933a6e BB |
21356 | |
21357 | int | |
21358 | main (void) | |
21359 | { | |
21360 | ||
6ae7fef5 BB |
21361 | enum zone_stat_item zsi; |
21362 | zsi = NR_INACTIVE; | |
86933a6e BB |
21363 | |
21364 | ; | |
21365 | return 0; | |
21366 | } | |
21367 | ||
21368 | _ACEOF | |
21369 | ||
21370 | ||
21371 | rm -Rf build && mkdir -p build | |
21372 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21373 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21375 | (eval $ac_try) 2>&5 | |
21376 | ac_status=$? | |
21377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21378 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21380 | (eval $ac_try) 2>&5 | |
21381 | ac_status=$? | |
21382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21383 | (exit $ac_status); }; }; then | |
21384 | ||
21385 | echo "$as_me:$LINENO: result: yes" >&5 | |
21386 | echo "${ECHO_T}yes" >&6 | |
21387 | ||
21388 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21389 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
86933a6e BB |
21390 | _ACEOF |
21391 | ||
21392 | ||
21393 | else | |
21394 | echo "$as_me: failed program was:" >&5 | |
21395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21396 | ||
21397 | echo "$as_me:$LINENO: result: no" >&5 | |
21398 | echo "${ECHO_T}no" >&6 | |
21399 | ||
21400 | ||
21401 | ||
21402 | fi | |
21403 | ||
21404 | rm -Rf build | |
21405 | ||
21406 | ||
21407 | ||
6ae7fef5 BB |
21408 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 |
21409 | echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6 | |
86933a6e BB |
21410 | |
21411 | ||
21412 | cat >conftest.c <<_ACEOF | |
21413 | /* confdefs.h. */ | |
21414 | _ACEOF | |
21415 | cat confdefs.h >>conftest.$ac_ext | |
21416 | cat >>conftest.$ac_ext <<_ACEOF | |
21417 | /* end confdefs.h. */ | |
21418 | ||
21419 | ||
6ae7fef5 | 21420 | #include <linux/mm.h> |
86933a6e BB |
21421 | |
21422 | int | |
21423 | main (void) | |
21424 | { | |
21425 | ||
6ae7fef5 BB |
21426 | enum zone_stat_item zsi; |
21427 | zsi = NR_INACTIVE_ANON; | |
86933a6e BB |
21428 | |
21429 | ; | |
21430 | return 0; | |
21431 | } | |
21432 | ||
21433 | _ACEOF | |
21434 | ||
21435 | ||
21436 | rm -Rf build && mkdir -p build | |
21437 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21438 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21440 | (eval $ac_try) 2>&5 | |
21441 | ac_status=$? | |
21442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21443 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21445 | (eval $ac_try) 2>&5 | |
21446 | ac_status=$? | |
21447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21448 | (exit $ac_status); }; }; then | |
21449 | ||
21450 | echo "$as_me:$LINENO: result: yes" >&5 | |
21451 | echo "${ECHO_T}yes" >&6 | |
21452 | ||
21453 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21454 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
86933a6e BB |
21455 | _ACEOF |
21456 | ||
21457 | ||
21458 | else | |
21459 | echo "$as_me: failed program was:" >&5 | |
21460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21461 | ||
21462 | echo "$as_me:$LINENO: result: no" >&5 | |
21463 | echo "${ECHO_T}no" >&6 | |
21464 | ||
21465 | ||
21466 | ||
21467 | fi | |
21468 | ||
21469 | rm -Rf build | |
21470 | ||
21471 | ||
21472 | ||
6ae7fef5 BB |
21473 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
21474 | echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6 | |
86933a6e BB |
21475 | |
21476 | ||
21477 | cat >conftest.c <<_ACEOF | |
21478 | /* confdefs.h. */ | |
21479 | _ACEOF | |
21480 | cat confdefs.h >>conftest.$ac_ext | |
21481 | cat >>conftest.$ac_ext <<_ACEOF | |
21482 | /* end confdefs.h. */ | |
21483 | ||
21484 | ||
6ae7fef5 | 21485 | #include <linux/mm.h> |
86933a6e BB |
21486 | |
21487 | int | |
21488 | main (void) | |
21489 | { | |
21490 | ||
6ae7fef5 BB |
21491 | enum zone_stat_item zsi; |
21492 | zsi = NR_INACTIVE_FILE; | |
86933a6e BB |
21493 | |
21494 | ; | |
21495 | return 0; | |
21496 | } | |
21497 | ||
21498 | _ACEOF | |
21499 | ||
21500 | ||
21501 | rm -Rf build && mkdir -p build | |
21502 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21503 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21505 | (eval $ac_try) 2>&5 | |
21506 | ac_status=$? | |
21507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21508 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21510 | (eval $ac_try) 2>&5 | |
21511 | ac_status=$? | |
21512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21513 | (exit $ac_status); }; }; then | |
21514 | ||
21515 | echo "$as_me:$LINENO: result: yes" >&5 | |
21516 | echo "${ECHO_T}yes" >&6 | |
21517 | ||
21518 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21519 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
86933a6e BB |
21520 | _ACEOF |
21521 | ||
21522 | ||
21523 | else | |
21524 | echo "$as_me: failed program was:" >&5 | |
21525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21526 | ||
21527 | echo "$as_me:$LINENO: result: no" >&5 | |
21528 | echo "${ECHO_T}no" >&6 | |
21529 | ||
21530 | ||
21531 | ||
21532 | fi | |
21533 | ||
21534 | rm -Rf build | |
21535 | ||
21536 | ||
21537 | ||
ec7d53e9 | 21538 | |
6ae7fef5 BB |
21539 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
21540 | echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6 | |
ec7d53e9 BB |
21541 | |
21542 | ||
21543 | cat >conftest.c <<_ACEOF | |
21544 | /* confdefs.h. */ | |
21545 | _ACEOF | |
21546 | cat confdefs.h >>conftest.$ac_ext | |
21547 | cat >>conftest.$ac_ext <<_ACEOF | |
21548 | /* end confdefs.h. */ | |
21549 | ||
21550 | ||
6ae7fef5 | 21551 | #include <linux/mm.h> |
ec7d53e9 BB |
21552 | |
21553 | int | |
21554 | main (void) | |
21555 | { | |
21556 | ||
6ae7fef5 BB |
21557 | enum zone_stat_item zsi; |
21558 | zsi = NR_ACTIVE; | |
ec7d53e9 BB |
21559 | |
21560 | ; | |
21561 | return 0; | |
21562 | } | |
21563 | ||
21564 | _ACEOF | |
21565 | ||
21566 | ||
21567 | rm -Rf build && mkdir -p build | |
21568 | echo "obj-m := conftest.o" >build/Makefile | |
21569 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21571 | (eval $ac_try) 2>&5 | |
21572 | ac_status=$? | |
21573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21574 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21576 | (eval $ac_try) 2>&5 | |
21577 | ac_status=$? | |
21578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21579 | (exit $ac_status); }; }; then | |
21580 | ||
21581 | echo "$as_me:$LINENO: result: yes" >&5 | |
21582 | echo "${ECHO_T}yes" >&6 | |
21583 | ||
21584 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21585 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
ec7d53e9 BB |
21586 | _ACEOF |
21587 | ||
21588 | ||
21589 | else | |
21590 | echo "$as_me: failed program was:" >&5 | |
21591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21592 | ||
21593 | echo "$as_me:$LINENO: result: no" >&5 | |
21594 | echo "${ECHO_T}no" >&6 | |
21595 | ||
21596 | ||
21597 | ||
21598 | fi | |
21599 | ||
21600 | rm -Rf build | |
21601 | ||
21602 | ||
21603 | ||
6ae7fef5 BB |
21604 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 |
21605 | echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6 | |
ec7d53e9 | 21606 | |
ec7d53e9 | 21607 | |
6ae7fef5 BB |
21608 | cat >conftest.c <<_ACEOF |
21609 | /* confdefs.h. */ | |
21610 | _ACEOF | |
21611 | cat confdefs.h >>conftest.$ac_ext | |
21612 | cat >>conftest.$ac_ext <<_ACEOF | |
21613 | /* end confdefs.h. */ | |
21614 | ||
21615 | ||
21616 | #include <linux/mm.h> | |
21617 | ||
21618 | int | |
21619 | main (void) | |
21620 | { | |
21621 | ||
21622 | enum zone_stat_item zsi; | |
21623 | zsi = NR_ACTIVE_ANON; | |
21624 | ||
21625 | ; | |
21626 | return 0; | |
21627 | } | |
ec7d53e9 | 21628 | |
ec7d53e9 BB |
21629 | _ACEOF |
21630 | ||
6ae7fef5 BB |
21631 | |
21632 | rm -Rf build && mkdir -p build | |
21633 | echo "obj-m := conftest.o" >build/Makefile | |
21634 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21636 | (eval $ac_try) 2>&5 | |
21637 | ac_status=$? | |
21638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21639 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21641 | (eval $ac_try) 2>&5 | |
21642 | ac_status=$? | |
21643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21644 | (exit $ac_status); }; }; then | |
21645 | ||
ec7d53e9 BB |
21646 | echo "$as_me:$LINENO: result: yes" >&5 |
21647 | echo "${ECHO_T}yes" >&6 | |
21648 | ||
21649 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21650 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
ec7d53e9 BB |
21651 | _ACEOF |
21652 | ||
ec7d53e9 | 21653 | |
6ae7fef5 BB |
21654 | else |
21655 | echo "$as_me: failed program was:" >&5 | |
21656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ec7d53e9 | 21657 | |
6ae7fef5 BB |
21658 | echo "$as_me:$LINENO: result: no" >&5 |
21659 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 21660 | |
bf9f3bac | 21661 | |
bf9f3bac | 21662 | |
6ae7fef5 | 21663 | fi |
bf9f3bac | 21664 | |
6ae7fef5 | 21665 | rm -Rf build |
bf9f3bac | 21666 | |
bf9f3bac | 21667 | |
bf9f3bac | 21668 | |
6ae7fef5 BB |
21669 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
21670 | echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6 | |
bf9f3bac | 21671 | |
bf9f3bac | 21672 | |
6ae7fef5 BB |
21673 | cat >conftest.c <<_ACEOF |
21674 | /* confdefs.h. */ | |
21675 | _ACEOF | |
21676 | cat confdefs.h >>conftest.$ac_ext | |
21677 | cat >>conftest.$ac_ext <<_ACEOF | |
21678 | /* end confdefs.h. */ | |
bf9f3bac | 21679 | |
bf9f3bac | 21680 | |
6ae7fef5 | 21681 | #include <linux/mm.h> |
bf9f3bac | 21682 | |
6ae7fef5 BB |
21683 | int |
21684 | main (void) | |
21685 | { | |
21686 | ||
21687 | enum zone_stat_item zsi; | |
21688 | zsi = NR_ACTIVE_FILE; | |
21689 | ||
21690 | ; | |
21691 | return 0; | |
21692 | } | |
21693 | ||
21694 | _ACEOF | |
21695 | ||
21696 | ||
21697 | rm -Rf build && mkdir -p build | |
21698 | echo "obj-m := conftest.o" >build/Makefile | |
21699 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21701 | (eval $ac_try) 2>&5 | |
21702 | ac_status=$? | |
21703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21704 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21706 | (eval $ac_try) 2>&5 | |
21707 | ac_status=$? | |
21708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21709 | (exit $ac_status); }; }; then | |
21710 | ||
21711 | echo "$as_me:$LINENO: result: yes" >&5 | |
21712 | echo "${ECHO_T}yes" >&6 | |
21713 | ||
21714 | cat >>confdefs.h <<\_ACEOF | |
21715 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 | |
21716 | _ACEOF | |
21717 | ||
21718 | ||
21719 | else | |
21720 | echo "$as_me: failed program was:" >&5 | |
21721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21722 | ||
21723 | echo "$as_me:$LINENO: result: no" >&5 | |
21724 | echo "${ECHO_T}no" >&6 | |
21725 | ||
21726 | ||
21727 | ||
21728 | fi | |
21729 | ||
21730 | rm -Rf build | |
21731 | ||
21732 | ||
21733 | ||
21734 | ||
21735 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 | |
21736 | echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6 | |
21737 | ||
21738 | ||
21739 | cat >conftest.c <<_ACEOF | |
21740 | /* confdefs.h. */ | |
21741 | _ACEOF | |
21742 | cat confdefs.h >>conftest.$ac_ext | |
21743 | cat >>conftest.$ac_ext <<_ACEOF | |
21744 | /* end confdefs.h. */ | |
21745 | ||
21746 | ||
21747 | ||
21748 | int | |
21749 | main (void) | |
21750 | { | |
21751 | ||
21752 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) | |
21753 | #error "global_page_state needs NR_FREE_PAGES" | |
21754 | #endif | |
21755 | ||
21756 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
21757 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
21758 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
21759 | #error "global_page_state needs NR_ACTIVE*" | |
21760 | #endif | |
21761 | ||
21762 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
21763 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
21764 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
21765 | #error "global_page_state needs NR_INACTIVE*" | |
21766 | #endif | |
21767 | ||
21768 | ; | |
21769 | return 0; | |
21770 | } | |
21771 | ||
21772 | _ACEOF | |
21773 | ||
21774 | ||
21775 | rm -Rf build && mkdir -p build | |
21776 | echo "obj-m := conftest.o" >build/Makefile | |
21777 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21779 | (eval $ac_try) 2>&5 | |
21780 | ac_status=$? | |
21781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21782 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21784 | (eval $ac_try) 2>&5 | |
21785 | ac_status=$? | |
21786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21787 | (exit $ac_status); }; }; then | |
21788 | ||
21789 | echo "$as_me:$LINENO: result: no" >&5 | |
21790 | echo "${ECHO_T}no" >&6 | |
21791 | ||
21792 | else | |
21793 | echo "$as_me: failed program was:" >&5 | |
21794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21795 | ||
21796 | echo "$as_me:$LINENO: result: yes" >&5 | |
21797 | echo "${ECHO_T}yes" >&6 | |
21798 | ||
21799 | cat >>confdefs.h <<\_ACEOF | |
21800 | #define NEED_GET_ZONE_COUNTS 1 | |
21801 | _ACEOF | |
21802 | ||
21803 | ||
21804 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 | |
21805 | echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6 | |
21806 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
21807 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21808 | rc=$? | |
21809 | if test $rc -ne 0; then | |
21810 | export=0 | |
21811 | for file in ; do | |
21812 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
21813 | "$LINUX_OBJ/$file" 2>/dev/null | |
21814 | rc=$? | |
21815 | if test $rc -eq 0; then | |
21816 | export=1 | |
21817 | break; | |
21818 | fi | |
21819 | done | |
21820 | if test $export -eq 0; then | |
21821 | echo "$as_me:$LINENO: result: no" >&5 | |
21822 | echo "${ECHO_T}no" >&6 | |
21823 | ||
21824 | else | |
21825 | echo "$as_me:$LINENO: result: yes" >&5 | |
21826 | echo "${ECHO_T}yes" >&6 | |
21827 | ||
21828 | cat >>confdefs.h <<\_ACEOF | |
21829 | #define HAVE_GET_ZONE_COUNTS 1 | |
21830 | _ACEOF | |
21831 | ||
21832 | fi | |
21833 | else | |
21834 | echo "$as_me:$LINENO: result: yes" >&5 | |
21835 | echo "${ECHO_T}yes" >&6 | |
21836 | ||
21837 | cat >>confdefs.h <<\_ACEOF | |
21838 | #define HAVE_GET_ZONE_COUNTS 1 | |
21839 | _ACEOF | |
21840 | ||
21841 | fi | |
21842 | ||
21843 | ||
21844 | ||
21845 | ||
51a727e9 BB |
21846 | fi |
21847 | ||
21848 | rm -Rf build | |
21849 | ||
21850 | ||
21851 | ||
21852 | ||
21853 | echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5 | |
21854 | echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6 | |
21855 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ | |
21856 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21857 | rc=$? | |
21858 | if test $rc -ne 0; then | |
21859 | export=0 | |
21860 | for file in ; do | |
21861 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
21862 | "$LINUX_OBJ/$file" 2>/dev/null | |
21863 | rc=$? | |
21864 | if test $rc -eq 0; then | |
21865 | export=1 | |
21866 | break; | |
21867 | fi | |
21868 | done | |
21869 | if test $export -eq 0; then | |
21870 | echo "$as_me:$LINENO: result: no" >&5 | |
21871 | echo "${ECHO_T}no" >&6 | |
21872 | ||
21873 | else | |
21874 | echo "$as_me:$LINENO: result: yes" >&5 | |
21875 | echo "${ECHO_T}yes" >&6 | |
21876 | ||
21877 | cat >>confdefs.h <<\_ACEOF | |
21878 | #define HAVE_SET_FS_PWD 1 | |
21879 | _ACEOF | |
21880 | ||
21881 | fi | |
21882 | else | |
21883 | echo "$as_me:$LINENO: result: yes" >&5 | |
21884 | echo "${ECHO_T}yes" >&6 | |
21885 | ||
21886 | cat >>confdefs.h <<\_ACEOF | |
21887 | #define HAVE_SET_FS_PWD 1 | |
21888 | _ACEOF | |
21889 | ||
21890 | fi | |
21891 | ||
21892 | ||
21893 | echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 | |
21894 | echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6 | |
21895 | ||
21896 | ||
21897 | cat >conftest.c <<_ACEOF | |
21898 | /* confdefs.h. */ | |
21899 | _ACEOF | |
21900 | cat confdefs.h >>conftest.$ac_ext | |
21901 | cat >>conftest.$ac_ext <<_ACEOF | |
21902 | /* end confdefs.h. */ | |
21903 | ||
21904 | ||
21905 | #include <linux/sched.h> | |
baf2979e | 21906 | #include <linux/fs_struct.h> |
51a727e9 BB |
21907 | |
21908 | int | |
21909 | main (void) | |
21910 | { | |
21911 | ||
21912 | set_fs_pwd(NULL, NULL); | |
21913 | ||
21914 | ; | |
21915 | return 0; | |
21916 | } | |
21917 | ||
21918 | _ACEOF | |
21919 | ||
21920 | ||
21921 | rm -Rf build && mkdir -p build | |
21922 | echo "obj-m := conftest.o" >build/Makefile | |
21923 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21925 | (eval $ac_try) 2>&5 | |
21926 | ac_status=$? | |
21927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21928 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21930 | (eval $ac_try) 2>&5 | |
21931 | ac_status=$? | |
21932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21933 | (exit $ac_status); }; }; then | |
21934 | ||
21935 | echo "$as_me:$LINENO: result: yes" >&5 | |
21936 | echo "${ECHO_T}yes" >&6 | |
21937 | ||
21938 | cat >>confdefs.h <<\_ACEOF | |
21939 | #define HAVE_2ARGS_SET_FS_PWD 1 | |
21940 | _ACEOF | |
21941 | ||
21942 | ||
21943 | else | |
21944 | echo "$as_me: failed program was:" >&5 | |
21945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21946 | ||
21947 | echo "$as_me:$LINENO: result: no" >&5 | |
21948 | echo "${ECHO_T}no" >&6 | |
21949 | ||
21950 | ||
21951 | ||
6ae7fef5 BB |
21952 | fi |
21953 | ||
21954 | rm -Rf build | |
21955 | ||
21956 | ||
21957 | ||
21958 | echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 | |
21959 | echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6 | |
21960 | ||
21961 | ||
21962 | cat >conftest.c <<_ACEOF | |
21963 | /* confdefs.h. */ | |
21964 | _ACEOF | |
21965 | cat confdefs.h >>conftest.$ac_ext | |
21966 | cat >>conftest.$ac_ext <<_ACEOF | |
21967 | /* end confdefs.h. */ | |
21968 | ||
21969 | ||
21970 | #include <linux/fs.h> | |
21971 | ||
21972 | int | |
21973 | main (void) | |
21974 | { | |
21975 | ||
21976 | vfs_unlink(NULL, NULL); | |
21977 | ||
21978 | ; | |
21979 | return 0; | |
21980 | } | |
21981 | ||
21982 | _ACEOF | |
21983 | ||
21984 | ||
21985 | rm -Rf build && mkdir -p build | |
21986 | echo "obj-m := conftest.o" >build/Makefile | |
21987 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21989 | (eval $ac_try) 2>&5 | |
21990 | ac_status=$? | |
21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21992 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21994 | (eval $ac_try) 2>&5 | |
21995 | ac_status=$? | |
21996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21997 | (exit $ac_status); }; }; then | |
21998 | ||
21999 | echo "$as_me:$LINENO: result: yes" >&5 | |
22000 | echo "${ECHO_T}yes" >&6 | |
22001 | ||
22002 | cat >>confdefs.h <<\_ACEOF | |
22003 | #define HAVE_2ARGS_VFS_UNLINK 1 | |
22004 | _ACEOF | |
22005 | ||
22006 | ||
22007 | else | |
22008 | echo "$as_me: failed program was:" >&5 | |
22009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22010 | ||
22011 | echo "$as_me:$LINENO: result: no" >&5 | |
22012 | echo "${ECHO_T}no" >&6 | |
22013 | ||
22014 | ||
22015 | ||
22016 | fi | |
22017 | ||
22018 | rm -Rf build | |
22019 | ||
22020 | ||
22021 | ||
22022 | echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 | |
22023 | echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6 | |
22024 | ||
22025 | ||
22026 | cat >conftest.c <<_ACEOF | |
22027 | /* confdefs.h. */ | |
22028 | _ACEOF | |
22029 | cat confdefs.h >>conftest.$ac_ext | |
22030 | cat >>conftest.$ac_ext <<_ACEOF | |
22031 | /* end confdefs.h. */ | |
22032 | ||
22033 | ||
22034 | #include <linux/fs.h> | |
22035 | ||
22036 | int | |
22037 | main (void) | |
22038 | { | |
22039 | ||
22040 | vfs_rename(NULL, NULL, NULL, NULL); | |
22041 | ||
22042 | ; | |
22043 | return 0; | |
22044 | } | |
22045 | ||
22046 | _ACEOF | |
22047 | ||
22048 | ||
22049 | rm -Rf build && mkdir -p build | |
22050 | echo "obj-m := conftest.o" >build/Makefile | |
22051 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
22052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22053 | (eval $ac_try) 2>&5 | |
22054 | ac_status=$? | |
22055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22056 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22058 | (eval $ac_try) 2>&5 | |
22059 | ac_status=$? | |
22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22061 | (exit $ac_status); }; }; then | |
22062 | ||
22063 | echo "$as_me:$LINENO: result: yes" >&5 | |
22064 | echo "${ECHO_T}yes" >&6 | |
22065 | ||
22066 | cat >>confdefs.h <<\_ACEOF | |
22067 | #define HAVE_4ARGS_VFS_RENAME 1 | |
22068 | _ACEOF | |
22069 | ||
22070 | ||
22071 | else | |
22072 | echo "$as_me: failed program was:" >&5 | |
22073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22074 | ||
22075 | echo "$as_me:$LINENO: result: no" >&5 | |
22076 | echo "${ECHO_T}no" >&6 | |
22077 | ||
22078 | ||
22079 | ||
22080 | fi | |
22081 | ||
22082 | rm -Rf build | |
22083 | ||
22084 | ||
22085 | ||
22086 | ||
22087 | echo "$as_me:$LINENO: checking whether struct cred exists" >&5 | |
22088 | echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6 | |
22089 | ||
22090 | ||
22091 | cat >conftest.c <<_ACEOF | |
22092 | /* confdefs.h. */ | |
22093 | _ACEOF | |
22094 | cat confdefs.h >>conftest.$ac_ext | |
22095 | cat >>conftest.$ac_ext <<_ACEOF | |
22096 | /* end confdefs.h. */ | |
22097 | ||
22098 | ||
22099 | #include <linux/cred.h> | |
22100 | ||
22101 | int | |
22102 | main (void) | |
22103 | { | |
22104 | ||
22105 | struct cred *cr; | |
22106 | cr = NULL; | |
22107 | ||
22108 | ; | |
22109 | return 0; | |
22110 | } | |
22111 | ||
22112 | _ACEOF | |
22113 | ||
22114 | ||
22115 | rm -Rf build && mkdir -p build | |
22116 | echo "obj-m := conftest.o" >build/Makefile | |
22117 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
22118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22119 | (eval $ac_try) 2>&5 | |
22120 | ac_status=$? | |
22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22122 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22124 | (eval $ac_try) 2>&5 | |
22125 | ac_status=$? | |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22127 | (exit $ac_status); }; }; then | |
22128 | ||
22129 | echo "$as_me:$LINENO: result: yes" >&5 | |
22130 | echo "${ECHO_T}yes" >&6 | |
22131 | ||
22132 | cat >>confdefs.h <<\_ACEOF | |
22133 | #define HAVE_CRED_STRUCT 1 | |
22134 | _ACEOF | |
22135 | ||
22136 | ||
22137 | else | |
22138 | echo "$as_me: failed program was:" >&5 | |
22139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22140 | ||
22141 | echo "$as_me:$LINENO: result: no" >&5 | |
22142 | echo "${ECHO_T}no" >&6 | |
22143 | ||
22144 | ||
22145 | ||
22146 | fi | |
22147 | ||
22148 | rm -Rf build | |
22149 | ||
22150 | ||
22151 | ||
22152 | ||
22153 | echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 | |
22154 | echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6 | |
22155 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ | |
22156 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22157 | rc=$? | |
22158 | if test $rc -ne 0; then | |
22159 | export=0 | |
22160 | for file in ; do | |
22161 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
22162 | "$LINUX_OBJ/$file" 2>/dev/null | |
22163 | rc=$? | |
22164 | if test $rc -eq 0; then | |
22165 | export=1 | |
22166 | break; | |
22167 | fi | |
22168 | done | |
22169 | if test $export -eq 0; then | |
22170 | echo "$as_me:$LINENO: result: no" >&5 | |
22171 | echo "${ECHO_T}no" >&6 | |
22172 | ||
22173 | else | |
22174 | echo "$as_me:$LINENO: result: yes" >&5 | |
22175 | echo "${ECHO_T}yes" >&6 | |
22176 | ||
22177 | cat >>confdefs.h <<\_ACEOF | |
22178 | #define HAVE_GROUPS_SEARCH 1 | |
22179 | _ACEOF | |
22180 | ||
22181 | fi | |
22182 | else | |
22183 | echo "$as_me:$LINENO: result: yes" >&5 | |
22184 | echo "${ECHO_T}yes" >&6 | |
22185 | ||
22186 | cat >>confdefs.h <<\_ACEOF | |
22187 | #define HAVE_GROUPS_SEARCH 1 | |
22188 | _ACEOF | |
22189 | ||
22190 | fi | |
22191 | ||
22192 | ||
e811949a BB |
22193 | |
22194 | echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 | |
22195 | echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6 | |
22196 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
22197 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22198 | rc=$? | |
22199 | if test $rc -ne 0; then | |
22200 | export=0 | |
22201 | for file in ; do | |
22202 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
22203 | "$LINUX_OBJ/$file" 2>/dev/null | |
22204 | rc=$? | |
22205 | if test $rc -eq 0; then | |
22206 | export=1 | |
22207 | break; | |
22208 | fi | |
22209 | done | |
22210 | if test $export -eq 0; then | |
22211 | echo "$as_me:$LINENO: result: no" >&5 | |
22212 | echo "${ECHO_T}no" >&6 | |
22213 | ||
22214 | else | |
22215 | echo "$as_me:$LINENO: result: yes" >&5 | |
22216 | echo "${ECHO_T}yes" >&6 | |
22217 | ||
22218 | cat >>confdefs.h <<\_ACEOF | |
22219 | #define HAVE_PUT_TASK_STRUCT 1 | |
22220 | _ACEOF | |
22221 | ||
22222 | fi | |
22223 | else | |
22224 | echo "$as_me:$LINENO: result: yes" >&5 | |
22225 | echo "${ECHO_T}yes" >&6 | |
22226 | ||
22227 | cat >>confdefs.h <<\_ACEOF | |
22228 | #define HAVE_PUT_TASK_STRUCT 1 | |
22229 | _ACEOF | |
22230 | ||
22231 | fi | |
22232 | ||
22233 | ||
6ae7fef5 BB |
22234 | ;; |
22235 | user) ;; | |
22236 | all) | |
22237 | ||
22238 | ||
22239 | # Check whether --with-linux or --without-linux was given. | |
22240 | if test "${with_linux+set}" = set; then | |
22241 | withval="$with_linux" | |
22242 | kernelsrc="$withval" | |
22243 | fi; | |
22244 | ||
22245 | ||
22246 | # Check whether --with-linux-obj or --without-linux-obj was given. | |
22247 | if test "${with_linux_obj+set}" = set; then | |
22248 | withval="$with_linux_obj" | |
22249 | kernelbuild="$withval" | |
22250 | fi; | |
22251 | ||
22252 | echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
22253 | echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6 | |
22254 | if test -z "$kernelsrc"; then | |
22255 | sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \ | |
22256 | 2>/dev/null | grep -v obj | tail -1` | |
22257 | ||
22258 | if test -e ${sourcelink}; then | |
22259 | kernelsrc=`readlink -f ${sourcelink}` | |
22260 | else | |
22261 | echo "$as_me:$LINENO: result: Not found" >&5 | |
22262 | echo "${ECHO_T}Not found" >&6 | |
22263 | { { echo "$as_me:$LINENO: error: | |
22264 | *** Please specify the location of the kernel source | |
22265 | *** with the '--with-linux=PATH' option" >&5 | |
22266 | echo "$as_me: error: | |
22267 | *** Please specify the location of the kernel source | |
22268 | *** with the '--with-linux=PATH' option" >&2;} | |
22269 | { (exit 1); exit 1; }; } | |
22270 | fi | |
22271 | else | |
22272 | if test "$kernelsrc" = "NONE"; then | |
22273 | kernsrcver=NONE | |
22274 | fi | |
22275 | fi | |
22276 | ||
22277 | echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
22278 | echo "${ECHO_T}$kernelsrc" >&6 | |
22279 | echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
22280 | echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6 | |
22281 | if test -z "$kernelbuild"; then | |
22282 | if test -d ${kernelsrc}-obj/`arch`/`arch`; then | |
22283 | kernelbuild=${kernelsrc}-obj/`arch`/`arch` | |
22284 | elif test -d ${kernelsrc}-obj/`arch`/default; then | |
22285 | kernelbuild=${kernelsrc}-obj/`arch`/default | |
22286 | elif test -d `dirname ${kernelsrc}`/build-`arch`; then | |
22287 | kernelbuild=`dirname ${kernelsrc}`/build-`arch` | |
22288 | else | |
22289 | kernelbuild=${kernelsrc} | |
22290 | fi | |
22291 | fi | |
22292 | echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
22293 | echo "${ECHO_T}$kernelbuild" >&6 | |
22294 | ||
22295 | echo "$as_me:$LINENO: checking kernel source version" >&5 | |
22296 | echo $ECHO_N "checking kernel source version... $ECHO_C" >&6 | |
22297 | if test -r $kernelbuild/include/linux/version.h && | |
22298 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then | |
22299 | ||
22300 | kernsrcver=`(echo "#include <linux/version.h>"; | |
22301 | echo "kernsrcver=UTS_RELEASE") | | |
22302 | cpp -I $kernelbuild/include | | |
22303 | grep "^kernsrcver=" | cut -d \" -f 2` | |
22304 | ||
22305 | elif test -r $kernelbuild/include/linux/utsrelease.h && | |
22306 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then | |
22307 | ||
22308 | kernsrcver=`(echo "#include <linux/utsrelease.h>"; | |
22309 | echo "kernsrcver=UTS_RELEASE") | | |
22310 | cpp -I $kernelbuild/include | | |
22311 | grep "^kernsrcver=" | cut -d \" -f 2` | |
22312 | fi | |
22313 | ||
22314 | if test -z "$kernsrcver"; then | |
22315 | echo "$as_me:$LINENO: result: Not found" >&5 | |
22316 | echo "${ECHO_T}Not found" >&6 | |
22317 | { { echo "$as_me:$LINENO: error: | |
22318 | *** Cannot determine the version of the linux kernel source. | |
22319 | *** Please prepare the kernel before running this script" >&5 | |
22320 | echo "$as_me: error: | |
22321 | *** Cannot determine the version of the linux kernel source. | |
22322 | *** Please prepare the kernel before running this script" >&2;} | |
bf9f3bac | 22323 | { (exit 1); exit 1; }; } |
22324 | fi | |
22325 | ||
22326 | echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
22327 | echo "${ECHO_T}$kernsrcver" >&6 | |
22328 | ||
bf9f3bac | 22329 | LINUX=${kernelsrc} |
22330 | LINUX_OBJ=${kernelbuild} | |
c5f70460 BB |
22331 | LINUX_VERSION=${kernsrcver} |
22332 | ||
bf9f3bac | 22333 | |
22334 | ||
22335 | ||
22336 | ||
22337 | ||
bb339d06 | 22338 | modpost=$LINUX/scripts/Makefile.modpost |
2e0e7e69 BB |
22339 | echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
22340 | echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6 | |
bb339d06 BB |
22341 | if test -f "$modpost"; then |
22342 | if grep -q Modules.symvers $modpost; then | |
22343 | LINUX_SYMBOLS=Modules.symvers | |
22344 | else | |
22345 | LINUX_SYMBOLS=Module.symvers | |
22346 | fi | |
2e0e7e69 | 22347 | else |
bb339d06 | 22348 | LINUX_SYMBOLS=NONE |
2e0e7e69 BB |
22349 | fi |
22350 | echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
22351 | echo "${ECHO_T}$LINUX_SYMBOLS" >&6 | |
22352 | ||
22353 | ||
22354 | ||
86933a6e BB |
22355 | |
22356 | KERNELMAKE_PARAMS="V=1" | |
22357 | ||
22358 | abs_srcdir=`readlink -f ${srcdir}` | |
22359 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror" | |
22360 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include" | |
22361 | ||
22362 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
22363 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
22364 | fi | |
22365 | ||
22366 | ||
22367 | ||
bf9f3bac | 22368 | |
22369 | ||
bf9f3bac | 22370 | # Check whether --enable-debug or --disable-debug was given. |
22371 | if test "${enable_debug+set}" = set; then | |
22372 | enableval="$enable_debug" | |
bf9f3bac | 22373 | |
055ffd98 BB |
22374 | else |
22375 | enable_debug=no | |
bf9f3bac | 22376 | fi; |
055ffd98 BB |
22377 | |
22378 | if test "x$enable_debug" = xyes; then | |
22379 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG" | |
22380 | else | |
22381 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
22382 | fi | |
22383 | ||
22384 | ||
22385 | echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 | |
22386 | echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6 | |
22387 | echo "$as_me:$LINENO: result: $enable_debug" >&5 | |
22388 | echo "${ECHO_T}$enable_debug" >&6 | |
bf9f3bac | 22389 | |
22390 | ||
bf9f3bac | 22391 | # Check whether --enable-debug-kmem or --disable-debug-kmem was given. |
22392 | if test "${enable_debug_kmem+set}" = set; then | |
22393 | enableval="$enable_debug_kmem" | |
bf9f3bac | 22394 | |
055ffd98 BB |
22395 | else |
22396 | enable_debug_kmem=yes | |
bf9f3bac | 22397 | fi; |
055ffd98 BB |
22398 | |
22399 | if test "x$enable_debug_kmem" = xyes; then | |
bf9f3bac | 22400 | |
22401 | cat >>confdefs.h <<\_ACEOF | |
22402 | #define DEBUG_KMEM 1 | |
22403 | _ACEOF | |
22404 | ||
22405 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
055ffd98 | 22406 | fi |
bf9f3bac | 22407 | |
bf9f3bac | 22408 | |
055ffd98 BB |
22409 | echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 |
22410 | echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6 | |
22411 | echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
22412 | echo "${ECHO_T}$enable_debug_kmem" >&6 | |
bf9f3bac | 22413 | |
22414 | ||
055ffd98 BB |
22415 | # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given. |
22416 | if test "${enable_debug_kmem_tracking+set}" = set; then | |
22417 | enableval="$enable_debug_kmem_tracking" | |
bf9f3bac | 22418 | |
055ffd98 BB |
22419 | else |
22420 | enable_debug_kmem_tracking=no | |
bf9f3bac | 22421 | fi; |
055ffd98 BB |
22422 | |
22423 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
bf9f3bac | 22424 | |
22425 | cat >>confdefs.h <<\_ACEOF | |
055ffd98 | 22426 | #define DEBUG_KMEM_TRACKING 1 |
bf9f3bac | 22427 | _ACEOF |
22428 | ||
055ffd98 BB |
22429 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" |
22430 | fi | |
22431 | ||
22432 | ||
22433 | echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 | |
22434 | echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6 | |
22435 | echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
22436 | echo "${ECHO_T}$enable_debug_kmem_tracking" >&6 | |
bf9f3bac | 22437 | |
5e9b5d83 BB |
22438 | |
22439 | # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given. | |
22440 | if test "${enable_atomic_spinlocks+set}" = set; then | |
22441 | enableval="$enable_atomic_spinlocks" | |
22442 | ||
22443 | else | |
d04c8a56 | 22444 | enable_atomic_spinlocks=check |
5e9b5d83 BB |
22445 | fi; |
22446 | ||
bf9f3bac | 22447 | |
22448 | ||
22449 | cat >conftest.c <<_ACEOF | |
22450 | /* confdefs.h. */ | |
22451 | _ACEOF | |
22452 | cat confdefs.h >>conftest.$ac_ext | |
22453 | cat >>conftest.$ac_ext <<_ACEOF | |
22454 | /* end confdefs.h. */ | |
22455 | ||
22456 | ||
d04c8a56 | 22457 | #include <asm/atomic.h> |
bf9f3bac | 22458 | |
22459 | int | |
22460 | main (void) | |
22461 | { | |
22462 | ||
d04c8a56 | 22463 | atomic64_t *ptr; |
bf9f3bac | 22464 | |
22465 | ; | |
22466 | return 0; | |
22467 | } | |
22468 | ||
22469 | _ACEOF | |
22470 | ||
c5f70460 BB |
22471 | |
22472 | rm -Rf build && mkdir -p build | |
22473 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22474 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22476 | (eval $ac_try) 2>&5 | |
22477 | ac_status=$? | |
22478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22479 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22481 | (eval $ac_try) 2>&5 | |
22482 | ac_status=$? | |
22483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22484 | (exit $ac_status); }; }; then | |
22485 | ||
d04c8a56 | 22486 | have_atomic64_t=yes |
bf9f3bac | 22487 | |
22488 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 22489 | #define HAVE_ATOMIC64_T 1 |
bf9f3bac | 22490 | _ACEOF |
22491 | ||
22492 | ||
22493 | else | |
22494 | echo "$as_me: failed program was:" >&5 | |
22495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22496 | ||
d04c8a56 | 22497 | have_atomic64_t=no |
bf9f3bac | 22498 | |
c5f70460 BB |
22499 | |
22500 | ||
bf9f3bac | 22501 | fi |
c5f70460 BB |
22502 | |
22503 | rm -Rf build | |
22504 | ||
bf9f3bac | 22505 | |
22506 | ||
d04c8a56 BB |
22507 | if test "x$enable_atomic_spinlocks" = xcheck; then |
22508 | ||
22509 | if test "x$have_atomic64_t" = xyes; then | |
22510 | ||
22511 | enable_atomic_spinlocks=no | |
22512 | ||
22513 | else | |
22514 | ||
22515 | enable_atomic_spinlocks=yes | |
22516 | ||
22517 | fi | |
22518 | ||
22519 | ||
22520 | fi | |
22521 | ||
22522 | ||
22523 | if test "x$enable_atomic_spinlocks" = xyes; then | |
22524 | ||
22525 | ||
22526 | cat >>confdefs.h <<\_ACEOF | |
22527 | #define ATOMIC_SPINLOCK 1 | |
22528 | _ACEOF | |
22529 | ||
22530 | ||
22531 | else | |
22532 | ||
22533 | if test "x$have_atomic64_t" = xno; then | |
22534 | ||
22535 | { { echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
22536 | See \`config.log' for more details." >&5 | |
22537 | echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
22538 | See \`config.log' for more details." >&2;} | |
22539 | { (exit 1); exit 1; }; } | |
22540 | ||
22541 | fi | |
22542 | ||
22543 | ||
22544 | fi | |
22545 | ||
22546 | ||
22547 | echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 | |
22548 | echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6 | |
22549 | echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
22550 | echo "${ECHO_T}$enable_atomic_spinlocks" >&6 | |
22551 | ||
86933a6e | 22552 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
bf9f3bac | 22553 | echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6 |
d04c8a56 BB |
22554 | echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 |
22555 | echo "${ECHO_T}$have_atomic64_t" >&6 | |
22556 | ||
22557 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 | |
22558 | echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6 | |
bf9f3bac | 22559 | |
22560 | ||
22561 | cat >conftest.c <<_ACEOF | |
22562 | /* confdefs.h. */ | |
22563 | _ACEOF | |
22564 | cat confdefs.h >>conftest.$ac_ext | |
22565 | cat >>conftest.$ac_ext <<_ACEOF | |
22566 | /* end confdefs.h. */ | |
22567 | ||
22568 | ||
22569 | #include <asm/atomic.h> | |
22570 | ||
22571 | int | |
22572 | main (void) | |
22573 | { | |
22574 | ||
d04c8a56 | 22575 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); |
bf9f3bac | 22576 | |
22577 | ; | |
22578 | return 0; | |
22579 | } | |
22580 | ||
22581 | _ACEOF | |
22582 | ||
c5f70460 BB |
22583 | |
22584 | rm -Rf build && mkdir -p build | |
22585 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22586 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22588 | (eval $ac_try) 2>&5 | |
22589 | ac_status=$? | |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22591 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22593 | (eval $ac_try) 2>&5 | |
22594 | ac_status=$? | |
22595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22596 | (exit $ac_status); }; }; then | |
22597 | ||
22598 | echo "$as_me:$LINENO: result: yes" >&5 | |
22599 | echo "${ECHO_T}yes" >&6 | |
22600 | ||
22601 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 22602 | #define HAVE_ATOMIC64_CMPXCHG 1 |
bf9f3bac | 22603 | _ACEOF |
22604 | ||
22605 | ||
302b88e6 BB |
22606 | else |
22607 | echo "$as_me: failed program was:" >&5 | |
22608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22609 | ||
22610 | echo "$as_me:$LINENO: result: no" >&5 | |
22611 | echo "${ECHO_T}no" >&6 | |
22612 | ||
22613 | ||
22614 | ||
22615 | fi | |
22616 | ||
22617 | rm -Rf build | |
22618 | ||
22619 | ||
22620 | ||
d04c8a56 BB |
22621 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 |
22622 | echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6 | |
302b88e6 BB |
22623 | |
22624 | ||
22625 | cat >conftest.c <<_ACEOF | |
22626 | /* confdefs.h. */ | |
22627 | _ACEOF | |
22628 | cat confdefs.h >>conftest.$ac_ext | |
22629 | cat >>conftest.$ac_ext <<_ACEOF | |
22630 | /* end confdefs.h. */ | |
22631 | ||
22632 | ||
22633 | #include <asm/atomic.h> | |
22634 | ||
22635 | int | |
22636 | main (void) | |
22637 | { | |
22638 | ||
d04c8a56 | 22639 | atomic64_xchg((atomic64_t *)NULL, 0); |
302b88e6 BB |
22640 | |
22641 | ; | |
22642 | return 0; | |
22643 | } | |
22644 | ||
22645 | _ACEOF | |
22646 | ||
22647 | ||
22648 | rm -Rf build && mkdir -p build | |
22649 | echo "obj-m := conftest.o" >build/Makefile | |
22650 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
22651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22652 | (eval $ac_try) 2>&5 | |
22653 | ac_status=$? | |
22654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22655 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22657 | (eval $ac_try) 2>&5 | |
22658 | ac_status=$? | |
22659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22660 | (exit $ac_status); }; }; then | |
22661 | ||
22662 | echo "$as_me:$LINENO: result: yes" >&5 | |
22663 | echo "${ECHO_T}yes" >&6 | |
22664 | ||
22665 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 22666 | #define HAVE_ATOMIC64_XCHG 1 |
302b88e6 BB |
22667 | _ACEOF |
22668 | ||
22669 | ||
22670 | else | |
22671 | echo "$as_me: failed program was:" >&5 | |
22672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22673 | ||
22674 | echo "$as_me:$LINENO: result: no" >&5 | |
22675 | echo "${ECHO_T}no" >&6 | |
22676 | ||
22677 | ||
22678 | ||
22679 | fi | |
22680 | ||
22681 | rm -Rf build | |
22682 | ||
22683 | ||
22684 | ||
d04c8a56 BB |
22685 | echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
22686 | echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6 | |
302b88e6 BB |
22687 | |
22688 | ||
22689 | cat >conftest.c <<_ACEOF | |
22690 | /* confdefs.h. */ | |
22691 | _ACEOF | |
22692 | cat confdefs.h >>conftest.$ac_ext | |
22693 | cat >>conftest.$ac_ext <<_ACEOF | |
22694 | /* end confdefs.h. */ | |
22695 | ||
22696 | ||
d04c8a56 | 22697 | #include <linux/types.h> |
302b88e6 BB |
22698 | |
22699 | int | |
22700 | main (void) | |
22701 | { | |
22702 | ||
d04c8a56 | 22703 | uintptr_t *ptr; |
302b88e6 BB |
22704 | |
22705 | ; | |
22706 | return 0; | |
22707 | } | |
22708 | ||
22709 | _ACEOF | |
22710 | ||
22711 | ||
22712 | rm -Rf build && mkdir -p build | |
22713 | echo "obj-m := conftest.o" >build/Makefile | |
22714 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
22715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22716 | (eval $ac_try) 2>&5 | |
22717 | ac_status=$? | |
22718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22719 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22721 | (eval $ac_try) 2>&5 | |
22722 | ac_status=$? | |
22723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22724 | (exit $ac_status); }; }; then | |
22725 | ||
22726 | echo "$as_me:$LINENO: result: yes" >&5 | |
22727 | echo "${ECHO_T}yes" >&6 | |
22728 | ||
22729 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 22730 | #define HAVE_UINTPTR_T 1 |
302b88e6 BB |
22731 | _ACEOF |
22732 | ||
22733 | ||
bf9f3bac | 22734 | else |
22735 | echo "$as_me: failed program was:" >&5 | |
22736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22737 | ||
bf9f3bac | 22738 | echo "$as_me:$LINENO: result: no" >&5 |
22739 | echo "${ECHO_T}no" >&6 | |
22740 | ||
c5f70460 BB |
22741 | |
22742 | ||
bf9f3bac | 22743 | fi |
c5f70460 BB |
22744 | |
22745 | rm -Rf build | |
22746 | ||
bf9f3bac | 22747 | |
22748 | ||
86933a6e | 22749 | echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 |
bf9f3bac | 22750 | echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6 |
22751 | ||
22752 | ||
22753 | cat >conftest.c <<_ACEOF | |
22754 | /* confdefs.h. */ | |
22755 | _ACEOF | |
22756 | cat confdefs.h >>conftest.$ac_ext | |
22757 | cat >>conftest.$ac_ext <<_ACEOF | |
22758 | /* end confdefs.h. */ | |
22759 | ||
22760 | ||
22761 | #include <linux/workqueue.h> | |
22762 | ||
22763 | int | |
22764 | main (void) | |
22765 | { | |
22766 | ||
22767 | struct work_struct work; | |
22768 | INIT_WORK(&work, NULL, NULL); | |
22769 | ||
22770 | ; | |
22771 | return 0; | |
22772 | } | |
22773 | ||
22774 | _ACEOF | |
22775 | ||
c5f70460 BB |
22776 | |
22777 | rm -Rf build && mkdir -p build | |
22778 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22779 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22781 | (eval $ac_try) 2>&5 | |
22782 | ac_status=$? | |
22783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22784 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22786 | (eval $ac_try) 2>&5 | |
22787 | ac_status=$? | |
22788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22789 | (exit $ac_status); }; }; then | |
22790 | ||
22791 | echo "$as_me:$LINENO: result: yes" >&5 | |
22792 | echo "${ECHO_T}yes" >&6 | |
22793 | ||
22794 | cat >>confdefs.h <<\_ACEOF | |
22795 | #define HAVE_3ARGS_INIT_WORK 1 | |
22796 | _ACEOF | |
22797 | ||
22798 | ||
22799 | else | |
22800 | echo "$as_me: failed program was:" >&5 | |
22801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22802 | ||
bf9f3bac | 22803 | echo "$as_me:$LINENO: result: no" >&5 |
22804 | echo "${ECHO_T}no" >&6 | |
22805 | ||
c5f70460 BB |
22806 | |
22807 | ||
bf9f3bac | 22808 | fi |
c5f70460 BB |
22809 | |
22810 | rm -Rf build | |
22811 | ||
bf9f3bac | 22812 | |
22813 | ||
86933a6e | 22814 | echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 |
bf9f3bac | 22815 | echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6 |
22816 | ||
22817 | ||
22818 | cat >conftest.c <<_ACEOF | |
22819 | /* confdefs.h. */ | |
22820 | _ACEOF | |
22821 | cat confdefs.h >>conftest.$ac_ext | |
22822 | cat >>conftest.$ac_ext <<_ACEOF | |
22823 | /* end confdefs.h. */ | |
22824 | ||
22825 | ||
22826 | #include <linux/sysctl.h> | |
22827 | ||
22828 | int | |
22829 | main (void) | |
22830 | { | |
22831 | ||
22832 | return register_sysctl_table(NULL,0); | |
22833 | ||
22834 | ; | |
22835 | return 0; | |
22836 | } | |
22837 | ||
22838 | _ACEOF | |
22839 | ||
c5f70460 BB |
22840 | |
22841 | rm -Rf build && mkdir -p build | |
22842 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22843 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22845 | (eval $ac_try) 2>&5 | |
22846 | ac_status=$? | |
22847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22848 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22850 | (eval $ac_try) 2>&5 | |
22851 | ac_status=$? | |
22852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22853 | (exit $ac_status); }; }; then | |
22854 | ||
22855 | echo "$as_me:$LINENO: result: yes" >&5 | |
22856 | echo "${ECHO_T}yes" >&6 | |
22857 | ||
22858 | cat >>confdefs.h <<\_ACEOF | |
22859 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
22860 | _ACEOF | |
22861 | ||
22862 | ||
22863 | else | |
22864 | echo "$as_me: failed program was:" >&5 | |
22865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22866 | ||
bf9f3bac | 22867 | echo "$as_me:$LINENO: result: no" >&5 |
22868 | echo "${ECHO_T}no" >&6 | |
22869 | ||
c5f70460 BB |
22870 | |
22871 | ||
bf9f3bac | 22872 | fi |
c5f70460 BB |
22873 | |
22874 | rm -Rf build | |
22875 | ||
bf9f3bac | 22876 | |
22877 | ||
22878 | ||
22879 | echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 | |
22880 | echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6 | |
22881 | ||
22882 | ||
22883 | cat >conftest.c <<_ACEOF | |
22884 | /* confdefs.h. */ | |
22885 | _ACEOF | |
22886 | cat confdefs.h >>conftest.$ac_ext | |
22887 | cat >>conftest.$ac_ext <<_ACEOF | |
22888 | /* end confdefs.h. */ | |
22889 | ||
22890 | ||
22891 | #include <linux/mm.h> | |
22892 | ||
22893 | int | |
22894 | main (void) | |
22895 | { | |
22896 | ||
22897 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
22898 | ||
22899 | ; | |
22900 | return 0; | |
22901 | } | |
22902 | ||
22903 | _ACEOF | |
22904 | ||
c5f70460 BB |
22905 | |
22906 | rm -Rf build && mkdir -p build | |
22907 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22908 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22910 | (eval $ac_try) 2>&5 | |
22911 | ac_status=$? | |
22912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22913 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22915 | (eval $ac_try) 2>&5 | |
22916 | ac_status=$? | |
22917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22918 | (exit $ac_status); }; }; then | |
22919 | ||
22920 | echo "$as_me:$LINENO: result: yes" >&5 | |
22921 | echo "${ECHO_T}yes" >&6 | |
22922 | ||
22923 | cat >>confdefs.h <<\_ACEOF | |
22924 | #define HAVE_SET_SHRINKER 1 | |
22925 | _ACEOF | |
22926 | ||
22927 | ||
22928 | else | |
22929 | echo "$as_me: failed program was:" >&5 | |
22930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22931 | ||
bf9f3bac | 22932 | echo "$as_me:$LINENO: result: no" >&5 |
22933 | echo "${ECHO_T}no" >&6 | |
22934 | ||
c5f70460 BB |
22935 | |
22936 | ||
bf9f3bac | 22937 | fi |
c5f70460 BB |
22938 | |
22939 | rm -Rf build | |
22940 | ||
bf9f3bac | 22941 | |
22942 | ||
86933a6e | 22943 | echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 |
bf9f3bac | 22944 | echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6 |
22945 | ||
22946 | ||
22947 | cat >conftest.c <<_ACEOF | |
22948 | /* confdefs.h. */ | |
22949 | _ACEOF | |
22950 | cat confdefs.h >>conftest.$ac_ext | |
22951 | cat >>conftest.$ac_ext <<_ACEOF | |
22952 | /* end confdefs.h. */ | |
22953 | ||
22954 | ||
22955 | #include <linux/namei.h> | |
22956 | ||
22957 | int | |
22958 | main (void) | |
22959 | { | |
22960 | ||
22961 | struct nameidata nd; | |
22962 | ||
22963 | nd.path.mnt = NULL; | |
22964 | nd.path.dentry = NULL; | |
22965 | ||
22966 | ; | |
22967 | return 0; | |
22968 | } | |
22969 | ||
22970 | _ACEOF | |
22971 | ||
c5f70460 BB |
22972 | |
22973 | rm -Rf build && mkdir -p build | |
22974 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22975 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22977 | (eval $ac_try) 2>&5 | |
22978 | ac_status=$? | |
22979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22980 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22982 | (eval $ac_try) 2>&5 | |
22983 | ac_status=$? | |
22984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22985 | (exit $ac_status); }; }; then | |
22986 | ||
22987 | echo "$as_me:$LINENO: result: yes" >&5 | |
22988 | echo "${ECHO_T}yes" >&6 | |
22989 | ||
22990 | cat >>confdefs.h <<\_ACEOF | |
22991 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
22992 | _ACEOF | |
22993 | ||
22994 | ||
22995 | else | |
22996 | echo "$as_me: failed program was:" >&5 | |
22997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22998 | ||
bf9f3bac | 22999 | echo "$as_me:$LINENO: result: no" >&5 |
23000 | echo "${ECHO_T}no" >&6 | |
23001 | ||
c5f70460 BB |
23002 | |
23003 | ||
bf9f3bac | 23004 | fi |
c5f70460 BB |
23005 | |
23006 | rm -Rf build | |
23007 | ||
bf9f3bac | 23008 | |
23009 | ||
23010 | ||
23011 | echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 | |
23012 | echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
23013 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ |
23014 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 23015 | rc=$? |
23016 | if test $rc -ne 0; then | |
23017 | export=0 | |
23018 | for file in kernel/sched.c; do | |
2e0e7e69 BB |
23019 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ |
23020 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 23021 | rc=$? |
23022 | if test $rc -eq 0; then | |
23023 | export=1 | |
23024 | break; | |
23025 | fi | |
23026 | done | |
23027 | if test $export -eq 0; then | |
23028 | echo "$as_me:$LINENO: result: no" >&5 | |
23029 | echo "${ECHO_T}no" >&6 | |
23030 | ||
23031 | else | |
23032 | echo "$as_me:$LINENO: result: yes" >&5 | |
23033 | echo "${ECHO_T}yes" >&6 | |
23034 | ||
23035 | cat >>confdefs.h <<\_ACEOF | |
23036 | #define HAVE_TASK_CURR 1 | |
23037 | _ACEOF | |
23038 | ||
23039 | fi | |
23040 | else | |
23041 | echo "$as_me:$LINENO: result: yes" >&5 | |
23042 | echo "${ECHO_T}yes" >&6 | |
23043 | ||
23044 | cat >>confdefs.h <<\_ACEOF | |
23045 | #define HAVE_TASK_CURR 1 | |
23046 | _ACEOF | |
23047 | ||
23048 | fi | |
23049 | ||
23050 | ||
86933a6e | 23051 | echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 |
bf9f3bac | 23052 | echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6 |
23053 | ||
23054 | ||
23055 | cat >conftest.c <<_ACEOF | |
23056 | /* confdefs.h. */ | |
23057 | _ACEOF | |
23058 | cat confdefs.h >>conftest.$ac_ext | |
23059 | cat >>conftest.$ac_ext <<_ACEOF | |
23060 | /* end confdefs.h. */ | |
23061 | ||
23062 | ||
23063 | #include <linux/sysctl.h> | |
23064 | ||
23065 | int | |
23066 | main (void) | |
23067 | { | |
23068 | ||
23069 | #ifndef CTL_UNNUMBERED | |
23070 | #error CTL_UNNUMBERED undefined | |
23071 | #endif | |
23072 | ||
23073 | ; | |
23074 | return 0; | |
23075 | } | |
23076 | ||
23077 | _ACEOF | |
23078 | ||
c5f70460 BB |
23079 | |
23080 | rm -Rf build && mkdir -p build | |
23081 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23082 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23084 | (eval $ac_try) 2>&5 | |
23085 | ac_status=$? | |
23086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23087 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23089 | (eval $ac_try) 2>&5 | |
23090 | ac_status=$? | |
23091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23092 | (exit $ac_status); }; }; then | |
23093 | ||
23094 | echo "$as_me:$LINENO: result: yes" >&5 | |
23095 | echo "${ECHO_T}yes" >&6 | |
23096 | ||
23097 | cat >>confdefs.h <<\_ACEOF | |
23098 | #define HAVE_CTL_UNNUMBERED 1 | |
23099 | _ACEOF | |
23100 | ||
23101 | ||
23102 | else | |
23103 | echo "$as_me: failed program was:" >&5 | |
23104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23105 | ||
bf9f3bac | 23106 | echo "$as_me:$LINENO: result: no" >&5 |
23107 | echo "${ECHO_T}no" >&6 | |
23108 | ||
c5f70460 BB |
23109 | |
23110 | ||
bf9f3bac | 23111 | fi |
c5f70460 BB |
23112 | |
23113 | rm -Rf build | |
23114 | ||
bf9f3bac | 23115 | |
23116 | ||
86933a6e | 23117 | echo "$as_me:$LINENO: checking whether fls64() is available" >&5 |
bf9f3bac | 23118 | echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6 |
23119 | ||
23120 | ||
23121 | cat >conftest.c <<_ACEOF | |
23122 | /* confdefs.h. */ | |
23123 | _ACEOF | |
23124 | cat confdefs.h >>conftest.$ac_ext | |
23125 | cat >>conftest.$ac_ext <<_ACEOF | |
23126 | /* end confdefs.h. */ | |
23127 | ||
23128 | ||
23129 | #include <linux/bitops.h> | |
23130 | ||
23131 | int | |
23132 | main (void) | |
23133 | { | |
23134 | ||
23135 | return fls64(0); | |
23136 | ||
23137 | ; | |
23138 | return 0; | |
23139 | } | |
23140 | ||
23141 | _ACEOF | |
23142 | ||
c5f70460 BB |
23143 | |
23144 | rm -Rf build && mkdir -p build | |
23145 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23146 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23148 | (eval $ac_try) 2>&5 | |
23149 | ac_status=$? | |
23150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23151 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23153 | (eval $ac_try) 2>&5 | |
23154 | ac_status=$? | |
23155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23156 | (exit $ac_status); }; }; then | |
23157 | ||
23158 | echo "$as_me:$LINENO: result: yes" >&5 | |
23159 | echo "${ECHO_T}yes" >&6 | |
23160 | ||
23161 | cat >>confdefs.h <<\_ACEOF | |
23162 | #define HAVE_FLS64 1 | |
23163 | _ACEOF | |
23164 | ||
23165 | ||
23166 | else | |
23167 | echo "$as_me: failed program was:" >&5 | |
23168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23169 | ||
bf9f3bac | 23170 | echo "$as_me:$LINENO: result: no" >&5 |
23171 | echo "${ECHO_T}no" >&6 | |
23172 | ||
c5f70460 BB |
23173 | |
23174 | ||
bf9f3bac | 23175 | fi |
c5f70460 BB |
23176 | |
23177 | rm -Rf build | |
23178 | ||
bf9f3bac | 23179 | |
23180 | ||
23181 | ||
23182 | echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 | |
23183 | echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
23184 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
23185 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 23186 | rc=$? |
23187 | if test $rc -ne 0; then | |
23188 | export=0 | |
23189 | for file in drivers/base/core.c; do | |
2e0e7e69 BB |
23190 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ |
23191 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 23192 | rc=$? |
23193 | if test $rc -eq 0; then | |
23194 | export=1 | |
23195 | break; | |
23196 | fi | |
23197 | done | |
23198 | if test $export -eq 0; then | |
23199 | echo "$as_me:$LINENO: result: no" >&5 | |
23200 | echo "${ECHO_T}no" >&6 | |
23201 | ||
23202 | else | |
23203 | echo "$as_me:$LINENO: result: yes" >&5 | |
23204 | echo "${ECHO_T}yes" >&6 | |
23205 | ||
23206 | cat >>confdefs.h <<\_ACEOF | |
23207 | #define HAVE_DEVICE_CREATE 1 | |
23208 | _ACEOF | |
23209 | ||
23210 | fi | |
23211 | else | |
23212 | echo "$as_me:$LINENO: result: yes" >&5 | |
23213 | echo "${ECHO_T}yes" >&6 | |
23214 | ||
23215 | cat >>confdefs.h <<\_ACEOF | |
23216 | #define HAVE_DEVICE_CREATE 1 | |
23217 | _ACEOF | |
23218 | ||
23219 | fi | |
23220 | ||
23221 | ||
23222 | ||
8123ac4f BB |
23223 | echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
23224 | echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6 | |
23225 | tmp_flags="$EXTRA_KCFLAGS" | |
23226 | EXTRA_KCFLAGS="-Werror" | |
23227 | ||
23228 | ||
23229 | cat >conftest.c <<_ACEOF | |
23230 | /* confdefs.h. */ | |
23231 | _ACEOF | |
23232 | cat confdefs.h >>conftest.$ac_ext | |
23233 | cat >>conftest.$ac_ext <<_ACEOF | |
23234 | /* end confdefs.h. */ | |
23235 | ||
23236 | ||
23237 | #include <linux/device.h> | |
23238 | ||
23239 | int | |
23240 | main (void) | |
23241 | { | |
23242 | ||
23243 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
23244 | ||
23245 | ; | |
23246 | return 0; | |
23247 | } | |
23248 | ||
23249 | _ACEOF | |
23250 | ||
23251 | ||
23252 | rm -Rf build && mkdir -p build | |
23253 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23254 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
8123ac4f BB |
23255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23256 | (eval $ac_try) 2>&5 | |
23257 | ac_status=$? | |
23258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23259 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23261 | (eval $ac_try) 2>&5 | |
23262 | ac_status=$? | |
23263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23264 | (exit $ac_status); }; }; then | |
23265 | ||
23266 | echo "$as_me:$LINENO: result: yes" >&5 | |
23267 | echo "${ECHO_T}yes" >&6 | |
23268 | ||
23269 | cat >>confdefs.h <<\_ACEOF | |
23270 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
23271 | _ACEOF | |
23272 | ||
23273 | ||
23274 | else | |
23275 | echo "$as_me: failed program was:" >&5 | |
23276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23277 | ||
23278 | echo "$as_me:$LINENO: result: no" >&5 | |
23279 | echo "${ECHO_T}no" >&6 | |
23280 | ||
23281 | ||
23282 | ||
23283 | fi | |
23284 | ||
23285 | rm -Rf build | |
23286 | ||
23287 | ||
23288 | EXTRA_KCFLAGS="$tmp_flags" | |
23289 | ||
23290 | ||
bf9f3bac | 23291 | echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 |
23292 | echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
23293 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
23294 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 23295 | rc=$? |
23296 | if test $rc -ne 0; then | |
23297 | export=0 | |
23298 | for file in drivers/base/class.c; do | |
2e0e7e69 BB |
23299 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ |
23300 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 23301 | rc=$? |
23302 | if test $rc -eq 0; then | |
23303 | export=1 | |
23304 | break; | |
23305 | fi | |
23306 | done | |
23307 | if test $export -eq 0; then | |
23308 | echo "$as_me:$LINENO: result: no" >&5 | |
23309 | echo "${ECHO_T}no" >&6 | |
23310 | ||
23311 | else | |
23312 | echo "$as_me:$LINENO: result: yes" >&5 | |
23313 | echo "${ECHO_T}yes" >&6 | |
23314 | ||
23315 | cat >>confdefs.h <<\_ACEOF | |
23316 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
23317 | _ACEOF | |
23318 | ||
23319 | fi | |
23320 | else | |
23321 | echo "$as_me:$LINENO: result: yes" >&5 | |
23322 | echo "${ECHO_T}yes" >&6 | |
23323 | ||
23324 | cat >>confdefs.h <<\_ACEOF | |
23325 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
23326 | _ACEOF | |
23327 | ||
23328 | fi | |
23329 | ||
23330 | ||
23331 | ||
23332 | echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 | |
23333 | echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
23334 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
23335 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 23336 | rc=$? |
23337 | if test $rc -ne 0; then | |
23338 | export=0 | |
23339 | for file in kernel/time.c; do | |
2e0e7e69 BB |
23340 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ |
23341 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 23342 | rc=$? |
23343 | if test $rc -eq 0; then | |
23344 | export=1 | |
23345 | break; | |
23346 | fi | |
23347 | done | |
23348 | if test $export -eq 0; then | |
23349 | echo "$as_me:$LINENO: result: no" >&5 | |
23350 | echo "${ECHO_T}no" >&6 | |
23351 | ||
6ae7fef5 BB |
23352 | else |
23353 | echo "$as_me:$LINENO: result: yes" >&5 | |
23354 | echo "${ECHO_T}yes" >&6 | |
23355 | ||
23356 | cat >>confdefs.h <<\_ACEOF | |
23357 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
23358 | _ACEOF | |
23359 | ||
23360 | fi | |
23361 | else | |
23362 | echo "$as_me:$LINENO: result: yes" >&5 | |
23363 | echo "${ECHO_T}yes" >&6 | |
23364 | ||
23365 | cat >>confdefs.h <<\_ACEOF | |
23366 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
23367 | _ACEOF | |
23368 | ||
23369 | fi | |
23370 | ||
23371 | ||
23372 | ||
23373 | echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 | |
23374 | echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6 | |
23375 | ||
23376 | ||
23377 | cat >conftest.c <<_ACEOF | |
23378 | /* confdefs.h. */ | |
23379 | _ACEOF | |
23380 | cat confdefs.h >>conftest.$ac_ext | |
23381 | cat >>conftest.$ac_ext <<_ACEOF | |
23382 | /* end confdefs.h. */ | |
23383 | ||
23384 | ||
23385 | #include <linux/time.h> | |
23386 | void set_normalized_timespec(struct timespec *ts, | |
23387 | time_t sec, long nsec) { } | |
23388 | ||
23389 | int | |
23390 | main (void) | |
23391 | { | |
23392 | ||
23393 | ; | |
23394 | return 0; | |
23395 | } | |
23396 | ||
23397 | _ACEOF | |
23398 | ||
23399 | ||
23400 | rm -Rf build && mkdir -p build | |
23401 | echo "obj-m := conftest.o" >build/Makefile | |
23402 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23404 | (eval $ac_try) 2>&5 | |
23405 | ac_status=$? | |
23406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23407 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23409 | (eval $ac_try) 2>&5 | |
23410 | ac_status=$? | |
23411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23412 | (exit $ac_status); }; }; then | |
23413 | ||
23414 | echo "$as_me:$LINENO: result: no" >&5 | |
23415 | echo "${ECHO_T}no" >&6 | |
23416 | ||
23417 | else | |
23418 | echo "$as_me: failed program was:" >&5 | |
23419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23420 | ||
23421 | echo "$as_me:$LINENO: result: yes" >&5 | |
23422 | echo "${ECHO_T}yes" >&6 | |
23423 | ||
23424 | cat >>confdefs.h <<\_ACEOF | |
23425 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
23426 | _ACEOF | |
23427 | ||
23428 | ||
23429 | ||
23430 | ||
23431 | fi | |
23432 | ||
23433 | rm -Rf build | |
23434 | ||
23435 | ||
23436 | ||
23437 | ||
23438 | echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 | |
23439 | echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6 | |
23440 | ||
23441 | ||
23442 | cat >conftest.c <<_ACEOF | |
23443 | /* confdefs.h. */ | |
23444 | _ACEOF | |
23445 | cat confdefs.h >>conftest.$ac_ext | |
23446 | cat >>conftest.$ac_ext <<_ACEOF | |
23447 | /* end confdefs.h. */ | |
23448 | ||
23449 | ||
23450 | #include <linux/time.h> | |
23451 | ||
23452 | int | |
23453 | main (void) | |
23454 | { | |
23455 | ||
23456 | struct timespec a, b, c = { 0 }; | |
23457 | c = timespec_sub(a, b); | |
23458 | ||
23459 | ; | |
23460 | return 0; | |
23461 | } | |
23462 | ||
23463 | _ACEOF | |
23464 | ||
23465 | ||
23466 | rm -Rf build && mkdir -p build | |
23467 | echo "obj-m := conftest.o" >build/Makefile | |
23468 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23470 | (eval $ac_try) 2>&5 | |
23471 | ac_status=$? | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23475 | (eval $ac_try) 2>&5 | |
23476 | ac_status=$? | |
23477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23478 | (exit $ac_status); }; }; then | |
23479 | ||
23480 | echo "$as_me:$LINENO: result: yes" >&5 | |
23481 | echo "${ECHO_T}yes" >&6 | |
23482 | ||
23483 | cat >>confdefs.h <<\_ACEOF | |
23484 | #define HAVE_TIMESPEC_SUB 1 | |
23485 | _ACEOF | |
23486 | ||
23487 | ||
23488 | else | |
23489 | echo "$as_me: failed program was:" >&5 | |
23490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23491 | ||
23492 | echo "$as_me:$LINENO: result: no" >&5 | |
23493 | echo "${ECHO_T}no" >&6 | |
23494 | ||
23495 | ||
23496 | ||
23497 | fi | |
23498 | ||
23499 | rm -Rf build | |
23500 | ||
23501 | ||
23502 | ||
23503 | ||
23504 | echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 | |
23505 | echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6 | |
23506 | ||
23507 | ||
23508 | cat >conftest.c <<_ACEOF | |
23509 | /* confdefs.h. */ | |
23510 | _ACEOF | |
23511 | cat confdefs.h >>conftest.$ac_ext | |
23512 | cat >>conftest.$ac_ext <<_ACEOF | |
23513 | /* end confdefs.h. */ | |
23514 | ||
23515 | ||
23516 | #include <linux/utsname.h> | |
23517 | ||
23518 | int | |
23519 | main (void) | |
23520 | { | |
23521 | ||
23522 | struct new_utsname *a = init_utsname(); | |
23523 | ||
23524 | ; | |
23525 | return 0; | |
23526 | } | |
23527 | ||
23528 | _ACEOF | |
23529 | ||
23530 | ||
23531 | rm -Rf build && mkdir -p build | |
23532 | echo "obj-m := conftest.o" >build/Makefile | |
23533 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23535 | (eval $ac_try) 2>&5 | |
23536 | ac_status=$? | |
23537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23538 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23540 | (eval $ac_try) 2>&5 | |
23541 | ac_status=$? | |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23543 | (exit $ac_status); }; }; then | |
23544 | ||
23545 | echo "$as_me:$LINENO: result: yes" >&5 | |
23546 | echo "${ECHO_T}yes" >&6 | |
23547 | ||
23548 | cat >>confdefs.h <<\_ACEOF | |
23549 | #define HAVE_INIT_UTSNAME 1 | |
23550 | _ACEOF | |
23551 | ||
23552 | ||
23553 | else | |
23554 | echo "$as_me: failed program was:" >&5 | |
23555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23556 | ||
23557 | echo "$as_me:$LINENO: result: no" >&5 | |
23558 | echo "${ECHO_T}no" >&6 | |
23559 | ||
23560 | ||
23561 | ||
23562 | fi | |
23563 | ||
23564 | rm -Rf build | |
23565 | ||
23566 | ||
23567 | ||
23568 | ||
23569 | echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 | |
23570 | echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6 | |
23571 | ||
23572 | ||
23573 | cat >conftest.c <<_ACEOF | |
23574 | /* confdefs.h. */ | |
23575 | _ACEOF | |
23576 | cat confdefs.h >>conftest.$ac_ext | |
23577 | cat >>conftest.$ac_ext <<_ACEOF | |
23578 | /* end confdefs.h. */ | |
23579 | ||
23580 | ||
23581 | #include <linux/fdtable.h> | |
23582 | ||
23583 | int | |
23584 | main (void) | |
23585 | { | |
23586 | ||
23587 | return 0; | |
23588 | ||
23589 | ; | |
23590 | return 0; | |
23591 | } | |
23592 | ||
23593 | _ACEOF | |
23594 | ||
23595 | ||
23596 | rm -Rf build && mkdir -p build | |
23597 | echo "obj-m := conftest.o" >build/Makefile | |
23598 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23600 | (eval $ac_try) 2>&5 | |
23601 | ac_status=$? | |
23602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23603 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23605 | (eval $ac_try) 2>&5 | |
23606 | ac_status=$? | |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23608 | (exit $ac_status); }; }; then | |
23609 | ||
bf9f3bac | 23610 | |
23611 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23612 | #define HAVE_FDTABLE_HEADER 1 |
bf9f3bac | 23613 | _ACEOF |
23614 | ||
bf9f3bac | 23615 | echo "$as_me:$LINENO: result: yes" >&5 |
23616 | echo "${ECHO_T}yes" >&6 | |
23617 | ||
bf9f3bac | 23618 | |
6ae7fef5 BB |
23619 | else |
23620 | echo "$as_me: failed program was:" >&5 | |
23621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23622 | ||
23623 | echo "$as_me:$LINENO: result: no" >&5 | |
23624 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 23625 | |
23626 | ||
23627 | ||
6ae7fef5 BB |
23628 | |
23629 | fi | |
23630 | ||
23631 | rm -Rf build | |
23632 | ||
23633 | ||
23634 | ||
23635 | ||
23636 | ||
23637 | echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 | |
23638 | echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6 | |
bf9f3bac | 23639 | |
23640 | ||
23641 | cat >conftest.c <<_ACEOF | |
23642 | /* confdefs.h. */ | |
23643 | _ACEOF | |
23644 | cat confdefs.h >>conftest.$ac_ext | |
23645 | cat >>conftest.$ac_ext <<_ACEOF | |
23646 | /* end confdefs.h. */ | |
23647 | ||
23648 | ||
6ae7fef5 BB |
23649 | #include <linux/sched.h> |
23650 | #include <linux/file.h> | |
23651 | #ifdef HAVE_FDTABLE_HEADER | |
23652 | #include <linux/fdtable.h> | |
23653 | #endif | |
bf9f3bac | 23654 | |
23655 | int | |
23656 | main (void) | |
23657 | { | |
23658 | ||
6ae7fef5 BB |
23659 | struct files_struct *files = current->files; |
23660 | struct fdtable *fdt = files_fdtable(files); | |
23661 | ||
bf9f3bac | 23662 | ; |
23663 | return 0; | |
23664 | } | |
23665 | ||
23666 | _ACEOF | |
23667 | ||
c5f70460 BB |
23668 | |
23669 | rm -Rf build && mkdir -p build | |
23670 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23671 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23673 | (eval $ac_try) 2>&5 | |
23674 | ac_status=$? | |
23675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23676 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23678 | (eval $ac_try) 2>&5 | |
23679 | ac_status=$? | |
23680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23681 | (exit $ac_status); }; }; then | |
23682 | ||
bf9f3bac | 23683 | echo "$as_me:$LINENO: result: yes" >&5 |
23684 | echo "${ECHO_T}yes" >&6 | |
23685 | ||
23686 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23687 | #define HAVE_FILES_FDTABLE 1 |
bf9f3bac | 23688 | _ACEOF |
23689 | ||
23690 | ||
6ae7fef5 BB |
23691 | else |
23692 | echo "$as_me: failed program was:" >&5 | |
23693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23694 | ||
23695 | echo "$as_me:$LINENO: result: no" >&5 | |
23696 | echo "${ECHO_T}no" >&6 | |
23697 | ||
c5f70460 BB |
23698 | |
23699 | ||
bf9f3bac | 23700 | fi |
c5f70460 BB |
23701 | |
23702 | rm -Rf build | |
23703 | ||
bf9f3bac | 23704 | |
23705 | ||
23706 | ||
6ae7fef5 BB |
23707 | echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 |
23708 | echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6 | |
bf9f3bac | 23709 | |
23710 | ||
23711 | cat >conftest.c <<_ACEOF | |
23712 | /* confdefs.h. */ | |
23713 | _ACEOF | |
23714 | cat confdefs.h >>conftest.$ac_ext | |
23715 | cat >>conftest.$ac_ext <<_ACEOF | |
23716 | /* end confdefs.h. */ | |
23717 | ||
23718 | ||
6ae7fef5 | 23719 | #include <linux/uaccess.h> |
bf9f3bac | 23720 | |
23721 | int | |
23722 | main (void) | |
23723 | { | |
23724 | ||
6ae7fef5 | 23725 | return 0; |
bf9f3bac | 23726 | |
23727 | ; | |
23728 | return 0; | |
23729 | } | |
23730 | ||
23731 | _ACEOF | |
23732 | ||
c5f70460 BB |
23733 | |
23734 | rm -Rf build && mkdir -p build | |
23735 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23736 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23738 | (eval $ac_try) 2>&5 | |
23739 | ac_status=$? | |
23740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23741 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23743 | (eval $ac_try) 2>&5 | |
23744 | ac_status=$? | |
23745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23746 | (exit $ac_status); }; }; then | |
23747 | ||
bf9f3bac | 23748 | |
23749 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23750 | #define HAVE_UACCESS_HEADER 1 |
bf9f3bac | 23751 | _ACEOF |
23752 | ||
6ae7fef5 BB |
23753 | echo "$as_me:$LINENO: result: yes" >&5 |
23754 | echo "${ECHO_T}yes" >&6 | |
23755 | ||
bf9f3bac | 23756 | |
23757 | else | |
23758 | echo "$as_me: failed program was:" >&5 | |
23759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23760 | ||
bf9f3bac | 23761 | echo "$as_me:$LINENO: result: no" >&5 |
23762 | echo "${ECHO_T}no" >&6 | |
23763 | ||
c5f70460 BB |
23764 | |
23765 | ||
6ae7fef5 | 23766 | |
bf9f3bac | 23767 | fi |
c5f70460 BB |
23768 | |
23769 | rm -Rf build | |
23770 | ||
bf9f3bac | 23771 | |
23772 | ||
23773 | ||
6ae7fef5 BB |
23774 | |
23775 | echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 | |
23776 | echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6 | |
bf9f3bac | 23777 | |
23778 | ||
23779 | cat >conftest.c <<_ACEOF | |
23780 | /* confdefs.h. */ | |
23781 | _ACEOF | |
23782 | cat confdefs.h >>conftest.$ac_ext | |
23783 | cat >>conftest.$ac_ext <<_ACEOF | |
23784 | /* end confdefs.h. */ | |
23785 | ||
23786 | ||
6ae7fef5 | 23787 | #include <linux/slab.h> |
bf9f3bac | 23788 | |
23789 | int | |
23790 | main (void) | |
23791 | { | |
23792 | ||
6ae7fef5 | 23793 | void *a = kmalloc_node(1, GFP_KERNEL, 0); |
bf9f3bac | 23794 | |
23795 | ; | |
23796 | return 0; | |
23797 | } | |
23798 | ||
23799 | _ACEOF | |
23800 | ||
c5f70460 BB |
23801 | |
23802 | rm -Rf build && mkdir -p build | |
23803 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23804 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23806 | (eval $ac_try) 2>&5 | |
23807 | ac_status=$? | |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23809 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23811 | (eval $ac_try) 2>&5 | |
23812 | ac_status=$? | |
23813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23814 | (exit $ac_status); }; }; then | |
23815 | ||
23816 | echo "$as_me:$LINENO: result: yes" >&5 | |
23817 | echo "${ECHO_T}yes" >&6 | |
23818 | ||
23819 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23820 | #define HAVE_KMALLOC_NODE 1 |
bf9f3bac | 23821 | _ACEOF |
23822 | ||
23823 | ||
23824 | else | |
23825 | echo "$as_me: failed program was:" >&5 | |
23826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23827 | ||
bf9f3bac | 23828 | echo "$as_me:$LINENO: result: no" >&5 |
23829 | echo "${ECHO_T}no" >&6 | |
23830 | ||
c5f70460 BB |
23831 | |
23832 | ||
bf9f3bac | 23833 | fi |
c5f70460 BB |
23834 | |
23835 | rm -Rf build | |
23836 | ||
bf9f3bac | 23837 | |
23838 | ||
23839 | ||
6ae7fef5 BB |
23840 | echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 |
23841 | echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6 | |
23842 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
23843 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23844 | rc=$? | |
23845 | if test $rc -ne 0; then | |
23846 | export=0 | |
23847 | for file in ; do | |
23848 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
23849 | "$LINUX_OBJ/$file" 2>/dev/null | |
23850 | rc=$? | |
23851 | if test $rc -eq 0; then | |
23852 | export=1 | |
23853 | break; | |
23854 | fi | |
23855 | done | |
23856 | if test $export -eq 0; then | |
23857 | echo "$as_me:$LINENO: result: no" >&5 | |
23858 | echo "${ECHO_T}no" >&6 | |
23859 | ||
23860 | else | |
23861 | echo "$as_me:$LINENO: result: yes" >&5 | |
23862 | echo "${ECHO_T}yes" >&6 | |
23863 | ||
23864 | cat >>confdefs.h <<\_ACEOF | |
23865 | #define HAVE_MONOTONIC_CLOCK 1 | |
23866 | _ACEOF | |
23867 | ||
23868 | fi | |
23869 | else | |
23870 | echo "$as_me:$LINENO: result: yes" >&5 | |
23871 | echo "${ECHO_T}yes" >&6 | |
23872 | ||
23873 | cat >>confdefs.h <<\_ACEOF | |
23874 | #define HAVE_MONOTONIC_CLOCK 1 | |
23875 | _ACEOF | |
23876 | ||
23877 | fi | |
23878 | ||
23879 | ||
23880 | ||
23881 | echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
23882 | echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6 | |
bf9f3bac | 23883 | |
23884 | ||
23885 | cat >conftest.c <<_ACEOF | |
23886 | /* confdefs.h. */ | |
23887 | _ACEOF | |
23888 | cat confdefs.h >>conftest.$ac_ext | |
23889 | cat >>conftest.$ac_ext <<_ACEOF | |
23890 | /* end confdefs.h. */ | |
23891 | ||
23892 | ||
6ae7fef5 BB |
23893 | #include <linux/fs.h> |
23894 | #include <linux/mutex.h> | |
bf9f3bac | 23895 | |
23896 | int | |
23897 | main (void) | |
23898 | { | |
23899 | ||
6ae7fef5 BB |
23900 | struct inode i; |
23901 | mutex_init(&i.i_mutex); | |
bf9f3bac | 23902 | |
23903 | ; | |
23904 | return 0; | |
23905 | } | |
23906 | ||
23907 | _ACEOF | |
23908 | ||
c5f70460 BB |
23909 | |
23910 | rm -Rf build && mkdir -p build | |
23911 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23912 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23914 | (eval $ac_try) 2>&5 | |
23915 | ac_status=$? | |
23916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23917 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23919 | (eval $ac_try) 2>&5 | |
23920 | ac_status=$? | |
23921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23922 | (exit $ac_status); }; }; then | |
23923 | ||
6ae7fef5 BB |
23924 | echo "$as_me:$LINENO: result: yes" >&5 |
23925 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 23926 | |
23927 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23928 | #define HAVE_INODE_I_MUTEX 1 |
bf9f3bac | 23929 | _ACEOF |
23930 | ||
bf9f3bac | 23931 | |
23932 | else | |
23933 | echo "$as_me: failed program was:" >&5 | |
23934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23935 | ||
bf9f3bac | 23936 | echo "$as_me:$LINENO: result: no" >&5 |
23937 | echo "${ECHO_T}no" >&6 | |
23938 | ||
23939 | ||
c5f70460 | 23940 | |
bf9f3bac | 23941 | fi |
c5f70460 BB |
23942 | |
23943 | rm -Rf build | |
23944 | ||
bf9f3bac | 23945 | |
23946 | ||
23947 | ||
4d54fdee BB |
23948 | echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 |
23949 | echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6 | |
23950 | ||
23951 | ||
23952 | cat >conftest.c <<_ACEOF | |
23953 | /* confdefs.h. */ | |
23954 | _ACEOF | |
23955 | cat confdefs.h >>conftest.$ac_ext | |
23956 | cat >>conftest.$ac_ext <<_ACEOF | |
23957 | /* end confdefs.h. */ | |
23958 | ||
23959 | ||
23960 | #include <linux/mutex.h> | |
23961 | ||
23962 | int | |
23963 | main (void) | |
23964 | { | |
23965 | ||
23966 | struct mutex mtx; | |
23967 | mtx.owner = NULL; | |
23968 | ||
23969 | ; | |
23970 | return 0; | |
23971 | } | |
23972 | ||
23973 | _ACEOF | |
23974 | ||
23975 | ||
23976 | rm -Rf build && mkdir -p build | |
23977 | echo "obj-m := conftest.o" >build/Makefile | |
23978 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23980 | (eval $ac_try) 2>&5 | |
23981 | ac_status=$? | |
23982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23983 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23985 | (eval $ac_try) 2>&5 | |
23986 | ac_status=$? | |
23987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23988 | (exit $ac_status); }; }; then | |
23989 | ||
23990 | echo "$as_me:$LINENO: result: yes" >&5 | |
23991 | echo "${ECHO_T}yes" >&6 | |
23992 | ||
23993 | cat >>confdefs.h <<\_ACEOF | |
23994 | #define HAVE_MUTEX_OWNER 1 | |
23995 | _ACEOF | |
23996 | ||
23997 | ||
23998 | else | |
23999 | echo "$as_me: failed program was:" >&5 | |
24000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24001 | ||
24002 | echo "$as_me:$LINENO: result: no" >&5 | |
24003 | echo "${ECHO_T}no" >&6 | |
24004 | ||
24005 | ||
24006 | ||
24007 | fi | |
24008 | ||
24009 | rm -Rf build | |
24010 | ||
24011 | ||
24012 | ||
24013 | ||
6ae7fef5 BB |
24014 | echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
24015 | echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6 | |
bf9f3bac | 24016 | |
24017 | ||
24018 | cat >conftest.c <<_ACEOF | |
24019 | /* confdefs.h. */ | |
24020 | _ACEOF | |
24021 | cat confdefs.h >>conftest.$ac_ext | |
24022 | cat >>conftest.$ac_ext <<_ACEOF | |
24023 | /* end confdefs.h. */ | |
24024 | ||
24025 | ||
6ae7fef5 | 24026 | #include <linux/mutex.h> |
bf9f3bac | 24027 | |
24028 | int | |
24029 | main (void) | |
24030 | { | |
24031 | ||
6ae7fef5 BB |
24032 | struct mutex mutex; |
24033 | mutex_init(&mutex); | |
24034 | mutex_lock_nested(&mutex, 0); | |
bf9f3bac | 24035 | |
24036 | ; | |
24037 | return 0; | |
24038 | } | |
24039 | ||
24040 | _ACEOF | |
24041 | ||
c5f70460 BB |
24042 | |
24043 | rm -Rf build && mkdir -p build | |
24044 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24045 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 24046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24047 | (eval $ac_try) 2>&5 | |
24048 | ac_status=$? | |
24049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24050 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24052 | (eval $ac_try) 2>&5 | |
24053 | ac_status=$? | |
24054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24055 | (exit $ac_status); }; }; then | |
24056 | ||
24057 | echo "$as_me:$LINENO: result: yes" >&5 | |
24058 | echo "${ECHO_T}yes" >&6 | |
24059 | ||
24060 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24061 | #define HAVE_MUTEX_LOCK_NESTED 1 |
bf9f3bac | 24062 | _ACEOF |
24063 | ||
24064 | ||
24065 | else | |
24066 | echo "$as_me: failed program was:" >&5 | |
24067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24068 | ||
bf9f3bac | 24069 | echo "$as_me:$LINENO: result: no" >&5 |
24070 | echo "${ECHO_T}no" >&6 | |
24071 | ||
c5f70460 BB |
24072 | |
24073 | ||
bf9f3bac | 24074 | fi |
c5f70460 BB |
24075 | |
24076 | rm -Rf build | |
24077 | ||
bf9f3bac | 24078 | |
24079 | ||
24080 | ||
6ae7fef5 BB |
24081 | echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5 |
24082 | echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6 | |
24083 | grep -q -E '[[:space:]]div64_64[[:space:]]' \ | |
24084 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24085 | rc=$? | |
24086 | if test $rc -ne 0; then | |
24087 | export=0 | |
24088 | for file in ; do | |
24089 | grep -q -E "EXPORT_SYMBOL.*(div64_64)" \ | |
24090 | "$LINUX_OBJ/$file" 2>/dev/null | |
24091 | rc=$? | |
24092 | if test $rc -eq 0; then | |
24093 | export=1 | |
24094 | break; | |
24095 | fi | |
24096 | done | |
24097 | if test $export -eq 0; then | |
24098 | echo "$as_me:$LINENO: result: no" >&5 | |
24099 | echo "${ECHO_T}no" >&6 | |
24100 | ||
24101 | else | |
24102 | echo "$as_me:$LINENO: result: yes" >&5 | |
24103 | echo "${ECHO_T}yes" >&6 | |
24104 | ||
24105 | cat >>confdefs.h <<\_ACEOF | |
24106 | #define HAVE_DIV64_64 1 | |
24107 | _ACEOF | |
24108 | ||
24109 | fi | |
24110 | else | |
24111 | echo "$as_me:$LINENO: result: yes" >&5 | |
24112 | echo "${ECHO_T}yes" >&6 | |
24113 | ||
24114 | cat >>confdefs.h <<\_ACEOF | |
24115 | #define HAVE_DIV64_64 1 | |
24116 | _ACEOF | |
24117 | ||
24118 | fi | |
24119 | ||
24120 | ||
24121 | ||
24122 | echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5 | |
24123 | echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6 | |
24124 | grep -q -E '[[:space:]]div64_u64[[:space:]]' \ | |
24125 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24126 | rc=$? | |
24127 | if test $rc -ne 0; then | |
24128 | export=0 | |
24129 | for file in ; do | |
24130 | grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \ | |
24131 | "$LINUX_OBJ/$file" 2>/dev/null | |
24132 | rc=$? | |
24133 | if test $rc -eq 0; then | |
24134 | export=1 | |
24135 | break; | |
24136 | fi | |
24137 | done | |
24138 | if test $export -eq 0; then | |
24139 | echo "$as_me:$LINENO: result: no" >&5 | |
24140 | echo "${ECHO_T}no" >&6 | |
24141 | ||
24142 | else | |
24143 | echo "$as_me:$LINENO: result: yes" >&5 | |
24144 | echo "${ECHO_T}yes" >&6 | |
24145 | ||
24146 | cat >>confdefs.h <<\_ACEOF | |
24147 | #define HAVE_DIV64_U64 1 | |
24148 | _ACEOF | |
24149 | ||
24150 | fi | |
24151 | else | |
24152 | echo "$as_me:$LINENO: result: yes" >&5 | |
24153 | echo "${ECHO_T}yes" >&6 | |
24154 | ||
24155 | cat >>confdefs.h <<\_ACEOF | |
24156 | #define HAVE_DIV64_U64 1 | |
24157 | _ACEOF | |
24158 | ||
24159 | fi | |
24160 | ||
24161 | ||
24162 | ||
24163 | echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 | |
24164 | echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6 | |
bf9f3bac | 24165 | |
24166 | ||
24167 | cat >conftest.c <<_ACEOF | |
24168 | /* confdefs.h. */ | |
24169 | _ACEOF | |
24170 | cat confdefs.h >>conftest.$ac_ext | |
24171 | cat >>conftest.$ac_ext <<_ACEOF | |
24172 | /* end confdefs.h. */ | |
24173 | ||
24174 | ||
6ae7fef5 | 24175 | #include <linux/smp.h> |
bf9f3bac | 24176 | |
24177 | int | |
24178 | main (void) | |
24179 | { | |
24180 | ||
6ae7fef5 | 24181 | on_each_cpu(NULL, NULL, 0); |
bf9f3bac | 24182 | |
24183 | ; | |
24184 | return 0; | |
24185 | } | |
24186 | ||
24187 | _ACEOF | |
24188 | ||
c5f70460 BB |
24189 | |
24190 | rm -Rf build && mkdir -p build | |
24191 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24192 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 24193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24194 | (eval $ac_try) 2>&5 | |
24195 | ac_status=$? | |
24196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24197 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24199 | (eval $ac_try) 2>&5 | |
24200 | ac_status=$? | |
24201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24202 | (exit $ac_status); }; }; then | |
24203 | ||
6ae7fef5 BB |
24204 | echo "$as_me:$LINENO: result: yes" >&5 |
24205 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 24206 | |
24207 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24208 | #define HAVE_3ARGS_ON_EACH_CPU 1 |
bf9f3bac | 24209 | _ACEOF |
24210 | ||
bf9f3bac | 24211 | |
24212 | else | |
24213 | echo "$as_me: failed program was:" >&5 | |
24214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24215 | ||
bf9f3bac | 24216 | echo "$as_me:$LINENO: result: no" >&5 |
24217 | echo "${ECHO_T}no" >&6 | |
24218 | ||
24219 | ||
c5f70460 | 24220 | |
bf9f3bac | 24221 | fi |
c5f70460 BB |
24222 | |
24223 | rm -Rf build | |
24224 | ||
bf9f3bac | 24225 | |
24226 | ||
24227 | ||
6ae7fef5 BB |
24228 | echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 |
24229 | echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6 | |
24230 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
24231 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24232 | rc=$? | |
24233 | if test $rc -ne 0; then | |
24234 | export=0 | |
24235 | for file in ; do | |
24236 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
24237 | "$LINUX_OBJ/$file" 2>/dev/null | |
24238 | rc=$? | |
24239 | if test $rc -eq 0; then | |
24240 | export=1 | |
24241 | break; | |
24242 | fi | |
24243 | done | |
24244 | if test $export -eq 0; then | |
24245 | echo "$as_me:$LINENO: result: no" >&5 | |
24246 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 24247 | |
6ae7fef5 BB |
24248 | else |
24249 | echo "$as_me:$LINENO: result: yes" >&5 | |
24250 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 24251 | |
6ae7fef5 BB |
24252 | cat >>confdefs.h <<\_ACEOF |
24253 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
24254 | _ACEOF | |
bf9f3bac | 24255 | |
6ae7fef5 BB |
24256 | fi |
24257 | else | |
24258 | echo "$as_me:$LINENO: result: yes" >&5 | |
24259 | echo "${ECHO_T}yes" >&6 | |
24260 | ||
24261 | cat >>confdefs.h <<\_ACEOF | |
24262 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
bf9f3bac | 24263 | _ACEOF |
bf9f3bac | 24264 | |
6ae7fef5 | 24265 | fi |
bf9f3bac | 24266 | |
bf9f3bac | 24267 | |
bf9f3bac | 24268 | |
6ae7fef5 BB |
24269 | echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 |
24270 | echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6 | |
24271 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ | |
24272 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24273 | rc=$? | |
24274 | if test $rc -ne 0; then | |
24275 | export=0 | |
24276 | for file in ; do | |
24277 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
24278 | "$LINUX_OBJ/$file" 2>/dev/null | |
24279 | rc=$? | |
24280 | if test $rc -eq 0; then | |
24281 | export=1 | |
24282 | break; | |
24283 | fi | |
24284 | done | |
24285 | if test $export -eq 0; then | |
24286 | echo "$as_me:$LINENO: result: no" >&5 | |
24287 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 24288 | |
6ae7fef5 BB |
24289 | else |
24290 | echo "$as_me:$LINENO: result: yes" >&5 | |
24291 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 24292 | |
6ae7fef5 BB |
24293 | cat >>confdefs.h <<\_ACEOF |
24294 | #define HAVE_GET_VMALLOC_INFO 1 | |
bf9f3bac | 24295 | _ACEOF |
24296 | ||
6ae7fef5 BB |
24297 | fi |
24298 | else | |
24299 | echo "$as_me:$LINENO: result: yes" >&5 | |
24300 | echo "${ECHO_T}yes" >&6 | |
24301 | ||
24302 | cat >>confdefs.h <<\_ACEOF | |
24303 | #define HAVE_GET_VMALLOC_INFO 1 | |
24304 | _ACEOF | |
24305 | ||
24306 | fi | |
24307 | ||
c5f70460 | 24308 | |
bf9f3bac | 24309 | |
6ae7fef5 BB |
24310 | echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
24311 | echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6 | |
24312 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
24313 | rc=$? | |
24314 | if test $rc -eq 0; then | |
bf9f3bac | 24315 | echo "$as_me:$LINENO: result: yes" >&5 |
24316 | echo "${ECHO_T}yes" >&6 | |
24317 | ||
24318 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24319 | #define HAVE_PGDAT_HELPERS 1 |
bf9f3bac | 24320 | _ACEOF |
24321 | ||
6ae7fef5 BB |
24322 | else |
24323 | echo "$as_me:$LINENO: result: no" >&5 | |
24324 | echo "${ECHO_T}no" >&6 | |
24325 | fi | |
bf9f3bac | 24326 | |
bf9f3bac | 24327 | |
6ae7fef5 BB |
24328 | echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 |
24329 | echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6 | |
24330 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
24331 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24332 | rc=$? | |
24333 | if test $rc -ne 0; then | |
24334 | export=0 | |
24335 | for file in ; do | |
24336 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
24337 | "$LINUX_OBJ/$file" 2>/dev/null | |
24338 | rc=$? | |
24339 | if test $rc -eq 0; then | |
24340 | export=1 | |
24341 | break; | |
24342 | fi | |
24343 | done | |
24344 | if test $export -eq 0; then | |
24345 | echo "$as_me:$LINENO: result: no" >&5 | |
bf9f3bac | 24346 | echo "${ECHO_T}no" >&6 |
24347 | ||
6ae7fef5 BB |
24348 | else |
24349 | echo "$as_me:$LINENO: result: yes" >&5 | |
24350 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 24351 | |
6ae7fef5 BB |
24352 | cat >>confdefs.h <<\_ACEOF |
24353 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
24354 | _ACEOF | |
c5f70460 | 24355 | |
6ae7fef5 BB |
24356 | fi |
24357 | else | |
24358 | echo "$as_me:$LINENO: result: yes" >&5 | |
24359 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 24360 | |
6ae7fef5 BB |
24361 | cat >>confdefs.h <<\_ACEOF |
24362 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
24363 | _ACEOF | |
c5f70460 | 24364 | |
6ae7fef5 | 24365 | fi |
bf9f3bac | 24366 | |
24367 | ||
24368 | ||
6ae7fef5 BB |
24369 | echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 |
24370 | echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6 | |
24371 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
2e0e7e69 | 24372 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
bf9f3bac | 24373 | rc=$? |
24374 | if test $rc -ne 0; then | |
24375 | export=0 | |
24376 | for file in ; do | |
6ae7fef5 | 24377 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ |
2e0e7e69 | 24378 | "$LINUX_OBJ/$file" 2>/dev/null |
bf9f3bac | 24379 | rc=$? |
24380 | if test $rc -eq 0; then | |
24381 | export=1 | |
24382 | break; | |
24383 | fi | |
24384 | done | |
24385 | if test $export -eq 0; then | |
24386 | echo "$as_me:$LINENO: result: no" >&5 | |
24387 | echo "${ECHO_T}no" >&6 | |
24388 | ||
24389 | else | |
24390 | echo "$as_me:$LINENO: result: yes" >&5 | |
24391 | echo "${ECHO_T}yes" >&6 | |
24392 | ||
24393 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24394 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
bf9f3bac | 24395 | _ACEOF |
24396 | ||
24397 | fi | |
24398 | else | |
24399 | echo "$as_me:$LINENO: result: yes" >&5 | |
24400 | echo "${ECHO_T}yes" >&6 | |
24401 | ||
24402 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24403 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
bf9f3bac | 24404 | _ACEOF |
24405 | ||
24406 | fi | |
24407 | ||
24408 | ||
24409 | ||
6ae7fef5 BB |
24410 | echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 |
24411 | echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6 | |
24412 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
24413 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24414 | rc=$? | |
24415 | if test $rc -ne 0; then | |
24416 | export=0 | |
24417 | for file in ; do | |
24418 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
24419 | "$LINUX_OBJ/$file" 2>/dev/null | |
24420 | rc=$? | |
24421 | if test $rc -eq 0; then | |
24422 | export=1 | |
24423 | break; | |
24424 | fi | |
24425 | done | |
24426 | if test $export -eq 0; then | |
24427 | echo "$as_me:$LINENO: result: no" >&5 | |
24428 | echo "${ECHO_T}no" >&6 | |
24429 | ||
24430 | else | |
24431 | echo "$as_me:$LINENO: result: yes" >&5 | |
24432 | echo "${ECHO_T}yes" >&6 | |
24433 | ||
24434 | cat >>confdefs.h <<\_ACEOF | |
24435 | #define HAVE_NEXT_ZONE 1 | |
24436 | _ACEOF | |
24437 | ||
24438 | fi | |
24439 | else | |
24440 | echo "$as_me:$LINENO: result: yes" >&5 | |
24441 | echo "${ECHO_T}yes" >&6 | |
24442 | ||
24443 | cat >>confdefs.h <<\_ACEOF | |
24444 | #define HAVE_NEXT_ZONE 1 | |
24445 | _ACEOF | |
24446 | ||
24447 | fi | |
24448 | ||
24449 | ||
24450 | ||
24451 | echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 | |
24452 | echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6 | |
24453 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ | |
24454 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24455 | rc=$? | |
24456 | if test $rc -ne 0; then | |
24457 | export=0 | |
24458 | for file in ; do | |
24459 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
24460 | "$LINUX_OBJ/$file" 2>/dev/null | |
24461 | rc=$? | |
24462 | if test $rc -eq 0; then | |
24463 | export=1 | |
24464 | break; | |
24465 | fi | |
24466 | done | |
24467 | if test $export -eq 0; then | |
24468 | echo "$as_me:$LINENO: result: no" >&5 | |
24469 | echo "${ECHO_T}no" >&6 | |
24470 | ||
24471 | else | |
24472 | echo "$as_me:$LINENO: result: yes" >&5 | |
24473 | echo "${ECHO_T}yes" >&6 | |
24474 | ||
24475 | cat >>confdefs.h <<\_ACEOF | |
24476 | #define HAVE_PGDAT_LIST 1 | |
24477 | _ACEOF | |
24478 | ||
24479 | fi | |
24480 | else | |
24481 | echo "$as_me:$LINENO: result: yes" >&5 | |
24482 | echo "${ECHO_T}yes" >&6 | |
24483 | ||
24484 | cat >>confdefs.h <<\_ACEOF | |
24485 | #define HAVE_PGDAT_LIST 1 | |
24486 | _ACEOF | |
24487 | ||
24488 | fi | |
24489 | ||
24490 | ||
24491 | ||
24492 | echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 | |
24493 | echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6 | |
bf9f3bac | 24494 | |
24495 | ||
24496 | cat >conftest.c <<_ACEOF | |
24497 | /* confdefs.h. */ | |
24498 | _ACEOF | |
24499 | cat confdefs.h >>conftest.$ac_ext | |
24500 | cat >>conftest.$ac_ext <<_ACEOF | |
24501 | /* end confdefs.h. */ | |
24502 | ||
24503 | ||
6ae7fef5 | 24504 | #include <linux/mm.h> |
bf9f3bac | 24505 | |
24506 | int | |
24507 | main (void) | |
24508 | { | |
24509 | ||
6ae7fef5 BB |
24510 | unsigned long state; |
24511 | state = global_page_state(0); | |
bf9f3bac | 24512 | |
24513 | ; | |
24514 | return 0; | |
24515 | } | |
24516 | ||
24517 | _ACEOF | |
24518 | ||
c5f70460 BB |
24519 | |
24520 | rm -Rf build && mkdir -p build | |
24521 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24522 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 24523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24524 | (eval $ac_try) 2>&5 | |
24525 | ac_status=$? | |
24526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24527 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24529 | (eval $ac_try) 2>&5 | |
24530 | ac_status=$? | |
24531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24532 | (exit $ac_status); }; }; then | |
24533 | ||
24534 | echo "$as_me:$LINENO: result: yes" >&5 | |
24535 | echo "${ECHO_T}yes" >&6 | |
24536 | ||
24537 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24538 | #define HAVE_GLOBAL_PAGE_STATE 1 |
bf9f3bac | 24539 | _ACEOF |
24540 | ||
24541 | ||
24542 | else | |
24543 | echo "$as_me: failed program was:" >&5 | |
24544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24545 | ||
bf9f3bac | 24546 | echo "$as_me:$LINENO: result: no" >&5 |
24547 | echo "${ECHO_T}no" >&6 | |
24548 | ||
c5f70460 BB |
24549 | |
24550 | ||
bf9f3bac | 24551 | fi |
c5f70460 BB |
24552 | |
24553 | rm -Rf build | |
24554 | ||
bf9f3bac | 24555 | |
24556 | ||
24557 | ||
6ae7fef5 BB |
24558 | echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
24559 | echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6 | |
6c9433c1 BB |
24560 | |
24561 | ||
24562 | cat >conftest.c <<_ACEOF | |
24563 | /* confdefs.h. */ | |
24564 | _ACEOF | |
24565 | cat confdefs.h >>conftest.$ac_ext | |
24566 | cat >>conftest.$ac_ext <<_ACEOF | |
24567 | /* end confdefs.h. */ | |
24568 | ||
24569 | ||
6ae7fef5 | 24570 | #include <linux/mm.h> |
6c9433c1 BB |
24571 | |
24572 | int | |
24573 | main (void) | |
24574 | { | |
24575 | ||
6ae7fef5 BB |
24576 | enum zone_stat_item zsi; |
24577 | zsi = NR_FREE_PAGES; | |
6c9433c1 BB |
24578 | |
24579 | ; | |
24580 | return 0; | |
24581 | } | |
24582 | ||
24583 | _ACEOF | |
24584 | ||
24585 | ||
24586 | rm -Rf build && mkdir -p build | |
24587 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24588 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
6c9433c1 BB |
24589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24590 | (eval $ac_try) 2>&5 | |
24591 | ac_status=$? | |
24592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24593 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24595 | (eval $ac_try) 2>&5 | |
24596 | ac_status=$? | |
24597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24598 | (exit $ac_status); }; }; then | |
24599 | ||
24600 | echo "$as_me:$LINENO: result: yes" >&5 | |
24601 | echo "${ECHO_T}yes" >&6 | |
24602 | ||
24603 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24604 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
6c9433c1 BB |
24605 | _ACEOF |
24606 | ||
24607 | ||
24608 | else | |
24609 | echo "$as_me: failed program was:" >&5 | |
24610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24611 | ||
24612 | echo "$as_me:$LINENO: result: no" >&5 | |
24613 | echo "${ECHO_T}no" >&6 | |
24614 | ||
24615 | ||
24616 | ||
24617 | fi | |
24618 | ||
24619 | rm -Rf build | |
24620 | ||
24621 | ||
24622 | ||
24623 | ||
6ae7fef5 BB |
24624 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
24625 | echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6 | |
bf9f3bac | 24626 | |
bf9f3bac | 24627 | |
6ae7fef5 BB |
24628 | cat >conftest.c <<_ACEOF |
24629 | /* confdefs.h. */ | |
bf9f3bac | 24630 | _ACEOF |
6ae7fef5 BB |
24631 | cat confdefs.h >>conftest.$ac_ext |
24632 | cat >>conftest.$ac_ext <<_ACEOF | |
24633 | /* end confdefs.h. */ | |
bf9f3bac | 24634 | |
bf9f3bac | 24635 | |
6ae7fef5 | 24636 | #include <linux/mm.h> |
bf9f3bac | 24637 | |
6ae7fef5 BB |
24638 | int |
24639 | main (void) | |
24640 | { | |
96dded38 | 24641 | |
6ae7fef5 BB |
24642 | enum zone_stat_item zsi; |
24643 | zsi = NR_INACTIVE; | |
bf9f3bac | 24644 | |
6ae7fef5 BB |
24645 | ; |
24646 | return 0; | |
24647 | } | |
31a033ec | 24648 | |
6ae7fef5 | 24649 | _ACEOF |
31a033ec | 24650 | |
c5f70460 | 24651 | |
6ae7fef5 BB |
24652 | rm -Rf build && mkdir -p build |
24653 | echo "obj-m := conftest.o" >build/Makefile | |
24654 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24656 | (eval $ac_try) 2>&5 | |
24657 | ac_status=$? | |
24658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24659 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24661 | (eval $ac_try) 2>&5 | |
24662 | ac_status=$? | |
24663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24664 | (exit $ac_status); }; }; then | |
c5f70460 | 24665 | |
96dded38 BB |
24666 | echo "$as_me:$LINENO: result: yes" >&5 |
24667 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 24668 | |
96dded38 | 24669 | cat >>confdefs.h <<\_ACEOF |
6ae7fef5 | 24670 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
96dded38 | 24671 | _ACEOF |
c5f70460 | 24672 | |
31a033ec | 24673 | |
6ae7fef5 BB |
24674 | else |
24675 | echo "$as_me: failed program was:" >&5 | |
24676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24677 | ||
24678 | echo "$as_me:$LINENO: result: no" >&5 | |
24679 | echo "${ECHO_T}no" >&6 | |
24680 | ||
24681 | ||
24682 | ||
24683 | fi | |
24684 | ||
24685 | rm -Rf build | |
31a033ec BB |
24686 | |
24687 | ||
6ae7fef5 BB |
24688 | |
24689 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 | |
24690 | echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6 | |
31a033ec BB |
24691 | |
24692 | ||
24693 | cat >conftest.c <<_ACEOF | |
24694 | /* confdefs.h. */ | |
24695 | _ACEOF | |
24696 | cat confdefs.h >>conftest.$ac_ext | |
24697 | cat >>conftest.$ac_ext <<_ACEOF | |
24698 | /* end confdefs.h. */ | |
24699 | ||
24700 | ||
6ae7fef5 | 24701 | #include <linux/mm.h> |
31a033ec BB |
24702 | |
24703 | int | |
24704 | main (void) | |
24705 | { | |
24706 | ||
6ae7fef5 BB |
24707 | enum zone_stat_item zsi; |
24708 | zsi = NR_INACTIVE_ANON; | |
31a033ec BB |
24709 | |
24710 | ; | |
24711 | return 0; | |
24712 | } | |
24713 | ||
24714 | _ACEOF | |
24715 | ||
c5f70460 BB |
24716 | |
24717 | rm -Rf build && mkdir -p build | |
24718 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24719 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
31a033ec BB |
24720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24721 | (eval $ac_try) 2>&5 | |
24722 | ac_status=$? | |
24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24724 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24726 | (eval $ac_try) 2>&5 | |
24727 | ac_status=$? | |
24728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24729 | (exit $ac_status); }; }; then | |
24730 | ||
24731 | echo "$as_me:$LINENO: result: yes" >&5 | |
24732 | echo "${ECHO_T}yes" >&6 | |
24733 | ||
24734 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24735 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
31a033ec BB |
24736 | _ACEOF |
24737 | ||
24738 | ||
bf9f3bac | 24739 | else |
24740 | echo "$as_me: failed program was:" >&5 | |
24741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24742 | ||
bf9f3bac | 24743 | echo "$as_me:$LINENO: result: no" >&5 |
24744 | echo "${ECHO_T}no" >&6 | |
24745 | ||
c5f70460 BB |
24746 | |
24747 | ||
bf9f3bac | 24748 | fi |
c5f70460 BB |
24749 | |
24750 | rm -Rf build | |
24751 | ||
bf9f3bac | 24752 | |
24753 | ||
6ae7fef5 BB |
24754 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
24755 | echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6 | |
bf9f3bac | 24756 | |
d1ff2312 | 24757 | |
6ae7fef5 BB |
24758 | cat >conftest.c <<_ACEOF |
24759 | /* confdefs.h. */ | |
d1ff2312 | 24760 | _ACEOF |
6ae7fef5 BB |
24761 | cat confdefs.h >>conftest.$ac_ext |
24762 | cat >>conftest.$ac_ext <<_ACEOF | |
24763 | /* end confdefs.h. */ | |
d1ff2312 | 24764 | |
d1ff2312 | 24765 | |
6ae7fef5 | 24766 | #include <linux/mm.h> |
d1ff2312 | 24767 | |
6ae7fef5 BB |
24768 | int |
24769 | main (void) | |
24770 | { | |
d1ff2312 | 24771 | |
6ae7fef5 BB |
24772 | enum zone_stat_item zsi; |
24773 | zsi = NR_INACTIVE_FILE; | |
d1ff2312 | 24774 | |
6ae7fef5 BB |
24775 | ; |
24776 | return 0; | |
24777 | } | |
d1ff2312 | 24778 | |
6ae7fef5 | 24779 | _ACEOF |
d1ff2312 | 24780 | |
d1ff2312 | 24781 | |
6ae7fef5 BB |
24782 | rm -Rf build && mkdir -p build |
24783 | echo "obj-m := conftest.o" >build/Makefile | |
24784 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24786 | (eval $ac_try) 2>&5 | |
24787 | ac_status=$? | |
24788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24789 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24791 | (eval $ac_try) 2>&5 | |
24792 | ac_status=$? | |
24793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24794 | (exit $ac_status); }; }; then | |
d1ff2312 | 24795 | |
d1ff2312 BB |
24796 | echo "$as_me:$LINENO: result: yes" >&5 |
24797 | echo "${ECHO_T}yes" >&6 | |
24798 | ||
24799 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24800 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
d1ff2312 BB |
24801 | _ACEOF |
24802 | ||
5232d256 | 24803 | |
6ae7fef5 BB |
24804 | else |
24805 | echo "$as_me: failed program was:" >&5 | |
24806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5232d256 | 24807 | |
5232d256 BB |
24808 | echo "$as_me:$LINENO: result: no" >&5 |
24809 | echo "${ECHO_T}no" >&6 | |
5232d256 BB |
24810 | |
24811 | ||
36b313da | 24812 | |
6ae7fef5 BB |
24813 | fi |
24814 | ||
24815 | rm -Rf build | |
24816 | ||
36b313da | 24817 | |
36b313da | 24818 | |
36b313da | 24819 | |
6ae7fef5 BB |
24820 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
24821 | echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6 | |
24822 | ||
24823 | ||
24824 | cat >conftest.c <<_ACEOF | |
24825 | /* confdefs.h. */ | |
36b313da | 24826 | _ACEOF |
6ae7fef5 BB |
24827 | cat confdefs.h >>conftest.$ac_ext |
24828 | cat >>conftest.$ac_ext <<_ACEOF | |
24829 | /* end confdefs.h. */ | |
36b313da | 24830 | |
36b313da | 24831 | |
6ae7fef5 | 24832 | #include <linux/mm.h> |
36b313da | 24833 | |
6ae7fef5 BB |
24834 | int |
24835 | main (void) | |
24836 | { | |
36b313da | 24837 | |
6ae7fef5 BB |
24838 | enum zone_stat_item zsi; |
24839 | zsi = NR_ACTIVE; | |
36b313da | 24840 | |
6ae7fef5 BB |
24841 | ; |
24842 | return 0; | |
24843 | } | |
36b313da | 24844 | |
36b313da BB |
24845 | _ACEOF |
24846 | ||
6ae7fef5 BB |
24847 | |
24848 | rm -Rf build && mkdir -p build | |
24849 | echo "obj-m := conftest.o" >build/Makefile | |
24850 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24852 | (eval $ac_try) 2>&5 | |
24853 | ac_status=$? | |
24854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24855 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24857 | (eval $ac_try) 2>&5 | |
24858 | ac_status=$? | |
24859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24860 | (exit $ac_status); }; }; then | |
24861 | ||
36b313da BB |
24862 | echo "$as_me:$LINENO: result: yes" >&5 |
24863 | echo "${ECHO_T}yes" >&6 | |
24864 | ||
24865 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24866 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
36b313da BB |
24867 | _ACEOF |
24868 | ||
36b313da | 24869 | |
6ae7fef5 BB |
24870 | else |
24871 | echo "$as_me: failed program was:" >&5 | |
24872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36b313da | 24873 | |
6ae7fef5 | 24874 | echo "$as_me:$LINENO: result: no" >&5 |
36b313da BB |
24875 | echo "${ECHO_T}no" >&6 |
24876 | ||
36b313da | 24877 | |
36b313da | 24878 | |
6ae7fef5 | 24879 | fi |
36b313da | 24880 | |
6ae7fef5 BB |
24881 | rm -Rf build |
24882 | ||
24883 | ||
24884 | ||
24885 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 | |
24886 | echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6 | |
24887 | ||
24888 | ||
24889 | cat >conftest.c <<_ACEOF | |
24890 | /* confdefs.h. */ | |
36b313da | 24891 | _ACEOF |
6ae7fef5 BB |
24892 | cat confdefs.h >>conftest.$ac_ext |
24893 | cat >>conftest.$ac_ext <<_ACEOF | |
24894 | /* end confdefs.h. */ | |
36b313da | 24895 | |
36b313da | 24896 | |
6ae7fef5 | 24897 | #include <linux/mm.h> |
36b313da | 24898 | |
6ae7fef5 BB |
24899 | int |
24900 | main (void) | |
24901 | { | |
36b313da | 24902 | |
6ae7fef5 BB |
24903 | enum zone_stat_item zsi; |
24904 | zsi = NR_ACTIVE_ANON; | |
5232d256 | 24905 | |
6ae7fef5 BB |
24906 | ; |
24907 | return 0; | |
24908 | } | |
5232d256 | 24909 | |
5232d256 BB |
24910 | _ACEOF |
24911 | ||
6ae7fef5 BB |
24912 | |
24913 | rm -Rf build && mkdir -p build | |
24914 | echo "obj-m := conftest.o" >build/Makefile | |
24915 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24917 | (eval $ac_try) 2>&5 | |
24918 | ac_status=$? | |
24919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24920 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24922 | (eval $ac_try) 2>&5 | |
24923 | ac_status=$? | |
24924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24925 | (exit $ac_status); }; }; then | |
24926 | ||
5232d256 BB |
24927 | echo "$as_me:$LINENO: result: yes" >&5 |
24928 | echo "${ECHO_T}yes" >&6 | |
24929 | ||
24930 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24931 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
5232d256 BB |
24932 | _ACEOF |
24933 | ||
5232d256 | 24934 | |
6ae7fef5 BB |
24935 | else |
24936 | echo "$as_me: failed program was:" >&5 | |
24937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5232d256 | 24938 | |
6ae7fef5 | 24939 | echo "$as_me:$LINENO: result: no" >&5 |
4ab13d3b BB |
24940 | echo "${ECHO_T}no" >&6 |
24941 | ||
4ab13d3b | 24942 | |
4ab13d3b | 24943 | |
6ae7fef5 | 24944 | fi |
4ab13d3b | 24945 | |
6ae7fef5 | 24946 | rm -Rf build |
96dded38 BB |
24947 | |
24948 | ||
24949 | ||
6ae7fef5 BB |
24950 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
24951 | echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6 | |
96dded38 BB |
24952 | |
24953 | ||
24954 | cat >conftest.c <<_ACEOF | |
24955 | /* confdefs.h. */ | |
24956 | _ACEOF | |
24957 | cat confdefs.h >>conftest.$ac_ext | |
24958 | cat >>conftest.$ac_ext <<_ACEOF | |
24959 | /* end confdefs.h. */ | |
24960 | ||
24961 | ||
6ae7fef5 | 24962 | #include <linux/mm.h> |
96dded38 BB |
24963 | |
24964 | int | |
24965 | main (void) | |
24966 | { | |
24967 | ||
6ae7fef5 BB |
24968 | enum zone_stat_item zsi; |
24969 | zsi = NR_ACTIVE_FILE; | |
96dded38 BB |
24970 | |
24971 | ; | |
24972 | return 0; | |
24973 | } | |
24974 | ||
24975 | _ACEOF | |
24976 | ||
24977 | ||
24978 | rm -Rf build && mkdir -p build | |
24979 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24980 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
96dded38 BB |
24981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24982 | (eval $ac_try) 2>&5 | |
24983 | ac_status=$? | |
24984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24985 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24987 | (eval $ac_try) 2>&5 | |
24988 | ac_status=$? | |
24989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24990 | (exit $ac_status); }; }; then | |
24991 | ||
24992 | echo "$as_me:$LINENO: result: yes" >&5 | |
24993 | echo "${ECHO_T}yes" >&6 | |
24994 | ||
24995 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24996 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 |
96dded38 BB |
24997 | _ACEOF |
24998 | ||
24999 | ||
25000 | else | |
25001 | echo "$as_me: failed program was:" >&5 | |
25002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25003 | ||
25004 | echo "$as_me:$LINENO: result: no" >&5 | |
25005 | echo "${ECHO_T}no" >&6 | |
25006 | ||
25007 | ||
25008 | ||
25009 | fi | |
25010 | ||
25011 | rm -Rf build | |
25012 | ||
4ab13d3b BB |
25013 | |
25014 | ||
25015 | ||
6ae7fef5 BB |
25016 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 |
25017 | echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6 | |
e11d6c5f BB |
25018 | |
25019 | ||
25020 | cat >conftest.c <<_ACEOF | |
25021 | /* confdefs.h. */ | |
25022 | _ACEOF | |
25023 | cat confdefs.h >>conftest.$ac_ext | |
25024 | cat >>conftest.$ac_ext <<_ACEOF | |
25025 | /* end confdefs.h. */ | |
25026 | ||
25027 | ||
e11d6c5f BB |
25028 | |
25029 | int | |
25030 | main (void) | |
25031 | { | |
25032 | ||
6ae7fef5 BB |
25033 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) |
25034 | #error "global_page_state needs NR_FREE_PAGES" | |
25035 | #endif | |
25036 | ||
25037 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
25038 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
25039 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
25040 | #error "global_page_state needs NR_ACTIVE*" | |
25041 | #endif | |
25042 | ||
25043 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
25044 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
25045 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
25046 | #error "global_page_state needs NR_INACTIVE*" | |
25047 | #endif | |
e11d6c5f BB |
25048 | |
25049 | ; | |
25050 | return 0; | |
25051 | } | |
25052 | ||
25053 | _ACEOF | |
25054 | ||
25055 | ||
25056 | rm -Rf build && mkdir -p build | |
25057 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 25058 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
e11d6c5f BB |
25059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25060 | (eval $ac_try) 2>&5 | |
25061 | ac_status=$? | |
25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25063 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25065 | (eval $ac_try) 2>&5 | |
25066 | ac_status=$? | |
25067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25068 | (exit $ac_status); }; }; then | |
25069 | ||
6ae7fef5 BB |
25070 | echo "$as_me:$LINENO: result: no" >&5 |
25071 | echo "${ECHO_T}no" >&6 | |
25072 | ||
25073 | else | |
25074 | echo "$as_me: failed program was:" >&5 | |
25075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25076 | ||
e11d6c5f BB |
25077 | echo "$as_me:$LINENO: result: yes" >&5 |
25078 | echo "${ECHO_T}yes" >&6 | |
25079 | ||
25080 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 25081 | #define NEED_GET_ZONE_COUNTS 1 |
e11d6c5f BB |
25082 | _ACEOF |
25083 | ||
25084 | ||
6ae7fef5 BB |
25085 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 |
25086 | echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6 | |
25087 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
25088 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
25089 | rc=$? | |
25090 | if test $rc -ne 0; then | |
25091 | export=0 | |
25092 | for file in ; do | |
25093 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
25094 | "$LINUX_OBJ/$file" 2>/dev/null | |
25095 | rc=$? | |
25096 | if test $rc -eq 0; then | |
25097 | export=1 | |
25098 | break; | |
25099 | fi | |
25100 | done | |
25101 | if test $export -eq 0; then | |
25102 | echo "$as_me:$LINENO: result: no" >&5 | |
e11d6c5f BB |
25103 | echo "${ECHO_T}no" >&6 |
25104 | ||
6ae7fef5 BB |
25105 | else |
25106 | echo "$as_me:$LINENO: result: yes" >&5 | |
25107 | echo "${ECHO_T}yes" >&6 | |
25108 | ||
25109 | cat >>confdefs.h <<\_ACEOF | |
25110 | #define HAVE_GET_ZONE_COUNTS 1 | |
25111 | _ACEOF | |
25112 | ||
25113 | fi | |
25114 | else | |
25115 | echo "$as_me:$LINENO: result: yes" >&5 | |
25116 | echo "${ECHO_T}yes" >&6 | |
25117 | ||
25118 | cat >>confdefs.h <<\_ACEOF | |
25119 | #define HAVE_GET_ZONE_COUNTS 1 | |
25120 | _ACEOF | |
25121 | ||
25122 | fi | |
25123 | ||
25124 | ||
e11d6c5f BB |
25125 | |
25126 | ||
51a727e9 BB |
25127 | fi |
25128 | ||
25129 | rm -Rf build | |
25130 | ||
25131 | ||
25132 | ||
25133 | ||
25134 | echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5 | |
25135 | echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6 | |
25136 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ | |
25137 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
25138 | rc=$? | |
25139 | if test $rc -ne 0; then | |
25140 | export=0 | |
25141 | for file in ; do | |
25142 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
25143 | "$LINUX_OBJ/$file" 2>/dev/null | |
25144 | rc=$? | |
25145 | if test $rc -eq 0; then | |
25146 | export=1 | |
25147 | break; | |
25148 | fi | |
25149 | done | |
25150 | if test $export -eq 0; then | |
25151 | echo "$as_me:$LINENO: result: no" >&5 | |
25152 | echo "${ECHO_T}no" >&6 | |
25153 | ||
25154 | else | |
25155 | echo "$as_me:$LINENO: result: yes" >&5 | |
25156 | echo "${ECHO_T}yes" >&6 | |
25157 | ||
25158 | cat >>confdefs.h <<\_ACEOF | |
25159 | #define HAVE_SET_FS_PWD 1 | |
25160 | _ACEOF | |
25161 | ||
25162 | fi | |
25163 | else | |
25164 | echo "$as_me:$LINENO: result: yes" >&5 | |
25165 | echo "${ECHO_T}yes" >&6 | |
25166 | ||
25167 | cat >>confdefs.h <<\_ACEOF | |
25168 | #define HAVE_SET_FS_PWD 1 | |
25169 | _ACEOF | |
25170 | ||
25171 | fi | |
25172 | ||
25173 | ||
25174 | echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 | |
25175 | echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6 | |
25176 | ||
25177 | ||
25178 | cat >conftest.c <<_ACEOF | |
25179 | /* confdefs.h. */ | |
25180 | _ACEOF | |
25181 | cat confdefs.h >>conftest.$ac_ext | |
25182 | cat >>conftest.$ac_ext <<_ACEOF | |
25183 | /* end confdefs.h. */ | |
25184 | ||
25185 | ||
25186 | #include <linux/sched.h> | |
baf2979e | 25187 | #include <linux/fs_struct.h> |
51a727e9 BB |
25188 | |
25189 | int | |
25190 | main (void) | |
25191 | { | |
25192 | ||
25193 | set_fs_pwd(NULL, NULL); | |
25194 | ||
25195 | ; | |
25196 | return 0; | |
25197 | } | |
25198 | ||
25199 | _ACEOF | |
25200 | ||
25201 | ||
25202 | rm -Rf build && mkdir -p build | |
25203 | echo "obj-m := conftest.o" >build/Makefile | |
25204 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
25205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25206 | (eval $ac_try) 2>&5 | |
25207 | ac_status=$? | |
25208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25209 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25211 | (eval $ac_try) 2>&5 | |
25212 | ac_status=$? | |
25213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25214 | (exit $ac_status); }; }; then | |
25215 | ||
25216 | echo "$as_me:$LINENO: result: yes" >&5 | |
25217 | echo "${ECHO_T}yes" >&6 | |
25218 | ||
25219 | cat >>confdefs.h <<\_ACEOF | |
25220 | #define HAVE_2ARGS_SET_FS_PWD 1 | |
25221 | _ACEOF | |
25222 | ||
25223 | ||
25224 | else | |
25225 | echo "$as_me: failed program was:" >&5 | |
25226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25227 | ||
25228 | echo "$as_me:$LINENO: result: no" >&5 | |
25229 | echo "${ECHO_T}no" >&6 | |
25230 | ||
25231 | ||
25232 | ||
a093c6a4 BB |
25233 | fi |
25234 | ||
25235 | rm -Rf build | |
25236 | ||
25237 | ||
25238 | ||
86933a6e | 25239 | echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
a093c6a4 BB |
25240 | echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6 |
25241 | ||
25242 | ||
25243 | cat >conftest.c <<_ACEOF | |
25244 | /* confdefs.h. */ | |
25245 | _ACEOF | |
25246 | cat confdefs.h >>conftest.$ac_ext | |
25247 | cat >>conftest.$ac_ext <<_ACEOF | |
25248 | /* end confdefs.h. */ | |
25249 | ||
25250 | ||
25251 | #include <linux/fs.h> | |
25252 | ||
25253 | int | |
25254 | main (void) | |
25255 | { | |
25256 | ||
25257 | vfs_unlink(NULL, NULL); | |
25258 | ||
25259 | ; | |
25260 | return 0; | |
25261 | } | |
25262 | ||
25263 | _ACEOF | |
25264 | ||
25265 | ||
25266 | rm -Rf build && mkdir -p build | |
25267 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 25268 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
a093c6a4 BB |
25269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25270 | (eval $ac_try) 2>&5 | |
25271 | ac_status=$? | |
25272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25273 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25275 | (eval $ac_try) 2>&5 | |
25276 | ac_status=$? | |
25277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25278 | (exit $ac_status); }; }; then | |
25279 | ||
25280 | echo "$as_me:$LINENO: result: yes" >&5 | |
25281 | echo "${ECHO_T}yes" >&6 | |
25282 | ||
25283 | cat >>confdefs.h <<\_ACEOF | |
25284 | #define HAVE_2ARGS_VFS_UNLINK 1 | |
25285 | _ACEOF | |
25286 | ||
25287 | ||
25288 | else | |
25289 | echo "$as_me: failed program was:" >&5 | |
25290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25291 | ||
25292 | echo "$as_me:$LINENO: result: no" >&5 | |
25293 | echo "${ECHO_T}no" >&6 | |
25294 | ||
25295 | ||
25296 | ||
25297 | fi | |
25298 | ||
25299 | rm -Rf build | |
25300 | ||
25301 | ||
25302 | ||
86933a6e | 25303 | echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
a093c6a4 BB |
25304 | echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6 |
25305 | ||
25306 | ||
25307 | cat >conftest.c <<_ACEOF | |
25308 | /* confdefs.h. */ | |
25309 | _ACEOF | |
25310 | cat confdefs.h >>conftest.$ac_ext | |
25311 | cat >>conftest.$ac_ext <<_ACEOF | |
25312 | /* end confdefs.h. */ | |
25313 | ||
25314 | ||
25315 | #include <linux/fs.h> | |
25316 | ||
25317 | int | |
25318 | main (void) | |
25319 | { | |
25320 | ||
25321 | vfs_rename(NULL, NULL, NULL, NULL); | |
25322 | ||
25323 | ; | |
25324 | return 0; | |
25325 | } | |
25326 | ||
25327 | _ACEOF | |
25328 | ||
25329 | ||
25330 | rm -Rf build && mkdir -p build | |
25331 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 25332 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
a093c6a4 BB |
25333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25334 | (eval $ac_try) 2>&5 | |
25335 | ac_status=$? | |
25336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25337 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25339 | (eval $ac_try) 2>&5 | |
25340 | ac_status=$? | |
25341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25342 | (exit $ac_status); }; }; then | |
25343 | ||
25344 | echo "$as_me:$LINENO: result: yes" >&5 | |
25345 | echo "${ECHO_T}yes" >&6 | |
25346 | ||
25347 | cat >>confdefs.h <<\_ACEOF | |
25348 | #define HAVE_4ARGS_VFS_RENAME 1 | |
25349 | _ACEOF | |
25350 | ||
25351 | ||
25352 | else | |
25353 | echo "$as_me: failed program was:" >&5 | |
25354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25355 | ||
25356 | echo "$as_me:$LINENO: result: no" >&5 | |
25357 | echo "${ECHO_T}no" >&6 | |
25358 | ||
25359 | ||
25360 | ||
e11d6c5f BB |
25361 | fi |
25362 | ||
25363 | rm -Rf build | |
25364 | ||
25365 | ||
25366 | ||
25367 | ||
ec7d53e9 BB |
25368 | echo "$as_me:$LINENO: checking whether struct cred exists" >&5 |
25369 | echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6 | |
25370 | ||
25371 | ||
25372 | cat >conftest.c <<_ACEOF | |
25373 | /* confdefs.h. */ | |
25374 | _ACEOF | |
25375 | cat confdefs.h >>conftest.$ac_ext | |
25376 | cat >>conftest.$ac_ext <<_ACEOF | |
25377 | /* end confdefs.h. */ | |
25378 | ||
25379 | ||
25380 | #include <linux/cred.h> | |
25381 | ||
25382 | int | |
25383 | main (void) | |
25384 | { | |
25385 | ||
25386 | struct cred *cr; | |
25387 | cr = NULL; | |
25388 | ||
25389 | ; | |
25390 | return 0; | |
25391 | } | |
25392 | ||
25393 | _ACEOF | |
25394 | ||
25395 | ||
25396 | rm -Rf build && mkdir -p build | |
25397 | echo "obj-m := conftest.o" >build/Makefile | |
25398 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
25399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25400 | (eval $ac_try) 2>&5 | |
25401 | ac_status=$? | |
25402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25403 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25405 | (eval $ac_try) 2>&5 | |
25406 | ac_status=$? | |
25407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25408 | (exit $ac_status); }; }; then | |
25409 | ||
25410 | echo "$as_me:$LINENO: result: yes" >&5 | |
25411 | echo "${ECHO_T}yes" >&6 | |
25412 | ||
25413 | cat >>confdefs.h <<\_ACEOF | |
25414 | #define HAVE_CRED_STRUCT 1 | |
25415 | _ACEOF | |
25416 | ||
25417 | ||
25418 | else | |
25419 | echo "$as_me: failed program was:" >&5 | |
25420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25421 | ||
25422 | echo "$as_me:$LINENO: result: no" >&5 | |
25423 | echo "${ECHO_T}no" >&6 | |
25424 | ||
25425 | ||
25426 | ||
25427 | fi | |
25428 | ||
25429 | rm -Rf build | |
25430 | ||
25431 | ||
25432 | ||
25433 | ||
25434 | echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 | |
25435 | echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6 | |
25436 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ | |
25437 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
25438 | rc=$? | |
25439 | if test $rc -ne 0; then | |
25440 | export=0 | |
25441 | for file in ; do | |
25442 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
25443 | "$LINUX_OBJ/$file" 2>/dev/null | |
25444 | rc=$? | |
25445 | if test $rc -eq 0; then | |
25446 | export=1 | |
25447 | break; | |
25448 | fi | |
25449 | done | |
25450 | if test $export -eq 0; then | |
25451 | echo "$as_me:$LINENO: result: no" >&5 | |
25452 | echo "${ECHO_T}no" >&6 | |
25453 | ||
25454 | else | |
25455 | echo "$as_me:$LINENO: result: yes" >&5 | |
25456 | echo "${ECHO_T}yes" >&6 | |
25457 | ||
25458 | cat >>confdefs.h <<\_ACEOF | |
25459 | #define HAVE_GROUPS_SEARCH 1 | |
25460 | _ACEOF | |
25461 | ||
25462 | fi | |
25463 | else | |
25464 | echo "$as_me:$LINENO: result: yes" >&5 | |
25465 | echo "${ECHO_T}yes" >&6 | |
25466 | ||
25467 | cat >>confdefs.h <<\_ACEOF | |
25468 | #define HAVE_GROUPS_SEARCH 1 | |
25469 | _ACEOF | |
25470 | ||
25471 | fi | |
25472 | ||
25473 | ||
25474 | ||
e811949a BB |
25475 | echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 |
25476 | echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6 | |
25477 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
25478 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
25479 | rc=$? | |
25480 | if test $rc -ne 0; then | |
25481 | export=0 | |
25482 | for file in ; do | |
25483 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
25484 | "$LINUX_OBJ/$file" 2>/dev/null | |
25485 | rc=$? | |
25486 | if test $rc -eq 0; then | |
25487 | export=1 | |
25488 | break; | |
25489 | fi | |
25490 | done | |
25491 | if test $export -eq 0; then | |
25492 | echo "$as_me:$LINENO: result: no" >&5 | |
25493 | echo "${ECHO_T}no" >&6 | |
25494 | ||
25495 | else | |
25496 | echo "$as_me:$LINENO: result: yes" >&5 | |
25497 | echo "${ECHO_T}yes" >&6 | |
25498 | ||
25499 | cat >>confdefs.h <<\_ACEOF | |
25500 | #define HAVE_PUT_TASK_STRUCT 1 | |
25501 | _ACEOF | |
25502 | ||
25503 | fi | |
25504 | else | |
25505 | echo "$as_me:$LINENO: result: yes" >&5 | |
25506 | echo "${ECHO_T}yes" >&6 | |
25507 | ||
25508 | cat >>confdefs.h <<\_ACEOF | |
25509 | #define HAVE_PUT_TASK_STRUCT 1 | |
25510 | _ACEOF | |
25511 | ||
25512 | fi | |
25513 | ||
25514 | ||
25515 | ||
86933a6e | 25516 | ;; |
c1541dfe | 25517 | srpm) ;; |
86933a6e BB |
25518 | *) |
25519 | echo "$as_me:$LINENO: result: Error!" >&5 | |
25520 | echo "${ECHO_T}Error!" >&6 | |
25521 | { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config, | |
c1541dfe | 25522 | user kernel|user|all|srpm" >&5 |
86933a6e | 25523 | echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config, |
c1541dfe | 25524 | user kernel|user|all|srpm" >&2;} |
86933a6e BB |
25525 | { (exit 1); exit 1; }; } ;; |
25526 | esac | |
25527 | ||
25528 | ||
25529 | ||
25530 | if test "$SPL_CONFIG" = user || | |
25531 | test "$SPL_CONFIG" = all; then | |
25532 | CONFIG_USER_TRUE= | |
25533 | CONFIG_USER_FALSE='#' | |
25534 | else | |
25535 | CONFIG_USER_TRUE='#' | |
25536 | CONFIG_USER_FALSE= | |
25537 | fi | |
25538 | ||
25539 | ||
25540 | ||
25541 | if test "$SPL_CONFIG" = kernel || | |
25542 | test "$SPL_CONFIG" = all; then | |
25543 | CONFIG_KERNEL_TRUE= | |
25544 | CONFIG_KERNEL_FALSE='#' | |
25545 | else | |
25546 | CONFIG_KERNEL_TRUE='#' | |
25547 | CONFIG_KERNEL_FALSE= | |
25548 | fi | |
25549 | ||
25550 | ||
25551 | ||
25552 | ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec" | |
bf9f3bac | 25553 | |
25554 | ||
25555 | cat >confcache <<\_ACEOF | |
25556 | # This file is a shell script that caches the results of configure | |
25557 | # tests run on this system so they can be shared between configure | |
25558 | # scripts and configure runs, see configure's option --config-cache. | |
25559 | # It is not useful on other systems. If it contains results you don't | |
25560 | # want to keep, you may remove or edit it. | |
25561 | # | |
25562 | # config.status only pays attention to the cache file if you give it | |
25563 | # the --recheck option to rerun configure. | |
25564 | # | |
25565 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25566 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25567 | # following values. | |
25568 | ||
25569 | _ACEOF | |
25570 | ||
25571 | # The following way of writing the cache mishandles newlines in values, | |
25572 | # but we know of no workaround that is simple, portable, and efficient. | |
25573 | # So, don't put newlines in cache variables' values. | |
25574 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
25575 | # and sets the high bit in the cache file unless we assign to the vars. | |
25576 | { | |
25577 | (set) 2>&1 | | |
25578 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
25579 | *ac_space=\ *) | |
25580 | # `set' does not quote correctly, so add quotes (double-quote | |
25581 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25582 | sed -n \ | |
25583 | "s/'/'\\\\''/g; | |
25584 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
25585 | ;; | |
25586 | *) | |
25587 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
25588 | sed -n \ | |
25589 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
25590 | ;; | |
25591 | esac; | |
25592 | } | | |
25593 | sed ' | |
25594 | t clear | |
25595 | : clear | |
25596 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
25597 | t end | |
25598 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
25599 | : end' >>confcache | |
25600 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
25601 | if test -w $cache_file; then | |
25602 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
25603 | cat confcache >$cache_file | |
25604 | else | |
25605 | echo "not updating unwritable cache $cache_file" | |
25606 | fi | |
25607 | fi | |
25608 | rm -f confcache | |
25609 | ||
25610 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25611 | # Let make expand exec_prefix. | |
25612 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25613 | ||
25614 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
25615 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25616 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25617 | # (actually we leave an empty line to preserve line numbers). | |
25618 | if test "x$srcdir" = x.; then | |
25619 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25620 | s/:*\$(srcdir):*/:/; | |
25621 | s/:*\${srcdir}:*/:/; | |
25622 | s/:*@srcdir@:*/:/; | |
25623 | s/^\([^=]*=[ ]*\):*/\1/; | |
25624 | s/:*$//; | |
25625 | s/^[^=]*=[ ]*$//; | |
25626 | }' | |
25627 | fi | |
25628 | ||
25629 | DEFS=-DHAVE_CONFIG_H | |
25630 | ||
25631 | ac_libobjs= | |
25632 | ac_ltlibobjs= | |
25633 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25634 | # 1. Remove the extension, and $U if already installed. | |
25635 | ac_i=`echo "$ac_i" | | |
25636 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
25637 | # 2. Add them. | |
25638 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
25639 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
25640 | done | |
25641 | LIBOBJS=$ac_libobjs | |
25642 | ||
25643 | LTLIBOBJS=$ac_ltlibobjs | |
25644 | ||
25645 | ||
25646 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
25647 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25648 | Usually this means the macro was only invoked conditionally." >&5 | |
25649 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25650 | Usually this means the macro was only invoked conditionally." >&2;} | |
25651 | { (exit 1); exit 1; }; } | |
25652 | fi | |
25653 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
25654 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
25655 | Usually this means the macro was only invoked conditionally." >&5 | |
25656 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
25657 | Usually this means the macro was only invoked conditionally." >&2;} | |
25658 | { (exit 1); exit 1; }; } | |
25659 | fi | |
25660 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
25661 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
25662 | Usually this means the macro was only invoked conditionally." >&5 | |
25663 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
25664 | Usually this means the macro was only invoked conditionally." >&2;} | |
25665 | { (exit 1); exit 1; }; } | |
25666 | fi | |
25667 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
25668 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
25669 | Usually this means the macro was only invoked conditionally." >&5 | |
25670 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
25671 | Usually this means the macro was only invoked conditionally." >&2;} | |
25672 | { (exit 1); exit 1; }; } | |
25673 | fi | |
86933a6e BB |
25674 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then |
25675 | { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined. | |
25676 | Usually this means the macro was only invoked conditionally." >&5 | |
25677 | echo "$as_me: error: conditional \"CONFIG_USER\" was never defined. | |
25678 | Usually this means the macro was only invoked conditionally." >&2;} | |
25679 | { (exit 1); exit 1; }; } | |
25680 | fi | |
25681 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
25682 | { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined. | |
25683 | Usually this means the macro was only invoked conditionally." >&5 | |
25684 | echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined. | |
25685 | Usually this means the macro was only invoked conditionally." >&2;} | |
25686 | { (exit 1); exit 1; }; } | |
25687 | fi | |
bf9f3bac | 25688 | |
25689 | : ${CONFIG_STATUS=./config.status} | |
25690 | ac_clean_files_save=$ac_clean_files | |
25691 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25692 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25693 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25694 | cat >$CONFIG_STATUS <<_ACEOF | |
25695 | #! $SHELL | |
25696 | # Generated by $as_me. | |
25697 | # Run this file to recreate the current configuration. | |
25698 | # Compiler output produced by configure, useful for debugging | |
25699 | # configure, is in config.log if it exists. | |
25700 | ||
25701 | debug=false | |
25702 | ac_cs_recheck=false | |
25703 | ac_cs_silent=false | |
25704 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25705 | _ACEOF | |
25706 | ||
25707 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25708 | ## --------------------- ## | |
25709 | ## M4sh Initialization. ## | |
25710 | ## --------------------- ## | |
25711 | ||
25712 | # Be Bourne compatible | |
25713 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25714 | emulate sh | |
25715 | NULLCMD=: | |
25716 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
25717 | # is contrary to our usage. Disable this feature. | |
25718 | alias -g '${1+"$@"}'='"$@"' | |
25719 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
25720 | set -o posix | |
25721 | fi | |
25722 | DUALCASE=1; export DUALCASE # for MKS sh | |
25723 | ||
25724 | # Support unset when possible. | |
25725 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
25726 | as_unset=unset | |
25727 | else | |
25728 | as_unset=false | |
25729 | fi | |
25730 | ||
25731 | ||
25732 | # Work around bugs in pre-3.0 UWIN ksh. | |
25733 | $as_unset ENV MAIL MAILPATH | |
25734 | PS1='$ ' | |
25735 | PS2='> ' | |
25736 | PS4='+ ' | |
25737 | ||
25738 | # NLS nuisances. | |
25739 | for as_var in \ | |
25740 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
25741 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
25742 | LC_TELEPHONE LC_TIME | |
25743 | do | |
25744 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
25745 | eval $as_var=C; export $as_var | |
25746 | else | |
25747 | $as_unset $as_var | |
25748 | fi | |
25749 | done | |
25750 | ||
25751 | # Required to use basename. | |
25752 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25753 | as_expr=expr | |
25754 | else | |
25755 | as_expr=false | |
25756 | fi | |
25757 | ||
25758 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
25759 | as_basename=basename | |
25760 | else | |
25761 | as_basename=false | |
25762 | fi | |
25763 | ||
25764 | ||
25765 | # Name of the executable. | |
25766 | as_me=`$as_basename "$0" || | |
25767 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
25768 | X"$0" : 'X\(//\)$' \| \ | |
25769 | X"$0" : 'X\(/\)$' \| \ | |
25770 | . : '\(.\)' 2>/dev/null || | |
25771 | echo X/"$0" | | |
25772 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
25773 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
25774 | /^X\/\(\/\).*/{ s//\1/; q; } | |
25775 | s/.*/./; q'` | |
25776 | ||
25777 | ||
25778 | # PATH needs CR, and LINENO needs CR and PATH. | |
25779 | # Avoid depending upon Character Ranges. | |
25780 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25781 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25782 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25783 | as_cr_digits='0123456789' | |
25784 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25785 | ||
25786 | # The user is always right. | |
25787 | if test "${PATH_SEPARATOR+set}" != set; then | |
25788 | echo "#! /bin/sh" >conf$$.sh | |
25789 | echo "exit 0" >>conf$$.sh | |
25790 | chmod +x conf$$.sh | |
25791 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
25792 | PATH_SEPARATOR=';' | |
25793 | else | |
25794 | PATH_SEPARATOR=: | |
25795 | fi | |
25796 | rm -f conf$$.sh | |
25797 | fi | |
25798 | ||
25799 | ||
25800 | as_lineno_1=$LINENO | |
25801 | as_lineno_2=$LINENO | |
25802 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25803 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25804 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
25805 | # Find who we are. Look in the path if we contain no path at all | |
25806 | # relative or not. | |
25807 | case $0 in | |
25808 | *[\\/]* ) as_myself=$0 ;; | |
25809 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25810 | for as_dir in $PATH | |
25811 | do | |
25812 | IFS=$as_save_IFS | |
25813 | test -z "$as_dir" && as_dir=. | |
25814 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25815 | done | |
25816 | ||
25817 | ;; | |
25818 | esac | |
25819 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25820 | # in which case we are not to be found in the path. | |
25821 | if test "x$as_myself" = x; then | |
25822 | as_myself=$0 | |
25823 | fi | |
25824 | if test ! -f "$as_myself"; then | |
25825 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
25826 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
25827 | { (exit 1); exit 1; }; } | |
25828 | fi | |
25829 | case $CONFIG_SHELL in | |
25830 | '') | |
25831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25832 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25833 | do | |
25834 | IFS=$as_save_IFS | |
25835 | test -z "$as_dir" && as_dir=. | |
25836 | for as_base in sh bash ksh sh5; do | |
25837 | case $as_dir in | |
25838 | /*) | |
25839 | if ("$as_dir/$as_base" -c ' | |
25840 | as_lineno_1=$LINENO | |
25841 | as_lineno_2=$LINENO | |
25842 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25843 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25844 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
25845 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
25846 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
25847 | CONFIG_SHELL=$as_dir/$as_base | |
25848 | export CONFIG_SHELL | |
25849 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
25850 | fi;; | |
25851 | esac | |
25852 | done | |
25853 | done | |
25854 | ;; | |
25855 | esac | |
25856 | ||
25857 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25858 | # uniformly replaced by the line number. The first 'sed' inserts a | |
25859 | # line-number line before each line; the second 'sed' does the real | |
25860 | # work. The second script uses 'N' to pair each line-number line | |
25861 | # with the numbered line, and appends trailing '-' during | |
25862 | # substitution so that $LINENO is not a special case at line end. | |
25863 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
25864 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
25865 | sed '=' <$as_myself | | |
25866 | sed ' | |
25867 | N | |
25868 | s,$,-, | |
25869 | : loop | |
25870 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
25871 | t loop | |
25872 | s,-$,, | |
25873 | s,^['$as_cr_digits']*\n,, | |
25874 | ' >$as_me.lineno && | |
25875 | chmod +x $as_me.lineno || | |
25876 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
25877 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
25878 | { (exit 1); exit 1; }; } | |
25879 | ||
25880 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25881 | # (the dirname of $[0] is not the place where we might find the | |
25882 | # original and so on. Autoconf is especially sensible to this). | |
25883 | . ./$as_me.lineno | |
25884 | # Exit status is that of the last command. | |
25885 | exit | |
25886 | } | |
25887 | ||
25888 | ||
25889 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
25890 | *c*,-n*) ECHO_N= ECHO_C=' | |
25891 | ' ECHO_T=' ' ;; | |
25892 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
25893 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
25894 | esac | |
25895 | ||
25896 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25897 | as_expr=expr | |
25898 | else | |
25899 | as_expr=false | |
25900 | fi | |
25901 | ||
25902 | rm -f conf$$ conf$$.exe conf$$.file | |
25903 | echo >conf$$.file | |
25904 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
25905 | # We could just check for DJGPP; but this test a) works b) is more generic | |
25906 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
25907 | if test -f conf$$.exe; then | |
25908 | # Don't use ln at all; we don't have any links | |
25909 | as_ln_s='cp -p' | |
25910 | else | |
25911 | as_ln_s='ln -s' | |
25912 | fi | |
25913 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25914 | as_ln_s=ln | |
25915 | else | |
25916 | as_ln_s='cp -p' | |
25917 | fi | |
25918 | rm -f conf$$ conf$$.exe conf$$.file | |
25919 | ||
25920 | if mkdir -p . 2>/dev/null; then | |
25921 | as_mkdir_p=: | |
25922 | else | |
25923 | test -d ./-p && rmdir ./-p | |
25924 | as_mkdir_p=false | |
25925 | fi | |
25926 | ||
25927 | as_executable_p="test -f" | |
25928 | ||
25929 | # Sed expression to map a string onto a valid CPP name. | |
25930 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25931 | ||
25932 | # Sed expression to map a string onto a valid variable name. | |
25933 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25934 | ||
25935 | ||
25936 | # IFS | |
25937 | # We need space, tab and new line, in precisely that order. | |
25938 | as_nl=' | |
25939 | ' | |
25940 | IFS=" $as_nl" | |
25941 | ||
25942 | # CDPATH. | |
25943 | $as_unset CDPATH | |
25944 | ||
25945 | exec 6>&1 | |
25946 | ||
25947 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
25948 | # report actual input values of CONFIG_FILES etc. instead of their | |
25949 | # values after options handling. Logging --version etc. is OK. | |
25950 | exec 5>>config.log | |
25951 | { | |
25952 | echo | |
25953 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25954 | ## Running $as_me. ## | |
25955 | _ASBOX | |
25956 | } >&5 | |
25957 | cat >&5 <<_CSEOF | |
25958 | ||
25959 | This file was extended by $as_me, which was | |
25960 | generated by GNU Autoconf 2.59. Invocation command line was | |
25961 | ||
25962 | CONFIG_FILES = $CONFIG_FILES | |
25963 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25964 | CONFIG_LINKS = $CONFIG_LINKS | |
25965 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25966 | $ $0 $@ | |
25967 | ||
25968 | _CSEOF | |
25969 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
25970 | echo >&5 | |
25971 | _ACEOF | |
25972 | ||
25973 | # Files that config.status was made for. | |
25974 | if test -n "$ac_config_files"; then | |
25975 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
25976 | fi | |
25977 | ||
25978 | if test -n "$ac_config_headers"; then | |
25979 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
25980 | fi | |
25981 | ||
25982 | if test -n "$ac_config_links"; then | |
25983 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
25984 | fi | |
25985 | ||
25986 | if test -n "$ac_config_commands"; then | |
25987 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
25988 | fi | |
25989 | ||
25990 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25991 | ||
25992 | ac_cs_usage="\ | |
25993 | \`$as_me' instantiates files from templates according to the | |
25994 | current configuration. | |
25995 | ||
25996 | Usage: $0 [OPTIONS] [FILE]... | |
25997 | ||
25998 | -h, --help print this help, then exit | |
25999 | -V, --version print version number, then exit | |
26000 | -q, --quiet do not print progress messages | |
26001 | -d, --debug don't remove temporary files | |
26002 | --recheck update $as_me by reconfiguring in the same conditions | |
26003 | --file=FILE[:TEMPLATE] | |
26004 | instantiate the configuration file FILE | |
26005 | --header=FILE[:TEMPLATE] | |
26006 | instantiate the configuration header FILE | |
26007 | ||
26008 | Configuration files: | |
26009 | $config_files | |
26010 | ||
26011 | Configuration headers: | |
26012 | $config_headers | |
26013 | ||
26014 | Configuration commands: | |
26015 | $config_commands | |
26016 | ||
26017 | Report bugs to <bug-autoconf@gnu.org>." | |
26018 | _ACEOF | |
26019 | ||
26020 | cat >>$CONFIG_STATUS <<_ACEOF | |
26021 | ac_cs_version="\\ | |
26022 | config.status | |
26023 | configured by $0, generated by GNU Autoconf 2.59, | |
26024 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
26025 | ||
26026 | Copyright (C) 2003 Free Software Foundation, Inc. | |
26027 | This config.status script is free software; the Free Software Foundation | |
26028 | gives unlimited permission to copy, distribute and modify it." | |
26029 | srcdir=$srcdir | |
26030 | INSTALL="$INSTALL" | |
26031 | _ACEOF | |
26032 | ||
26033 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26034 | # If no file are specified by the user, then we need to provide default | |
26035 | # value. By we need to know if files were specified by the user. | |
26036 | ac_need_defaults=: | |
26037 | while test $# != 0 | |
26038 | do | |
26039 | case $1 in | |
26040 | --*=*) | |
26041 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
26042 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
26043 | ac_shift=: | |
26044 | ;; | |
26045 | -*) | |
26046 | ac_option=$1 | |
26047 | ac_optarg=$2 | |
26048 | ac_shift=shift | |
26049 | ;; | |
26050 | *) # This is not an option, so the user has probably given explicit | |
26051 | # arguments. | |
26052 | ac_option=$1 | |
26053 | ac_need_defaults=false;; | |
26054 | esac | |
26055 | ||
26056 | case $ac_option in | |
26057 | # Handling of the options. | |
26058 | _ACEOF | |
26059 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26060 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
26061 | ac_cs_recheck=: ;; | |
26062 | --version | --vers* | -V ) | |
26063 | echo "$ac_cs_version"; exit 0 ;; | |
26064 | --he | --h) | |
26065 | # Conflict between --help and --header | |
26066 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
26067 | Try \`$0 --help' for more information." >&5 | |
26068 | echo "$as_me: error: ambiguous option: $1 | |
26069 | Try \`$0 --help' for more information." >&2;} | |
26070 | { (exit 1); exit 1; }; };; | |
26071 | --help | --hel | -h ) | |
26072 | echo "$ac_cs_usage"; exit 0 ;; | |
26073 | --debug | --d* | -d ) | |
26074 | debug=: ;; | |
26075 | --file | --fil | --fi | --f ) | |
26076 | $ac_shift | |
26077 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
26078 | ac_need_defaults=false;; | |
26079 | --header | --heade | --head | --hea ) | |
26080 | $ac_shift | |
26081 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
26082 | ac_need_defaults=false;; | |
26083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
26084 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
26085 | ac_cs_silent=: ;; | |
26086 | ||
26087 | # This is an error. | |
26088 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
26089 | Try \`$0 --help' for more information." >&5 | |
26090 | echo "$as_me: error: unrecognized option: $1 | |
26091 | Try \`$0 --help' for more information." >&2;} | |
26092 | { (exit 1); exit 1; }; } ;; | |
26093 | ||
26094 | *) ac_config_targets="$ac_config_targets $1" ;; | |
26095 | ||
26096 | esac | |
26097 | shift | |
26098 | done | |
26099 | ||
26100 | ac_configure_extra_args= | |
26101 | ||
26102 | if $ac_cs_silent; then | |
26103 | exec 6>/dev/null | |
26104 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
26105 | fi | |
26106 | ||
26107 | _ACEOF | |
26108 | cat >>$CONFIG_STATUS <<_ACEOF | |
26109 | if \$ac_cs_recheck; then | |
26110 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
26111 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
26112 | fi | |
26113 | ||
26114 | _ACEOF | |
26115 | ||
26116 | cat >>$CONFIG_STATUS <<_ACEOF | |
26117 | # | |
26118 | # INIT-COMMANDS section. | |
26119 | # | |
26120 | ||
26121 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
26122 | ||
26123 | _ACEOF | |
26124 | ||
26125 | ||
26126 | ||
26127 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26128 | for ac_config_target in $ac_config_targets | |
26129 | do | |
26130 | case "$ac_config_target" in | |
26131 | # Handling of arguments. | |
26132 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
26133 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
26134 | "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
617d5a67 BB |
26135 | "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
26136 | "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
26137 | "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
bf9f3bac | 26138 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
bf9f3bac | 26139 | "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
c5f70460 | 26140 | "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;; |
86933a6e | 26141 | "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;; |
bf9f3bac | 26142 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
26143 | "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
26144 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
26145 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
26146 | { (exit 1); exit 1; }; };; | |
26147 | esac | |
26148 | done | |
26149 | ||
26150 | # If the user did not use the arguments to specify the items to instantiate, | |
26151 | # then the envvar interface is used. Set only those that are not. | |
26152 | # We use the long form for the default assignment because of an extremely | |
26153 | # bizarre bug on SunOS 4.1.3. | |
26154 | if $ac_need_defaults; then | |
26155 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
26156 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
26157 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
26158 | fi | |
26159 | ||
26160 | # Have a temporary directory for convenience. Make it in the build tree | |
26161 | # simply because there is no reason to put it here, and in addition, | |
26162 | # creating and moving files from /tmp can sometimes cause problems. | |
26163 | # Create a temporary directory, and hook for its removal unless debugging. | |
26164 | $debug || | |
26165 | { | |
26166 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
26167 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
26168 | } | |
26169 | ||
26170 | # Create a (secure) tmp directory for tmp files. | |
26171 | ||
26172 | { | |
26173 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
26174 | test -n "$tmp" && test -d "$tmp" | |
26175 | } || | |
26176 | { | |
26177 | tmp=./confstat$$-$RANDOM | |
26178 | (umask 077 && mkdir $tmp) | |
26179 | } || | |
26180 | { | |
26181 | echo "$me: cannot create a temporary directory in ." >&2 | |
26182 | { (exit 1); exit 1; } | |
26183 | } | |
26184 | ||
26185 | _ACEOF | |
26186 | ||
26187 | cat >>$CONFIG_STATUS <<_ACEOF | |
26188 | ||
26189 | # | |
26190 | # CONFIG_FILES section. | |
26191 | # | |
26192 | ||
26193 | # No need to generate the scripts if there are no CONFIG_FILES. | |
26194 | # This happens for instance when ./config.status config.h | |
26195 | if test -n "\$CONFIG_FILES"; then | |
26196 | # Protect against being on the right side of a sed subst in config.status. | |
26197 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
26198 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
26199 | s,@SHELL@,$SHELL,;t t | |
26200 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
26201 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
26202 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
26203 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
26204 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
26205 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
26206 | s,@exec_prefix@,$exec_prefix,;t t | |
26207 | s,@prefix@,$prefix,;t t | |
26208 | s,@program_transform_name@,$program_transform_name,;t t | |
26209 | s,@bindir@,$bindir,;t t | |
26210 | s,@sbindir@,$sbindir,;t t | |
26211 | s,@libexecdir@,$libexecdir,;t t | |
26212 | s,@datadir@,$datadir,;t t | |
26213 | s,@sysconfdir@,$sysconfdir,;t t | |
26214 | s,@sharedstatedir@,$sharedstatedir,;t t | |
26215 | s,@localstatedir@,$localstatedir,;t t | |
26216 | s,@libdir@,$libdir,;t t | |
26217 | s,@includedir@,$includedir,;t t | |
26218 | s,@oldincludedir@,$oldincludedir,;t t | |
26219 | s,@infodir@,$infodir,;t t | |
26220 | s,@mandir@,$mandir,;t t | |
26221 | s,@build_alias@,$build_alias,;t t | |
26222 | s,@host_alias@,$host_alias,;t t | |
26223 | s,@target_alias@,$target_alias,;t t | |
26224 | s,@DEFS@,$DEFS,;t t | |
26225 | s,@ECHO_C@,$ECHO_C,;t t | |
26226 | s,@ECHO_N@,$ECHO_N,;t t | |
26227 | s,@ECHO_T@,$ECHO_T,;t t | |
26228 | s,@LIBS@,$LIBS,;t t | |
abc3ca14 BB |
26229 | s,@SPL_META_NAME@,$SPL_META_NAME,;t t |
26230 | s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t | |
26231 | s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t | |
72e7de60 | 26232 | s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t |
abc3ca14 BB |
26233 | s,@SPL_META_DATA@,$SPL_META_DATA,;t t |
26234 | s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t | |
26235 | s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t | |
26236 | s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t | |
26237 | s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t | |
bf9f3bac | 26238 | s,@build@,$build,;t t |
26239 | s,@build_cpu@,$build_cpu,;t t | |
26240 | s,@build_vendor@,$build_vendor,;t t | |
26241 | s,@build_os@,$build_os,;t t | |
26242 | s,@host@,$host,;t t | |
26243 | s,@host_cpu@,$host_cpu,;t t | |
26244 | s,@host_vendor@,$host_vendor,;t t | |
26245 | s,@host_os@,$host_os,;t t | |
26246 | s,@target@,$target,;t t | |
26247 | s,@target_cpu@,$target_cpu,;t t | |
26248 | s,@target_vendor@,$target_vendor,;t t | |
26249 | s,@target_os@,$target_os,;t t | |
26250 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
26251 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
26252 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
26253 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
26254 | s,@PACKAGE@,$PACKAGE,;t t | |
26255 | s,@VERSION@,$VERSION,;t t | |
26256 | s,@ACLOCAL@,$ACLOCAL,;t t | |
26257 | s,@AUTOCONF@,$AUTOCONF,;t t | |
26258 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
26259 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
26260 | s,@MAKEINFO@,$MAKEINFO,;t t | |
26261 | s,@install_sh@,$install_sh,;t t | |
26262 | s,@STRIP@,$STRIP,;t t | |
26263 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
26264 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
26265 | s,@mkdir_p@,$mkdir_p,;t t | |
26266 | s,@AWK@,$AWK,;t t | |
26267 | s,@SET_MAKE@,$SET_MAKE,;t t | |
26268 | s,@am__leading_dot@,$am__leading_dot,;t t | |
26269 | s,@AMTAR@,$AMTAR,;t t | |
26270 | s,@am__tar@,$am__tar,;t t | |
26271 | s,@am__untar@,$am__untar,;t t | |
26272 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
26273 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
26274 | s,@MAINT@,$MAINT,;t t | |
26275 | s,@CC@,$CC,;t t | |
26276 | s,@CFLAGS@,$CFLAGS,;t t | |
26277 | s,@LDFLAGS@,$LDFLAGS,;t t | |
26278 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
26279 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
26280 | s,@EXEEXT@,$EXEEXT,;t t | |
26281 | s,@OBJEXT@,$OBJEXT,;t t | |
26282 | s,@DEPDIR@,$DEPDIR,;t t | |
26283 | s,@am__include@,$am__include,;t t | |
26284 | s,@am__quote@,$am__quote,;t t | |
26285 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
26286 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
26287 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
26288 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
26289 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
26290 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
26291 | s,@SED@,$SED,;t t | |
26292 | s,@EGREP@,$EGREP,;t t | |
26293 | s,@LN_S@,$LN_S,;t t | |
26294 | s,@ECHO@,$ECHO,;t t | |
26295 | s,@AR@,$AR,;t t | |
26296 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
26297 | s,@RANLIB@,$RANLIB,;t t | |
26298 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
26299 | s,@CPP@,$CPP,;t t | |
26300 | s,@CXX@,$CXX,;t t | |
26301 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
26302 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
26303 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
26304 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
26305 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
26306 | s,@CXXCPP@,$CXXCPP,;t t | |
26307 | s,@F77@,$F77,;t t | |
26308 | s,@FFLAGS@,$FFLAGS,;t t | |
26309 | s,@ac_ct_F77@,$ac_ct_F77,;t t | |
26310 | s,@LIBTOOL@,$LIBTOOL,;t t | |
86933a6e BB |
26311 | s,@LICENSE@,$LICENSE,;t t |
26312 | s,@SPL_CONFIG@,$SPL_CONFIG,;t t | |
bf9f3bac | 26313 | s,@LINUX@,$LINUX,;t t |
26314 | s,@LINUX_OBJ@,$LINUX_OBJ,;t t | |
c5f70460 | 26315 | s,@LINUX_VERSION@,$LINUX_VERSION,;t t |
86933a6e | 26316 | s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t |
bf9f3bac | 26317 | s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t |
26318 | s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t | |
86933a6e BB |
26319 | s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t |
26320 | s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t | |
26321 | s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t | |
26322 | s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t | |
bf9f3bac | 26323 | s,@LIBOBJS@,$LIBOBJS,;t t |
26324 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
26325 | CEOF | |
26326 | ||
26327 | _ACEOF | |
26328 | ||
26329 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26330 | # Split the substitutions into bite-sized pieces for seds with | |
26331 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
26332 | ac_max_sed_lines=48 | |
26333 | ac_sed_frag=1 # Number of current file. | |
26334 | ac_beg=1 # First line for current file. | |
26335 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
26336 | ac_more_lines=: | |
26337 | ac_sed_cmds= | |
26338 | while $ac_more_lines; do | |
26339 | if test $ac_beg -gt 1; then | |
26340 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
26341 | else | |
26342 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
26343 | fi | |
26344 | if test ! -s $tmp/subs.frag; then | |
26345 | ac_more_lines=false | |
26346 | else | |
26347 | # The purpose of the label and of the branching condition is to | |
26348 | # speed up the sed processing (if there are no `@' at all, there | |
26349 | # is no need to browse any of the substitutions). | |
26350 | # These are the two extra sed commands mentioned above. | |
26351 | (echo ':t | |
26352 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
26353 | if test -z "$ac_sed_cmds"; then | |
26354 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
26355 | else | |
26356 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
26357 | fi | |
26358 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
26359 | ac_beg=$ac_end | |
26360 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
26361 | fi | |
26362 | done | |
26363 | if test -z "$ac_sed_cmds"; then | |
26364 | ac_sed_cmds=cat | |
26365 | fi | |
26366 | fi # test -n "$CONFIG_FILES" | |
26367 | ||
26368 | _ACEOF | |
26369 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26370 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
26371 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
26372 | case $ac_file in | |
26373 | - | *:- | *:-:* ) # input from stdin | |
26374 | cat >$tmp/stdin | |
26375 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26376 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26377 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26378 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26379 | * ) ac_file_in=$ac_file.in ;; | |
26380 | esac | |
26381 | ||
26382 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
26383 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
26384 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26385 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26386 | X"$ac_file" : 'X\(//\)$' \| \ | |
26387 | X"$ac_file" : 'X\(/\)' \| \ | |
26388 | . : '\(.\)' 2>/dev/null || | |
26389 | echo X"$ac_file" | | |
26390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26391 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26392 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26393 | /^X\(\/\).*/{ s//\1/; q; } | |
26394 | s/.*/./; q'` | |
26395 | { if $as_mkdir_p; then | |
26396 | mkdir -p "$ac_dir" | |
26397 | else | |
26398 | as_dir="$ac_dir" | |
26399 | as_dirs= | |
26400 | while test ! -d "$as_dir"; do | |
26401 | as_dirs="$as_dir $as_dirs" | |
26402 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26403 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26404 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26405 | X"$as_dir" : 'X\(//\)$' \| \ | |
26406 | X"$as_dir" : 'X\(/\)' \| \ | |
26407 | . : '\(.\)' 2>/dev/null || | |
26408 | echo X"$as_dir" | | |
26409 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26410 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26411 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26412 | /^X\(\/\).*/{ s//\1/; q; } | |
26413 | s/.*/./; q'` | |
26414 | done | |
26415 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26416 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26417 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26418 | { (exit 1); exit 1; }; }; } | |
26419 | ||
26420 | ac_builddir=. | |
26421 | ||
26422 | if test "$ac_dir" != .; then | |
26423 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
26424 | # A "../" for each directory in $ac_dir_suffix. | |
26425 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26426 | else | |
26427 | ac_dir_suffix= ac_top_builddir= | |
26428 | fi | |
26429 | ||
26430 | case $srcdir in | |
26431 | .) # No --srcdir option. We are building in place. | |
26432 | ac_srcdir=. | |
26433 | if test -z "$ac_top_builddir"; then | |
26434 | ac_top_srcdir=. | |
26435 | else | |
26436 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26437 | fi ;; | |
26438 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
26439 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26440 | ac_top_srcdir=$srcdir ;; | |
26441 | *) # Relative path. | |
26442 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26443 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26444 | esac | |
26445 | ||
26446 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
26447 | # the directories may not exist. | |
26448 | case `pwd` in | |
26449 | .) ac_abs_builddir="$ac_dir";; | |
26450 | *) | |
26451 | case "$ac_dir" in | |
26452 | .) ac_abs_builddir=`pwd`;; | |
26453 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
26454 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
26455 | esac;; | |
26456 | esac | |
26457 | case $ac_abs_builddir in | |
26458 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26459 | *) | |
26460 | case ${ac_top_builddir}. in | |
26461 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26462 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26463 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26464 | esac;; | |
26465 | esac | |
26466 | case $ac_abs_builddir in | |
26467 | .) ac_abs_srcdir=$ac_srcdir;; | |
26468 | *) | |
26469 | case $ac_srcdir in | |
26470 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26471 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26472 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26473 | esac;; | |
26474 | esac | |
26475 | case $ac_abs_builddir in | |
26476 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26477 | *) | |
26478 | case $ac_top_srcdir in | |
26479 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
26480 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26481 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
26482 | esac;; | |
26483 | esac | |
26484 | ||
26485 | ||
26486 | case $INSTALL in | |
26487 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26488 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
26489 | esac | |
26490 | ||
26491 | if test x"$ac_file" != x-; then | |
26492 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26493 | echo "$as_me: creating $ac_file" >&6;} | |
26494 | rm -f "$ac_file" | |
26495 | fi | |
26496 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26497 | # use $as_me), people would be surprised to read: | |
26498 | # /* config.h. Generated by config.status. */ | |
26499 | if test x"$ac_file" = x-; then | |
26500 | configure_input= | |
26501 | else | |
26502 | configure_input="$ac_file. " | |
26503 | fi | |
26504 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
26505 | sed 's,.*/,,'` by configure." | |
26506 | ||
26507 | # First look for the input files in the build tree, otherwise in the | |
26508 | # src tree. | |
26509 | ac_file_inputs=`IFS=: | |
26510 | for f in $ac_file_in; do | |
26511 | case $f in | |
26512 | -) echo $tmp/stdin ;; | |
26513 | [\\/$]*) | |
26514 | # Absolute (can't be DOS-style, as IFS=:) | |
26515 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26516 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26517 | { (exit 1); exit 1; }; } | |
26518 | echo "$f";; | |
26519 | *) # Relative | |
26520 | if test -f "$f"; then | |
26521 | # Build tree | |
26522 | echo "$f" | |
26523 | elif test -f "$srcdir/$f"; then | |
26524 | # Source tree | |
26525 | echo "$srcdir/$f" | |
26526 | else | |
26527 | # /dev/null tree | |
26528 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26529 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26530 | { (exit 1); exit 1; }; } | |
26531 | fi;; | |
26532 | esac | |
26533 | done` || { (exit 1); exit 1; } | |
26534 | _ACEOF | |
26535 | cat >>$CONFIG_STATUS <<_ACEOF | |
26536 | sed "$ac_vpsub | |
26537 | $extrasub | |
26538 | _ACEOF | |
26539 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26540 | :t | |
26541 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
26542 | s,@configure_input@,$configure_input,;t t | |
26543 | s,@srcdir@,$ac_srcdir,;t t | |
26544 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
26545 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
26546 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
26547 | s,@builddir@,$ac_builddir,;t t | |
26548 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
26549 | s,@top_builddir@,$ac_top_builddir,;t t | |
26550 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
26551 | s,@INSTALL@,$ac_INSTALL,;t t | |
26552 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
26553 | rm -f $tmp/stdin | |
26554 | if test x"$ac_file" != x-; then | |
26555 | mv $tmp/out $ac_file | |
26556 | else | |
26557 | cat $tmp/out | |
26558 | rm -f $tmp/out | |
26559 | fi | |
26560 | ||
26561 | done | |
26562 | _ACEOF | |
26563 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26564 | ||
26565 | # | |
26566 | # CONFIG_HEADER section. | |
26567 | # | |
26568 | ||
26569 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
26570 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
26571 | # | |
26572 | # ac_d sets the value in "#define NAME VALUE" lines. | |
26573 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
26574 | ac_dB='[ ].*$,\1#\2' | |
26575 | ac_dC=' ' | |
26576 | ac_dD=',;t' | |
26577 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
26578 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
26579 | ac_uB='$,\1#\2define\3' | |
26580 | ac_uC=' ' | |
26581 | ac_uD=',;t' | |
26582 | ||
26583 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
26584 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
26585 | case $ac_file in | |
26586 | - | *:- | *:-:* ) # input from stdin | |
26587 | cat >$tmp/stdin | |
26588 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26589 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26590 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26591 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26592 | * ) ac_file_in=$ac_file.in ;; | |
26593 | esac | |
26594 | ||
26595 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26596 | echo "$as_me: creating $ac_file" >&6;} | |
26597 | ||
26598 | # First look for the input files in the build tree, otherwise in the | |
26599 | # src tree. | |
26600 | ac_file_inputs=`IFS=: | |
26601 | for f in $ac_file_in; do | |
26602 | case $f in | |
26603 | -) echo $tmp/stdin ;; | |
26604 | [\\/$]*) | |
26605 | # Absolute (can't be DOS-style, as IFS=:) | |
26606 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26607 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26608 | { (exit 1); exit 1; }; } | |
26609 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
26610 | echo "$f";; | |
26611 | *) # Relative | |
26612 | if test -f "$f"; then | |
26613 | # Build tree | |
26614 | echo "$f" | |
26615 | elif test -f "$srcdir/$f"; then | |
26616 | # Source tree | |
26617 | echo "$srcdir/$f" | |
26618 | else | |
26619 | # /dev/null tree | |
26620 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26621 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26622 | { (exit 1); exit 1; }; } | |
26623 | fi;; | |
26624 | esac | |
26625 | done` || { (exit 1); exit 1; } | |
26626 | # Remove the trailing spaces. | |
26627 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
26628 | ||
26629 | _ACEOF | |
26630 | ||
26631 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
26632 | # `conftest.undefs', that substitutes the proper values into | |
26633 | # config.h.in to produce config.h. The first handles `#define' | |
26634 | # templates, and the second `#undef' templates. | |
26635 | # And first: Protect against being on the right side of a sed subst in | |
26636 | # config.status. Protect against being in an unquoted here document | |
26637 | # in config.status. | |
26638 | rm -f conftest.defines conftest.undefs | |
26639 | # Using a here document instead of a string reduces the quoting nightmare. | |
26640 | # Putting comments in sed scripts is not portable. | |
26641 | # | |
26642 | # `end' is used to avoid that the second main sed command (meant for | |
26643 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
26644 | # See the Autoconf documentation for `clear'. | |
26645 | cat >confdef2sed.sed <<\_ACEOF | |
26646 | s/[\\&,]/\\&/g | |
26647 | s,[\\$`],\\&,g | |
26648 | t clear | |
26649 | : clear | |
26650 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
26651 | t end | |
26652 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
26653 | : end | |
26654 | _ACEOF | |
26655 | # If some macros were called several times there might be several times | |
26656 | # the same #defines, which is useless. Nevertheless, we may not want to | |
26657 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
26658 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
26659 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
26660 | rm -f confdef2sed.sed | |
26661 | ||
26662 | # This sed command replaces #undef with comments. This is necessary, for | |
26663 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
26664 | # on some systems where configure will not decide to define it. | |
26665 | cat >>conftest.undefs <<\_ACEOF | |
26666 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
26667 | _ACEOF | |
26668 | ||
26669 | # Break up conftest.defines because some shells have a limit on the size | |
26670 | # of here documents, and old seds have small limits too (100 cmds). | |
26671 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
26672 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
26673 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
26674 | echo ' :' >>$CONFIG_STATUS | |
26675 | rm -f conftest.tail | |
26676 | while grep . conftest.defines >/dev/null | |
26677 | do | |
26678 | # Write a limited-size here document to $tmp/defines.sed. | |
26679 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
26680 | # Speed up: don't consider the non `#define' lines. | |
26681 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
26682 | # Work around the forget-to-reset-the-flag bug. | |
26683 | echo 't clr' >>$CONFIG_STATUS | |
26684 | echo ': clr' >>$CONFIG_STATUS | |
26685 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
26686 | echo 'CEOF | |
26687 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
26688 | rm -f $tmp/in | |
26689 | mv $tmp/out $tmp/in | |
26690 | ' >>$CONFIG_STATUS | |
26691 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
26692 | rm -f conftest.defines | |
26693 | mv conftest.tail conftest.defines | |
26694 | done | |
26695 | rm -f conftest.defines | |
26696 | echo ' fi # grep' >>$CONFIG_STATUS | |
26697 | echo >>$CONFIG_STATUS | |
26698 | ||
26699 | # Break up conftest.undefs because some shells have a limit on the size | |
26700 | # of here documents, and old seds have small limits too (100 cmds). | |
26701 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
26702 | rm -f conftest.tail | |
26703 | while grep . conftest.undefs >/dev/null | |
26704 | do | |
26705 | # Write a limited-size here document to $tmp/undefs.sed. | |
26706 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
26707 | # Speed up: don't consider the non `#undef' | |
26708 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
26709 | # Work around the forget-to-reset-the-flag bug. | |
26710 | echo 't clr' >>$CONFIG_STATUS | |
26711 | echo ': clr' >>$CONFIG_STATUS | |
26712 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
26713 | echo 'CEOF | |
26714 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
26715 | rm -f $tmp/in | |
26716 | mv $tmp/out $tmp/in | |
26717 | ' >>$CONFIG_STATUS | |
26718 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
26719 | rm -f conftest.undefs | |
26720 | mv conftest.tail conftest.undefs | |
26721 | done | |
26722 | rm -f conftest.undefs | |
26723 | ||
26724 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26725 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26726 | # use $as_me), people would be surprised to read: | |
26727 | # /* config.h. Generated by config.status. */ | |
26728 | if test x"$ac_file" = x-; then | |
26729 | echo "/* Generated by configure. */" >$tmp/config.h | |
26730 | else | |
26731 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
26732 | fi | |
26733 | cat $tmp/in >>$tmp/config.h | |
26734 | rm -f $tmp/in | |
26735 | if test x"$ac_file" != x-; then | |
26736 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
26737 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
26738 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26739 | else | |
26740 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
26741 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26742 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26743 | X"$ac_file" : 'X\(//\)$' \| \ | |
26744 | X"$ac_file" : 'X\(/\)' \| \ | |
26745 | . : '\(.\)' 2>/dev/null || | |
26746 | echo X"$ac_file" | | |
26747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26748 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26749 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26750 | /^X\(\/\).*/{ s//\1/; q; } | |
26751 | s/.*/./; q'` | |
26752 | { if $as_mkdir_p; then | |
26753 | mkdir -p "$ac_dir" | |
26754 | else | |
26755 | as_dir="$ac_dir" | |
26756 | as_dirs= | |
26757 | while test ! -d "$as_dir"; do | |
26758 | as_dirs="$as_dir $as_dirs" | |
26759 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26760 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26761 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26762 | X"$as_dir" : 'X\(//\)$' \| \ | |
26763 | X"$as_dir" : 'X\(/\)' \| \ | |
26764 | . : '\(.\)' 2>/dev/null || | |
26765 | echo X"$as_dir" | | |
26766 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26767 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26768 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26769 | /^X\(\/\).*/{ s//\1/; q; } | |
26770 | s/.*/./; q'` | |
26771 | done | |
26772 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26773 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26774 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26775 | { (exit 1); exit 1; }; }; } | |
26776 | ||
26777 | rm -f $ac_file | |
26778 | mv $tmp/config.h $ac_file | |
26779 | fi | |
26780 | else | |
26781 | cat $tmp/config.h | |
26782 | rm -f $tmp/config.h | |
26783 | fi | |
26784 | # Compute $ac_file's index in $config_headers. | |
26785 | _am_stamp_count=1 | |
26786 | for _am_header in $config_headers :; do | |
26787 | case $_am_header in | |
26788 | $ac_file | $ac_file:* ) | |
26789 | break ;; | |
26790 | * ) | |
26791 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
26792 | esac | |
26793 | done | |
26794 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
26795 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26796 | X$ac_file : 'X\(//\)[^/]' \| \ | |
26797 | X$ac_file : 'X\(//\)$' \| \ | |
26798 | X$ac_file : 'X\(/\)' \| \ | |
26799 | . : '\(.\)' 2>/dev/null || | |
26800 | echo X$ac_file | | |
26801 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26802 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26803 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26804 | /^X\(\/\).*/{ s//\1/; q; } | |
26805 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
26806 | done | |
26807 | _ACEOF | |
26808 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26809 | ||
26810 | # | |
26811 | # CONFIG_COMMANDS section. | |
26812 | # | |
26813 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
26814 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
26815 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26816 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
26817 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26818 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
26819 | X"$ac_dest" : 'X\(//\)$' \| \ | |
26820 | X"$ac_dest" : 'X\(/\)' \| \ | |
26821 | . : '\(.\)' 2>/dev/null || | |
26822 | echo X"$ac_dest" | | |
26823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26824 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26825 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26826 | /^X\(\/\).*/{ s//\1/; q; } | |
26827 | s/.*/./; q'` | |
26828 | { if $as_mkdir_p; then | |
26829 | mkdir -p "$ac_dir" | |
26830 | else | |
26831 | as_dir="$ac_dir" | |
26832 | as_dirs= | |
26833 | while test ! -d "$as_dir"; do | |
26834 | as_dirs="$as_dir $as_dirs" | |
26835 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26836 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26837 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26838 | X"$as_dir" : 'X\(//\)$' \| \ | |
26839 | X"$as_dir" : 'X\(/\)' \| \ | |
26840 | . : '\(.\)' 2>/dev/null || | |
26841 | echo X"$as_dir" | | |
26842 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26843 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26844 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26845 | /^X\(\/\).*/{ s//\1/; q; } | |
26846 | s/.*/./; q'` | |
26847 | done | |
26848 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26849 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26850 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26851 | { (exit 1); exit 1; }; }; } | |
26852 | ||
26853 | ac_builddir=. | |
26854 | ||
26855 | if test "$ac_dir" != .; then | |
26856 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
26857 | # A "../" for each directory in $ac_dir_suffix. | |
26858 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26859 | else | |
26860 | ac_dir_suffix= ac_top_builddir= | |
26861 | fi | |
26862 | ||
26863 | case $srcdir in | |
26864 | .) # No --srcdir option. We are building in place. | |
26865 | ac_srcdir=. | |
26866 | if test -z "$ac_top_builddir"; then | |
26867 | ac_top_srcdir=. | |
26868 | else | |
26869 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26870 | fi ;; | |
26871 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
26872 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26873 | ac_top_srcdir=$srcdir ;; | |
26874 | *) # Relative path. | |
26875 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26876 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26877 | esac | |
26878 | ||
26879 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
26880 | # the directories may not exist. | |
26881 | case `pwd` in | |
26882 | .) ac_abs_builddir="$ac_dir";; | |
26883 | *) | |
26884 | case "$ac_dir" in | |
26885 | .) ac_abs_builddir=`pwd`;; | |
26886 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
26887 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
26888 | esac;; | |
26889 | esac | |
26890 | case $ac_abs_builddir in | |
26891 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26892 | *) | |
26893 | case ${ac_top_builddir}. in | |
26894 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26895 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26896 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26897 | esac;; | |
26898 | esac | |
26899 | case $ac_abs_builddir in | |
26900 | .) ac_abs_srcdir=$ac_srcdir;; | |
26901 | *) | |
26902 | case $ac_srcdir in | |
26903 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26904 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26905 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26906 | esac;; | |
26907 | esac | |
26908 | case $ac_abs_builddir in | |
26909 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26910 | *) | |
26911 | case $ac_top_srcdir in | |
26912 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
26913 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26914 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
26915 | esac;; | |
26916 | esac | |
26917 | ||
26918 | ||
26919 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
26920 | echo "$as_me: executing $ac_dest commands" >&6;} | |
26921 | case $ac_dest in | |
26922 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
26923 | # Strip MF so we end up with the name of the file. | |
26924 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
26925 | # Check whether this is an Automake generated Makefile or not. | |
26926 | # We used to match only the files named `Makefile.in', but | |
26927 | # some people rename them; so instead we look at the file content. | |
26928 | # Grep'ing the first line is not enough: some people post-process | |
26929 | # each Makefile.in and add a new line on top of each file to say so. | |
26930 | # So let's grep whole file. | |
26931 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
26932 | dirpart=`(dirname "$mf") 2>/dev/null || | |
26933 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26934 | X"$mf" : 'X\(//\)[^/]' \| \ | |
26935 | X"$mf" : 'X\(//\)$' \| \ | |
26936 | X"$mf" : 'X\(/\)' \| \ | |
26937 | . : '\(.\)' 2>/dev/null || | |
26938 | echo X"$mf" | | |
26939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26940 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26941 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26942 | /^X\(\/\).*/{ s//\1/; q; } | |
26943 | s/.*/./; q'` | |
26944 | else | |
26945 | continue | |
26946 | fi | |
26947 | # Extract the definition of DEPDIR, am__include, and am__quote | |
26948 | # from the Makefile without running `make'. | |
26949 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
26950 | test -z "$DEPDIR" && continue | |
26951 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
26952 | test -z "am__include" && continue | |
26953 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
26954 | # When using ansi2knr, U may be empty or an underscore; expand it | |
26955 | U=`sed -n 's/^U = //p' < "$mf"` | |
26956 | # Find all dependency output files, they are included files with | |
26957 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
26958 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
26959 | # expansion. | |
26960 | for file in `sed -n " | |
26961 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
26962 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
26963 | # Make sure the directory exists. | |
26964 | test -f "$dirpart/$file" && continue | |
26965 | fdir=`(dirname "$file") 2>/dev/null || | |
26966 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26967 | X"$file" : 'X\(//\)[^/]' \| \ | |
26968 | X"$file" : 'X\(//\)$' \| \ | |
26969 | X"$file" : 'X\(/\)' \| \ | |
26970 | . : '\(.\)' 2>/dev/null || | |
26971 | echo X"$file" | | |
26972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26973 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26974 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26975 | /^X\(\/\).*/{ s//\1/; q; } | |
26976 | s/.*/./; q'` | |
26977 | { if $as_mkdir_p; then | |
26978 | mkdir -p $dirpart/$fdir | |
26979 | else | |
26980 | as_dir=$dirpart/$fdir | |
26981 | as_dirs= | |
26982 | while test ! -d "$as_dir"; do | |
26983 | as_dirs="$as_dir $as_dirs" | |
26984 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26985 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26986 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26987 | X"$as_dir" : 'X\(//\)$' \| \ | |
26988 | X"$as_dir" : 'X\(/\)' \| \ | |
26989 | . : '\(.\)' 2>/dev/null || | |
26990 | echo X"$as_dir" | | |
26991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26992 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26993 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26994 | /^X\(\/\).*/{ s//\1/; q; } | |
26995 | s/.*/./; q'` | |
26996 | done | |
26997 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26998 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
26999 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
27000 | { (exit 1); exit 1; }; }; } | |
27001 | ||
27002 | # echo "creating $dirpart/$file" | |
27003 | echo '# dummy' > "$dirpart/$file" | |
27004 | done | |
27005 | done | |
27006 | ;; | |
27007 | esac | |
27008 | done | |
27009 | _ACEOF | |
27010 | ||
27011 | cat >>$CONFIG_STATUS <<\_ACEOF | |
27012 | ||
27013 | { (exit 0); exit 0; } | |
27014 | _ACEOF | |
27015 | chmod +x $CONFIG_STATUS | |
27016 | ac_clean_files=$ac_clean_files_save | |
27017 | ||
27018 | ||
27019 | # configure is writing to config.log, and then calls config.status. | |
27020 | # config.status does its own redirection, appending to config.log. | |
27021 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
27022 | # by configure, so config.status won't be able to write to it; its | |
27023 | # output is simply discarded. So we exec the FD to /dev/null, | |
27024 | # effectively closing config.log, so it can be properly (re)opened and | |
27025 | # appended to by config.status. When coming back to configure, we | |
27026 | # need to make the FD available again. | |
27027 | if test "$no_create" != yes; then | |
27028 | ac_cs_success=: | |
27029 | ac_config_status_args= | |
27030 | test "$silent" = yes && | |
27031 | ac_config_status_args="$ac_config_status_args --quiet" | |
27032 | exec 5>/dev/null | |
27033 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
27034 | exec 5>>config.log | |
27035 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
27036 | # would make configure fail if this is the last instruction. | |
27037 | $ac_cs_success || { (exit 1); exit 1; } | |
27038 | fi | |
27039 |