]>
Commit | Line | Data |
---|---|---|
8529da43 MG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9. | |
4 | # | |
5 | # Report bugs to <erikd@mega-nerd.com>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1 | |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: erikd@mega-nerd.com about your system, including any | |
279 | $0: error possibly output before this message. Then install | |
280 | $0: a modern shell, or manually run the script under such a | |
281 | $0: shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
284 | fi | |
285 | fi | |
286 | fi | |
287 | SHELL=${CONFIG_SHELL-/bin/sh} | |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
292 | ||
293 | ## --------------------- ## | |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
304 | ||
305 | # as_fn_set_status STATUS | |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
312 | ||
313 | # as_fn_exit STATUS | |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
328 | ||
329 | case $as_dir in #( | |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
367 | ||
368 | ||
369 | } # as_fn_mkdir_p | |
370 | ||
371 | # as_fn_executable_p FILE | |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
412 | ||
413 | ||
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
429 | ||
430 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
433 | else | |
434 | as_expr=false | |
435 | fi | |
436 | ||
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
438 | as_basename=basename | |
439 | else | |
440 | as_basename=false | |
441 | fi | |
442 | ||
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
444 | as_dirname=dirname | |
445 | else | |
446 | as_dirname=false | |
447 | fi | |
448 | ||
449 | as_me=`$as_basename -- "$0" || | |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
467 | ||
468 | # Avoid depending upon Character Ranges. | |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
474 | ||
475 | ||
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
481 | sed -n ' | |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
485 | sed ' | |
486 | s/[$]LINENO.*/&-/ | |
487 | t lineno | |
488 | b | |
489 | :lineno | |
490 | N | |
491 | :loop | |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
493 | t loop | |
494 | s/-\n.*// | |
495 | ' >$as_me.lineno && | |
496 | chmod +x "$as_me.lineno" || | |
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
498 | ||
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
503 | # Don't try to exec as it changes $[0], causing all sort of problems | |
504 | # (the dirname of $[0] is not the place where we might find the | |
505 | # original and so on. Autoconf is especially sensitive to this). | |
506 | . "./$as_me.lineno" | |
507 | # Exit status is that of the last command. | |
508 | exit | |
509 | } | |
510 | ||
511 | ECHO_C= ECHO_N= ECHO_T= | |
512 | case `echo -n x` in #((((( | |
513 | -n*) | |
514 | case `echo 'xy\c'` in | |
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
516 | xy) ECHO_C='\c';; | |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
519 | esac;; | |
520 | *) | |
521 | ECHO_N='-n';; | |
522 | esac | |
523 | ||
524 | rm -f conf$$ conf$$.exe conf$$.file | |
525 | if test -d conf$$.dir; then | |
526 | rm -f conf$$.dir/conf$$.file | |
527 | else | |
528 | rm -f conf$$.dir | |
529 | mkdir conf$$.dir 2>/dev/null | |
530 | fi | |
531 | if (echo >conf$$.file) 2>/dev/null; then | |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
537 | # In both cases, we have to default to `cp -pR'. | |
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
539 | as_ln_s='cp -pR' | |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
541 | as_ln_s=ln | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | else | |
546 | as_ln_s='cp -pR' | |
547 | fi | |
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
549 | rmdir conf$$.dir 2>/dev/null | |
550 | ||
551 | if mkdir -p . 2>/dev/null; then | |
552 | as_mkdir_p='mkdir -p "$as_dir"' | |
553 | else | |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
556 | fi | |
557 | ||
558 | as_test_x='test -x' | |
559 | as_executable_p=as_fn_executable_p | |
560 | ||
561 | # Sed expression to map a string onto a valid CPP name. | |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | # Sed expression to map a string onto a valid variable name. | |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
566 | ||
567 | SHELL=${CONFIG_SHELL-/bin/sh} | |
568 | ||
569 | ||
570 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
571 | exec 6>&1 | |
572 | ||
573 | # Name of the host. | |
574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
575 | # so uname gets run too. | |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | ||
578 | # | |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
582 | ac_clean_files= | |
583 | ac_config_libobj_dir=. | |
584 | LIBOBJS= | |
585 | cross_compiling=no | |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
589 | ||
590 | # Identity of this package. | |
591 | PACKAGE_NAME='libsamplerate' | |
592 | PACKAGE_TARNAME='libsamplerate' | |
593 | PACKAGE_VERSION='0.1.9' | |
594 | PACKAGE_STRING='libsamplerate 0.1.9' | |
595 | PACKAGE_BUGREPORT='erikd@mega-nerd.com' | |
596 | PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/' | |
597 | ||
598 | ac_unique_file="src/samplerate.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
602 | #ifdef HAVE_SYS_TYPES_H | |
603 | # include <sys/types.h> | |
604 | #endif | |
605 | #ifdef HAVE_SYS_STAT_H | |
606 | # include <sys/stat.h> | |
607 | #endif | |
608 | #ifdef STDC_HEADERS | |
609 | # include <stdlib.h> | |
610 | # include <stddef.h> | |
611 | #else | |
612 | # ifdef HAVE_STDLIB_H | |
613 | # include <stdlib.h> | |
614 | # endif | |
615 | #endif | |
616 | #ifdef HAVE_STRING_H | |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 | # include <memory.h> | |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_STRINGS_H | |
623 | # include <strings.h> | |
624 | #endif | |
625 | #ifdef HAVE_INTTYPES_H | |
626 | # include <inttypes.h> | |
627 | #endif | |
628 | #ifdef HAVE_STDINT_H | |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
632 | # include <unistd.h> | |
633 | #endif" | |
634 | ||
635 | ac_subst_vars='am__EXEEXT_FALSE | |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
639 | ALSA_LIBS | |
640 | HAVE_SNDFILE | |
641 | HAVE_FFTW3 | |
642 | GCC_MAJOR_VERSION | |
643 | COMPILER_IS_GCC | |
644 | OS_SPECIFIC_LINKS | |
645 | OS_SPECIFIC_INCLUDES | |
646 | SHARED_VERSION_INFO | |
647 | SHLIB_VERSION_ARG | |
648 | htmldocdir | |
649 | FFTW3_LIBS | |
650 | FFTW3_CFLAGS | |
651 | SNDFILE_LIBS | |
652 | SNDFILE_CFLAGS | |
653 | PKG_CONFIG_LIBDIR | |
654 | PKG_CONFIG_PATH | |
655 | PKG_CONFIG | |
656 | PEXPORTS | |
657 | DLLWRAP | |
658 | RC | |
659 | CXXCPP | |
660 | CPP | |
661 | LT_SYS_LIBRARY_PATH | |
662 | OTOOL64 | |
663 | OTOOL | |
664 | LIPO | |
665 | NMEDIT | |
666 | DSYMUTIL | |
667 | MANIFEST_TOOL | |
668 | RANLIB | |
669 | ac_ct_AR | |
670 | AR | |
671 | DLLTOOL | |
672 | OBJDUMP | |
673 | LN_S | |
674 | NM | |
675 | ac_ct_DUMPBIN | |
676 | DUMPBIN | |
677 | LD | |
678 | FGREP | |
679 | EGREP | |
680 | GREP | |
681 | LIBTOOL | |
682 | SED | |
683 | am__fastdepCXX_FALSE | |
684 | am__fastdepCXX_TRUE | |
685 | CXXDEPMODE | |
686 | ac_ct_CXX | |
687 | CXXFLAGS | |
688 | CXX | |
689 | am__fastdepCC_FALSE | |
690 | am__fastdepCC_TRUE | |
691 | CCDEPMODE | |
692 | am__nodep | |
693 | AMDEPBACKSLASH | |
694 | AMDEP_FALSE | |
695 | AMDEP_TRUE | |
696 | am__quote | |
697 | am__include | |
698 | DEPDIR | |
699 | OBJEXT | |
700 | EXEEXT | |
701 | ac_ct_CC | |
702 | CPPFLAGS | |
703 | LDFLAGS | |
704 | CFLAGS | |
705 | CC | |
706 | ACLOCAL_AMFLAGS | |
707 | AM_BACKSLASH | |
708 | AM_DEFAULT_VERBOSITY | |
709 | AM_DEFAULT_V | |
710 | AM_V | |
711 | am__untar | |
712 | am__tar | |
713 | AMTAR | |
714 | am__leading_dot | |
715 | SET_MAKE | |
716 | AWK | |
717 | mkdir_p | |
718 | MKDIR_P | |
719 | INSTALL_STRIP_PROGRAM | |
720 | STRIP | |
721 | install_sh | |
722 | MAKEINFO | |
723 | AUTOHEADER | |
724 | AUTOMAKE | |
725 | AUTOCONF | |
726 | ACLOCAL | |
727 | VERSION | |
728 | PACKAGE | |
729 | CYGPATH_W | |
730 | am__isrc | |
731 | INSTALL_DATA | |
732 | INSTALL_SCRIPT | |
733 | INSTALL_PROGRAM | |
734 | target_os | |
735 | target_vendor | |
736 | target_cpu | |
737 | target | |
738 | host_os | |
739 | host_vendor | |
740 | host_cpu | |
741 | host | |
742 | build_os | |
743 | build_vendor | |
744 | build_cpu | |
745 | build | |
746 | target_alias | |
747 | host_alias | |
748 | build_alias | |
749 | LIBS | |
750 | ECHO_T | |
751 | ECHO_N | |
752 | ECHO_C | |
753 | DEFS | |
754 | mandir | |
755 | localedir | |
756 | libdir | |
757 | psdir | |
758 | pdfdir | |
759 | dvidir | |
760 | htmldir | |
761 | infodir | |
762 | docdir | |
763 | oldincludedir | |
764 | includedir | |
765 | runstatedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
777 | PACKAGE_URL | |
778 | PACKAGE_BUGREPORT | |
779 | PACKAGE_STRING | |
780 | PACKAGE_VERSION | |
781 | PACKAGE_TARNAME | |
782 | PACKAGE_NAME | |
783 | PATH_SEPARATOR | |
784 | SHELL' | |
785 | ac_subst_files='' | |
786 | ac_user_opts=' | |
787 | enable_option_checking | |
788 | enable_silent_rules | |
789 | enable_dependency_tracking | |
790 | enable_shared | |
791 | enable_static | |
792 | with_pic | |
793 | enable_fast_install | |
794 | with_aix_soname | |
795 | with_gnu_ld | |
796 | with_sysroot | |
797 | enable_libtool_lock | |
798 | enable_gcc_werror | |
799 | enable_gcc_pipe | |
800 | enable_gcc_opt | |
801 | enable_fftw | |
802 | enable_cpu_clip | |
803 | enable_sndfile | |
804 | ' | |
805 | ac_precious_vars='build_alias | |
806 | host_alias | |
807 | target_alias | |
808 | CC | |
809 | CFLAGS | |
810 | LDFLAGS | |
811 | LIBS | |
812 | CPPFLAGS | |
813 | CXX | |
814 | CXXFLAGS | |
815 | CCC | |
816 | LT_SYS_LIBRARY_PATH | |
817 | CPP | |
818 | CXXCPP | |
819 | PKG_CONFIG | |
820 | PKG_CONFIG_PATH | |
821 | PKG_CONFIG_LIBDIR | |
822 | SNDFILE_CFLAGS | |
823 | SNDFILE_LIBS | |
824 | FFTW3_CFLAGS | |
825 | FFTW3_LIBS' | |
826 | ||
827 | ||
828 | # Initialize some variables set by options. | |
829 | ac_init_help= | |
830 | ac_init_version=false | |
831 | ac_unrecognized_opts= | |
832 | ac_unrecognized_sep= | |
833 | # The variables have the same names as the options, with | |
834 | # dashes changed to underlines. | |
835 | cache_file=/dev/null | |
836 | exec_prefix=NONE | |
837 | no_create= | |
838 | no_recursion= | |
839 | prefix=NONE | |
840 | program_prefix=NONE | |
841 | program_suffix=NONE | |
842 | program_transform_name=s,x,x, | |
843 | silent= | |
844 | site= | |
845 | srcdir= | |
846 | verbose= | |
847 | x_includes=NONE | |
848 | x_libraries=NONE | |
849 | ||
850 | # Installation directory options. | |
851 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
852 | # and all the variables that are supposed to be based on exec_prefix | |
853 | # by default will actually change. | |
854 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
855 | # (The list follows the same order as the GNU Coding Standards.) | |
856 | bindir='${exec_prefix}/bin' | |
857 | sbindir='${exec_prefix}/sbin' | |
858 | libexecdir='${exec_prefix}/libexec' | |
859 | datarootdir='${prefix}/share' | |
860 | datadir='${datarootdir}' | |
861 | sysconfdir='${prefix}/etc' | |
862 | sharedstatedir='${prefix}/com' | |
863 | localstatedir='${prefix}/var' | |
864 | runstatedir='${localstatedir}/run' | |
865 | includedir='${prefix}/include' | |
866 | oldincludedir='/usr/include' | |
867 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
868 | infodir='${datarootdir}/info' | |
869 | htmldir='${docdir}' | |
870 | dvidir='${docdir}' | |
871 | pdfdir='${docdir}' | |
872 | psdir='${docdir}' | |
873 | libdir='${exec_prefix}/lib' | |
874 | localedir='${datarootdir}/locale' | |
875 | mandir='${datarootdir}/man' | |
876 | ||
877 | ac_prev= | |
878 | ac_dashdash= | |
879 | for ac_option | |
880 | do | |
881 | # If the previous option needs an argument, assign it. | |
882 | if test -n "$ac_prev"; then | |
883 | eval $ac_prev=\$ac_option | |
884 | ac_prev= | |
885 | continue | |
886 | fi | |
887 | ||
888 | case $ac_option in | |
889 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
890 | *=) ac_optarg= ;; | |
891 | *) ac_optarg=yes ;; | |
892 | esac | |
893 | ||
894 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
895 | ||
896 | case $ac_dashdash$ac_option in | |
897 | --) | |
898 | ac_dashdash=yes ;; | |
899 | ||
900 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
901 | ac_prev=bindir ;; | |
902 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
903 | bindir=$ac_optarg ;; | |
904 | ||
905 | -build | --build | --buil | --bui | --bu) | |
906 | ac_prev=build_alias ;; | |
907 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
908 | build_alias=$ac_optarg ;; | |
909 | ||
910 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
911 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
912 | ac_prev=cache_file ;; | |
913 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
914 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
915 | cache_file=$ac_optarg ;; | |
916 | ||
917 | --config-cache | -C) | |
918 | cache_file=config.cache ;; | |
919 | ||
920 | -datadir | --datadir | --datadi | --datad) | |
921 | ac_prev=datadir ;; | |
922 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
923 | datadir=$ac_optarg ;; | |
924 | ||
925 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
926 | | --dataroo | --dataro | --datar) | |
927 | ac_prev=datarootdir ;; | |
928 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
929 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
930 | datarootdir=$ac_optarg ;; | |
931 | ||
932 | -disable-* | --disable-*) | |
933 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
934 | # Reject names that are not valid shell variable names. | |
935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
936 | as_fn_error $? "invalid feature name: $ac_useropt" | |
937 | ac_useropt_orig=$ac_useropt | |
938 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
939 | case $ac_user_opts in | |
940 | *" | |
941 | "enable_$ac_useropt" | |
942 | "*) ;; | |
943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
944 | ac_unrecognized_sep=', ';; | |
945 | esac | |
946 | eval enable_$ac_useropt=no ;; | |
947 | ||
948 | -docdir | --docdir | --docdi | --doc | --do) | |
949 | ac_prev=docdir ;; | |
950 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
951 | docdir=$ac_optarg ;; | |
952 | ||
953 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
954 | ac_prev=dvidir ;; | |
955 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
956 | dvidir=$ac_optarg ;; | |
957 | ||
958 | -enable-* | --enable-*) | |
959 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
960 | # Reject names that are not valid shell variable names. | |
961 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
962 | as_fn_error $? "invalid feature name: $ac_useropt" | |
963 | ac_useropt_orig=$ac_useropt | |
964 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
965 | case $ac_user_opts in | |
966 | *" | |
967 | "enable_$ac_useropt" | |
968 | "*) ;; | |
969 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
970 | ac_unrecognized_sep=', ';; | |
971 | esac | |
972 | eval enable_$ac_useropt=\$ac_optarg ;; | |
973 | ||
974 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
975 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
976 | | --exec | --exe | --ex) | |
977 | ac_prev=exec_prefix ;; | |
978 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
979 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
980 | | --exec=* | --exe=* | --ex=*) | |
981 | exec_prefix=$ac_optarg ;; | |
982 | ||
983 | -gas | --gas | --ga | --g) | |
984 | # Obsolete; use --with-gas. | |
985 | with_gas=yes ;; | |
986 | ||
987 | -help | --help | --hel | --he | -h) | |
988 | ac_init_help=long ;; | |
989 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
990 | ac_init_help=recursive ;; | |
991 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
992 | ac_init_help=short ;; | |
993 | ||
994 | -host | --host | --hos | --ho) | |
995 | ac_prev=host_alias ;; | |
996 | -host=* | --host=* | --hos=* | --ho=*) | |
997 | host_alias=$ac_optarg ;; | |
998 | ||
999 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1000 | ac_prev=htmldir ;; | |
1001 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1002 | | --ht=*) | |
1003 | htmldir=$ac_optarg ;; | |
1004 | ||
1005 | -includedir | --includedir | --includedi | --included | --include \ | |
1006 | | --includ | --inclu | --incl | --inc) | |
1007 | ac_prev=includedir ;; | |
1008 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1009 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1010 | includedir=$ac_optarg ;; | |
1011 | ||
1012 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1013 | ac_prev=infodir ;; | |
1014 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1015 | infodir=$ac_optarg ;; | |
1016 | ||
1017 | -libdir | --libdir | --libdi | --libd) | |
1018 | ac_prev=libdir ;; | |
1019 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1020 | libdir=$ac_optarg ;; | |
1021 | ||
1022 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1023 | | --libexe | --libex | --libe) | |
1024 | ac_prev=libexecdir ;; | |
1025 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1026 | | --libexe=* | --libex=* | --libe=*) | |
1027 | libexecdir=$ac_optarg ;; | |
1028 | ||
1029 | -localedir | --localedir | --localedi | --localed | --locale) | |
1030 | ac_prev=localedir ;; | |
1031 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1032 | localedir=$ac_optarg ;; | |
1033 | ||
1034 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1035 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1036 | ac_prev=localstatedir ;; | |
1037 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1038 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1039 | localstatedir=$ac_optarg ;; | |
1040 | ||
1041 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1042 | ac_prev=mandir ;; | |
1043 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1044 | mandir=$ac_optarg ;; | |
1045 | ||
1046 | -nfp | --nfp | --nf) | |
1047 | # Obsolete; use --without-fp. | |
1048 | with_fp=no ;; | |
1049 | ||
1050 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1051 | | --no-cr | --no-c | -n) | |
1052 | no_create=yes ;; | |
1053 | ||
1054 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1055 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1056 | no_recursion=yes ;; | |
1057 | ||
1058 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1059 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1060 | | --oldin | --oldi | --old | --ol | --o) | |
1061 | ac_prev=oldincludedir ;; | |
1062 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1063 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1064 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1065 | oldincludedir=$ac_optarg ;; | |
1066 | ||
1067 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1068 | ac_prev=prefix ;; | |
1069 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1070 | prefix=$ac_optarg ;; | |
1071 | ||
1072 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1073 | | --program-pre | --program-pr | --program-p) | |
1074 | ac_prev=program_prefix ;; | |
1075 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1076 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1077 | program_prefix=$ac_optarg ;; | |
1078 | ||
1079 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1080 | | --program-suf | --program-su | --program-s) | |
1081 | ac_prev=program_suffix ;; | |
1082 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1083 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1084 | program_suffix=$ac_optarg ;; | |
1085 | ||
1086 | -program-transform-name | --program-transform-name \ | |
1087 | | --program-transform-nam | --program-transform-na \ | |
1088 | | --program-transform-n | --program-transform- \ | |
1089 | | --program-transform | --program-transfor \ | |
1090 | | --program-transfo | --program-transf \ | |
1091 | | --program-trans | --program-tran \ | |
1092 | | --progr-tra | --program-tr | --program-t) | |
1093 | ac_prev=program_transform_name ;; | |
1094 | -program-transform-name=* | --program-transform-name=* \ | |
1095 | | --program-transform-nam=* | --program-transform-na=* \ | |
1096 | | --program-transform-n=* | --program-transform-=* \ | |
1097 | | --program-transform=* | --program-transfor=* \ | |
1098 | | --program-transfo=* | --program-transf=* \ | |
1099 | | --program-trans=* | --program-tran=* \ | |
1100 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1101 | program_transform_name=$ac_optarg ;; | |
1102 | ||
1103 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1104 | ac_prev=pdfdir ;; | |
1105 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1106 | pdfdir=$ac_optarg ;; | |
1107 | ||
1108 | -psdir | --psdir | --psdi | --psd | --ps) | |
1109 | ac_prev=psdir ;; | |
1110 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1111 | psdir=$ac_optarg ;; | |
1112 | ||
1113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1114 | | -silent | --silent | --silen | --sile | --sil) | |
1115 | silent=yes ;; | |
1116 | ||
1117 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1118 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1119 | | --run | --ru | --r) | |
1120 | ac_prev=runstatedir ;; | |
1121 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1122 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1123 | | --run=* | --ru=* | --r=*) | |
1124 | runstatedir=$ac_optarg ;; | |
1125 | ||
1126 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1127 | ac_prev=sbindir ;; | |
1128 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1129 | | --sbi=* | --sb=*) | |
1130 | sbindir=$ac_optarg ;; | |
1131 | ||
1132 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1133 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1134 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1135 | | --sha | --sh) | |
1136 | ac_prev=sharedstatedir ;; | |
1137 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1138 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1139 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1140 | | --sha=* | --sh=*) | |
1141 | sharedstatedir=$ac_optarg ;; | |
1142 | ||
1143 | -site | --site | --sit) | |
1144 | ac_prev=site ;; | |
1145 | -site=* | --site=* | --sit=*) | |
1146 | site=$ac_optarg ;; | |
1147 | ||
1148 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1149 | ac_prev=srcdir ;; | |
1150 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1151 | srcdir=$ac_optarg ;; | |
1152 | ||
1153 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1154 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1155 | ac_prev=sysconfdir ;; | |
1156 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1157 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1158 | sysconfdir=$ac_optarg ;; | |
1159 | ||
1160 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1161 | ac_prev=target_alias ;; | |
1162 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1163 | target_alias=$ac_optarg ;; | |
1164 | ||
1165 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1166 | verbose=yes ;; | |
1167 | ||
1168 | -version | --version | --versio | --versi | --vers | -V) | |
1169 | ac_init_version=: ;; | |
1170 | ||
1171 | -with-* | --with-*) | |
1172 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1173 | # Reject names that are not valid shell variable names. | |
1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1175 | as_fn_error $? "invalid package name: $ac_useropt" | |
1176 | ac_useropt_orig=$ac_useropt | |
1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1178 | case $ac_user_opts in | |
1179 | *" | |
1180 | "with_$ac_useropt" | |
1181 | "*) ;; | |
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1183 | ac_unrecognized_sep=', ';; | |
1184 | esac | |
1185 | eval with_$ac_useropt=\$ac_optarg ;; | |
1186 | ||
1187 | -without-* | --without-*) | |
1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1189 | # Reject names that are not valid shell variable names. | |
1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1191 | as_fn_error $? "invalid package name: $ac_useropt" | |
1192 | ac_useropt_orig=$ac_useropt | |
1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1194 | case $ac_user_opts in | |
1195 | *" | |
1196 | "with_$ac_useropt" | |
1197 | "*) ;; | |
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1199 | ac_unrecognized_sep=', ';; | |
1200 | esac | |
1201 | eval with_$ac_useropt=no ;; | |
1202 | ||
1203 | --x) | |
1204 | # Obsolete; use --with-x. | |
1205 | with_x=yes ;; | |
1206 | ||
1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1208 | | --x-incl | --x-inc | --x-in | --x-i) | |
1209 | ac_prev=x_includes ;; | |
1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1212 | x_includes=$ac_optarg ;; | |
1213 | ||
1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1216 | ac_prev=x_libraries ;; | |
1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1219 | x_libraries=$ac_optarg ;; | |
1220 | ||
1221 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1222 | Try \`$0 --help' for more information" | |
1223 | ;; | |
1224 | ||
1225 | *=*) | |
1226 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1227 | # Reject names that are not valid shell variable names. | |
1228 | case $ac_envvar in #( | |
1229 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1230 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1231 | esac | |
1232 | eval $ac_envvar=\$ac_optarg | |
1233 | export $ac_envvar ;; | |
1234 | ||
1235 | *) | |
1236 | # FIXME: should be removed in autoconf 3.0. | |
1237 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1239 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1240 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1241 | ;; | |
1242 | ||
1243 | esac | |
1244 | done | |
1245 | ||
1246 | if test -n "$ac_prev"; then | |
1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1248 | as_fn_error $? "missing argument to $ac_option" | |
1249 | fi | |
1250 | ||
1251 | if test -n "$ac_unrecognized_opts"; then | |
1252 | case $enable_option_checking in | |
1253 | no) ;; | |
1254 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1255 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1256 | esac | |
1257 | fi | |
1258 | ||
1259 | # Check all directory arguments for consistency. | |
1260 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1261 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1262 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1263 | libdir localedir mandir runstatedir | |
1264 | do | |
1265 | eval ac_val=\$$ac_var | |
1266 | # Remove trailing slashes. | |
1267 | case $ac_val in | |
1268 | */ ) | |
1269 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1270 | eval $ac_var=\$ac_val;; | |
1271 | esac | |
1272 | # Be sure to have absolute directory names. | |
1273 | case $ac_val in | |
1274 | [\\/$]* | ?:[\\/]* ) continue;; | |
1275 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1276 | esac | |
1277 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1278 | done | |
1279 | ||
1280 | # There might be people who depend on the old broken behavior: `$host' | |
1281 | # used to hold the argument of --host etc. | |
1282 | # FIXME: To remove some day. | |
1283 | build=$build_alias | |
1284 | host=$host_alias | |
1285 | target=$target_alias | |
1286 | ||
1287 | # FIXME: To remove some day. | |
1288 | if test "x$host_alias" != x; then | |
1289 | if test "x$build_alias" = x; then | |
1290 | cross_compiling=maybe | |
1291 | elif test "x$build_alias" != "x$host_alias"; then | |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
1295 | ||
1296 | ac_tool_prefix= | |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
1300 | ||
1301 | ||
1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1305 | as_fn_error $? "working directory cannot be determined" | |
1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1307 | as_fn_error $? "pwd does not report name of working directory" | |
1308 | ||
1309 | ||
1310 | # Find the source files, if location was not specified. | |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
1313 | # Try the directory containing this script, then the parent directory. | |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1319 | $as_echo X"$as_myself" | | |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
1337 | srcdir=$ac_confdir | |
1338 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1339 | srcdir=.. | |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
1344 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1346 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1347 | fi | |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1349 | ac_abs_confdir=`( | |
1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1351 | pwd)` | |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
1362 | for ac_var in $ac_precious_vars; do | |
1363 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1364 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1365 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1366 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1367 | done | |
1368 | ||
1369 | # | |
1370 | # Report the --help message. | |
1371 | # | |
1372 | if test "$ac_init_help" = "long"; then | |
1373 | # Omit some internal or obsolete options to make the list less imposing. | |
1374 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1375 | cat <<_ACEOF | |
1376 | \`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems. | |
1377 | ||
1378 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1379 | ||
1380 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1381 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1382 | ||
1383 | Defaults for the options are specified in brackets. | |
1384 | ||
1385 | Configuration: | |
1386 | -h, --help display this help and exit | |
1387 | --help=short display options specific to this package | |
1388 | --help=recursive display the short help of all the included packages | |
1389 | -V, --version display version information and exit | |
1390 | -q, --quiet, --silent do not print \`checking ...' messages | |
1391 | --cache-file=FILE cache test results in FILE [disabled] | |
1392 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1393 | -n, --no-create do not create output files | |
1394 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1395 | ||
1396 | Installation directories: | |
1397 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1398 | [$ac_default_prefix] | |
1399 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1400 | [PREFIX] | |
1401 | ||
1402 | By default, \`make install' will install all the files in | |
1403 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1404 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1405 | for instance \`--prefix=\$HOME'. | |
1406 | ||
1407 | For better control, use the options below. | |
1408 | ||
1409 | Fine tuning of the installation directories: | |
1410 | --bindir=DIR user executables [EPREFIX/bin] | |
1411 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1412 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1413 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1414 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1415 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1416 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1417 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1418 | --includedir=DIR C header files [PREFIX/include] | |
1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1422 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1424 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate] | |
1426 | --htmldir=DIR html documentation [DOCDIR] | |
1427 | --dvidir=DIR dvi documentation [DOCDIR] | |
1428 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1429 | --psdir=DIR ps documentation [DOCDIR] | |
1430 | _ACEOF | |
1431 | ||
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | Program names: | |
1435 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1436 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1437 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1438 | ||
1439 | System types: | |
1440 | --build=BUILD configure for building on BUILD [guessed] | |
1441 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1442 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1443 | _ACEOF | |
1444 | fi | |
1445 | ||
1446 | if test -n "$ac_init_help"; then | |
1447 | case $ac_init_help in | |
1448 | short | recursive ) echo "Configuration of libsamplerate 0.1.9:";; | |
1449 | esac | |
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Optional Features: | |
1453 | --disable-option-checking ignore unrecognized --enable/--with options | |
1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1456 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1457 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1458 | --enable-dependency-tracking | |
1459 | do not reject slow dependency extractors | |
1460 | --disable-dependency-tracking | |
1461 | speeds up one-time build | |
1462 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1463 | --enable-static[=PKGS] build static libraries [default=yes] | |
1464 | --enable-fast-install[=PKGS] | |
1465 | optimize for fast installation [default=yes] | |
1466 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1467 | --enable-gcc-werror enable -Werror in all Makefiles | |
1468 | --disable-gcc-pipe disable gcc -pipe option | |
1469 | --disable-gcc-opt disable gcc optimisations | |
1470 | --disable-fftw disable usage of FFTW | |
1471 | --disable-cpu-clip disable tricky cpu specific clipper | |
1472 | --disable-sndfile disable support for sndfile (default=autodetect) | |
1473 | ||
1474 | Optional Packages: | |
1475 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1476 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1477 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1478 | both] | |
1479 | --with-aix-soname=aix|svr4|both | |
1480 | shared library versioning (aka "SONAME") variant to | |
1481 | provide on AIX, [default=aix]. | |
1482 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1483 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1484 | compiler's sysroot if not specified). | |
1485 | ||
1486 | Some influential environment variables: | |
1487 | CC C compiler command | |
1488 | CFLAGS C compiler flags | |
1489 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1490 | nonstandard directory <lib dir> | |
1491 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1492 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1493 | you have headers in a nonstandard directory <include dir> | |
1494 | CXX C++ compiler command | |
1495 | CXXFLAGS C++ compiler flags | |
1496 | LT_SYS_LIBRARY_PATH | |
1497 | User-defined run-time library search path. | |
1498 | CPP C preprocessor | |
1499 | CXXCPP C++ preprocessor | |
1500 | PKG_CONFIG path to pkg-config utility | |
1501 | PKG_CONFIG_PATH | |
1502 | directories to add to pkg-config's search path | |
1503 | PKG_CONFIG_LIBDIR | |
1504 | path overriding pkg-config's built-in search path | |
1505 | SNDFILE_CFLAGS | |
1506 | C compiler flags for SNDFILE, overriding pkg-config | |
1507 | SNDFILE_LIBS | |
1508 | linker flags for SNDFILE, overriding pkg-config | |
1509 | FFTW3_CFLAGS | |
1510 | C compiler flags for FFTW3, overriding pkg-config | |
1511 | FFTW3_LIBS linker flags for FFTW3, overriding pkg-config | |
1512 | ||
1513 | Use these variables to override the choices made by `configure' or to help | |
1514 | it to find libraries and programs with nonstandard names/locations. | |
1515 | ||
1516 | Report bugs to <erikd@mega-nerd.com>. | |
1517 | libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>. | |
1518 | _ACEOF | |
1519 | ac_status=$? | |
1520 | fi | |
1521 | ||
1522 | if test "$ac_init_help" = "recursive"; then | |
1523 | # If there are subdirs, report their specific --help. | |
1524 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1525 | test -d "$ac_dir" || | |
1526 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1527 | continue | |
1528 | ac_builddir=. | |
1529 | ||
1530 | case "$ac_dir" in | |
1531 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1532 | *) | |
1533 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1534 | # A ".." for each directory in $ac_dir_suffix. | |
1535 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1536 | case $ac_top_builddir_sub in | |
1537 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1538 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1539 | esac ;; | |
1540 | esac | |
1541 | ac_abs_top_builddir=$ac_pwd | |
1542 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1543 | # for backward compatibility: | |
1544 | ac_top_builddir=$ac_top_build_prefix | |
1545 | ||
1546 | case $srcdir in | |
1547 | .) # We are building in place. | |
1548 | ac_srcdir=. | |
1549 | ac_top_srcdir=$ac_top_builddir_sub | |
1550 | ac_abs_top_srcdir=$ac_pwd ;; | |
1551 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1552 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1553 | ac_top_srcdir=$srcdir | |
1554 | ac_abs_top_srcdir=$srcdir ;; | |
1555 | *) # Relative name. | |
1556 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1557 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1558 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1559 | esac | |
1560 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1561 | ||
1562 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1563 | # Check for guested configure. | |
1564 | if test -f "$ac_srcdir/configure.gnu"; then | |
1565 | echo && | |
1566 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1567 | elif test -f "$ac_srcdir/configure"; then | |
1568 | echo && | |
1569 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1570 | else | |
1571 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1572 | fi || ac_status=$? | |
1573 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1574 | done | |
1575 | fi | |
1576 | ||
1577 | test -n "$ac_init_help" && exit $ac_status | |
1578 | if $ac_init_version; then | |
1579 | cat <<\_ACEOF | |
1580 | libsamplerate configure 0.1.9 | |
1581 | generated by GNU Autoconf 2.69 | |
1582 | ||
1583 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1584 | This configure script is free software; the Free Software Foundation | |
1585 | gives unlimited permission to copy, distribute and modify it. | |
1586 | _ACEOF | |
1587 | exit | |
1588 | fi | |
1589 | ||
1590 | ## ------------------------ ## | |
1591 | ## Autoconf initialization. ## | |
1592 | ## ------------------------ ## | |
1593 | ||
1594 | # ac_fn_c_try_compile LINENO | |
1595 | # -------------------------- | |
1596 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1597 | ac_fn_c_try_compile () | |
1598 | { | |
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1600 | rm -f conftest.$ac_objext | |
1601 | if { { ac_try="$ac_compile" | |
1602 | case "(($ac_try" in | |
1603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1604 | *) ac_try_echo=$ac_try;; | |
1605 | esac | |
1606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1607 | $as_echo "$ac_try_echo"; } >&5 | |
1608 | (eval "$ac_compile") 2>conftest.err | |
1609 | ac_status=$? | |
1610 | if test -s conftest.err; then | |
1611 | grep -v '^ *+' conftest.err >conftest.er1 | |
1612 | cat conftest.er1 >&5 | |
1613 | mv -f conftest.er1 conftest.err | |
1614 | fi | |
1615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1616 | test $ac_status = 0; } && { | |
1617 | test -z "$ac_c_werror_flag" || | |
1618 | test ! -s conftest.err | |
1619 | } && test -s conftest.$ac_objext; then : | |
1620 | ac_retval=0 | |
1621 | else | |
1622 | $as_echo "$as_me: failed program was:" >&5 | |
1623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1624 | ||
1625 | ac_retval=1 | |
1626 | fi | |
1627 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1628 | as_fn_set_status $ac_retval | |
1629 | ||
1630 | } # ac_fn_c_try_compile | |
1631 | ||
1632 | # ac_fn_cxx_try_compile LINENO | |
1633 | # ---------------------------- | |
1634 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1635 | ac_fn_cxx_try_compile () | |
1636 | { | |
1637 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1638 | rm -f conftest.$ac_objext | |
1639 | if { { ac_try="$ac_compile" | |
1640 | case "(($ac_try" in | |
1641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1642 | *) ac_try_echo=$ac_try;; | |
1643 | esac | |
1644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1645 | $as_echo "$ac_try_echo"; } >&5 | |
1646 | (eval "$ac_compile") 2>conftest.err | |
1647 | ac_status=$? | |
1648 | if test -s conftest.err; then | |
1649 | grep -v '^ *+' conftest.err >conftest.er1 | |
1650 | cat conftest.er1 >&5 | |
1651 | mv -f conftest.er1 conftest.err | |
1652 | fi | |
1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1654 | test $ac_status = 0; } && { | |
1655 | test -z "$ac_cxx_werror_flag" || | |
1656 | test ! -s conftest.err | |
1657 | } && test -s conftest.$ac_objext; then : | |
1658 | ac_retval=0 | |
1659 | else | |
1660 | $as_echo "$as_me: failed program was:" >&5 | |
1661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1662 | ||
1663 | ac_retval=1 | |
1664 | fi | |
1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1666 | as_fn_set_status $ac_retval | |
1667 | ||
1668 | } # ac_fn_cxx_try_compile | |
1669 | ||
1670 | # ac_fn_c_try_link LINENO | |
1671 | # ----------------------- | |
1672 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1673 | ac_fn_c_try_link () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1677 | if { { ac_try="$ac_link" | |
1678 | case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_link") 2>conftest.err | |
1685 | ac_status=$? | |
1686 | if test -s conftest.err; then | |
1687 | grep -v '^ *+' conftest.err >conftest.er1 | |
1688 | cat conftest.er1 >&5 | |
1689 | mv -f conftest.er1 conftest.err | |
1690 | fi | |
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { | |
1693 | test -z "$ac_c_werror_flag" || | |
1694 | test ! -s conftest.err | |
1695 | } && test -s conftest$ac_exeext && { | |
1696 | test "$cross_compiling" = yes || | |
1697 | test -x conftest$ac_exeext | |
1698 | }; then : | |
1699 | ac_retval=0 | |
1700 | else | |
1701 | $as_echo "$as_me: failed program was:" >&5 | |
1702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1703 | ||
1704 | ac_retval=1 | |
1705 | fi | |
1706 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1707 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1708 | # interfere with the next link command; also delete a directory that is | |
1709 | # left behind by Apple's compiler. We do this before executing the actions. | |
1710 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1712 | as_fn_set_status $ac_retval | |
1713 | ||
1714 | } # ac_fn_c_try_link | |
1715 | ||
1716 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1717 | # ------------------------------------------------------- | |
1718 | # Tests whether HEADER exists and can be compiled using the include files in | |
1719 | # INCLUDES, setting the cache variable VAR accordingly. | |
1720 | ac_fn_c_check_header_compile () | |
1721 | { | |
1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1724 | $as_echo_n "checking for $2... " >&6; } | |
1725 | if eval \${$3+:} false; then : | |
1726 | $as_echo_n "(cached) " >&6 | |
1727 | else | |
1728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1729 | /* end confdefs.h. */ | |
1730 | $4 | |
1731 | #include <$2> | |
1732 | _ACEOF | |
1733 | if ac_fn_c_try_compile "$LINENO"; then : | |
1734 | eval "$3=yes" | |
1735 | else | |
1736 | eval "$3=no" | |
1737 | fi | |
1738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1739 | fi | |
1740 | eval ac_res=\$$3 | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1742 | $as_echo "$ac_res" >&6; } | |
1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1744 | ||
1745 | } # ac_fn_c_check_header_compile | |
1746 | ||
1747 | # ac_fn_c_try_cpp LINENO | |
1748 | # ---------------------- | |
1749 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1750 | ac_fn_c_try_cpp () | |
1751 | { | |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1753 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1754 | case "(($ac_try" in | |
1755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1756 | *) ac_try_echo=$ac_try;; | |
1757 | esac | |
1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1759 | $as_echo "$ac_try_echo"; } >&5 | |
1760 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1761 | ac_status=$? | |
1762 | if test -s conftest.err; then | |
1763 | grep -v '^ *+' conftest.err >conftest.er1 | |
1764 | cat conftest.er1 >&5 | |
1765 | mv -f conftest.er1 conftest.err | |
1766 | fi | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1768 | test $ac_status = 0; } > conftest.i && { | |
1769 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1770 | test ! -s conftest.err | |
1771 | }; then : | |
1772 | ac_retval=0 | |
1773 | else | |
1774 | $as_echo "$as_me: failed program was:" >&5 | |
1775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1776 | ||
1777 | ac_retval=1 | |
1778 | fi | |
1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1780 | as_fn_set_status $ac_retval | |
1781 | ||
1782 | } # ac_fn_c_try_cpp | |
1783 | ||
1784 | # ac_fn_c_try_run LINENO | |
1785 | # ---------------------- | |
1786 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1787 | # that executables *can* be run. | |
1788 | ac_fn_c_try_run () | |
1789 | { | |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | if { { ac_try="$ac_link" | |
1792 | case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_link") 2>&5 | |
1799 | ac_status=$? | |
1800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1801 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1802 | { { case "(($ac_try" in | |
1803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1804 | *) ac_try_echo=$ac_try;; | |
1805 | esac | |
1806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1807 | $as_echo "$ac_try_echo"; } >&5 | |
1808 | (eval "$ac_try") 2>&5 | |
1809 | ac_status=$? | |
1810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1811 | test $ac_status = 0; }; }; then : | |
1812 | ac_retval=0 | |
1813 | else | |
1814 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1815 | $as_echo "$as_me: failed program was:" >&5 | |
1816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1817 | ||
1818 | ac_retval=$ac_status | |
1819 | fi | |
1820 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1821 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1822 | as_fn_set_status $ac_retval | |
1823 | ||
1824 | } # ac_fn_c_try_run | |
1825 | ||
1826 | # ac_fn_c_check_func LINENO FUNC VAR | |
1827 | # ---------------------------------- | |
1828 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1829 | ac_fn_c_check_func () | |
1830 | { | |
1831 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1833 | $as_echo_n "checking for $2... " >&6; } | |
1834 | if eval \${$3+:} false; then : | |
1835 | $as_echo_n "(cached) " >&6 | |
1836 | else | |
1837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1838 | /* end confdefs.h. */ | |
1839 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1841 | #define $2 innocuous_$2 | |
1842 | ||
1843 | /* System header to define __stub macros and hopefully few prototypes, | |
1844 | which can conflict with char $2 (); below. | |
1845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1846 | <limits.h> exists even on freestanding compilers. */ | |
1847 | ||
1848 | #ifdef __STDC__ | |
1849 | # include <limits.h> | |
1850 | #else | |
1851 | # include <assert.h> | |
1852 | #endif | |
1853 | ||
1854 | #undef $2 | |
1855 | ||
1856 | /* Override any GCC internal prototype to avoid an error. | |
1857 | Use char because int might match the return type of a GCC | |
1858 | builtin and then its argument prototype would still apply. */ | |
1859 | #ifdef __cplusplus | |
1860 | extern "C" | |
1861 | #endif | |
1862 | char $2 (); | |
1863 | /* The GNU C library defines this for functions which it implements | |
1864 | to always fail with ENOSYS. Some functions are actually named | |
1865 | something starting with __ and the normal name is an alias. */ | |
1866 | #if defined __stub_$2 || defined __stub___$2 | |
1867 | choke me | |
1868 | #endif | |
1869 | ||
1870 | int | |
1871 | main () | |
1872 | { | |
1873 | return $2 (); | |
1874 | ; | |
1875 | return 0; | |
1876 | } | |
1877 | _ACEOF | |
1878 | if ac_fn_c_try_link "$LINENO"; then : | |
1879 | eval "$3=yes" | |
1880 | else | |
1881 | eval "$3=no" | |
1882 | fi | |
1883 | rm -f core conftest.err conftest.$ac_objext \ | |
1884 | conftest$ac_exeext conftest.$ac_ext | |
1885 | fi | |
1886 | eval ac_res=\$$3 | |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1888 | $as_echo "$ac_res" >&6; } | |
1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1890 | ||
1891 | } # ac_fn_c_check_func | |
1892 | ||
1893 | # ac_fn_cxx_try_cpp LINENO | |
1894 | # ------------------------ | |
1895 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1896 | ac_fn_cxx_try_cpp () | |
1897 | { | |
1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1899 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1900 | case "(($ac_try" in | |
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1902 | *) ac_try_echo=$ac_try;; | |
1903 | esac | |
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1905 | $as_echo "$ac_try_echo"; } >&5 | |
1906 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1907 | ac_status=$? | |
1908 | if test -s conftest.err; then | |
1909 | grep -v '^ *+' conftest.err >conftest.er1 | |
1910 | cat conftest.er1 >&5 | |
1911 | mv -f conftest.er1 conftest.err | |
1912 | fi | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; } > conftest.i && { | |
1915 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1916 | test ! -s conftest.err | |
1917 | }; then : | |
1918 | ac_retval=0 | |
1919 | else | |
1920 | $as_echo "$as_me: failed program was:" >&5 | |
1921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1922 | ||
1923 | ac_retval=1 | |
1924 | fi | |
1925 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1926 | as_fn_set_status $ac_retval | |
1927 | ||
1928 | } # ac_fn_cxx_try_cpp | |
1929 | ||
1930 | # ac_fn_cxx_try_link LINENO | |
1931 | # ------------------------- | |
1932 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1933 | ac_fn_cxx_try_link () | |
1934 | { | |
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1937 | if { { ac_try="$ac_link" | |
1938 | case "(($ac_try" in | |
1939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1940 | *) ac_try_echo=$ac_try;; | |
1941 | esac | |
1942 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1943 | $as_echo "$ac_try_echo"; } >&5 | |
1944 | (eval "$ac_link") 2>conftest.err | |
1945 | ac_status=$? | |
1946 | if test -s conftest.err; then | |
1947 | grep -v '^ *+' conftest.err >conftest.er1 | |
1948 | cat conftest.er1 >&5 | |
1949 | mv -f conftest.er1 conftest.err | |
1950 | fi | |
1951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1952 | test $ac_status = 0; } && { | |
1953 | test -z "$ac_cxx_werror_flag" || | |
1954 | test ! -s conftest.err | |
1955 | } && test -s conftest$ac_exeext && { | |
1956 | test "$cross_compiling" = yes || | |
1957 | test -x conftest$ac_exeext | |
1958 | }; then : | |
1959 | ac_retval=0 | |
1960 | else | |
1961 | $as_echo "$as_me: failed program was:" >&5 | |
1962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1963 | ||
1964 | ac_retval=1 | |
1965 | fi | |
1966 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1967 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1968 | # interfere with the next link command; also delete a directory that is | |
1969 | # left behind by Apple's compiler. We do this before executing the actions. | |
1970 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1972 | as_fn_set_status $ac_retval | |
1973 | ||
1974 | } # ac_fn_cxx_try_link | |
1975 | ||
1976 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1977 | # ------------------------------------------------------- | |
1978 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1979 | # the include files in INCLUDES and setting the cache variable VAR | |
1980 | # accordingly. | |
1981 | ac_fn_c_check_header_mongrel () | |
1982 | { | |
1983 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1984 | if eval \${$3+:} false; then : | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1986 | $as_echo_n "checking for $2... " >&6; } | |
1987 | if eval \${$3+:} false; then : | |
1988 | $as_echo_n "(cached) " >&6 | |
1989 | fi | |
1990 | eval ac_res=\$$3 | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1992 | $as_echo "$ac_res" >&6; } | |
1993 | else | |
1994 | # Is the header compilable? | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1996 | $as_echo_n "checking $2 usability... " >&6; } | |
1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 | /* end confdefs.h. */ | |
1999 | $4 | |
2000 | #include <$2> | |
2001 | _ACEOF | |
2002 | if ac_fn_c_try_compile "$LINENO"; then : | |
2003 | ac_header_compiler=yes | |
2004 | else | |
2005 | ac_header_compiler=no | |
2006 | fi | |
2007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2009 | $as_echo "$ac_header_compiler" >&6; } | |
2010 | ||
2011 | # Is the header present? | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2013 | $as_echo_n "checking $2 presence... " >&6; } | |
2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2015 | /* end confdefs.h. */ | |
2016 | #include <$2> | |
2017 | _ACEOF | |
2018 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2019 | ac_header_preproc=yes | |
2020 | else | |
2021 | ac_header_preproc=no | |
2022 | fi | |
2023 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2025 | $as_echo "$ac_header_preproc" >&6; } | |
2026 | ||
2027 | # So? What about this header? | |
2028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2029 | yes:no: ) | |
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2031 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2033 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2034 | ;; | |
2035 | no:yes:* ) | |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2037 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2039 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2041 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2043 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2045 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2046 | ( $as_echo "## ---------------------------------- ## | |
2047 | ## Report this to erikd@mega-nerd.com ## | |
2048 | ## ---------------------------------- ##" | |
2049 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2050 | ;; | |
2051 | esac | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2053 | $as_echo_n "checking for $2... " >&6; } | |
2054 | if eval \${$3+:} false; then : | |
2055 | $as_echo_n "(cached) " >&6 | |
2056 | else | |
2057 | eval "$3=\$ac_header_compiler" | |
2058 | fi | |
2059 | eval ac_res=\$$3 | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2061 | $as_echo "$ac_res" >&6; } | |
2062 | fi | |
2063 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2064 | ||
2065 | } # ac_fn_c_check_header_mongrel | |
2066 | ||
2067 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2068 | # -------------------------------------------- | |
2069 | # Tries to find the compile-time value of EXPR in a program that includes | |
2070 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2071 | # computed | |
2072 | ac_fn_c_compute_int () | |
2073 | { | |
2074 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2075 | if test "$cross_compiling" = yes; then | |
2076 | # Depending upon the size, compute the lo and hi bounds. | |
2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2078 | /* end confdefs.h. */ | |
2079 | $4 | |
2080 | int | |
2081 | main () | |
2082 | { | |
2083 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2084 | test_array [0] = 0; | |
2085 | return test_array [0]; | |
2086 | ||
2087 | ; | |
2088 | return 0; | |
2089 | } | |
2090 | _ACEOF | |
2091 | if ac_fn_c_try_compile "$LINENO"; then : | |
2092 | ac_lo=0 ac_mid=0 | |
2093 | while :; do | |
2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2095 | /* end confdefs.h. */ | |
2096 | $4 | |
2097 | int | |
2098 | main () | |
2099 | { | |
2100 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2101 | test_array [0] = 0; | |
2102 | return test_array [0]; | |
2103 | ||
2104 | ; | |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | if ac_fn_c_try_compile "$LINENO"; then : | |
2109 | ac_hi=$ac_mid; break | |
2110 | else | |
2111 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2112 | if test $ac_lo -le $ac_mid; then | |
2113 | ac_lo= ac_hi= | |
2114 | break | |
2115 | fi | |
2116 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2117 | fi | |
2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2119 | done | |
2120 | else | |
2121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2122 | /* end confdefs.h. */ | |
2123 | $4 | |
2124 | int | |
2125 | main () | |
2126 | { | |
2127 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2128 | test_array [0] = 0; | |
2129 | return test_array [0]; | |
2130 | ||
2131 | ; | |
2132 | return 0; | |
2133 | } | |
2134 | _ACEOF | |
2135 | if ac_fn_c_try_compile "$LINENO"; then : | |
2136 | ac_hi=-1 ac_mid=-1 | |
2137 | while :; do | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | $4 | |
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2145 | test_array [0] = 0; | |
2146 | return test_array [0]; | |
2147 | ||
2148 | ; | |
2149 | return 0; | |
2150 | } | |
2151 | _ACEOF | |
2152 | if ac_fn_c_try_compile "$LINENO"; then : | |
2153 | ac_lo=$ac_mid; break | |
2154 | else | |
2155 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2156 | if test $ac_mid -le $ac_hi; then | |
2157 | ac_lo= ac_hi= | |
2158 | break | |
2159 | fi | |
2160 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2161 | fi | |
2162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2163 | done | |
2164 | else | |
2165 | ac_lo= ac_hi= | |
2166 | fi | |
2167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2168 | fi | |
2169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2170 | # Binary search between lo and hi bounds. | |
2171 | while test "x$ac_lo" != "x$ac_hi"; do | |
2172 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2174 | /* end confdefs.h. */ | |
2175 | $4 | |
2176 | int | |
2177 | main () | |
2178 | { | |
2179 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2180 | test_array [0] = 0; | |
2181 | return test_array [0]; | |
2182 | ||
2183 | ; | |
2184 | return 0; | |
2185 | } | |
2186 | _ACEOF | |
2187 | if ac_fn_c_try_compile "$LINENO"; then : | |
2188 | ac_hi=$ac_mid | |
2189 | else | |
2190 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2191 | fi | |
2192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2193 | done | |
2194 | case $ac_lo in #(( | |
2195 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2196 | '') ac_retval=1 ;; | |
2197 | esac | |
2198 | else | |
2199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2200 | /* end confdefs.h. */ | |
2201 | $4 | |
2202 | static long int longval () { return $2; } | |
2203 | static unsigned long int ulongval () { return $2; } | |
2204 | #include <stdio.h> | |
2205 | #include <stdlib.h> | |
2206 | int | |
2207 | main () | |
2208 | { | |
2209 | ||
2210 | FILE *f = fopen ("conftest.val", "w"); | |
2211 | if (! f) | |
2212 | return 1; | |
2213 | if (($2) < 0) | |
2214 | { | |
2215 | long int i = longval (); | |
2216 | if (i != ($2)) | |
2217 | return 1; | |
2218 | fprintf (f, "%ld", i); | |
2219 | } | |
2220 | else | |
2221 | { | |
2222 | unsigned long int i = ulongval (); | |
2223 | if (i != ($2)) | |
2224 | return 1; | |
2225 | fprintf (f, "%lu", i); | |
2226 | } | |
2227 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2228 | on some platforms. */ | |
2229 | return ferror (f) || fclose (f) != 0; | |
2230 | ||
2231 | ; | |
2232 | return 0; | |
2233 | } | |
2234 | _ACEOF | |
2235 | if ac_fn_c_try_run "$LINENO"; then : | |
2236 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2237 | else | |
2238 | ac_retval=1 | |
2239 | fi | |
2240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2241 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2242 | rm -f conftest.val | |
2243 | ||
2244 | fi | |
2245 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2246 | as_fn_set_status $ac_retval | |
2247 | ||
2248 | } # ac_fn_c_compute_int | |
2249 | cat >config.log <<_ACEOF | |
2250 | This file contains any messages produced by compilers while | |
2251 | running configure, to aid debugging if configure makes a mistake. | |
2252 | ||
2253 | It was created by libsamplerate $as_me 0.1.9, which was | |
2254 | generated by GNU Autoconf 2.69. Invocation command line was | |
2255 | ||
2256 | $ $0 $@ | |
2257 | ||
2258 | _ACEOF | |
2259 | exec 5>>config.log | |
2260 | { | |
2261 | cat <<_ASUNAME | |
2262 | ## --------- ## | |
2263 | ## Platform. ## | |
2264 | ## --------- ## | |
2265 | ||
2266 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2267 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2268 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2269 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2270 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2271 | ||
2272 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2273 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2274 | ||
2275 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2276 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2277 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2278 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2279 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2280 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2281 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2282 | ||
2283 | _ASUNAME | |
2284 | ||
2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2286 | for as_dir in $PATH | |
2287 | do | |
2288 | IFS=$as_save_IFS | |
2289 | test -z "$as_dir" && as_dir=. | |
2290 | $as_echo "PATH: $as_dir" | |
2291 | done | |
2292 | IFS=$as_save_IFS | |
2293 | ||
2294 | } >&5 | |
2295 | ||
2296 | cat >&5 <<_ACEOF | |
2297 | ||
2298 | ||
2299 | ## ----------- ## | |
2300 | ## Core tests. ## | |
2301 | ## ----------- ## | |
2302 | ||
2303 | _ACEOF | |
2304 | ||
2305 | ||
2306 | # Keep a trace of the command line. | |
2307 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2308 | # Strip out --silent because we don't want to record it for future runs. | |
2309 | # Also quote any args containing shell meta-characters. | |
2310 | # Make two passes to allow for proper duplicate-argument suppression. | |
2311 | ac_configure_args= | |
2312 | ac_configure_args0= | |
2313 | ac_configure_args1= | |
2314 | ac_must_keep_next=false | |
2315 | for ac_pass in 1 2 | |
2316 | do | |
2317 | for ac_arg | |
2318 | do | |
2319 | case $ac_arg in | |
2320 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2322 | | -silent | --silent | --silen | --sile | --sil) | |
2323 | continue ;; | |
2324 | *\'*) | |
2325 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2326 | esac | |
2327 | case $ac_pass in | |
2328 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2329 | 2) | |
2330 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2331 | if test $ac_must_keep_next = true; then | |
2332 | ac_must_keep_next=false # Got value, back to normal. | |
2333 | else | |
2334 | case $ac_arg in | |
2335 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2336 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2337 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2338 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2339 | case "$ac_configure_args0 " in | |
2340 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2341 | esac | |
2342 | ;; | |
2343 | -* ) ac_must_keep_next=true ;; | |
2344 | esac | |
2345 | fi | |
2346 | as_fn_append ac_configure_args " '$ac_arg'" | |
2347 | ;; | |
2348 | esac | |
2349 | done | |
2350 | done | |
2351 | { ac_configure_args0=; unset ac_configure_args0;} | |
2352 | { ac_configure_args1=; unset ac_configure_args1;} | |
2353 | ||
2354 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2355 | # config.log. We remove comments because anyway the quotes in there | |
2356 | # would cause problems or look ugly. | |
2357 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2358 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2359 | trap 'exit_status=$? | |
2360 | # Save into config.log some information that might help in debugging. | |
2361 | { | |
2362 | echo | |
2363 | ||
2364 | $as_echo "## ---------------- ## | |
2365 | ## Cache variables. ## | |
2366 | ## ---------------- ##" | |
2367 | echo | |
2368 | # The following way of writing the cache mishandles newlines in values, | |
2369 | ( | |
2370 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2371 | eval ac_val=\$$ac_var | |
2372 | case $ac_val in #( | |
2373 | *${as_nl}*) | |
2374 | case $ac_var in #( | |
2375 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2376 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2377 | esac | |
2378 | case $ac_var in #( | |
2379 | _ | IFS | as_nl) ;; #( | |
2380 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2381 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2382 | esac ;; | |
2383 | esac | |
2384 | done | |
2385 | (set) 2>&1 | | |
2386 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2387 | *${as_nl}ac_space=\ *) | |
2388 | sed -n \ | |
2389 | "s/'\''/'\''\\\\'\'''\''/g; | |
2390 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2391 | ;; #( | |
2392 | *) | |
2393 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2394 | ;; | |
2395 | esac | | |
2396 | sort | |
2397 | ) | |
2398 | echo | |
2399 | ||
2400 | $as_echo "## ----------------- ## | |
2401 | ## Output variables. ## | |
2402 | ## ----------------- ##" | |
2403 | echo | |
2404 | for ac_var in $ac_subst_vars | |
2405 | do | |
2406 | eval ac_val=\$$ac_var | |
2407 | case $ac_val in | |
2408 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2409 | esac | |
2410 | $as_echo "$ac_var='\''$ac_val'\''" | |
2411 | done | sort | |
2412 | echo | |
2413 | ||
2414 | if test -n "$ac_subst_files"; then | |
2415 | $as_echo "## ------------------- ## | |
2416 | ## File substitutions. ## | |
2417 | ## ------------------- ##" | |
2418 | echo | |
2419 | for ac_var in $ac_subst_files | |
2420 | do | |
2421 | eval ac_val=\$$ac_var | |
2422 | case $ac_val in | |
2423 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2424 | esac | |
2425 | $as_echo "$ac_var='\''$ac_val'\''" | |
2426 | done | sort | |
2427 | echo | |
2428 | fi | |
2429 | ||
2430 | if test -s confdefs.h; then | |
2431 | $as_echo "## ----------- ## | |
2432 | ## confdefs.h. ## | |
2433 | ## ----------- ##" | |
2434 | echo | |
2435 | cat confdefs.h | |
2436 | echo | |
2437 | fi | |
2438 | test "$ac_signal" != 0 && | |
2439 | $as_echo "$as_me: caught signal $ac_signal" | |
2440 | $as_echo "$as_me: exit $exit_status" | |
2441 | } >&5 | |
2442 | rm -f core *.core core.conftest.* && | |
2443 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2444 | exit $exit_status | |
2445 | ' 0 | |
2446 | for ac_signal in 1 2 13 15; do | |
2447 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2448 | done | |
2449 | ac_signal=0 | |
2450 | ||
2451 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2452 | rm -f -r conftest* confdefs.h | |
2453 | ||
2454 | $as_echo "/* confdefs.h */" > confdefs.h | |
2455 | ||
2456 | # Predefined preprocessor variables. | |
2457 | ||
2458 | cat >>confdefs.h <<_ACEOF | |
2459 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2460 | _ACEOF | |
2461 | ||
2462 | cat >>confdefs.h <<_ACEOF | |
2463 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2464 | _ACEOF | |
2465 | ||
2466 | cat >>confdefs.h <<_ACEOF | |
2467 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2468 | _ACEOF | |
2469 | ||
2470 | cat >>confdefs.h <<_ACEOF | |
2471 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2472 | _ACEOF | |
2473 | ||
2474 | cat >>confdefs.h <<_ACEOF | |
2475 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2476 | _ACEOF | |
2477 | ||
2478 | cat >>confdefs.h <<_ACEOF | |
2479 | #define PACKAGE_URL "$PACKAGE_URL" | |
2480 | _ACEOF | |
2481 | ||
2482 | ||
2483 | # Let the site file select an alternate cache file if it wants to. | |
2484 | # Prefer an explicitly selected file to automatically selected ones. | |
2485 | ac_site_file1=NONE | |
2486 | ac_site_file2=NONE | |
2487 | if test -n "$CONFIG_SITE"; then | |
2488 | # We do not want a PATH search for config.site. | |
2489 | case $CONFIG_SITE in #(( | |
2490 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2491 | */*) ac_site_file1=$CONFIG_SITE;; | |
2492 | *) ac_site_file1=./$CONFIG_SITE;; | |
2493 | esac | |
2494 | elif test "x$prefix" != xNONE; then | |
2495 | ac_site_file1=$prefix/share/config.site | |
2496 | ac_site_file2=$prefix/etc/config.site | |
2497 | else | |
2498 | ac_site_file1=$ac_default_prefix/share/config.site | |
2499 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2500 | fi | |
2501 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2502 | do | |
2503 | test "x$ac_site_file" = xNONE && continue | |
2504 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2506 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2507 | sed 's/^/| /' "$ac_site_file" >&5 | |
2508 | . "$ac_site_file" \ | |
2509 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2511 | as_fn_error $? "failed to load site script $ac_site_file | |
2512 | See \`config.log' for more details" "$LINENO" 5; } | |
2513 | fi | |
2514 | done | |
2515 | ||
2516 | if test -r "$cache_file"; then | |
2517 | # Some versions of bash will fail to source /dev/null (special files | |
2518 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2519 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2521 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2522 | case $cache_file in | |
2523 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2524 | *) . "./$cache_file";; | |
2525 | esac | |
2526 | fi | |
2527 | else | |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2529 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2530 | >$cache_file | |
2531 | fi | |
2532 | ||
2533 | # Check that the precious variables saved in the cache have kept the same | |
2534 | # value. | |
2535 | ac_cache_corrupted=false | |
2536 | for ac_var in $ac_precious_vars; do | |
2537 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2538 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2539 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2540 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2541 | case $ac_old_set,$ac_new_set in | |
2542 | set,) | |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2544 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2545 | ac_cache_corrupted=: ;; | |
2546 | ,set) | |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2548 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2549 | ac_cache_corrupted=: ;; | |
2550 | ,);; | |
2551 | *) | |
2552 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2553 | # differences in whitespace do not lead to failure. | |
2554 | ac_old_val_w=`echo x $ac_old_val` | |
2555 | ac_new_val_w=`echo x $ac_new_val` | |
2556 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2558 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2559 | ac_cache_corrupted=: | |
2560 | else | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2562 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2563 | eval $ac_var=\$ac_old_val | |
2564 | fi | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2566 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2568 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2569 | fi;; | |
2570 | esac | |
2571 | # Pass precious variables to config.status. | |
2572 | if test "$ac_new_set" = set; then | |
2573 | case $ac_new_val in | |
2574 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2575 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2576 | esac | |
2577 | case " $ac_configure_args " in | |
2578 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2579 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2580 | esac | |
2581 | fi | |
2582 | done | |
2583 | if $ac_cache_corrupted; then | |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2585 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2587 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2588 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2589 | fi | |
2590 | ## -------------------- ## | |
2591 | ## Main body of script. ## | |
2592 | ## -------------------- ## | |
2593 | ||
2594 | ac_ext=c | |
2595 | ac_cpp='$CPP $CPPFLAGS' | |
2596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2599 | ||
2600 | ||
2601 | ||
2602 | # Put config stuff in Cfg. | |
2603 | ac_aux_dir= | |
2604 | for ac_dir in Cfg "$srcdir"/Cfg; do | |
2605 | if test -f "$ac_dir/install-sh"; then | |
2606 | ac_aux_dir=$ac_dir | |
2607 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2608 | break | |
2609 | elif test -f "$ac_dir/install.sh"; then | |
2610 | ac_aux_dir=$ac_dir | |
2611 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2612 | break | |
2613 | elif test -f "$ac_dir/shtool"; then | |
2614 | ac_aux_dir=$ac_dir | |
2615 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2616 | break | |
2617 | fi | |
2618 | done | |
2619 | if test -z "$ac_aux_dir"; then | |
2620 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5 | |
2621 | fi | |
2622 | ||
2623 | # These three variables are undocumented and unsupported, | |
2624 | # and are intended to be withdrawn in a future Autoconf release. | |
2625 | # They can cause serious problems if a builder's source tree is in a directory | |
2626 | # whose full name contains unusual characters. | |
2627 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2628 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2629 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2630 | ||
2631 | ||
2632 | ||
2633 | ||
2634 | # Make sure we can run config.sub. | |
2635 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2636 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2637 | ||
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2639 | $as_echo_n "checking build system type... " >&6; } | |
2640 | if ${ac_cv_build+:} false; then : | |
2641 | $as_echo_n "(cached) " >&6 | |
2642 | else | |
2643 | ac_build_alias=$build_alias | |
2644 | test "x$ac_build_alias" = x && | |
2645 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2646 | test "x$ac_build_alias" = x && | |
2647 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2648 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2649 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2650 | ||
2651 | fi | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2653 | $as_echo "$ac_cv_build" >&6; } | |
2654 | case $ac_cv_build in | |
2655 | *-*-*) ;; | |
2656 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2657 | esac | |
2658 | build=$ac_cv_build | |
2659 | ac_save_IFS=$IFS; IFS='-' | |
2660 | set x $ac_cv_build | |
2661 | shift | |
2662 | build_cpu=$1 | |
2663 | build_vendor=$2 | |
2664 | shift; shift | |
2665 | # Remember, the first character of IFS is used to create $*, | |
2666 | # except with old shells: | |
2667 | build_os=$* | |
2668 | IFS=$ac_save_IFS | |
2669 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2670 | ||
2671 | ||
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2673 | $as_echo_n "checking host system type... " >&6; } | |
2674 | if ${ac_cv_host+:} false; then : | |
2675 | $as_echo_n "(cached) " >&6 | |
2676 | else | |
2677 | if test "x$host_alias" = x; then | |
2678 | ac_cv_host=$ac_cv_build | |
2679 | else | |
2680 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2681 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2682 | fi | |
2683 | ||
2684 | fi | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2686 | $as_echo "$ac_cv_host" >&6; } | |
2687 | case $ac_cv_host in | |
2688 | *-*-*) ;; | |
2689 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2690 | esac | |
2691 | host=$ac_cv_host | |
2692 | ac_save_IFS=$IFS; IFS='-' | |
2693 | set x $ac_cv_host | |
2694 | shift | |
2695 | host_cpu=$1 | |
2696 | host_vendor=$2 | |
2697 | shift; shift | |
2698 | # Remember, the first character of IFS is used to create $*, | |
2699 | # except with old shells: | |
2700 | host_os=$* | |
2701 | IFS=$ac_save_IFS | |
2702 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2703 | ||
2704 | ||
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2706 | $as_echo_n "checking target system type... " >&6; } | |
2707 | if ${ac_cv_target+:} false; then : | |
2708 | $as_echo_n "(cached) " >&6 | |
2709 | else | |
2710 | if test "x$target_alias" = x; then | |
2711 | ac_cv_target=$ac_cv_host | |
2712 | else | |
2713 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2714 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2715 | fi | |
2716 | ||
2717 | fi | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2719 | $as_echo "$ac_cv_target" >&6; } | |
2720 | case $ac_cv_target in | |
2721 | *-*-*) ;; | |
2722 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2723 | esac | |
2724 | target=$ac_cv_target | |
2725 | ac_save_IFS=$IFS; IFS='-' | |
2726 | set x $ac_cv_target | |
2727 | shift | |
2728 | target_cpu=$1 | |
2729 | target_vendor=$2 | |
2730 | shift; shift | |
2731 | # Remember, the first character of IFS is used to create $*, | |
2732 | # except with old shells: | |
2733 | target_os=$* | |
2734 | IFS=$ac_save_IFS | |
2735 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2736 | ||
2737 | ||
2738 | # The aliases save the names the user supplied, while $host etc. | |
2739 | # will get canonicalized. | |
2740 | test -n "$target_alias" && | |
2741 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2742 | NONENONEs,x,x, && | |
2743 | program_prefix=${target_alias}- | |
2744 | ||
2745 | ||
2746 | ac_config_headers="$ac_config_headers src/config.h" | |
2747 | ||
2748 | ||
2749 | am__api_version='1.15' | |
2750 | ||
2751 | # Find a good install program. We prefer a C program (faster), | |
2752 | # so one script is as good as another. But avoid the broken or | |
2753 | # incompatible versions: | |
2754 | # SysV /etc/install, /usr/sbin/install | |
2755 | # SunOS /usr/etc/install | |
2756 | # IRIX /sbin/install | |
2757 | # AIX /bin/install | |
2758 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2759 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2760 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2761 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2762 | # OS/2's system install, which has a completely different semantic | |
2763 | # ./install, which can be erroneously created by make from ./install.sh. | |
2764 | # Reject install programs that cannot install multiple files. | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2766 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2767 | if test -z "$INSTALL"; then | |
2768 | if ${ac_cv_path_install+:} false; then : | |
2769 | $as_echo_n "(cached) " >&6 | |
2770 | else | |
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2772 | for as_dir in $PATH | |
2773 | do | |
2774 | IFS=$as_save_IFS | |
2775 | test -z "$as_dir" && as_dir=. | |
2776 | # Account for people who put trailing slashes in PATH elements. | |
2777 | case $as_dir/ in #(( | |
2778 | ./ | .// | /[cC]/* | \ | |
2779 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2780 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2781 | /usr/ucb/* ) ;; | |
2782 | *) | |
2783 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2784 | # Don't use installbsd from OSF since it installs stuff as root | |
2785 | # by default. | |
2786 | for ac_prog in ginstall scoinst install; do | |
2787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2788 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2789 | if test $ac_prog = install && | |
2790 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2791 | # AIX install. It has an incompatible calling convention. | |
2792 | : | |
2793 | elif test $ac_prog = install && | |
2794 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2795 | # program-specific install script used by HP pwplus--don't use. | |
2796 | : | |
2797 | else | |
2798 | rm -rf conftest.one conftest.two conftest.dir | |
2799 | echo one > conftest.one | |
2800 | echo two > conftest.two | |
2801 | mkdir conftest.dir | |
2802 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2803 | test -s conftest.one && test -s conftest.two && | |
2804 | test -s conftest.dir/conftest.one && | |
2805 | test -s conftest.dir/conftest.two | |
2806 | then | |
2807 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2808 | break 3 | |
2809 | fi | |
2810 | fi | |
2811 | fi | |
2812 | done | |
2813 | done | |
2814 | ;; | |
2815 | esac | |
2816 | ||
2817 | done | |
2818 | IFS=$as_save_IFS | |
2819 | ||
2820 | rm -rf conftest.one conftest.two conftest.dir | |
2821 | ||
2822 | fi | |
2823 | if test "${ac_cv_path_install+set}" = set; then | |
2824 | INSTALL=$ac_cv_path_install | |
2825 | else | |
2826 | # As a last resort, use the slow shell script. Don't cache a | |
2827 | # value for INSTALL within a source directory, because that will | |
2828 | # break other packages using the cache if that directory is | |
2829 | # removed, or if the value is a relative name. | |
2830 | INSTALL=$ac_install_sh | |
2831 | fi | |
2832 | fi | |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2834 | $as_echo "$INSTALL" >&6; } | |
2835 | ||
2836 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2837 | # It thinks the first close brace ends the variable substitution. | |
2838 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2839 | ||
2840 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2841 | ||
2842 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2843 | ||
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2845 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2846 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2847 | # name. Accept space and tab only in the latter. | |
2848 | am_lf=' | |
2849 | ' | |
2850 | case `pwd` in | |
2851 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2852 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2853 | esac | |
2854 | case $srcdir in | |
2855 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2856 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2857 | esac | |
2858 | ||
2859 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2860 | # arguments. Must try -L first in case configure is actually a | |
2861 | # symlink; some systems play weird games with the mod time of symlinks | |
2862 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2863 | # directory). | |
2864 | if ( | |
2865 | am_has_slept=no | |
2866 | for am_try in 1 2; do | |
2867 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2868 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2869 | if test "$*" = "X"; then | |
2870 | # -L didn't work. | |
2871 | set X `ls -t "$srcdir/configure" conftest.file` | |
2872 | fi | |
2873 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2874 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2875 | ||
2876 | # If neither matched, then we have a broken ls. This can happen | |
2877 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2878 | # broken ls alias from the environment. This has actually | |
2879 | # happened. Such a system could not be considered "sane". | |
2880 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2881 | alias in your environment" "$LINENO" 5 | |
2882 | fi | |
2883 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2884 | break | |
2885 | fi | |
2886 | # Just in case. | |
2887 | sleep 1 | |
2888 | am_has_slept=yes | |
2889 | done | |
2890 | test "$2" = conftest.file | |
2891 | ) | |
2892 | then | |
2893 | # Ok. | |
2894 | : | |
2895 | else | |
2896 | as_fn_error $? "newly created file is older than distributed files! | |
2897 | Check your system clock" "$LINENO" 5 | |
2898 | fi | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2900 | $as_echo "yes" >&6; } | |
2901 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2902 | # generated files are strictly newer. | |
2903 | am_sleep_pid= | |
2904 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2905 | ( sleep 1 ) & | |
2906 | am_sleep_pid=$! | |
2907 | fi | |
2908 | ||
2909 | rm -f conftest.file | |
2910 | ||
2911 | test "$program_prefix" != NONE && | |
2912 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2913 | # Use a double $ so make ignores it. | |
2914 | test "$program_suffix" != NONE && | |
2915 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2916 | # Double any \ or $. | |
2917 | # By default was `s,x,x', remove it if useless. | |
2918 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2919 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2920 | ||
2921 | # Expand $ac_aux_dir to an absolute path. | |
2922 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2923 | ||
2924 | if test x"${MISSING+set}" != xset; then | |
2925 | case $am_aux_dir in | |
2926 | *\ * | *\ *) | |
2927 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2928 | *) | |
2929 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2930 | esac | |
2931 | fi | |
2932 | # Use eval to expand $SHELL | |
2933 | if eval "$MISSING --is-lightweight"; then | |
2934 | am_missing_run="$MISSING " | |
2935 | else | |
2936 | am_missing_run= | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2938 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2939 | fi | |
2940 | ||
2941 | if test x"${install_sh+set}" != xset; then | |
2942 | case $am_aux_dir in | |
2943 | *\ * | *\ *) | |
2944 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2945 | *) | |
2946 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2947 | esac | |
2948 | fi | |
2949 | ||
2950 | # Installed binaries are usually stripped using 'strip' when the user | |
2951 | # run "make install-strip". However 'strip' might not be the right | |
2952 | # tool to use in cross-compilation environments, therefore Automake | |
2953 | # will honor the 'STRIP' environment variable to overrule this program. | |
2954 | if test "$cross_compiling" != no; then | |
2955 | if test -n "$ac_tool_prefix"; then | |
2956 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2957 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2959 | $as_echo_n "checking for $ac_word... " >&6; } | |
2960 | if ${ac_cv_prog_STRIP+:} false; then : | |
2961 | $as_echo_n "(cached) " >&6 | |
2962 | else | |
2963 | if test -n "$STRIP"; then | |
2964 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2965 | else | |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2967 | for as_dir in $PATH | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2973 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2975 | break 2 | |
2976 | fi | |
2977 | done | |
2978 | done | |
2979 | IFS=$as_save_IFS | |
2980 | ||
2981 | fi | |
2982 | fi | |
2983 | STRIP=$ac_cv_prog_STRIP | |
2984 | if test -n "$STRIP"; then | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2986 | $as_echo "$STRIP" >&6; } | |
2987 | else | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2989 | $as_echo "no" >&6; } | |
2990 | fi | |
2991 | ||
2992 | ||
2993 | fi | |
2994 | if test -z "$ac_cv_prog_STRIP"; then | |
2995 | ac_ct_STRIP=$STRIP | |
2996 | # Extract the first word of "strip", so it can be a program name with args. | |
2997 | set dummy strip; ac_word=$2 | |
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2999 | $as_echo_n "checking for $ac_word... " >&6; } | |
3000 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3001 | $as_echo_n "(cached) " >&6 | |
3002 | else | |
3003 | if test -n "$ac_ct_STRIP"; then | |
3004 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3005 | else | |
3006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3007 | for as_dir in $PATH | |
3008 | do | |
3009 | IFS=$as_save_IFS | |
3010 | test -z "$as_dir" && as_dir=. | |
3011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3013 | ac_cv_prog_ac_ct_STRIP="strip" | |
3014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3015 | break 2 | |
3016 | fi | |
3017 | done | |
3018 | done | |
3019 | IFS=$as_save_IFS | |
3020 | ||
3021 | fi | |
3022 | fi | |
3023 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3024 | if test -n "$ac_ct_STRIP"; then | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3026 | $as_echo "$ac_ct_STRIP" >&6; } | |
3027 | else | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3029 | $as_echo "no" >&6; } | |
3030 | fi | |
3031 | ||
3032 | if test "x$ac_ct_STRIP" = x; then | |
3033 | STRIP=":" | |
3034 | else | |
3035 | case $cross_compiling:$ac_tool_warned in | |
3036 | yes:) | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3039 | ac_tool_warned=yes ;; | |
3040 | esac | |
3041 | STRIP=$ac_ct_STRIP | |
3042 | fi | |
3043 | else | |
3044 | STRIP="$ac_cv_prog_STRIP" | |
3045 | fi | |
3046 | ||
3047 | fi | |
3048 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3049 | ||
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3051 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3052 | if test -z "$MKDIR_P"; then | |
3053 | if ${ac_cv_path_mkdir+:} false; then : | |
3054 | $as_echo_n "(cached) " >&6 | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
3061 | for ac_prog in mkdir gmkdir; do | |
3062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3063 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3064 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3065 | 'mkdir (GNU coreutils) '* | \ | |
3066 | 'mkdir (coreutils) '* | \ | |
3067 | 'mkdir (fileutils) '4.1*) | |
3068 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3069 | break 3;; | |
3070 | esac | |
3071 | done | |
3072 | done | |
3073 | done | |
3074 | IFS=$as_save_IFS | |
3075 | ||
3076 | fi | |
3077 | ||
3078 | test -d ./--version && rmdir ./--version | |
3079 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3080 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3081 | else | |
3082 | # As a last resort, use the slow shell script. Don't cache a | |
3083 | # value for MKDIR_P within a source directory, because that will | |
3084 | # break other packages using the cache if that directory is | |
3085 | # removed, or if the value is a relative name. | |
3086 | MKDIR_P="$ac_install_sh -d" | |
3087 | fi | |
3088 | fi | |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3090 | $as_echo "$MKDIR_P" >&6; } | |
3091 | ||
3092 | for ac_prog in gawk mawk nawk awk | |
3093 | do | |
3094 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3095 | set dummy $ac_prog; ac_word=$2 | |
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3097 | $as_echo_n "checking for $ac_word... " >&6; } | |
3098 | if ${ac_cv_prog_AWK+:} false; then : | |
3099 | $as_echo_n "(cached) " >&6 | |
3100 | else | |
3101 | if test -n "$AWK"; then | |
3102 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3103 | else | |
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3105 | for as_dir in $PATH | |
3106 | do | |
3107 | IFS=$as_save_IFS | |
3108 | test -z "$as_dir" && as_dir=. | |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3111 | ac_cv_prog_AWK="$ac_prog" | |
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3113 | break 2 | |
3114 | fi | |
3115 | done | |
3116 | done | |
3117 | IFS=$as_save_IFS | |
3118 | ||
3119 | fi | |
3120 | fi | |
3121 | AWK=$ac_cv_prog_AWK | |
3122 | if test -n "$AWK"; then | |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3124 | $as_echo "$AWK" >&6; } | |
3125 | else | |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3127 | $as_echo "no" >&6; } | |
3128 | fi | |
3129 | ||
3130 | ||
3131 | test -n "$AWK" && break | |
3132 | done | |
3133 | ||
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3135 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3136 | set x ${MAKE-make} | |
3137 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3138 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3139 | $as_echo_n "(cached) " >&6 | |
3140 | else | |
3141 | cat >conftest.make <<\_ACEOF | |
3142 | SHELL = /bin/sh | |
3143 | all: | |
3144 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3145 | _ACEOF | |
3146 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3147 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3148 | *@@@%%%=?*=@@@%%%*) | |
3149 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3150 | *) | |
3151 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3152 | esac | |
3153 | rm -f conftest.make | |
3154 | fi | |
3155 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3157 | $as_echo "yes" >&6; } | |
3158 | SET_MAKE= | |
3159 | else | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3161 | $as_echo "no" >&6; } | |
3162 | SET_MAKE="MAKE=${MAKE-make}" | |
3163 | fi | |
3164 | ||
3165 | rm -rf .tst 2>/dev/null | |
3166 | mkdir .tst 2>/dev/null | |
3167 | if test -d .tst; then | |
3168 | am__leading_dot=. | |
3169 | else | |
3170 | am__leading_dot=_ | |
3171 | fi | |
3172 | rmdir .tst 2>/dev/null | |
3173 | ||
3174 | # Check whether --enable-silent-rules was given. | |
3175 | if test "${enable_silent_rules+set}" = set; then : | |
3176 | enableval=$enable_silent_rules; | |
3177 | fi | |
3178 | ||
3179 | case $enable_silent_rules in # ((( | |
3180 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3181 | no) AM_DEFAULT_VERBOSITY=1;; | |
3182 | *) AM_DEFAULT_VERBOSITY=1;; | |
3183 | esac | |
3184 | am_make=${MAKE-make} | |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3186 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3187 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3188 | $as_echo_n "(cached) " >&6 | |
3189 | else | |
3190 | if $as_echo 'TRUE=$(BAR$(V)) | |
3191 | BAR0=false | |
3192 | BAR1=true | |
3193 | V=1 | |
3194 | am__doit: | |
3195 | @$(TRUE) | |
3196 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3197 | am_cv_make_support_nested_variables=yes | |
3198 | else | |
3199 | am_cv_make_support_nested_variables=no | |
3200 | fi | |
3201 | fi | |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3203 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3204 | if test $am_cv_make_support_nested_variables = yes; then | |
3205 | AM_V='$(V)' | |
3206 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3207 | else | |
3208 | AM_V=$AM_DEFAULT_VERBOSITY | |
3209 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3210 | fi | |
3211 | AM_BACKSLASH='\' | |
3212 | ||
3213 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3214 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3215 | # is not polluted with repeated "-I." | |
3216 | am__isrc=' -I$(srcdir)' | |
3217 | # test to see if srcdir already configured | |
3218 | if test -f $srcdir/config.status; then | |
3219 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3220 | fi | |
3221 | fi | |
3222 | ||
3223 | # test whether we have cygpath | |
3224 | if test -z "$CYGPATH_W"; then | |
3225 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3226 | CYGPATH_W='cygpath -w' | |
3227 | else | |
3228 | CYGPATH_W=echo | |
3229 | fi | |
3230 | fi | |
3231 | ||
3232 | ||
3233 | # Define the identity of the package. | |
3234 | ||
3235 | PACKAGE=$PACKAGE_NAME | |
3236 | VERSION=$PACKAGE_VERSION | |
3237 | ||
3238 | ||
3239 | cat >>confdefs.h <<_ACEOF | |
3240 | #define PACKAGE "$PACKAGE" | |
3241 | _ACEOF | |
3242 | ||
3243 | ||
3244 | cat >>confdefs.h <<_ACEOF | |
3245 | #define VERSION "$VERSION" | |
3246 | _ACEOF | |
3247 | ||
3248 | # Some tools Automake needs. | |
3249 | ||
3250 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3251 | ||
3252 | ||
3253 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3254 | ||
3255 | ||
3256 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3257 | ||
3258 | ||
3259 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3260 | ||
3261 | ||
3262 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3263 | ||
3264 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3265 | # dies out for good. For more background, see: | |
3266 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3267 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3268 | mkdir_p='$(MKDIR_P)' | |
3269 | ||
3270 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3271 | # system "awk" is bad on some platforms. | |
3272 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3273 | # in the wild :-( We should find a proper way to deprecate it ... | |
3274 | AMTAR='$${TAR-tar}' | |
3275 | ||
3276 | ||
3277 | # We'll loop over all known methods to create a tar archive until one works. | |
3278 | _am_tools='gnutar pax cpio none' | |
3279 | ||
3280 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3281 | ||
3282 | ||
3283 | ||
3284 | ||
3285 | ||
3286 | ||
3287 | # POSIX will say in a future version that running "rm -f" with no argument | |
3288 | # is OK; and we want to be able to make that assumption in our Makefile | |
3289 | # recipes. So use an aggressive probe to check that the usage we want is | |
3290 | # actually supported "in the wild" to an acceptable degree. | |
3291 | # See automake bug#10828. | |
3292 | # To make any issue more visible, cause the running configure to be aborted | |
3293 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3294 | # user can still override this though. | |
3295 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3296 | cat >&2 <<'END' | |
3297 | Oops! | |
3298 | ||
3299 | Your 'rm' program seems unable to run without file operands specified | |
3300 | on the command line, even when the '-f' option is present. This is contrary | |
3301 | to the behaviour of most rm programs out there, and not conforming with | |
3302 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3303 | ||
3304 | Please tell bug-automake@gnu.org about your system, including the value | |
3305 | of your $PATH and any error possibly output before this message. This | |
3306 | can help us improve future automake versions. | |
3307 | ||
3308 | END | |
3309 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3310 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3311 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3312 | echo >&2 | |
3313 | else | |
3314 | cat >&2 <<'END' | |
3315 | Aborting the configuration process, to ensure you take notice of the issue. | |
3316 | ||
3317 | You can download and install GNU coreutils to get an 'rm' implementation | |
3318 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3319 | ||
3320 | If you want to complete the configuration process using your problematic | |
3321 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3322 | to "yes", and re-run configure. | |
3323 | ||
3324 | END | |
3325 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3326 | fi | |
3327 | fi | |
3328 | ||
3329 | # Check whether --enable-silent-rules was given. | |
3330 | if test "${enable_silent_rules+set}" = set; then : | |
3331 | enableval=$enable_silent_rules; | |
3332 | fi | |
3333 | ||
3334 | case $enable_silent_rules in # ((( | |
3335 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3336 | no) AM_DEFAULT_VERBOSITY=1;; | |
3337 | *) AM_DEFAULT_VERBOSITY=0;; | |
3338 | esac | |
3339 | am_make=${MAKE-make} | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3341 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3342 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3343 | $as_echo_n "(cached) " >&6 | |
3344 | else | |
3345 | if $as_echo 'TRUE=$(BAR$(V)) | |
3346 | BAR0=false | |
3347 | BAR1=true | |
3348 | V=1 | |
3349 | am__doit: | |
3350 | @$(TRUE) | |
3351 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3352 | am_cv_make_support_nested_variables=yes | |
3353 | else | |
3354 | am_cv_make_support_nested_variables=no | |
3355 | fi | |
3356 | fi | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3358 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3359 | if test $am_cv_make_support_nested_variables = yes; then | |
3360 | AM_V='$(V)' | |
3361 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3362 | else | |
3363 | AM_V=$AM_DEFAULT_VERBOSITY | |
3364 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3365 | fi | |
3366 | AM_BACKSLASH='\' | |
3367 | ||
3368 | ||
3369 | ACLOCAL_AMFLAGS="-I M4" | |
3370 | ||
3371 | ||
3372 | ac_ext=c | |
3373 | ac_cpp='$CPP $CPPFLAGS' | |
3374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3377 | ||
3378 | ||
3379 | ac_ext=c | |
3380 | ac_cpp='$CPP $CPPFLAGS' | |
3381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3384 | if test -n "$ac_tool_prefix"; then | |
3385 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3386 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3388 | $as_echo_n "checking for $ac_word... " >&6; } | |
3389 | if ${ac_cv_prog_CC+:} false; then : | |
3390 | $as_echo_n "(cached) " >&6 | |
3391 | else | |
3392 | if test -n "$CC"; then | |
3393 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3394 | else | |
3395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3396 | for as_dir in $PATH | |
3397 | do | |
3398 | IFS=$as_save_IFS | |
3399 | test -z "$as_dir" && as_dir=. | |
3400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3402 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3404 | break 2 | |
3405 | fi | |
3406 | done | |
3407 | done | |
3408 | IFS=$as_save_IFS | |
3409 | ||
3410 | fi | |
3411 | fi | |
3412 | CC=$ac_cv_prog_CC | |
3413 | if test -n "$CC"; then | |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3415 | $as_echo "$CC" >&6; } | |
3416 | else | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3418 | $as_echo "no" >&6; } | |
3419 | fi | |
3420 | ||
3421 | ||
3422 | fi | |
3423 | if test -z "$ac_cv_prog_CC"; then | |
3424 | ac_ct_CC=$CC | |
3425 | # Extract the first word of "gcc", so it can be a program name with args. | |
3426 | set dummy gcc; ac_word=$2 | |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3428 | $as_echo_n "checking for $ac_word... " >&6; } | |
3429 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3430 | $as_echo_n "(cached) " >&6 | |
3431 | else | |
3432 | if test -n "$ac_ct_CC"; then | |
3433 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3434 | else | |
3435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3436 | for as_dir in $PATH | |
3437 | do | |
3438 | IFS=$as_save_IFS | |
3439 | test -z "$as_dir" && as_dir=. | |
3440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3442 | ac_cv_prog_ac_ct_CC="gcc" | |
3443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3444 | break 2 | |
3445 | fi | |
3446 | done | |
3447 | done | |
3448 | IFS=$as_save_IFS | |
3449 | ||
3450 | fi | |
3451 | fi | |
3452 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3453 | if test -n "$ac_ct_CC"; then | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3455 | $as_echo "$ac_ct_CC" >&6; } | |
3456 | else | |
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3458 | $as_echo "no" >&6; } | |
3459 | fi | |
3460 | ||
3461 | if test "x$ac_ct_CC" = x; then | |
3462 | CC="" | |
3463 | else | |
3464 | case $cross_compiling:$ac_tool_warned in | |
3465 | yes:) | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3467 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3468 | ac_tool_warned=yes ;; | |
3469 | esac | |
3470 | CC=$ac_ct_CC | |
3471 | fi | |
3472 | else | |
3473 | CC="$ac_cv_prog_CC" | |
3474 | fi | |
3475 | ||
3476 | if test -z "$CC"; then | |
3477 | if test -n "$ac_tool_prefix"; then | |
3478 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3479 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3481 | $as_echo_n "checking for $ac_word... " >&6; } | |
3482 | if ${ac_cv_prog_CC+:} false; then : | |
3483 | $as_echo_n "(cached) " >&6 | |
3484 | else | |
3485 | if test -n "$CC"; then | |
3486 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3487 | else | |
3488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3489 | for as_dir in $PATH | |
3490 | do | |
3491 | IFS=$as_save_IFS | |
3492 | test -z "$as_dir" && as_dir=. | |
3493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3495 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3497 | break 2 | |
3498 | fi | |
3499 | done | |
3500 | done | |
3501 | IFS=$as_save_IFS | |
3502 | ||
3503 | fi | |
3504 | fi | |
3505 | CC=$ac_cv_prog_CC | |
3506 | if test -n "$CC"; then | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3508 | $as_echo "$CC" >&6; } | |
3509 | else | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3511 | $as_echo "no" >&6; } | |
3512 | fi | |
3513 | ||
3514 | ||
3515 | fi | |
3516 | fi | |
3517 | if test -z "$CC"; then | |
3518 | # Extract the first word of "cc", so it can be a program name with args. | |
3519 | set dummy cc; ac_word=$2 | |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3521 | $as_echo_n "checking for $ac_word... " >&6; } | |
3522 | if ${ac_cv_prog_CC+:} false; then : | |
3523 | $as_echo_n "(cached) " >&6 | |
3524 | else | |
3525 | if test -n "$CC"; then | |
3526 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3527 | else | |
3528 | ac_prog_rejected=no | |
3529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3530 | for as_dir in $PATH | |
3531 | do | |
3532 | IFS=$as_save_IFS | |
3533 | test -z "$as_dir" && as_dir=. | |
3534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3536 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3537 | ac_prog_rejected=yes | |
3538 | continue | |
3539 | fi | |
3540 | ac_cv_prog_CC="cc" | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3542 | break 2 | |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | IFS=$as_save_IFS | |
3547 | ||
3548 | if test $ac_prog_rejected = yes; then | |
3549 | # We found a bogon in the path, so make sure we never use it. | |
3550 | set dummy $ac_cv_prog_CC | |
3551 | shift | |
3552 | if test $# != 0; then | |
3553 | # We chose a different compiler from the bogus one. | |
3554 | # However, it has the same basename, so the bogon will be chosen | |
3555 | # first if we set CC to just the basename; use the full file name. | |
3556 | shift | |
3557 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3558 | fi | |
3559 | fi | |
3560 | fi | |
3561 | fi | |
3562 | CC=$ac_cv_prog_CC | |
3563 | if test -n "$CC"; then | |
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3565 | $as_echo "$CC" >&6; } | |
3566 | else | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3568 | $as_echo "no" >&6; } | |
3569 | fi | |
3570 | ||
3571 | ||
3572 | fi | |
3573 | if test -z "$CC"; then | |
3574 | if test -n "$ac_tool_prefix"; then | |
3575 | for ac_prog in cl.exe | |
3576 | do | |
3577 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3578 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3580 | $as_echo_n "checking for $ac_word... " >&6; } | |
3581 | if ${ac_cv_prog_CC+:} false; then : | |
3582 | $as_echo_n "(cached) " >&6 | |
3583 | else | |
3584 | if test -n "$CC"; then | |
3585 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3586 | else | |
3587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3588 | for as_dir in $PATH | |
3589 | do | |
3590 | IFS=$as_save_IFS | |
3591 | test -z "$as_dir" && as_dir=. | |
3592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3594 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3596 | break 2 | |
3597 | fi | |
3598 | done | |
3599 | done | |
3600 | IFS=$as_save_IFS | |
3601 | ||
3602 | fi | |
3603 | fi | |
3604 | CC=$ac_cv_prog_CC | |
3605 | if test -n "$CC"; then | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3607 | $as_echo "$CC" >&6; } | |
3608 | else | |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3610 | $as_echo "no" >&6; } | |
3611 | fi | |
3612 | ||
3613 | ||
3614 | test -n "$CC" && break | |
3615 | done | |
3616 | fi | |
3617 | if test -z "$CC"; then | |
3618 | ac_ct_CC=$CC | |
3619 | for ac_prog in cl.exe | |
3620 | do | |
3621 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3622 | set dummy $ac_prog; ac_word=$2 | |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3624 | $as_echo_n "checking for $ac_word... " >&6; } | |
3625 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3626 | $as_echo_n "(cached) " >&6 | |
3627 | else | |
3628 | if test -n "$ac_ct_CC"; then | |
3629 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3630 | else | |
3631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3632 | for as_dir in $PATH | |
3633 | do | |
3634 | IFS=$as_save_IFS | |
3635 | test -z "$as_dir" && as_dir=. | |
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3638 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3640 | break 2 | |
3641 | fi | |
3642 | done | |
3643 | done | |
3644 | IFS=$as_save_IFS | |
3645 | ||
3646 | fi | |
3647 | fi | |
3648 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3649 | if test -n "$ac_ct_CC"; then | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3651 | $as_echo "$ac_ct_CC" >&6; } | |
3652 | else | |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3654 | $as_echo "no" >&6; } | |
3655 | fi | |
3656 | ||
3657 | ||
3658 | test -n "$ac_ct_CC" && break | |
3659 | done | |
3660 | ||
3661 | if test "x$ac_ct_CC" = x; then | |
3662 | CC="" | |
3663 | else | |
3664 | case $cross_compiling:$ac_tool_warned in | |
3665 | yes:) | |
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3667 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3668 | ac_tool_warned=yes ;; | |
3669 | esac | |
3670 | CC=$ac_ct_CC | |
3671 | fi | |
3672 | fi | |
3673 | ||
3674 | fi | |
3675 | ||
3676 | ||
3677 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3679 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3680 | See \`config.log' for more details" "$LINENO" 5; } | |
3681 | ||
3682 | # Provide some information about the compiler. | |
3683 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3684 | set X $ac_compile | |
3685 | ac_compiler=$2 | |
3686 | for ac_option in --version -v -V -qversion; do | |
3687 | { { ac_try="$ac_compiler $ac_option >&5" | |
3688 | case "(($ac_try" in | |
3689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3690 | *) ac_try_echo=$ac_try;; | |
3691 | esac | |
3692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3693 | $as_echo "$ac_try_echo"; } >&5 | |
3694 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3695 | ac_status=$? | |
3696 | if test -s conftest.err; then | |
3697 | sed '10a\ | |
3698 | ... rest of stderr output deleted ... | |
3699 | 10q' conftest.err >conftest.er1 | |
3700 | cat conftest.er1 >&5 | |
3701 | fi | |
3702 | rm -f conftest.er1 conftest.err | |
3703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3704 | test $ac_status = 0; } | |
3705 | done | |
3706 | ||
3707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3708 | /* end confdefs.h. */ | |
3709 | ||
3710 | int | |
3711 | main () | |
3712 | { | |
3713 | ||
3714 | ; | |
3715 | return 0; | |
3716 | } | |
3717 | _ACEOF | |
3718 | ac_clean_files_save=$ac_clean_files | |
3719 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3720 | # Try to create an executable without -o first, disregard a.out. | |
3721 | # It will help us diagnose broken compilers, and finding out an intuition | |
3722 | # of exeext. | |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3724 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3725 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3726 | ||
3727 | # The possible output files: | |
3728 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3729 | ||
3730 | ac_rmfiles= | |
3731 | for ac_file in $ac_files | |
3732 | do | |
3733 | case $ac_file in | |
3734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3735 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3736 | esac | |
3737 | done | |
3738 | rm -f $ac_rmfiles | |
3739 | ||
3740 | if { { ac_try="$ac_link_default" | |
3741 | case "(($ac_try" in | |
3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3743 | *) ac_try_echo=$ac_try;; | |
3744 | esac | |
3745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3746 | $as_echo "$ac_try_echo"; } >&5 | |
3747 | (eval "$ac_link_default") 2>&5 | |
3748 | ac_status=$? | |
3749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3750 | test $ac_status = 0; }; then : | |
3751 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3752 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3753 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3754 | # so that the user can short-circuit this test for compilers unknown to | |
3755 | # Autoconf. | |
3756 | for ac_file in $ac_files '' | |
3757 | do | |
3758 | test -f "$ac_file" || continue | |
3759 | case $ac_file in | |
3760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3761 | ;; | |
3762 | [ab].out ) | |
3763 | # We found the default executable, but exeext='' is most | |
3764 | # certainly right. | |
3765 | break;; | |
3766 | *.* ) | |
3767 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3768 | then :; else | |
3769 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3770 | fi | |
3771 | # We set ac_cv_exeext here because the later test for it is not | |
3772 | # safe: cross compilers may not add the suffix if given an `-o' | |
3773 | # argument, so we may need to know it at that point already. | |
3774 | # Even if this section looks crufty: it has the advantage of | |
3775 | # actually working. | |
3776 | break;; | |
3777 | * ) | |
3778 | break;; | |
3779 | esac | |
3780 | done | |
3781 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3782 | ||
3783 | else | |
3784 | ac_file='' | |
3785 | fi | |
3786 | if test -z "$ac_file"; then : | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3788 | $as_echo "no" >&6; } | |
3789 | $as_echo "$as_me: failed program was:" >&5 | |
3790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3791 | ||
3792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3794 | as_fn_error 77 "C compiler cannot create executables | |
3795 | See \`config.log' for more details" "$LINENO" 5; } | |
3796 | else | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3798 | $as_echo "yes" >&6; } | |
3799 | fi | |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3801 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3803 | $as_echo "$ac_file" >&6; } | |
3804 | ac_exeext=$ac_cv_exeext | |
3805 | ||
3806 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3807 | ac_clean_files=$ac_clean_files_save | |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3809 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3810 | if { { ac_try="$ac_link" | |
3811 | case "(($ac_try" in | |
3812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3813 | *) ac_try_echo=$ac_try;; | |
3814 | esac | |
3815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3816 | $as_echo "$ac_try_echo"; } >&5 | |
3817 | (eval "$ac_link") 2>&5 | |
3818 | ac_status=$? | |
3819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3820 | test $ac_status = 0; }; then : | |
3821 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3822 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3823 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3824 | # `rm'. | |
3825 | for ac_file in conftest.exe conftest conftest.*; do | |
3826 | test -f "$ac_file" || continue | |
3827 | case $ac_file in | |
3828 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3829 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3830 | break;; | |
3831 | * ) break;; | |
3832 | esac | |
3833 | done | |
3834 | else | |
3835 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3837 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3838 | See \`config.log' for more details" "$LINENO" 5; } | |
3839 | fi | |
3840 | rm -f conftest conftest$ac_cv_exeext | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3842 | $as_echo "$ac_cv_exeext" >&6; } | |
3843 | ||
3844 | rm -f conftest.$ac_ext | |
3845 | EXEEXT=$ac_cv_exeext | |
3846 | ac_exeext=$EXEEXT | |
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3848 | /* end confdefs.h. */ | |
3849 | #include <stdio.h> | |
3850 | int | |
3851 | main () | |
3852 | { | |
3853 | FILE *f = fopen ("conftest.out", "w"); | |
3854 | return ferror (f) || fclose (f) != 0; | |
3855 | ||
3856 | ; | |
3857 | return 0; | |
3858 | } | |
3859 | _ACEOF | |
3860 | ac_clean_files="$ac_clean_files conftest.out" | |
3861 | # Check that the compiler produces executables we can run. If not, either | |
3862 | # the compiler is broken, or we cross compile. | |
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3864 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3865 | if test "$cross_compiling" != yes; then | |
3866 | { { ac_try="$ac_link" | |
3867 | case "(($ac_try" in | |
3868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3869 | *) ac_try_echo=$ac_try;; | |
3870 | esac | |
3871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3872 | $as_echo "$ac_try_echo"; } >&5 | |
3873 | (eval "$ac_link") 2>&5 | |
3874 | ac_status=$? | |
3875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3876 | test $ac_status = 0; } | |
3877 | if { ac_try='./conftest$ac_cv_exeext' | |
3878 | { { case "(($ac_try" in | |
3879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3880 | *) ac_try_echo=$ac_try;; | |
3881 | esac | |
3882 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3883 | $as_echo "$ac_try_echo"; } >&5 | |
3884 | (eval "$ac_try") 2>&5 | |
3885 | ac_status=$? | |
3886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3887 | test $ac_status = 0; }; }; then | |
3888 | cross_compiling=no | |
3889 | else | |
3890 | if test "$cross_compiling" = maybe; then | |
3891 | cross_compiling=yes | |
3892 | else | |
3893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3895 | as_fn_error $? "cannot run C compiled programs. | |
3896 | If you meant to cross compile, use \`--host'. | |
3897 | See \`config.log' for more details" "$LINENO" 5; } | |
3898 | fi | |
3899 | fi | |
3900 | fi | |
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3902 | $as_echo "$cross_compiling" >&6; } | |
3903 | ||
3904 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3905 | ac_clean_files=$ac_clean_files_save | |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3907 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3908 | if ${ac_cv_objext+:} false; then : | |
3909 | $as_echo_n "(cached) " >&6 | |
3910 | else | |
3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3912 | /* end confdefs.h. */ | |
3913 | ||
3914 | int | |
3915 | main () | |
3916 | { | |
3917 | ||
3918 | ; | |
3919 | return 0; | |
3920 | } | |
3921 | _ACEOF | |
3922 | rm -f conftest.o conftest.obj | |
3923 | if { { ac_try="$ac_compile" | |
3924 | case "(($ac_try" in | |
3925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3926 | *) ac_try_echo=$ac_try;; | |
3927 | esac | |
3928 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3929 | $as_echo "$ac_try_echo"; } >&5 | |
3930 | (eval "$ac_compile") 2>&5 | |
3931 | ac_status=$? | |
3932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3933 | test $ac_status = 0; }; then : | |
3934 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3935 | test -f "$ac_file" || continue; | |
3936 | case $ac_file in | |
3937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3938 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3939 | break;; | |
3940 | esac | |
3941 | done | |
3942 | else | |
3943 | $as_echo "$as_me: failed program was:" >&5 | |
3944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3945 | ||
3946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3948 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3949 | See \`config.log' for more details" "$LINENO" 5; } | |
3950 | fi | |
3951 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3952 | fi | |
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3954 | $as_echo "$ac_cv_objext" >&6; } | |
3955 | OBJEXT=$ac_cv_objext | |
3956 | ac_objext=$OBJEXT | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3958 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3959 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3960 | $as_echo_n "(cached) " >&6 | |
3961 | else | |
3962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3963 | /* end confdefs.h. */ | |
3964 | ||
3965 | int | |
3966 | main () | |
3967 | { | |
3968 | #ifndef __GNUC__ | |
3969 | choke me | |
3970 | #endif | |
3971 | ||
3972 | ; | |
3973 | return 0; | |
3974 | } | |
3975 | _ACEOF | |
3976 | if ac_fn_c_try_compile "$LINENO"; then : | |
3977 | ac_compiler_gnu=yes | |
3978 | else | |
3979 | ac_compiler_gnu=no | |
3980 | fi | |
3981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3982 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3983 | ||
3984 | fi | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3986 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3987 | if test $ac_compiler_gnu = yes; then | |
3988 | GCC=yes | |
3989 | else | |
3990 | GCC= | |
3991 | fi | |
3992 | ac_test_CFLAGS=${CFLAGS+set} | |
3993 | ac_save_CFLAGS=$CFLAGS | |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3995 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3996 | if ${ac_cv_prog_cc_g+:} false; then : | |
3997 | $as_echo_n "(cached) " >&6 | |
3998 | else | |
3999 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4000 | ac_c_werror_flag=yes | |
4001 | ac_cv_prog_cc_g=no | |
4002 | CFLAGS="-g" | |
4003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4004 | /* end confdefs.h. */ | |
4005 | ||
4006 | int | |
4007 | main () | |
4008 | { | |
4009 | ||
4010 | ; | |
4011 | return 0; | |
4012 | } | |
4013 | _ACEOF | |
4014 | if ac_fn_c_try_compile "$LINENO"; then : | |
4015 | ac_cv_prog_cc_g=yes | |
4016 | else | |
4017 | CFLAGS="" | |
4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4019 | /* end confdefs.h. */ | |
4020 | ||
4021 | int | |
4022 | main () | |
4023 | { | |
4024 | ||
4025 | ; | |
4026 | return 0; | |
4027 | } | |
4028 | _ACEOF | |
4029 | if ac_fn_c_try_compile "$LINENO"; then : | |
4030 | ||
4031 | else | |
4032 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4033 | CFLAGS="-g" | |
4034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4035 | /* end confdefs.h. */ | |
4036 | ||
4037 | int | |
4038 | main () | |
4039 | { | |
4040 | ||
4041 | ; | |
4042 | return 0; | |
4043 | } | |
4044 | _ACEOF | |
4045 | if ac_fn_c_try_compile "$LINENO"; then : | |
4046 | ac_cv_prog_cc_g=yes | |
4047 | fi | |
4048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4049 | fi | |
4050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4051 | fi | |
4052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4053 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4054 | fi | |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4056 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4057 | if test "$ac_test_CFLAGS" = set; then | |
4058 | CFLAGS=$ac_save_CFLAGS | |
4059 | elif test $ac_cv_prog_cc_g = yes; then | |
4060 | if test "$GCC" = yes; then | |
4061 | CFLAGS="-g -O2" | |
4062 | else | |
4063 | CFLAGS="-g" | |
4064 | fi | |
4065 | else | |
4066 | if test "$GCC" = yes; then | |
4067 | CFLAGS="-O2" | |
4068 | else | |
4069 | CFLAGS= | |
4070 | fi | |
4071 | fi | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4073 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4074 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4075 | $as_echo_n "(cached) " >&6 | |
4076 | else | |
4077 | ac_cv_prog_cc_c89=no | |
4078 | ac_save_CC=$CC | |
4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4080 | /* end confdefs.h. */ | |
4081 | #include <stdarg.h> | |
4082 | #include <stdio.h> | |
4083 | struct stat; | |
4084 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4085 | struct buf { int x; }; | |
4086 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4087 | static char *e (p, i) | |
4088 | char **p; | |
4089 | int i; | |
4090 | { | |
4091 | return p[i]; | |
4092 | } | |
4093 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4094 | { | |
4095 | char *s; | |
4096 | va_list v; | |
4097 | va_start (v,p); | |
4098 | s = g (p, va_arg (v,int)); | |
4099 | va_end (v); | |
4100 | return s; | |
4101 | } | |
4102 | ||
4103 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4104 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4105 | These don't provoke an error unfortunately, instead are silently treated | |
4106 | as 'x'. The following induces an error, until -std is added to get | |
4107 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4108 | array size at least. It's necessary to write '\x00'==0 to get something | |
4109 | that's true only with -std. */ | |
4110 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4111 | ||
4112 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4113 | inside strings and character constants. */ | |
4114 | #define FOO(x) 'x' | |
4115 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4116 | ||
4117 | int test (int i, double x); | |
4118 | struct s1 {int (*f) (int a);}; | |
4119 | struct s2 {int (*f) (double a);}; | |
4120 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4121 | int argc; | |
4122 | char **argv; | |
4123 | int | |
4124 | main () | |
4125 | { | |
4126 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4127 | ; | |
4128 | return 0; | |
4129 | } | |
4130 | _ACEOF | |
4131 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4132 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4133 | do | |
4134 | CC="$ac_save_CC $ac_arg" | |
4135 | if ac_fn_c_try_compile "$LINENO"; then : | |
4136 | ac_cv_prog_cc_c89=$ac_arg | |
4137 | fi | |
4138 | rm -f core conftest.err conftest.$ac_objext | |
4139 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4140 | done | |
4141 | rm -f conftest.$ac_ext | |
4142 | CC=$ac_save_CC | |
4143 | ||
4144 | fi | |
4145 | # AC_CACHE_VAL | |
4146 | case "x$ac_cv_prog_cc_c89" in | |
4147 | x) | |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4149 | $as_echo "none needed" >&6; } ;; | |
4150 | xno) | |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4152 | $as_echo "unsupported" >&6; } ;; | |
4153 | *) | |
4154 | CC="$CC $ac_cv_prog_cc_c89" | |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4156 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4157 | esac | |
4158 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4159 | ||
4160 | fi | |
4161 | ||
4162 | ac_ext=c | |
4163 | ac_cpp='$CPP $CPPFLAGS' | |
4164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4167 | ||
4168 | ac_ext=c | |
4169 | ac_cpp='$CPP $CPPFLAGS' | |
4170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4174 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4175 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4176 | $as_echo_n "(cached) " >&6 | |
4177 | else | |
4178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4179 | /* end confdefs.h. */ | |
4180 | ||
4181 | int | |
4182 | main () | |
4183 | { | |
4184 | ||
4185 | ; | |
4186 | return 0; | |
4187 | } | |
4188 | _ACEOF | |
4189 | # Make sure it works both with $CC and with simple cc. | |
4190 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4191 | # compilers refuse to overwrite an existing .o file with -o, | |
4192 | # though they will create one. | |
4193 | am_cv_prog_cc_c_o=yes | |
4194 | for am_i in 1 2; do | |
4195 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4196 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4197 | ac_status=$? | |
4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4199 | (exit $ac_status); } \ | |
4200 | && test -f conftest2.$ac_objext; then | |
4201 | : OK | |
4202 | else | |
4203 | am_cv_prog_cc_c_o=no | |
4204 | break | |
4205 | fi | |
4206 | done | |
4207 | rm -f core conftest* | |
4208 | unset am_i | |
4209 | fi | |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4211 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4212 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4213 | # Losing compiler, so override with the script. | |
4214 | # FIXME: It is wrong to rewrite CC. | |
4215 | # But if we don't then we get into trouble of one sort or another. | |
4216 | # A longer-term fix would be to have automake use am__CC in this case, | |
4217 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4218 | CC="$am_aux_dir/compile $CC" | |
4219 | fi | |
4220 | ac_ext=c | |
4221 | ac_cpp='$CPP $CPPFLAGS' | |
4222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4225 | ||
4226 | DEPDIR="${am__leading_dot}deps" | |
4227 | ||
4228 | ac_config_commands="$ac_config_commands depfiles" | |
4229 | ||
4230 | ||
4231 | am_make=${MAKE-make} | |
4232 | cat > confinc << 'END' | |
4233 | am__doit: | |
4234 | @echo this is the am__doit target | |
4235 | .PHONY: am__doit | |
4236 | END | |
4237 | # If we don't find an include directive, just comment out the code. | |
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4239 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4240 | am__include="#" | |
4241 | am__quote= | |
4242 | _am_result=none | |
4243 | # First try GNU make style include. | |
4244 | echo "include confinc" > confmf | |
4245 | # Ignore all kinds of additional output from 'make'. | |
4246 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4247 | *the\ am__doit\ target*) | |
4248 | am__include=include | |
4249 | am__quote= | |
4250 | _am_result=GNU | |
4251 | ;; | |
4252 | esac | |
4253 | # Now try BSD make style include. | |
4254 | if test "$am__include" = "#"; then | |
4255 | echo '.include "confinc"' > confmf | |
4256 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4257 | *the\ am__doit\ target*) | |
4258 | am__include=.include | |
4259 | am__quote="\"" | |
4260 | _am_result=BSD | |
4261 | ;; | |
4262 | esac | |
4263 | fi | |
4264 | ||
4265 | ||
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4267 | $as_echo "$_am_result" >&6; } | |
4268 | rm -f confinc confmf | |
4269 | ||
4270 | # Check whether --enable-dependency-tracking was given. | |
4271 | if test "${enable_dependency_tracking+set}" = set; then : | |
4272 | enableval=$enable_dependency_tracking; | |
4273 | fi | |
4274 | ||
4275 | if test "x$enable_dependency_tracking" != xno; then | |
4276 | am_depcomp="$ac_aux_dir/depcomp" | |
4277 | AMDEPBACKSLASH='\' | |
4278 | am__nodep='_no' | |
4279 | fi | |
4280 | if test "x$enable_dependency_tracking" != xno; then | |
4281 | AMDEP_TRUE= | |
4282 | AMDEP_FALSE='#' | |
4283 | else | |
4284 | AMDEP_TRUE='#' | |
4285 | AMDEP_FALSE= | |
4286 | fi | |
4287 | ||
4288 | ||
4289 | ||
4290 | depcc="$CC" am_compiler_list= | |
4291 | ||
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4293 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4294 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4295 | $as_echo_n "(cached) " >&6 | |
4296 | else | |
4297 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4298 | # We make a subdir and do the tests there. Otherwise we can end up | |
4299 | # making bogus files that we don't know about and never remove. For | |
4300 | # instance it was reported that on HP-UX the gcc test will end up | |
4301 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4302 | # in D". | |
4303 | rm -rf conftest.dir | |
4304 | mkdir conftest.dir | |
4305 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4306 | # using a relative directory. | |
4307 | cp "$am_depcomp" conftest.dir | |
4308 | cd conftest.dir | |
4309 | # We will build objects and dependencies in a subdirectory because | |
4310 | # it helps to detect inapplicable dependency modes. For instance | |
4311 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4312 | # side effect of compilation, but ICC will put the dependencies in | |
4313 | # the current directory while Tru64 will put them in the object | |
4314 | # directory. | |
4315 | mkdir sub | |
4316 | ||
4317 | am_cv_CC_dependencies_compiler_type=none | |
4318 | if test "$am_compiler_list" = ""; then | |
4319 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4320 | fi | |
4321 | am__universal=false | |
4322 | case " $depcc " in #( | |
4323 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4324 | esac | |
4325 | ||
4326 | for depmode in $am_compiler_list; do | |
4327 | # Setup a source with many dependencies, because some compilers | |
4328 | # like to wrap large dependency lists on column 80 (with \), and | |
4329 | # we should not choose a depcomp mode which is confused by this. | |
4330 | # | |
4331 | # We need to recreate these files for each test, as the compiler may | |
4332 | # overwrite some of them when testing with obscure command lines. | |
4333 | # This happens at least with the AIX C compiler. | |
4334 | : > sub/conftest.c | |
4335 | for i in 1 2 3 4 5 6; do | |
4336 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4337 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4338 | # Solaris 10 /bin/sh. | |
4339 | echo '/* dummy */' > sub/conftst$i.h | |
4340 | done | |
4341 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4342 | ||
4343 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4344 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4345 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4346 | # versions had trouble with output in subdirs. | |
4347 | am__obj=sub/conftest.${OBJEXT-o} | |
4348 | am__minus_obj="-o $am__obj" | |
4349 | case $depmode in | |
4350 | gcc) | |
4351 | # This depmode causes a compiler race in universal mode. | |
4352 | test "$am__universal" = false || continue | |
4353 | ;; | |
4354 | nosideeffect) | |
4355 | # After this tag, mechanisms are not by side-effect, so they'll | |
4356 | # only be used when explicitly requested. | |
4357 | if test "x$enable_dependency_tracking" = xyes; then | |
4358 | continue | |
4359 | else | |
4360 | break | |
4361 | fi | |
4362 | ;; | |
4363 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4364 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4365 | # not run yet. These depmodes are late enough in the game, and | |
4366 | # so weak that their functioning should not be impacted. | |
4367 | am__obj=conftest.${OBJEXT-o} | |
4368 | am__minus_obj= | |
4369 | ;; | |
4370 | none) break ;; | |
4371 | esac | |
4372 | if depmode=$depmode \ | |
4373 | source=sub/conftest.c object=$am__obj \ | |
4374 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4375 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4376 | >/dev/null 2>conftest.err && | |
4377 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4378 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4379 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4380 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4381 | # icc doesn't choke on unknown options, it will just issue warnings | |
4382 | # or remarks (even with -Werror). So we grep stderr for any message | |
4383 | # that says an option was ignored or not supported. | |
4384 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4385 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4386 | # The diagnosis changed in icc 8.0: | |
4387 | # icc: Command line remark: option '-MP' not supported | |
4388 | if (grep 'ignoring option' conftest.err || | |
4389 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4390 | am_cv_CC_dependencies_compiler_type=$depmode | |
4391 | break | |
4392 | fi | |
4393 | fi | |
4394 | done | |
4395 | ||
4396 | cd .. | |
4397 | rm -rf conftest.dir | |
4398 | else | |
4399 | am_cv_CC_dependencies_compiler_type=none | |
4400 | fi | |
4401 | ||
4402 | fi | |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4404 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4405 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4406 | ||
4407 | if | |
4408 | test "x$enable_dependency_tracking" != xno \ | |
4409 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4410 | am__fastdepCC_TRUE= | |
4411 | am__fastdepCC_FALSE='#' | |
4412 | else | |
4413 | am__fastdepCC_TRUE='#' | |
4414 | am__fastdepCC_FALSE= | |
4415 | fi | |
4416 | ||
4417 | ||
4418 | ||
4419 | ac_ext=cpp | |
4420 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4421 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4422 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4423 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4424 | if test -z "$CXX"; then | |
4425 | if test -n "$CCC"; then | |
4426 | CXX=$CCC | |
4427 | else | |
4428 | if test -n "$ac_tool_prefix"; then | |
4429 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4430 | do | |
4431 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4432 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4434 | $as_echo_n "checking for $ac_word... " >&6; } | |
4435 | if ${ac_cv_prog_CXX+:} false; then : | |
4436 | $as_echo_n "(cached) " >&6 | |
4437 | else | |
4438 | if test -n "$CXX"; then | |
4439 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4440 | else | |
4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4442 | for as_dir in $PATH | |
4443 | do | |
4444 | IFS=$as_save_IFS | |
4445 | test -z "$as_dir" && as_dir=. | |
4446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4448 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4450 | break 2 | |
4451 | fi | |
4452 | done | |
4453 | done | |
4454 | IFS=$as_save_IFS | |
4455 | ||
4456 | fi | |
4457 | fi | |
4458 | CXX=$ac_cv_prog_CXX | |
4459 | if test -n "$CXX"; then | |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4461 | $as_echo "$CXX" >&6; } | |
4462 | else | |
4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4464 | $as_echo "no" >&6; } | |
4465 | fi | |
4466 | ||
4467 | ||
4468 | test -n "$CXX" && break | |
4469 | done | |
4470 | fi | |
4471 | if test -z "$CXX"; then | |
4472 | ac_ct_CXX=$CXX | |
4473 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4474 | do | |
4475 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4476 | set dummy $ac_prog; ac_word=$2 | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4478 | $as_echo_n "checking for $ac_word... " >&6; } | |
4479 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
4480 | $as_echo_n "(cached) " >&6 | |
4481 | else | |
4482 | if test -n "$ac_ct_CXX"; then | |
4483 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4484 | else | |
4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4486 | for as_dir in $PATH | |
4487 | do | |
4488 | IFS=$as_save_IFS | |
4489 | test -z "$as_dir" && as_dir=. | |
4490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4492 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4494 | break 2 | |
4495 | fi | |
4496 | done | |
4497 | done | |
4498 | IFS=$as_save_IFS | |
4499 | ||
4500 | fi | |
4501 | fi | |
4502 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4503 | if test -n "$ac_ct_CXX"; then | |
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4505 | $as_echo "$ac_ct_CXX" >&6; } | |
4506 | else | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4508 | $as_echo "no" >&6; } | |
4509 | fi | |
4510 | ||
4511 | ||
4512 | test -n "$ac_ct_CXX" && break | |
4513 | done | |
4514 | ||
4515 | if test "x$ac_ct_CXX" = x; then | |
4516 | CXX="g++" | |
4517 | else | |
4518 | case $cross_compiling:$ac_tool_warned in | |
4519 | yes:) | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4521 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4522 | ac_tool_warned=yes ;; | |
4523 | esac | |
4524 | CXX=$ac_ct_CXX | |
4525 | fi | |
4526 | fi | |
4527 | ||
4528 | fi | |
4529 | fi | |
4530 | # Provide some information about the compiler. | |
4531 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4532 | set X $ac_compile | |
4533 | ac_compiler=$2 | |
4534 | for ac_option in --version -v -V -qversion; do | |
4535 | { { ac_try="$ac_compiler $ac_option >&5" | |
4536 | case "(($ac_try" in | |
4537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4538 | *) ac_try_echo=$ac_try;; | |
4539 | esac | |
4540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4541 | $as_echo "$ac_try_echo"; } >&5 | |
4542 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4543 | ac_status=$? | |
4544 | if test -s conftest.err; then | |
4545 | sed '10a\ | |
4546 | ... rest of stderr output deleted ... | |
4547 | 10q' conftest.err >conftest.er1 | |
4548 | cat conftest.er1 >&5 | |
4549 | fi | |
4550 | rm -f conftest.er1 conftest.err | |
4551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4552 | test $ac_status = 0; } | |
4553 | done | |
4554 | ||
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4556 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4557 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
4558 | $as_echo_n "(cached) " >&6 | |
4559 | else | |
4560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4561 | /* end confdefs.h. */ | |
4562 | ||
4563 | int | |
4564 | main () | |
4565 | { | |
4566 | #ifndef __GNUC__ | |
4567 | choke me | |
4568 | #endif | |
4569 | ||
4570 | ; | |
4571 | return 0; | |
4572 | } | |
4573 | _ACEOF | |
4574 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4575 | ac_compiler_gnu=yes | |
4576 | else | |
4577 | ac_compiler_gnu=no | |
4578 | fi | |
4579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4580 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4581 | ||
4582 | fi | |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4584 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4585 | if test $ac_compiler_gnu = yes; then | |
4586 | GXX=yes | |
4587 | else | |
4588 | GXX= | |
4589 | fi | |
4590 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4591 | ac_save_CXXFLAGS=$CXXFLAGS | |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4593 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4594 | if ${ac_cv_prog_cxx_g+:} false; then : | |
4595 | $as_echo_n "(cached) " >&6 | |
4596 | else | |
4597 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4598 | ac_cxx_werror_flag=yes | |
4599 | ac_cv_prog_cxx_g=no | |
4600 | CXXFLAGS="-g" | |
4601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4602 | /* end confdefs.h. */ | |
4603 | ||
4604 | int | |
4605 | main () | |
4606 | { | |
4607 | ||
4608 | ; | |
4609 | return 0; | |
4610 | } | |
4611 | _ACEOF | |
4612 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4613 | ac_cv_prog_cxx_g=yes | |
4614 | else | |
4615 | CXXFLAGS="" | |
4616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4617 | /* end confdefs.h. */ | |
4618 | ||
4619 | int | |
4620 | main () | |
4621 | { | |
4622 | ||
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
4627 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4628 | ||
4629 | else | |
4630 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4631 | CXXFLAGS="-g" | |
4632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4633 | /* end confdefs.h. */ | |
4634 | ||
4635 | int | |
4636 | main () | |
4637 | { | |
4638 | ||
4639 | ; | |
4640 | return 0; | |
4641 | } | |
4642 | _ACEOF | |
4643 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4644 | ac_cv_prog_cxx_g=yes | |
4645 | fi | |
4646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4647 | fi | |
4648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4649 | fi | |
4650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4651 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4652 | fi | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4654 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4655 | if test "$ac_test_CXXFLAGS" = set; then | |
4656 | CXXFLAGS=$ac_save_CXXFLAGS | |
4657 | elif test $ac_cv_prog_cxx_g = yes; then | |
4658 | if test "$GXX" = yes; then | |
4659 | CXXFLAGS="-g -O2" | |
4660 | else | |
4661 | CXXFLAGS="-g" | |
4662 | fi | |
4663 | else | |
4664 | if test "$GXX" = yes; then | |
4665 | CXXFLAGS="-O2" | |
4666 | else | |
4667 | CXXFLAGS= | |
4668 | fi | |
4669 | fi | |
4670 | ac_ext=c | |
4671 | ac_cpp='$CPP $CPPFLAGS' | |
4672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4675 | ||
4676 | depcc="$CXX" am_compiler_list= | |
4677 | ||
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4679 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4680 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
4681 | $as_echo_n "(cached) " >&6 | |
4682 | else | |
4683 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4684 | # We make a subdir and do the tests there. Otherwise we can end up | |
4685 | # making bogus files that we don't know about and never remove. For | |
4686 | # instance it was reported that on HP-UX the gcc test will end up | |
4687 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4688 | # in D". | |
4689 | rm -rf conftest.dir | |
4690 | mkdir conftest.dir | |
4691 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4692 | # using a relative directory. | |
4693 | cp "$am_depcomp" conftest.dir | |
4694 | cd conftest.dir | |
4695 | # We will build objects and dependencies in a subdirectory because | |
4696 | # it helps to detect inapplicable dependency modes. For instance | |
4697 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4698 | # side effect of compilation, but ICC will put the dependencies in | |
4699 | # the current directory while Tru64 will put them in the object | |
4700 | # directory. | |
4701 | mkdir sub | |
4702 | ||
4703 | am_cv_CXX_dependencies_compiler_type=none | |
4704 | if test "$am_compiler_list" = ""; then | |
4705 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4706 | fi | |
4707 | am__universal=false | |
4708 | case " $depcc " in #( | |
4709 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4710 | esac | |
4711 | ||
4712 | for depmode in $am_compiler_list; do | |
4713 | # Setup a source with many dependencies, because some compilers | |
4714 | # like to wrap large dependency lists on column 80 (with \), and | |
4715 | # we should not choose a depcomp mode which is confused by this. | |
4716 | # | |
4717 | # We need to recreate these files for each test, as the compiler may | |
4718 | # overwrite some of them when testing with obscure command lines. | |
4719 | # This happens at least with the AIX C compiler. | |
4720 | : > sub/conftest.c | |
4721 | for i in 1 2 3 4 5 6; do | |
4722 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4723 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4724 | # Solaris 10 /bin/sh. | |
4725 | echo '/* dummy */' > sub/conftst$i.h | |
4726 | done | |
4727 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4728 | ||
4729 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4730 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4731 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4732 | # versions had trouble with output in subdirs. | |
4733 | am__obj=sub/conftest.${OBJEXT-o} | |
4734 | am__minus_obj="-o $am__obj" | |
4735 | case $depmode in | |
4736 | gcc) | |
4737 | # This depmode causes a compiler race in universal mode. | |
4738 | test "$am__universal" = false || continue | |
4739 | ;; | |
4740 | nosideeffect) | |
4741 | # After this tag, mechanisms are not by side-effect, so they'll | |
4742 | # only be used when explicitly requested. | |
4743 | if test "x$enable_dependency_tracking" = xyes; then | |
4744 | continue | |
4745 | else | |
4746 | break | |
4747 | fi | |
4748 | ;; | |
4749 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4750 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4751 | # not run yet. These depmodes are late enough in the game, and | |
4752 | # so weak that their functioning should not be impacted. | |
4753 | am__obj=conftest.${OBJEXT-o} | |
4754 | am__minus_obj= | |
4755 | ;; | |
4756 | none) break ;; | |
4757 | esac | |
4758 | if depmode=$depmode \ | |
4759 | source=sub/conftest.c object=$am__obj \ | |
4760 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4761 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4762 | >/dev/null 2>conftest.err && | |
4763 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4764 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4765 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4766 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4767 | # icc doesn't choke on unknown options, it will just issue warnings | |
4768 | # or remarks (even with -Werror). So we grep stderr for any message | |
4769 | # that says an option was ignored or not supported. | |
4770 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4771 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4772 | # The diagnosis changed in icc 8.0: | |
4773 | # icc: Command line remark: option '-MP' not supported | |
4774 | if (grep 'ignoring option' conftest.err || | |
4775 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4776 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4777 | break | |
4778 | fi | |
4779 | fi | |
4780 | done | |
4781 | ||
4782 | cd .. | |
4783 | rm -rf conftest.dir | |
4784 | else | |
4785 | am_cv_CXX_dependencies_compiler_type=none | |
4786 | fi | |
4787 | ||
4788 | fi | |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4790 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4791 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4792 | ||
4793 | if | |
4794 | test "x$enable_dependency_tracking" != xno \ | |
4795 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4796 | am__fastdepCXX_TRUE= | |
4797 | am__fastdepCXX_FALSE='#' | |
4798 | else | |
4799 | am__fastdepCXX_TRUE='#' | |
4800 | am__fastdepCXX_FALSE= | |
4801 | fi | |
4802 | ||
4803 | ||
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4805 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4806 | if ${ac_cv_path_SED+:} false; then : | |
4807 | $as_echo_n "(cached) " >&6 | |
4808 | else | |
4809 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4810 | for ac_i in 1 2 3 4 5 6 7; do | |
4811 | ac_script="$ac_script$as_nl$ac_script" | |
4812 | done | |
4813 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4814 | { ac_script=; unset ac_script;} | |
4815 | if test -z "$SED"; then | |
4816 | ac_path_SED_found=false | |
4817 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4819 | for as_dir in $PATH | |
4820 | do | |
4821 | IFS=$as_save_IFS | |
4822 | test -z "$as_dir" && as_dir=. | |
4823 | for ac_prog in sed gsed; do | |
4824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4825 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4826 | as_fn_executable_p "$ac_path_SED" || continue | |
4827 | # Check for GNU ac_path_SED and select it if it is found. | |
4828 | # Check for GNU $ac_path_SED | |
4829 | case `"$ac_path_SED" --version 2>&1` in | |
4830 | *GNU*) | |
4831 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4832 | *) | |
4833 | ac_count=0 | |
4834 | $as_echo_n 0123456789 >"conftest.in" | |
4835 | while : | |
4836 | do | |
4837 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4838 | mv "conftest.tmp" "conftest.in" | |
4839 | cp "conftest.in" "conftest.nl" | |
4840 | $as_echo '' >> "conftest.nl" | |
4841 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4842 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4843 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4844 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4845 | # Best one so far, save it but keep looking for a better one | |
4846 | ac_cv_path_SED="$ac_path_SED" | |
4847 | ac_path_SED_max=$ac_count | |
4848 | fi | |
4849 | # 10*(2^10) chars as input seems more than enough | |
4850 | test $ac_count -gt 10 && break | |
4851 | done | |
4852 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4853 | esac | |
4854 | ||
4855 | $ac_path_SED_found && break 3 | |
4856 | done | |
4857 | done | |
4858 | done | |
4859 | IFS=$as_save_IFS | |
4860 | if test -z "$ac_cv_path_SED"; then | |
4861 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4862 | fi | |
4863 | else | |
4864 | ac_cv_path_SED=$SED | |
4865 | fi | |
4866 | ||
4867 | fi | |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4869 | $as_echo "$ac_cv_path_SED" >&6; } | |
4870 | SED="$ac_cv_path_SED" | |
4871 | rm -f conftest.sed | |
4872 | ||
4873 | ||
4874 | # Do not check for F77. | |
4875 | ||
4876 | case `pwd` in | |
4877 | *\ * | *\ *) | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4879 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4880 | esac | |
4881 | ||
4882 | ||
4883 | ||
4884 | macro_version='2.4.6' | |
4885 | macro_revision='2.4.6' | |
4886 | ||
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | ||
4894 | ||
4895 | ||
4896 | ||
4897 | ||
4898 | ||
4899 | ltmain=$ac_aux_dir/ltmain.sh | |
4900 | ||
4901 | # Backslashify metacharacters that are still active within | |
4902 | # double-quoted strings. | |
4903 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4904 | ||
4905 | # Same as above, but do not quote variable references. | |
4906 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4907 | ||
4908 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4909 | # double_quote_subst'ed string. | |
4910 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4911 | ||
4912 | # Sed substitution to delay expansion of an escaped single quote. | |
4913 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4914 | ||
4915 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4916 | no_glob_subst='s/\*/\\\*/g' | |
4917 | ||
4918 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4919 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4920 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4921 | ||
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4923 | $as_echo_n "checking how to print strings... " >&6; } | |
4924 | # Test print first, because it will be a builtin if present. | |
4925 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4926 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4927 | ECHO='print -r --' | |
4928 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4929 | ECHO='printf %s\n' | |
4930 | else | |
4931 | # Use this function as a fallback that always works. | |
4932 | func_fallback_echo () | |
4933 | { | |
4934 | eval 'cat <<_LTECHO_EOF | |
4935 | $1 | |
4936 | _LTECHO_EOF' | |
4937 | } | |
4938 | ECHO='func_fallback_echo' | |
4939 | fi | |
4940 | ||
4941 | # func_echo_all arg... | |
4942 | # Invoke $ECHO with all args, space-separated. | |
4943 | func_echo_all () | |
4944 | { | |
4945 | $ECHO "" | |
4946 | } | |
4947 | ||
4948 | case $ECHO in | |
4949 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4950 | $as_echo "printf" >&6; } ;; | |
4951 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4952 | $as_echo "print -r" >&6; } ;; | |
4953 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4954 | $as_echo "cat" >&6; } ;; | |
4955 | esac | |
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4971 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4972 | if ${ac_cv_path_SED+:} false; then : | |
4973 | $as_echo_n "(cached) " >&6 | |
4974 | else | |
4975 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4976 | for ac_i in 1 2 3 4 5 6 7; do | |
4977 | ac_script="$ac_script$as_nl$ac_script" | |
4978 | done | |
4979 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4980 | { ac_script=; unset ac_script;} | |
4981 | if test -z "$SED"; then | |
4982 | ac_path_SED_found=false | |
4983 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4985 | for as_dir in $PATH | |
4986 | do | |
4987 | IFS=$as_save_IFS | |
4988 | test -z "$as_dir" && as_dir=. | |
4989 | for ac_prog in sed gsed; do | |
4990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4991 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4992 | as_fn_executable_p "$ac_path_SED" || continue | |
4993 | # Check for GNU ac_path_SED and select it if it is found. | |
4994 | # Check for GNU $ac_path_SED | |
4995 | case `"$ac_path_SED" --version 2>&1` in | |
4996 | *GNU*) | |
4997 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4998 | *) | |
4999 | ac_count=0 | |
5000 | $as_echo_n 0123456789 >"conftest.in" | |
5001 | while : | |
5002 | do | |
5003 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5004 | mv "conftest.tmp" "conftest.in" | |
5005 | cp "conftest.in" "conftest.nl" | |
5006 | $as_echo '' >> "conftest.nl" | |
5007 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5008 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5009 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5010 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5011 | # Best one so far, save it but keep looking for a better one | |
5012 | ac_cv_path_SED="$ac_path_SED" | |
5013 | ac_path_SED_max=$ac_count | |
5014 | fi | |
5015 | # 10*(2^10) chars as input seems more than enough | |
5016 | test $ac_count -gt 10 && break | |
5017 | done | |
5018 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5019 | esac | |
5020 | ||
5021 | $ac_path_SED_found && break 3 | |
5022 | done | |
5023 | done | |
5024 | done | |
5025 | IFS=$as_save_IFS | |
5026 | if test -z "$ac_cv_path_SED"; then | |
5027 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5028 | fi | |
5029 | else | |
5030 | ac_cv_path_SED=$SED | |
5031 | fi | |
5032 | ||
5033 | fi | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5035 | $as_echo "$ac_cv_path_SED" >&6; } | |
5036 | SED="$ac_cv_path_SED" | |
5037 | rm -f conftest.sed | |
5038 | ||
5039 | test -z "$SED" && SED=sed | |
5040 | Xsed="$SED -e 1s/^X//" | |
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | ||
5047 | ||
5048 | ||
5049 | ||
5050 | ||
5051 | ||
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5053 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5054 | if ${ac_cv_path_GREP+:} false; then : | |
5055 | $as_echo_n "(cached) " >&6 | |
5056 | else | |
5057 | if test -z "$GREP"; then | |
5058 | ac_path_GREP_found=false | |
5059 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5061 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5062 | do | |
5063 | IFS=$as_save_IFS | |
5064 | test -z "$as_dir" && as_dir=. | |
5065 | for ac_prog in grep ggrep; do | |
5066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5067 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5068 | as_fn_executable_p "$ac_path_GREP" || continue | |
5069 | # Check for GNU ac_path_GREP and select it if it is found. | |
5070 | # Check for GNU $ac_path_GREP | |
5071 | case `"$ac_path_GREP" --version 2>&1` in | |
5072 | *GNU*) | |
5073 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5074 | *) | |
5075 | ac_count=0 | |
5076 | $as_echo_n 0123456789 >"conftest.in" | |
5077 | while : | |
5078 | do | |
5079 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5080 | mv "conftest.tmp" "conftest.in" | |
5081 | cp "conftest.in" "conftest.nl" | |
5082 | $as_echo 'GREP' >> "conftest.nl" | |
5083 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5084 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5085 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5086 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5087 | # Best one so far, save it but keep looking for a better one | |
5088 | ac_cv_path_GREP="$ac_path_GREP" | |
5089 | ac_path_GREP_max=$ac_count | |
5090 | fi | |
5091 | # 10*(2^10) chars as input seems more than enough | |
5092 | test $ac_count -gt 10 && break | |
5093 | done | |
5094 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5095 | esac | |
5096 | ||
5097 | $ac_path_GREP_found && break 3 | |
5098 | done | |
5099 | done | |
5100 | done | |
5101 | IFS=$as_save_IFS | |
5102 | if test -z "$ac_cv_path_GREP"; then | |
5103 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5104 | fi | |
5105 | else | |
5106 | ac_cv_path_GREP=$GREP | |
5107 | fi | |
5108 | ||
5109 | fi | |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5111 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5112 | GREP="$ac_cv_path_GREP" | |
5113 | ||
5114 | ||
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5116 | $as_echo_n "checking for egrep... " >&6; } | |
5117 | if ${ac_cv_path_EGREP+:} false; then : | |
5118 | $as_echo_n "(cached) " >&6 | |
5119 | else | |
5120 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5121 | then ac_cv_path_EGREP="$GREP -E" | |
5122 | else | |
5123 | if test -z "$EGREP"; then | |
5124 | ac_path_EGREP_found=false | |
5125 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5127 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5128 | do | |
5129 | IFS=$as_save_IFS | |
5130 | test -z "$as_dir" && as_dir=. | |
5131 | for ac_prog in egrep; do | |
5132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5133 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5134 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5135 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5136 | # Check for GNU $ac_path_EGREP | |
5137 | case `"$ac_path_EGREP" --version 2>&1` in | |
5138 | *GNU*) | |
5139 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5140 | *) | |
5141 | ac_count=0 | |
5142 | $as_echo_n 0123456789 >"conftest.in" | |
5143 | while : | |
5144 | do | |
5145 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5146 | mv "conftest.tmp" "conftest.in" | |
5147 | cp "conftest.in" "conftest.nl" | |
5148 | $as_echo 'EGREP' >> "conftest.nl" | |
5149 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5150 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5151 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5152 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5153 | # Best one so far, save it but keep looking for a better one | |
5154 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5155 | ac_path_EGREP_max=$ac_count | |
5156 | fi | |
5157 | # 10*(2^10) chars as input seems more than enough | |
5158 | test $ac_count -gt 10 && break | |
5159 | done | |
5160 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5161 | esac | |
5162 | ||
5163 | $ac_path_EGREP_found && break 3 | |
5164 | done | |
5165 | done | |
5166 | done | |
5167 | IFS=$as_save_IFS | |
5168 | if test -z "$ac_cv_path_EGREP"; then | |
5169 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5170 | fi | |
5171 | else | |
5172 | ac_cv_path_EGREP=$EGREP | |
5173 | fi | |
5174 | ||
5175 | fi | |
5176 | fi | |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5178 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5179 | EGREP="$ac_cv_path_EGREP" | |
5180 | ||
5181 | ||
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5183 | $as_echo_n "checking for fgrep... " >&6; } | |
5184 | if ${ac_cv_path_FGREP+:} false; then : | |
5185 | $as_echo_n "(cached) " >&6 | |
5186 | else | |
5187 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5188 | then ac_cv_path_FGREP="$GREP -F" | |
5189 | else | |
5190 | if test -z "$FGREP"; then | |
5191 | ac_path_FGREP_found=false | |
5192 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5194 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5195 | do | |
5196 | IFS=$as_save_IFS | |
5197 | test -z "$as_dir" && as_dir=. | |
5198 | for ac_prog in fgrep; do | |
5199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5200 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5201 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5202 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5203 | # Check for GNU $ac_path_FGREP | |
5204 | case `"$ac_path_FGREP" --version 2>&1` in | |
5205 | *GNU*) | |
5206 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5207 | *) | |
5208 | ac_count=0 | |
5209 | $as_echo_n 0123456789 >"conftest.in" | |
5210 | while : | |
5211 | do | |
5212 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5213 | mv "conftest.tmp" "conftest.in" | |
5214 | cp "conftest.in" "conftest.nl" | |
5215 | $as_echo 'FGREP' >> "conftest.nl" | |
5216 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5217 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5218 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5219 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5220 | # Best one so far, save it but keep looking for a better one | |
5221 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5222 | ac_path_FGREP_max=$ac_count | |
5223 | fi | |
5224 | # 10*(2^10) chars as input seems more than enough | |
5225 | test $ac_count -gt 10 && break | |
5226 | done | |
5227 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5228 | esac | |
5229 | ||
5230 | $ac_path_FGREP_found && break 3 | |
5231 | done | |
5232 | done | |
5233 | done | |
5234 | IFS=$as_save_IFS | |
5235 | if test -z "$ac_cv_path_FGREP"; then | |
5236 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5237 | fi | |
5238 | else | |
5239 | ac_cv_path_FGREP=$FGREP | |
5240 | fi | |
5241 | ||
5242 | fi | |
5243 | fi | |
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5245 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5246 | FGREP="$ac_cv_path_FGREP" | |
5247 | ||
5248 | ||
5249 | test -z "$GREP" && GREP=grep | |
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | # Check whether --with-gnu-ld was given. | |
5270 | if test "${with_gnu_ld+set}" = set; then : | |
5271 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
5272 | else | |
5273 | with_gnu_ld=no | |
5274 | fi | |
5275 | ||
5276 | ac_prog=ld | |
5277 | if test yes = "$GCC"; then | |
5278 | # Check if gcc -print-prog-name=ld gives a path. | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5280 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5281 | case $host in | |
5282 | *-*-mingw*) | |
5283 | # gcc leaves a trailing carriage return, which upsets mingw | |
5284 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5285 | *) | |
5286 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5287 | esac | |
5288 | case $ac_prog in | |
5289 | # Accept absolute paths. | |
5290 | [\\/]* | ?:[\\/]*) | |
5291 | re_direlt='/[^/][^/]*/\.\./' | |
5292 | # Canonicalize the pathname of ld | |
5293 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5294 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5295 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5296 | done | |
5297 | test -z "$LD" && LD=$ac_prog | |
5298 | ;; | |
5299 | "") | |
5300 | # If it fails, then pretend we aren't using GCC. | |
5301 | ac_prog=ld | |
5302 | ;; | |
5303 | *) | |
5304 | # If it is relative, then search for the first ld in PATH. | |
5305 | with_gnu_ld=unknown | |
5306 | ;; | |
5307 | esac | |
5308 | elif test yes = "$with_gnu_ld"; then | |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5310 | $as_echo_n "checking for GNU ld... " >&6; } | |
5311 | else | |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5313 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5314 | fi | |
5315 | if ${lt_cv_path_LD+:} false; then : | |
5316 | $as_echo_n "(cached) " >&6 | |
5317 | else | |
5318 | if test -z "$LD"; then | |
5319 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5320 | for ac_dir in $PATH; do | |
5321 | IFS=$lt_save_ifs | |
5322 | test -z "$ac_dir" && ac_dir=. | |
5323 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5324 | lt_cv_path_LD=$ac_dir/$ac_prog | |
5325 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5326 | # but apparently some variants of GNU ld only accept -v. | |
5327 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5328 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5329 | *GNU* | *'with BFD'*) | |
5330 | test no != "$with_gnu_ld" && break | |
5331 | ;; | |
5332 | *) | |
5333 | test yes != "$with_gnu_ld" && break | |
5334 | ;; | |
5335 | esac | |
5336 | fi | |
5337 | done | |
5338 | IFS=$lt_save_ifs | |
5339 | else | |
5340 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
5341 | fi | |
5342 | fi | |
5343 | ||
5344 | LD=$lt_cv_path_LD | |
5345 | if test -n "$LD"; then | |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5347 | $as_echo "$LD" >&6; } | |
5348 | else | |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5350 | $as_echo "no" >&6; } | |
5351 | fi | |
5352 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5354 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5355 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5356 | $as_echo_n "(cached) " >&6 | |
5357 | else | |
5358 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5359 | case `$LD -v 2>&1 </dev/null` in | |
5360 | *GNU* | *'with BFD'*) | |
5361 | lt_cv_prog_gnu_ld=yes | |
5362 | ;; | |
5363 | *) | |
5364 | lt_cv_prog_gnu_ld=no | |
5365 | ;; | |
5366 | esac | |
5367 | fi | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5369 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5370 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5371 | ||
5372 | ||
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5381 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5382 | if ${lt_cv_path_NM+:} false; then : | |
5383 | $as_echo_n "(cached) " >&6 | |
5384 | else | |
5385 | if test -n "$NM"; then | |
5386 | # Let the user override the test. | |
5387 | lt_cv_path_NM=$NM | |
5388 | else | |
5389 | lt_nm_to_check=${ac_tool_prefix}nm | |
5390 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5391 | lt_nm_to_check="$lt_nm_to_check nm" | |
5392 | fi | |
5393 | for lt_tmp_nm in $lt_nm_to_check; do | |
5394 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5395 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5396 | IFS=$lt_save_ifs | |
5397 | test -z "$ac_dir" && ac_dir=. | |
5398 | tmp_nm=$ac_dir/$lt_tmp_nm | |
5399 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
5400 | # Check to see if the nm accepts a BSD-compat flag. | |
5401 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
5402 | # nm: unknown option "B" ignored | |
5403 | # Tru64's nm complains that /dev/null is an invalid object file | |
5404 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
5405 | case $build_os in | |
5406 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5407 | *) lt_bad_file=/dev/null ;; | |
5408 | esac | |
5409 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5410 | *$lt_bad_file* | *'Invalid file or object type'*) | |
5411 | lt_cv_path_NM="$tmp_nm -B" | |
5412 | break 2 | |
5413 | ;; | |
5414 | *) | |
5415 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5416 | */dev/null*) | |
5417 | lt_cv_path_NM="$tmp_nm -p" | |
5418 | break 2 | |
5419 | ;; | |
5420 | *) | |
5421 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5422 | continue # so that we can try to find one that supports BSD flags | |
5423 | ;; | |
5424 | esac | |
5425 | ;; | |
5426 | esac | |
5427 | fi | |
5428 | done | |
5429 | IFS=$lt_save_ifs | |
5430 | done | |
5431 | : ${lt_cv_path_NM=no} | |
5432 | fi | |
5433 | fi | |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5435 | $as_echo "$lt_cv_path_NM" >&6; } | |
5436 | if test no != "$lt_cv_path_NM"; then | |
5437 | NM=$lt_cv_path_NM | |
5438 | else | |
5439 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5440 | if test -n "$DUMPBIN"; then : | |
5441 | # Let the user override the test. | |
5442 | else | |
5443 | if test -n "$ac_tool_prefix"; then | |
5444 | for ac_prog in dumpbin "link -dump" | |
5445 | do | |
5446 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5447 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5449 | $as_echo_n "checking for $ac_word... " >&6; } | |
5450 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5451 | $as_echo_n "(cached) " >&6 | |
5452 | else | |
5453 | if test -n "$DUMPBIN"; then | |
5454 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5455 | else | |
5456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5457 | for as_dir in $PATH | |
5458 | do | |
5459 | IFS=$as_save_IFS | |
5460 | test -z "$as_dir" && as_dir=. | |
5461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5463 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5465 | break 2 | |
5466 | fi | |
5467 | done | |
5468 | done | |
5469 | IFS=$as_save_IFS | |
5470 | ||
5471 | fi | |
5472 | fi | |
5473 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5474 | if test -n "$DUMPBIN"; then | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5476 | $as_echo "$DUMPBIN" >&6; } | |
5477 | else | |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5479 | $as_echo "no" >&6; } | |
5480 | fi | |
5481 | ||
5482 | ||
5483 | test -n "$DUMPBIN" && break | |
5484 | done | |
5485 | fi | |
5486 | if test -z "$DUMPBIN"; then | |
5487 | ac_ct_DUMPBIN=$DUMPBIN | |
5488 | for ac_prog in dumpbin "link -dump" | |
5489 | do | |
5490 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5491 | set dummy $ac_prog; ac_word=$2 | |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5493 | $as_echo_n "checking for $ac_word... " >&6; } | |
5494 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5495 | $as_echo_n "(cached) " >&6 | |
5496 | else | |
5497 | if test -n "$ac_ct_DUMPBIN"; then | |
5498 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5499 | else | |
5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5501 | for as_dir in $PATH | |
5502 | do | |
5503 | IFS=$as_save_IFS | |
5504 | test -z "$as_dir" && as_dir=. | |
5505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5507 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5509 | break 2 | |
5510 | fi | |
5511 | done | |
5512 | done | |
5513 | IFS=$as_save_IFS | |
5514 | ||
5515 | fi | |
5516 | fi | |
5517 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5518 | if test -n "$ac_ct_DUMPBIN"; then | |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5520 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5521 | else | |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5523 | $as_echo "no" >&6; } | |
5524 | fi | |
5525 | ||
5526 | ||
5527 | test -n "$ac_ct_DUMPBIN" && break | |
5528 | done | |
5529 | ||
5530 | if test "x$ac_ct_DUMPBIN" = x; then | |
5531 | DUMPBIN=":" | |
5532 | else | |
5533 | case $cross_compiling:$ac_tool_warned in | |
5534 | yes:) | |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5536 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5537 | ac_tool_warned=yes ;; | |
5538 | esac | |
5539 | DUMPBIN=$ac_ct_DUMPBIN | |
5540 | fi | |
5541 | fi | |
5542 | ||
5543 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
5544 | *COFF*) | |
5545 | DUMPBIN="$DUMPBIN -symbols -headers" | |
5546 | ;; | |
5547 | *) | |
5548 | DUMPBIN=: | |
5549 | ;; | |
5550 | esac | |
5551 | fi | |
5552 | ||
5553 | if test : != "$DUMPBIN"; then | |
5554 | NM=$DUMPBIN | |
5555 | fi | |
5556 | fi | |
5557 | test -z "$NM" && NM=nm | |
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5565 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5566 | if ${lt_cv_nm_interface+:} false; then : | |
5567 | $as_echo_n "(cached) " >&6 | |
5568 | else | |
5569 | lt_cv_nm_interface="BSD nm" | |
5570 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5571 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5572 | (eval "$ac_compile" 2>conftest.err) | |
5573 | cat conftest.err >&5 | |
5574 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5575 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5576 | cat conftest.err >&5 | |
5577 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5578 | cat conftest.out >&5 | |
5579 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5580 | lt_cv_nm_interface="MS dumpbin" | |
5581 | fi | |
5582 | rm -f conftest* | |
5583 | fi | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5585 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5586 | ||
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5588 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5589 | LN_S=$as_ln_s | |
5590 | if test "$LN_S" = "ln -s"; then | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5592 | $as_echo "yes" >&6; } | |
5593 | else | |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5595 | $as_echo "no, using $LN_S" >&6; } | |
5596 | fi | |
5597 | ||
5598 | # find the maximum length of command line arguments | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5600 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5601 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | else | |
5604 | i=0 | |
5605 | teststring=ABCD | |
5606 | ||
5607 | case $build_os in | |
5608 | msdosdjgpp*) | |
5609 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5610 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5611 | # during glob expansion). Even if it were fixed, the result of this | |
5612 | # check would be larger than it should be. | |
5613 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5614 | ;; | |
5615 | ||
5616 | gnu*) | |
5617 | # Under GNU Hurd, this test is not required because there is | |
5618 | # no limit to the length of command line arguments. | |
5619 | # Libtool will interpret -1 as no limit whatsoever | |
5620 | lt_cv_sys_max_cmd_len=-1; | |
5621 | ;; | |
5622 | ||
5623 | cygwin* | mingw* | cegcc*) | |
5624 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5625 | # about 5 minutes as the teststring grows exponentially. | |
5626 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5627 | # you end up with a "frozen" computer, even though with patience | |
5628 | # the test eventually succeeds (with a max line length of 256k). | |
5629 | # Instead, let's just punt: use the minimum linelength reported by | |
5630 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5631 | lt_cv_sys_max_cmd_len=8192; | |
5632 | ;; | |
5633 | ||
5634 | mint*) | |
5635 | # On MiNT this can take a long time and run out of memory. | |
5636 | lt_cv_sys_max_cmd_len=8192; | |
5637 | ;; | |
5638 | ||
5639 | amigaos*) | |
5640 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5641 | # So we just punt and use a minimum line length of 8192. | |
5642 | lt_cv_sys_max_cmd_len=8192; | |
5643 | ;; | |
5644 | ||
5645 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
5646 | # This has been around since 386BSD, at least. Likely further. | |
5647 | if test -x /sbin/sysctl; then | |
5648 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5649 | elif test -x /usr/sbin/sysctl; then | |
5650 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5651 | else | |
5652 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5653 | fi | |
5654 | # And add a safety zone | |
5655 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5656 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5657 | ;; | |
5658 | ||
5659 | interix*) | |
5660 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5661 | lt_cv_sys_max_cmd_len=196608 | |
5662 | ;; | |
5663 | ||
5664 | os2*) | |
5665 | # The test takes a long time on OS/2. | |
5666 | lt_cv_sys_max_cmd_len=8192 | |
5667 | ;; | |
5668 | ||
5669 | osf*) | |
5670 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5671 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5672 | # nice to cause kernel panics so lets avoid the loop below. | |
5673 | # First set a reasonable default. | |
5674 | lt_cv_sys_max_cmd_len=16384 | |
5675 | # | |
5676 | if test -x /sbin/sysconfig; then | |
5677 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5678 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5679 | esac | |
5680 | fi | |
5681 | ;; | |
5682 | sco3.2v5*) | |
5683 | lt_cv_sys_max_cmd_len=102400 | |
5684 | ;; | |
5685 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5686 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5687 | if test -n "$kargmax"; then | |
5688 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5689 | else | |
5690 | lt_cv_sys_max_cmd_len=32768 | |
5691 | fi | |
5692 | ;; | |
5693 | *) | |
5694 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5695 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5696 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5697 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5698 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5699 | else | |
5700 | # Make teststring a little bigger before we do anything with it. | |
5701 | # a 1K string should be a reasonable start. | |
5702 | for i in 1 2 3 4 5 6 7 8; do | |
5703 | teststring=$teststring$teststring | |
5704 | done | |
5705 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5706 | # If test is not a shell built-in, we'll probably end up computing a | |
5707 | # maximum length that is only half of the actual maximum length, but | |
5708 | # we can't tell. | |
5709 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
5710 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5711 | test 17 != "$i" # 1/2 MB should be enough | |
5712 | do | |
5713 | i=`expr $i + 1` | |
5714 | teststring=$teststring$teststring | |
5715 | done | |
5716 | # Only check the string length outside the loop. | |
5717 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5718 | teststring= | |
5719 | # Add a significant safety factor because C++ compilers can tack on | |
5720 | # massive amounts of additional arguments before passing them to the | |
5721 | # linker. It appears as though 1/2 is a usable value. | |
5722 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5723 | fi | |
5724 | ;; | |
5725 | esac | |
5726 | ||
5727 | fi | |
5728 | ||
5729 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5731 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5732 | else | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5734 | $as_echo "none" >&6; } | |
5735 | fi | |
5736 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | : ${CP="cp -f"} | |
5744 | : ${MV="mv -f"} | |
5745 | : ${RM="rm -f"} | |
5746 | ||
5747 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5748 | lt_unset=unset | |
5749 | else | |
5750 | lt_unset=false | |
5751 | fi | |
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | # test EBCDIC or ASCII | |
5758 | case `echo X|tr X '\101'` in | |
5759 | A) # ASCII based system | |
5760 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5761 | lt_SP2NL='tr \040 \012' | |
5762 | lt_NL2SP='tr \015\012 \040\040' | |
5763 | ;; | |
5764 | *) # EBCDIC based system | |
5765 | lt_SP2NL='tr \100 \n' | |
5766 | lt_NL2SP='tr \r\n \100\100' | |
5767 | ;; | |
5768 | esac | |
5769 | ||
5770 | ||
5771 | ||
5772 | ||
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5779 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5780 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5781 | $as_echo_n "(cached) " >&6 | |
5782 | else | |
5783 | case $host in | |
5784 | *-*-mingw* ) | |
5785 | case $build in | |
5786 | *-*-mingw* ) # actually msys | |
5787 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5788 | ;; | |
5789 | *-*-cygwin* ) | |
5790 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5791 | ;; | |
5792 | * ) # otherwise, assume *nix | |
5793 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5794 | ;; | |
5795 | esac | |
5796 | ;; | |
5797 | *-*-cygwin* ) | |
5798 | case $build in | |
5799 | *-*-mingw* ) # actually msys | |
5800 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5801 | ;; | |
5802 | *-*-cygwin* ) | |
5803 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5804 | ;; | |
5805 | * ) # otherwise, assume *nix | |
5806 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5807 | ;; | |
5808 | esac | |
5809 | ;; | |
5810 | * ) # unhandled hosts (and "normal" native builds) | |
5811 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5812 | ;; | |
5813 | esac | |
5814 | ||
5815 | fi | |
5816 | ||
5817 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5819 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5826 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5827 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5828 | $as_echo_n "(cached) " >&6 | |
5829 | else | |
5830 | #assume ordinary cross tools, or native build. | |
5831 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5832 | case $host in | |
5833 | *-*-mingw* ) | |
5834 | case $build in | |
5835 | *-*-mingw* ) # actually msys | |
5836 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5837 | ;; | |
5838 | esac | |
5839 | ;; | |
5840 | esac | |
5841 | ||
5842 | fi | |
5843 | ||
5844 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5846 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5847 | ||
5848 | ||
5849 | ||
5850 | ||
5851 | ||
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5853 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5854 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5855 | $as_echo_n "(cached) " >&6 | |
5856 | else | |
5857 | lt_cv_ld_reload_flag='-r' | |
5858 | fi | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5860 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5861 | reload_flag=$lt_cv_ld_reload_flag | |
5862 | case $reload_flag in | |
5863 | "" | " "*) ;; | |
5864 | *) reload_flag=" $reload_flag" ;; | |
5865 | esac | |
5866 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5867 | case $host_os in | |
5868 | cygwin* | mingw* | pw32* | cegcc*) | |
5869 | if test yes != "$GCC"; then | |
5870 | reload_cmds=false | |
5871 | fi | |
5872 | ;; | |
5873 | darwin*) | |
5874 | if test yes = "$GCC"; then | |
5875 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5876 | else | |
5877 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5878 | fi | |
5879 | ;; | |
5880 | esac | |
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | if test -n "$ac_tool_prefix"; then | |
5891 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5892 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5894 | $as_echo_n "checking for $ac_word... " >&6; } | |
5895 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5896 | $as_echo_n "(cached) " >&6 | |
5897 | else | |
5898 | if test -n "$OBJDUMP"; then | |
5899 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5900 | else | |
5901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5902 | for as_dir in $PATH | |
5903 | do | |
5904 | IFS=$as_save_IFS | |
5905 | test -z "$as_dir" && as_dir=. | |
5906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5908 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5910 | break 2 | |
5911 | fi | |
5912 | done | |
5913 | done | |
5914 | IFS=$as_save_IFS | |
5915 | ||
5916 | fi | |
5917 | fi | |
5918 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5919 | if test -n "$OBJDUMP"; then | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5921 | $as_echo "$OBJDUMP" >&6; } | |
5922 | else | |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5924 | $as_echo "no" >&6; } | |
5925 | fi | |
5926 | ||
5927 | ||
5928 | fi | |
5929 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5930 | ac_ct_OBJDUMP=$OBJDUMP | |
5931 | # Extract the first word of "objdump", so it can be a program name with args. | |
5932 | set dummy objdump; ac_word=$2 | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5934 | $as_echo_n "checking for $ac_word... " >&6; } | |
5935 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5936 | $as_echo_n "(cached) " >&6 | |
5937 | else | |
5938 | if test -n "$ac_ct_OBJDUMP"; then | |
5939 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5940 | else | |
5941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5942 | for as_dir in $PATH | |
5943 | do | |
5944 | IFS=$as_save_IFS | |
5945 | test -z "$as_dir" && as_dir=. | |
5946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5948 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5950 | break 2 | |
5951 | fi | |
5952 | done | |
5953 | done | |
5954 | IFS=$as_save_IFS | |
5955 | ||
5956 | fi | |
5957 | fi | |
5958 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5959 | if test -n "$ac_ct_OBJDUMP"; then | |
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5961 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5962 | else | |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5964 | $as_echo "no" >&6; } | |
5965 | fi | |
5966 | ||
5967 | if test "x$ac_ct_OBJDUMP" = x; then | |
5968 | OBJDUMP="false" | |
5969 | else | |
5970 | case $cross_compiling:$ac_tool_warned in | |
5971 | yes:) | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5974 | ac_tool_warned=yes ;; | |
5975 | esac | |
5976 | OBJDUMP=$ac_ct_OBJDUMP | |
5977 | fi | |
5978 | else | |
5979 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5980 | fi | |
5981 | ||
5982 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | ||
5991 | ||
5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5993 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5994 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5995 | $as_echo_n "(cached) " >&6 | |
5996 | else | |
5997 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5998 | lt_cv_file_magic_test_file= | |
5999 | lt_cv_deplibs_check_method='unknown' | |
6000 | # Need to set the preceding variable on all platforms that support | |
6001 | # interlibrary dependencies. | |
6002 | # 'none' -- dependencies not supported. | |
6003 | # 'unknown' -- same as none, but documents that we really don't know. | |
6004 | # 'pass_all' -- all dependencies passed with no checks. | |
6005 | # 'test_compile' -- check by making test program. | |
6006 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6007 | # that responds to the $file_magic_cmd with a given extended regex. | |
6008 | # If you have 'file' or equivalent on your system and you're not sure | |
6009 | # whether 'pass_all' will *always* work, you probably want this one. | |
6010 | ||
6011 | case $host_os in | |
6012 | aix[4-9]*) | |
6013 | lt_cv_deplibs_check_method=pass_all | |
6014 | ;; | |
6015 | ||
6016 | beos*) | |
6017 | lt_cv_deplibs_check_method=pass_all | |
6018 | ;; | |
6019 | ||
6020 | bsdi[45]*) | |
6021 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6022 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6023 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6024 | ;; | |
6025 | ||
6026 | cygwin*) | |
6027 | # func_win32_libid is a shell function defined in ltmain.sh | |
6028 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6029 | lt_cv_file_magic_cmd='func_win32_libid' | |
6030 | ;; | |
6031 | ||
6032 | mingw* | pw32*) | |
6033 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6034 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6035 | # unless we find 'file', for example because we are cross-compiling. | |
6036 | if ( file / ) >/dev/null 2>&1; then | |
6037 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6038 | lt_cv_file_magic_cmd='func_win32_libid' | |
6039 | else | |
6040 | # Keep this pattern in sync with the one in func_win32_libid. | |
6041 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6042 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6043 | fi | |
6044 | ;; | |
6045 | ||
6046 | cegcc*) | |
6047 | # use the weaker test based on 'objdump'. See mingw*. | |
6048 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6049 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6050 | ;; | |
6051 | ||
6052 | darwin* | rhapsody*) | |
6053 | lt_cv_deplibs_check_method=pass_all | |
6054 | ;; | |
6055 | ||
6056 | freebsd* | dragonfly*) | |
6057 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6058 | case $host_cpu in | |
6059 | i*86 ) | |
6060 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6061 | # Let's accept both of them until this is cleared up. | |
6062 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6063 | lt_cv_file_magic_cmd=/usr/bin/file | |
6064 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6065 | ;; | |
6066 | esac | |
6067 | else | |
6068 | lt_cv_deplibs_check_method=pass_all | |
6069 | fi | |
6070 | ;; | |
6071 | ||
6072 | haiku*) | |
6073 | lt_cv_deplibs_check_method=pass_all | |
6074 | ;; | |
6075 | ||
6076 | hpux10.20* | hpux11*) | |
6077 | lt_cv_file_magic_cmd=/usr/bin/file | |
6078 | case $host_cpu in | |
6079 | ia64*) | |
6080 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6081 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6082 | ;; | |
6083 | hppa*64*) | |
6084 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6085 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6086 | ;; | |
6087 | *) | |
6088 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6089 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6090 | ;; | |
6091 | esac | |
6092 | ;; | |
6093 | ||
6094 | interix[3-9]*) | |
6095 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6096 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6097 | ;; | |
6098 | ||
6099 | irix5* | irix6* | nonstopux*) | |
6100 | case $LD in | |
6101 | *-32|*"-32 ") libmagic=32-bit;; | |
6102 | *-n32|*"-n32 ") libmagic=N32;; | |
6103 | *-64|*"-64 ") libmagic=64-bit;; | |
6104 | *) libmagic=never-match;; | |
6105 | esac | |
6106 | lt_cv_deplibs_check_method=pass_all | |
6107 | ;; | |
6108 | ||
6109 | # This must be glibc/ELF. | |
6110 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6111 | lt_cv_deplibs_check_method=pass_all | |
6112 | ;; | |
6113 | ||
6114 | netbsd* | netbsdelf*-gnu) | |
6115 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6116 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6117 | else | |
6118 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6119 | fi | |
6120 | ;; | |
6121 | ||
6122 | newos6*) | |
6123 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6124 | lt_cv_file_magic_cmd=/usr/bin/file | |
6125 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6126 | ;; | |
6127 | ||
6128 | *nto* | *qnx*) | |
6129 | lt_cv_deplibs_check_method=pass_all | |
6130 | ;; | |
6131 | ||
6132 | openbsd* | bitrig*) | |
6133 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
6134 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6135 | else | |
6136 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6137 | fi | |
6138 | ;; | |
6139 | ||
6140 | osf3* | osf4* | osf5*) | |
6141 | lt_cv_deplibs_check_method=pass_all | |
6142 | ;; | |
6143 | ||
6144 | rdos*) | |
6145 | lt_cv_deplibs_check_method=pass_all | |
6146 | ;; | |
6147 | ||
6148 | solaris*) | |
6149 | lt_cv_deplibs_check_method=pass_all | |
6150 | ;; | |
6151 | ||
6152 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6153 | lt_cv_deplibs_check_method=pass_all | |
6154 | ;; | |
6155 | ||
6156 | sysv4 | sysv4.3*) | |
6157 | case $host_vendor in | |
6158 | motorola) | |
6159 | 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]' | |
6160 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6161 | ;; | |
6162 | ncr) | |
6163 | lt_cv_deplibs_check_method=pass_all | |
6164 | ;; | |
6165 | sequent) | |
6166 | lt_cv_file_magic_cmd='/bin/file' | |
6167 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6168 | ;; | |
6169 | sni) | |
6170 | lt_cv_file_magic_cmd='/bin/file' | |
6171 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6172 | lt_cv_file_magic_test_file=/lib/libc.so | |
6173 | ;; | |
6174 | siemens) | |
6175 | lt_cv_deplibs_check_method=pass_all | |
6176 | ;; | |
6177 | pc) | |
6178 | lt_cv_deplibs_check_method=pass_all | |
6179 | ;; | |
6180 | esac | |
6181 | ;; | |
6182 | ||
6183 | tpf*) | |
6184 | lt_cv_deplibs_check_method=pass_all | |
6185 | ;; | |
6186 | os2*) | |
6187 | lt_cv_deplibs_check_method=pass_all | |
6188 | ;; | |
6189 | esac | |
6190 | ||
6191 | fi | |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6193 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6194 | ||
6195 | file_magic_glob= | |
6196 | want_nocaseglob=no | |
6197 | if test "$build" = "$host"; then | |
6198 | case $host_os in | |
6199 | mingw* | pw32*) | |
6200 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6201 | want_nocaseglob=yes | |
6202 | else | |
6203 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6204 | fi | |
6205 | ;; | |
6206 | esac | |
6207 | fi | |
6208 | ||
6209 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6210 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6211 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | ||
6220 | ||
6221 | ||
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | ||
6234 | if test -n "$ac_tool_prefix"; then | |
6235 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6236 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6238 | $as_echo_n "checking for $ac_word... " >&6; } | |
6239 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6240 | $as_echo_n "(cached) " >&6 | |
6241 | else | |
6242 | if test -n "$DLLTOOL"; then | |
6243 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6244 | else | |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6246 | for as_dir in $PATH | |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6252 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6254 | break 2 | |
6255 | fi | |
6256 | done | |
6257 | done | |
6258 | IFS=$as_save_IFS | |
6259 | ||
6260 | fi | |
6261 | fi | |
6262 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6263 | if test -n "$DLLTOOL"; then | |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6265 | $as_echo "$DLLTOOL" >&6; } | |
6266 | else | |
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6268 | $as_echo "no" >&6; } | |
6269 | fi | |
6270 | ||
6271 | ||
6272 | fi | |
6273 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6274 | ac_ct_DLLTOOL=$DLLTOOL | |
6275 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6276 | set dummy dlltool; ac_word=$2 | |
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6278 | $as_echo_n "checking for $ac_word... " >&6; } | |
6279 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6280 | $as_echo_n "(cached) " >&6 | |
6281 | else | |
6282 | if test -n "$ac_ct_DLLTOOL"; then | |
6283 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6284 | else | |
6285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6286 | for as_dir in $PATH | |
6287 | do | |
6288 | IFS=$as_save_IFS | |
6289 | test -z "$as_dir" && as_dir=. | |
6290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6291 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6292 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6294 | break 2 | |
6295 | fi | |
6296 | done | |
6297 | done | |
6298 | IFS=$as_save_IFS | |
6299 | ||
6300 | fi | |
6301 | fi | |
6302 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6303 | if test -n "$ac_ct_DLLTOOL"; then | |
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6305 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6306 | else | |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6308 | $as_echo "no" >&6; } | |
6309 | fi | |
6310 | ||
6311 | if test "x$ac_ct_DLLTOOL" = x; then | |
6312 | DLLTOOL="false" | |
6313 | else | |
6314 | case $cross_compiling:$ac_tool_warned in | |
6315 | yes:) | |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6318 | ac_tool_warned=yes ;; | |
6319 | esac | |
6320 | DLLTOOL=$ac_ct_DLLTOOL | |
6321 | fi | |
6322 | else | |
6323 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6324 | fi | |
6325 | ||
6326 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6338 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6339 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6340 | $as_echo_n "(cached) " >&6 | |
6341 | else | |
6342 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6343 | ||
6344 | case $host_os in | |
6345 | cygwin* | mingw* | pw32* | cegcc*) | |
6346 | # two different shell functions defined in ltmain.sh; | |
6347 | # decide which one to use based on capabilities of $DLLTOOL | |
6348 | case `$DLLTOOL --help 2>&1` in | |
6349 | *--identify-strict*) | |
6350 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6351 | ;; | |
6352 | *) | |
6353 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6354 | ;; | |
6355 | esac | |
6356 | ;; | |
6357 | *) | |
6358 | # fallback: assume linklib IS sharedlib | |
6359 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
6360 | ;; | |
6361 | esac | |
6362 | ||
6363 | fi | |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6365 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6366 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6367 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | if test -n "$ac_tool_prefix"; then | |
6377 | for ac_prog in ar | |
6378 | do | |
6379 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6380 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6382 | $as_echo_n "checking for $ac_word... " >&6; } | |
6383 | if ${ac_cv_prog_AR+:} false; then : | |
6384 | $as_echo_n "(cached) " >&6 | |
6385 | else | |
6386 | if test -n "$AR"; then | |
6387 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6388 | else | |
6389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6390 | for as_dir in $PATH | |
6391 | do | |
6392 | IFS=$as_save_IFS | |
6393 | test -z "$as_dir" && as_dir=. | |
6394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6396 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6398 | break 2 | |
6399 | fi | |
6400 | done | |
6401 | done | |
6402 | IFS=$as_save_IFS | |
6403 | ||
6404 | fi | |
6405 | fi | |
6406 | AR=$ac_cv_prog_AR | |
6407 | if test -n "$AR"; then | |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6409 | $as_echo "$AR" >&6; } | |
6410 | else | |
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6412 | $as_echo "no" >&6; } | |
6413 | fi | |
6414 | ||
6415 | ||
6416 | test -n "$AR" && break | |
6417 | done | |
6418 | fi | |
6419 | if test -z "$AR"; then | |
6420 | ac_ct_AR=$AR | |
6421 | for ac_prog in ar | |
6422 | do | |
6423 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6424 | set dummy $ac_prog; ac_word=$2 | |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6426 | $as_echo_n "checking for $ac_word... " >&6; } | |
6427 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6428 | $as_echo_n "(cached) " >&6 | |
6429 | else | |
6430 | if test -n "$ac_ct_AR"; then | |
6431 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6432 | else | |
6433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6434 | for as_dir in $PATH | |
6435 | do | |
6436 | IFS=$as_save_IFS | |
6437 | test -z "$as_dir" && as_dir=. | |
6438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6440 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6442 | break 2 | |
6443 | fi | |
6444 | done | |
6445 | done | |
6446 | IFS=$as_save_IFS | |
6447 | ||
6448 | fi | |
6449 | fi | |
6450 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6451 | if test -n "$ac_ct_AR"; then | |
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6453 | $as_echo "$ac_ct_AR" >&6; } | |
6454 | else | |
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6456 | $as_echo "no" >&6; } | |
6457 | fi | |
6458 | ||
6459 | ||
6460 | test -n "$ac_ct_AR" && break | |
6461 | done | |
6462 | ||
6463 | if test "x$ac_ct_AR" = x; then | |
6464 | AR="false" | |
6465 | else | |
6466 | case $cross_compiling:$ac_tool_warned in | |
6467 | yes:) | |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6469 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6470 | ac_tool_warned=yes ;; | |
6471 | esac | |
6472 | AR=$ac_ct_AR | |
6473 | fi | |
6474 | fi | |
6475 | ||
6476 | : ${AR=ar} | |
6477 | : ${AR_FLAGS=cru} | |
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6490 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6491 | if ${lt_cv_ar_at_file+:} false; then : | |
6492 | $as_echo_n "(cached) " >&6 | |
6493 | else | |
6494 | lt_cv_ar_at_file=no | |
6495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6496 | /* end confdefs.h. */ | |
6497 | ||
6498 | int | |
6499 | main () | |
6500 | { | |
6501 | ||
6502 | ; | |
6503 | return 0; | |
6504 | } | |
6505 | _ACEOF | |
6506 | if ac_fn_c_try_compile "$LINENO"; then : | |
6507 | echo conftest.$ac_objext > conftest.lst | |
6508 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6509 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6510 | (eval $lt_ar_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6513 | test $ac_status = 0; } | |
6514 | if test 0 -eq "$ac_status"; then | |
6515 | # Ensure the archiver fails upon bogus file names. | |
6516 | rm -f conftest.$ac_objext libconftest.a | |
6517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6518 | (eval $lt_ar_try) 2>&5 | |
6519 | ac_status=$? | |
6520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6521 | test $ac_status = 0; } | |
6522 | if test 0 -ne "$ac_status"; then | |
6523 | lt_cv_ar_at_file=@ | |
6524 | fi | |
6525 | fi | |
6526 | rm -f conftest.* libconftest.a | |
6527 | ||
6528 | fi | |
6529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6530 | ||
6531 | fi | |
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6533 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6534 | ||
6535 | if test no = "$lt_cv_ar_at_file"; then | |
6536 | archiver_list_spec= | |
6537 | else | |
6538 | archiver_list_spec=$lt_cv_ar_at_file | |
6539 | fi | |
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | if test -n "$ac_tool_prefix"; then | |
6548 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6549 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6551 | $as_echo_n "checking for $ac_word... " >&6; } | |
6552 | if ${ac_cv_prog_STRIP+:} false; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | if test -n "$STRIP"; then | |
6556 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6557 | else | |
6558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6559 | for as_dir in $PATH | |
6560 | do | |
6561 | IFS=$as_save_IFS | |
6562 | test -z "$as_dir" && as_dir=. | |
6563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6564 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6565 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6567 | break 2 | |
6568 | fi | |
6569 | done | |
6570 | done | |
6571 | IFS=$as_save_IFS | |
6572 | ||
6573 | fi | |
6574 | fi | |
6575 | STRIP=$ac_cv_prog_STRIP | |
6576 | if test -n "$STRIP"; then | |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6578 | $as_echo "$STRIP" >&6; } | |
6579 | else | |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6581 | $as_echo "no" >&6; } | |
6582 | fi | |
6583 | ||
6584 | ||
6585 | fi | |
6586 | if test -z "$ac_cv_prog_STRIP"; then | |
6587 | ac_ct_STRIP=$STRIP | |
6588 | # Extract the first word of "strip", so it can be a program name with args. | |
6589 | set dummy strip; ac_word=$2 | |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6591 | $as_echo_n "checking for $ac_word... " >&6; } | |
6592 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6593 | $as_echo_n "(cached) " >&6 | |
6594 | else | |
6595 | if test -n "$ac_ct_STRIP"; then | |
6596 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6597 | else | |
6598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6599 | for as_dir in $PATH | |
6600 | do | |
6601 | IFS=$as_save_IFS | |
6602 | test -z "$as_dir" && as_dir=. | |
6603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6605 | ac_cv_prog_ac_ct_STRIP="strip" | |
6606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6607 | break 2 | |
6608 | fi | |
6609 | done | |
6610 | done | |
6611 | IFS=$as_save_IFS | |
6612 | ||
6613 | fi | |
6614 | fi | |
6615 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6616 | if test -n "$ac_ct_STRIP"; then | |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6618 | $as_echo "$ac_ct_STRIP" >&6; } | |
6619 | else | |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6621 | $as_echo "no" >&6; } | |
6622 | fi | |
6623 | ||
6624 | if test "x$ac_ct_STRIP" = x; then | |
6625 | STRIP=":" | |
6626 | else | |
6627 | case $cross_compiling:$ac_tool_warned in | |
6628 | yes:) | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6631 | ac_tool_warned=yes ;; | |
6632 | esac | |
6633 | STRIP=$ac_ct_STRIP | |
6634 | fi | |
6635 | else | |
6636 | STRIP="$ac_cv_prog_STRIP" | |
6637 | fi | |
6638 | ||
6639 | test -z "$STRIP" && STRIP=: | |
6640 | ||
6641 | ||
6642 | ||
6643 | ||
6644 | ||
6645 | ||
6646 | if test -n "$ac_tool_prefix"; then | |
6647 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6648 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6650 | $as_echo_n "checking for $ac_word... " >&6; } | |
6651 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6652 | $as_echo_n "(cached) " >&6 | |
6653 | else | |
6654 | if test -n "$RANLIB"; then | |
6655 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6656 | else | |
6657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6658 | for as_dir in $PATH | |
6659 | do | |
6660 | IFS=$as_save_IFS | |
6661 | test -z "$as_dir" && as_dir=. | |
6662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6664 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6666 | break 2 | |
6667 | fi | |
6668 | done | |
6669 | done | |
6670 | IFS=$as_save_IFS | |
6671 | ||
6672 | fi | |
6673 | fi | |
6674 | RANLIB=$ac_cv_prog_RANLIB | |
6675 | if test -n "$RANLIB"; then | |
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6677 | $as_echo "$RANLIB" >&6; } | |
6678 | else | |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6680 | $as_echo "no" >&6; } | |
6681 | fi | |
6682 | ||
6683 | ||
6684 | fi | |
6685 | if test -z "$ac_cv_prog_RANLIB"; then | |
6686 | ac_ct_RANLIB=$RANLIB | |
6687 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6688 | set dummy ranlib; ac_word=$2 | |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6690 | $as_echo_n "checking for $ac_word... " >&6; } | |
6691 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6692 | $as_echo_n "(cached) " >&6 | |
6693 | else | |
6694 | if test -n "$ac_ct_RANLIB"; then | |
6695 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6696 | else | |
6697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6698 | for as_dir in $PATH | |
6699 | do | |
6700 | IFS=$as_save_IFS | |
6701 | test -z "$as_dir" && as_dir=. | |
6702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6704 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6706 | break 2 | |
6707 | fi | |
6708 | done | |
6709 | done | |
6710 | IFS=$as_save_IFS | |
6711 | ||
6712 | fi | |
6713 | fi | |
6714 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6715 | if test -n "$ac_ct_RANLIB"; then | |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6717 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6718 | else | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6720 | $as_echo "no" >&6; } | |
6721 | fi | |
6722 | ||
6723 | if test "x$ac_ct_RANLIB" = x; then | |
6724 | RANLIB=":" | |
6725 | else | |
6726 | case $cross_compiling:$ac_tool_warned in | |
6727 | yes:) | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6730 | ac_tool_warned=yes ;; | |
6731 | esac | |
6732 | RANLIB=$ac_ct_RANLIB | |
6733 | fi | |
6734 | else | |
6735 | RANLIB="$ac_cv_prog_RANLIB" | |
6736 | fi | |
6737 | ||
6738 | test -z "$RANLIB" && RANLIB=: | |
6739 | ||
6740 | ||
6741 | ||
6742 | ||
6743 | ||
6744 | ||
6745 | # Determine commands to create old-style static archives. | |
6746 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6747 | old_postinstall_cmds='chmod 644 $oldlib' | |
6748 | old_postuninstall_cmds= | |
6749 | ||
6750 | if test -n "$RANLIB"; then | |
6751 | case $host_os in | |
6752 | bitrig* | openbsd*) | |
6753 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6754 | ;; | |
6755 | *) | |
6756 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6757 | ;; | |
6758 | esac | |
6759 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6760 | fi | |
6761 | ||
6762 | case $host_os in | |
6763 | darwin*) | |
6764 | lock_old_archive_extraction=yes ;; | |
6765 | *) | |
6766 | lock_old_archive_extraction=no ;; | |
6767 | esac | |
6768 | ||
6769 | ||
6770 | ||
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | ||
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | # If no C compiler was specified, use CC. | |
6808 | LTCC=${LTCC-"$CC"} | |
6809 | ||
6810 | # If no C compiler flags were specified, use CFLAGS. | |
6811 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6812 | ||
6813 | # Allow CC to be a program name with arguments. | |
6814 | compiler=$CC | |
6815 | ||
6816 | ||
6817 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6819 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6820 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6821 | $as_echo_n "(cached) " >&6 | |
6822 | else | |
6823 | ||
6824 | # These are sane defaults that work on at least a few old systems. | |
6825 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6826 | ||
6827 | # Character class describing NM global symbol codes. | |
6828 | symcode='[BCDEGRST]' | |
6829 | ||
6830 | # Regexp to match symbols that can be accessed directly from C. | |
6831 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6832 | ||
6833 | # Define system-specific variables. | |
6834 | case $host_os in | |
6835 | aix*) | |
6836 | symcode='[BCDT]' | |
6837 | ;; | |
6838 | cygwin* | mingw* | pw32* | cegcc*) | |
6839 | symcode='[ABCDGISTW]' | |
6840 | ;; | |
6841 | hpux*) | |
6842 | if test ia64 = "$host_cpu"; then | |
6843 | symcode='[ABCDEGRST]' | |
6844 | fi | |
6845 | ;; | |
6846 | irix* | nonstopux*) | |
6847 | symcode='[BCDEGRST]' | |
6848 | ;; | |
6849 | osf*) | |
6850 | symcode='[BCDEGQRST]' | |
6851 | ;; | |
6852 | solaris*) | |
6853 | symcode='[BDRT]' | |
6854 | ;; | |
6855 | sco3.2v5*) | |
6856 | symcode='[DT]' | |
6857 | ;; | |
6858 | sysv4.2uw2*) | |
6859 | symcode='[DT]' | |
6860 | ;; | |
6861 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6862 | symcode='[ABDT]' | |
6863 | ;; | |
6864 | sysv4) | |
6865 | symcode='[DFNSTU]' | |
6866 | ;; | |
6867 | esac | |
6868 | ||
6869 | # If we're using GNU nm, then use its standard symbol codes. | |
6870 | case `$NM -V 2>&1` in | |
6871 | *GNU* | *'with BFD'*) | |
6872 | symcode='[ABCDGIRSTW]' ;; | |
6873 | esac | |
6874 | ||
6875 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6876 | # Gets list of data symbols to import. | |
6877 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6878 | # Adjust the below global symbol transforms to fixup imported variables. | |
6879 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6880 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6881 | lt_c_name_lib_hook="\ | |
6882 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6883 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6884 | else | |
6885 | # Disable hooks by default. | |
6886 | lt_cv_sys_global_symbol_to_import= | |
6887 | lt_cdecl_hook= | |
6888 | lt_c_name_hook= | |
6889 | lt_c_name_lib_hook= | |
6890 | fi | |
6891 | ||
6892 | # Transform an extracted symbol line into a proper C declaration. | |
6893 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6894 | # so use this general approach. | |
6895 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6896 | $lt_cdecl_hook\ | |
6897 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6898 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6899 | ||
6900 | # Transform an extracted symbol line into symbol name and symbol address | |
6901 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6902 | $lt_c_name_hook\ | |
6903 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6904 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6905 | ||
6906 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6907 | # symbol address. | |
6908 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6909 | $lt_c_name_lib_hook\ | |
6910 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6911 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6912 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6913 | ||
6914 | # Handle CRLF in mingw tool chain | |
6915 | opt_cr= | |
6916 | case $build_os in | |
6917 | mingw*) | |
6918 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6919 | ;; | |
6920 | esac | |
6921 | ||
6922 | # Try without a prefix underscore, then with it. | |
6923 | for ac_symprfx in "" "_"; do | |
6924 | ||
6925 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6926 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6927 | ||
6928 | # Write the raw and C identifiers. | |
6929 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6930 | # Fake it for dumpbin and say T for any non-static function, | |
6931 | # D for any global variable and I for any imported variable. | |
6932 | # Also find C++ and __fastcall symbols from MSVC++, | |
6933 | # which start with @ or ?. | |
6934 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6935 | " {last_section=section; section=\$ 3};"\ | |
6936 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6937 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6938 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6939 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6940 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6941 | " \$ 0!~/External *\|/{next};"\ | |
6942 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6943 | " {if(hide[section]) next};"\ | |
6944 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6945 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6946 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6947 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6948 | " ' prfx=^$ac_symprfx" | |
6949 | else | |
6950 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6951 | fi | |
6952 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6953 | ||
6954 | # Check to see that the pipe works correctly. | |
6955 | pipe_works=no | |
6956 | ||
6957 | rm -f conftest* | |
6958 | cat > conftest.$ac_ext <<_LT_EOF | |
6959 | #ifdef __cplusplus | |
6960 | extern "C" { | |
6961 | #endif | |
6962 | char nm_test_var; | |
6963 | void nm_test_func(void); | |
6964 | void nm_test_func(void){} | |
6965 | #ifdef __cplusplus | |
6966 | } | |
6967 | #endif | |
6968 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6969 | _LT_EOF | |
6970 | ||
6971 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6972 | (eval $ac_compile) 2>&5 | |
6973 | ac_status=$? | |
6974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6975 | test $ac_status = 0; }; then | |
6976 | # Now try to grab the symbols. | |
6977 | nlist=conftest.nm | |
6978 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6979 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6980 | ac_status=$? | |
6981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6982 | test $ac_status = 0; } && test -s "$nlist"; then | |
6983 | # Try sorting and uniquifying the output. | |
6984 | if sort "$nlist" | uniq > "$nlist"T; then | |
6985 | mv -f "$nlist"T "$nlist" | |
6986 | else | |
6987 | rm -f "$nlist"T | |
6988 | fi | |
6989 | ||
6990 | # Make sure that we snagged all the symbols we need. | |
6991 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6992 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6993 | cat <<_LT_EOF > conftest.$ac_ext | |
6994 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6995 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6996 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6997 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6998 | # define LT_DLSYM_CONST | |
6999 | #elif defined __osf__ | |
7000 | /* This system does not cope well with relocations in const data. */ | |
7001 | # define LT_DLSYM_CONST | |
7002 | #else | |
7003 | # define LT_DLSYM_CONST const | |
7004 | #endif | |
7005 | ||
7006 | #ifdef __cplusplus | |
7007 | extern "C" { | |
7008 | #endif | |
7009 | ||
7010 | _LT_EOF | |
7011 | # Now generate the symbol file. | |
7012 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7013 | ||
7014 | cat <<_LT_EOF >> conftest.$ac_ext | |
7015 | ||
7016 | /* The mapping between symbol names and symbols. */ | |
7017 | LT_DLSYM_CONST struct { | |
7018 | const char *name; | |
7019 | void *address; | |
7020 | } | |
7021 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7022 | { | |
7023 | { "@PROGRAM@", (void *) 0 }, | |
7024 | _LT_EOF | |
7025 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7026 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7027 | {0, (void *) 0} | |
7028 | }; | |
7029 | ||
7030 | /* This works around a problem in FreeBSD linker */ | |
7031 | #ifdef FREEBSD_WORKAROUND | |
7032 | static const void *lt_preloaded_setup() { | |
7033 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7034 | } | |
7035 | #endif | |
7036 | ||
7037 | #ifdef __cplusplus | |
7038 | } | |
7039 | #endif | |
7040 | _LT_EOF | |
7041 | # Now try linking the two files. | |
7042 | mv conftest.$ac_objext conftstm.$ac_objext | |
7043 | lt_globsym_save_LIBS=$LIBS | |
7044 | lt_globsym_save_CFLAGS=$CFLAGS | |
7045 | LIBS=conftstm.$ac_objext | |
7046 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7047 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7048 | (eval $ac_link) 2>&5 | |
7049 | ac_status=$? | |
7050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7051 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
7052 | pipe_works=yes | |
7053 | fi | |
7054 | LIBS=$lt_globsym_save_LIBS | |
7055 | CFLAGS=$lt_globsym_save_CFLAGS | |
7056 | else | |
7057 | echo "cannot find nm_test_func in $nlist" >&5 | |
7058 | fi | |
7059 | else | |
7060 | echo "cannot find nm_test_var in $nlist" >&5 | |
7061 | fi | |
7062 | else | |
7063 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7064 | fi | |
7065 | else | |
7066 | echo "$progname: failed program was:" >&5 | |
7067 | cat conftest.$ac_ext >&5 | |
7068 | fi | |
7069 | rm -rf conftest* conftst* | |
7070 | ||
7071 | # Do not use the global_symbol_pipe unless it works. | |
7072 | if test yes = "$pipe_works"; then | |
7073 | break | |
7074 | else | |
7075 | lt_cv_sys_global_symbol_pipe= | |
7076 | fi | |
7077 | done | |
7078 | ||
7079 | fi | |
7080 | ||
7081 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7082 | lt_cv_sys_global_symbol_to_cdecl= | |
7083 | fi | |
7084 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7086 | $as_echo "failed" >&6; } | |
7087 | else | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7089 | $as_echo "ok" >&6; } | |
7090 | fi | |
7091 | ||
7092 | # Response file support. | |
7093 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7094 | nm_file_list_spec='@' | |
7095 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7096 | nm_file_list_spec='@' | |
7097 | fi | |
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | ||
7112 | ||
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7136 | $as_echo_n "checking for sysroot... " >&6; } | |
7137 | ||
7138 | # Check whether --with-sysroot was given. | |
7139 | if test "${with_sysroot+set}" = set; then : | |
7140 | withval=$with_sysroot; | |
7141 | else | |
7142 | with_sysroot=no | |
7143 | fi | |
7144 | ||
7145 | ||
7146 | lt_sysroot= | |
7147 | case $with_sysroot in #( | |
7148 | yes) | |
7149 | if test yes = "$GCC"; then | |
7150 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7151 | fi | |
7152 | ;; #( | |
7153 | /*) | |
7154 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7155 | ;; #( | |
7156 | no|'') | |
7157 | ;; #( | |
7158 | *) | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
7160 | $as_echo "$with_sysroot" >&6; } | |
7161 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7162 | ;; | |
7163 | esac | |
7164 | ||
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7166 | $as_echo "${lt_sysroot:-no}" >&6; } | |
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
7173 | $as_echo_n "checking for a working dd... " >&6; } | |
7174 | if ${ac_cv_path_lt_DD+:} false; then : | |
7175 | $as_echo_n "(cached) " >&6 | |
7176 | else | |
7177 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7178 | cat conftest.i conftest.i >conftest2.i | |
7179 | : ${lt_DD:=$DD} | |
7180 | if test -z "$lt_DD"; then | |
7181 | ac_path_lt_DD_found=false | |
7182 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7184 | for as_dir in $PATH | |
7185 | do | |
7186 | IFS=$as_save_IFS | |
7187 | test -z "$as_dir" && as_dir=. | |
7188 | for ac_prog in dd; do | |
7189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7190 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7191 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7192 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7193 | cmp -s conftest.i conftest.out \ | |
7194 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7195 | fi | |
7196 | $ac_path_lt_DD_found && break 3 | |
7197 | done | |
7198 | done | |
7199 | done | |
7200 | IFS=$as_save_IFS | |
7201 | if test -z "$ac_cv_path_lt_DD"; then | |
7202 | : | |
7203 | fi | |
7204 | else | |
7205 | ac_cv_path_lt_DD=$lt_DD | |
7206 | fi | |
7207 | ||
7208 | rm -f conftest.i conftest2.i conftest.out | |
7209 | fi | |
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7211 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7212 | ||
7213 | ||
7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7215 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7216 | if ${lt_cv_truncate_bin+:} false; then : | |
7217 | $as_echo_n "(cached) " >&6 | |
7218 | else | |
7219 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7220 | cat conftest.i conftest.i >conftest2.i | |
7221 | lt_cv_truncate_bin= | |
7222 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7223 | cmp -s conftest.i conftest.out \ | |
7224 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7225 | fi | |
7226 | rm -f conftest.i conftest2.i conftest.out | |
7227 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7228 | fi | |
7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7230 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | ||
7237 | ||
7238 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7239 | func_cc_basename () | |
7240 | { | |
7241 | for cc_temp in $*""; do | |
7242 | case $cc_temp in | |
7243 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7244 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7245 | \-*) ;; | |
7246 | *) break;; | |
7247 | esac | |
7248 | done | |
7249 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7250 | } | |
7251 | ||
7252 | # Check whether --enable-libtool-lock was given. | |
7253 | if test "${enable_libtool_lock+set}" = set; then : | |
7254 | enableval=$enable_libtool_lock; | |
7255 | fi | |
7256 | ||
7257 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
7258 | ||
7259 | # Some flags need to be propagated to the compiler or linker for good | |
7260 | # libtool support. | |
7261 | case $host in | |
7262 | ia64-*-hpux*) | |
7263 | # Find out what ABI is being produced by ac_compile, and set mode | |
7264 | # options accordingly. | |
7265 | echo 'int i;' > conftest.$ac_ext | |
7266 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7267 | (eval $ac_compile) 2>&5 | |
7268 | ac_status=$? | |
7269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7270 | test $ac_status = 0; }; then | |
7271 | case `/usr/bin/file conftest.$ac_objext` in | |
7272 | *ELF-32*) | |
7273 | HPUX_IA64_MODE=32 | |
7274 | ;; | |
7275 | *ELF-64*) | |
7276 | HPUX_IA64_MODE=64 | |
7277 | ;; | |
7278 | esac | |
7279 | fi | |
7280 | rm -rf conftest* | |
7281 | ;; | |
7282 | *-*-irix6*) | |
7283 | # Find out what ABI is being produced by ac_compile, and set linker | |
7284 | # options accordingly. | |
7285 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7286 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7287 | (eval $ac_compile) 2>&5 | |
7288 | ac_status=$? | |
7289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7290 | test $ac_status = 0; }; then | |
7291 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
7292 | case `/usr/bin/file conftest.$ac_objext` in | |
7293 | *32-bit*) | |
7294 | LD="${LD-ld} -melf32bsmip" | |
7295 | ;; | |
7296 | *N32*) | |
7297 | LD="${LD-ld} -melf32bmipn32" | |
7298 | ;; | |
7299 | *64-bit*) | |
7300 | LD="${LD-ld} -melf64bmip" | |
7301 | ;; | |
7302 | esac | |
7303 | else | |
7304 | case `/usr/bin/file conftest.$ac_objext` in | |
7305 | *32-bit*) | |
7306 | LD="${LD-ld} -32" | |
7307 | ;; | |
7308 | *N32*) | |
7309 | LD="${LD-ld} -n32" | |
7310 | ;; | |
7311 | *64-bit*) | |
7312 | LD="${LD-ld} -64" | |
7313 | ;; | |
7314 | esac | |
7315 | fi | |
7316 | fi | |
7317 | rm -rf conftest* | |
7318 | ;; | |
7319 | ||
7320 | mips64*-*linux*) | |
7321 | # Find out what ABI is being produced by ac_compile, and set linker | |
7322 | # options accordingly. | |
7323 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7324 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7325 | (eval $ac_compile) 2>&5 | |
7326 | ac_status=$? | |
7327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7328 | test $ac_status = 0; }; then | |
7329 | emul=elf | |
7330 | case `/usr/bin/file conftest.$ac_objext` in | |
7331 | *32-bit*) | |
7332 | emul="${emul}32" | |
7333 | ;; | |
7334 | *64-bit*) | |
7335 | emul="${emul}64" | |
7336 | ;; | |
7337 | esac | |
7338 | case `/usr/bin/file conftest.$ac_objext` in | |
7339 | *MSB*) | |
7340 | emul="${emul}btsmip" | |
7341 | ;; | |
7342 | *LSB*) | |
7343 | emul="${emul}ltsmip" | |
7344 | ;; | |
7345 | esac | |
7346 | case `/usr/bin/file conftest.$ac_objext` in | |
7347 | *N32*) | |
7348 | emul="${emul}n32" | |
7349 | ;; | |
7350 | esac | |
7351 | LD="${LD-ld} -m $emul" | |
7352 | fi | |
7353 | rm -rf conftest* | |
7354 | ;; | |
7355 | ||
7356 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7357 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7358 | # Find out what ABI is being produced by ac_compile, and set linker | |
7359 | # options accordingly. Note that the listed cases only cover the | |
7360 | # situations where additional linker options are needed (such as when | |
7361 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7362 | # vice versa); the common cases where no linker options are needed do | |
7363 | # not appear in the list. | |
7364 | echo 'int i;' > conftest.$ac_ext | |
7365 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7366 | (eval $ac_compile) 2>&5 | |
7367 | ac_status=$? | |
7368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7369 | test $ac_status = 0; }; then | |
7370 | case `/usr/bin/file conftest.o` in | |
7371 | *32-bit*) | |
7372 | case $host in | |
7373 | x86_64-*kfreebsd*-gnu) | |
7374 | LD="${LD-ld} -m elf_i386_fbsd" | |
7375 | ;; | |
7376 | x86_64-*linux*) | |
7377 | case `/usr/bin/file conftest.o` in | |
7378 | *x86-64*) | |
7379 | LD="${LD-ld} -m elf32_x86_64" | |
7380 | ;; | |
7381 | *) | |
7382 | LD="${LD-ld} -m elf_i386" | |
7383 | ;; | |
7384 | esac | |
7385 | ;; | |
7386 | powerpc64le-*linux*) | |
7387 | LD="${LD-ld} -m elf32lppclinux" | |
7388 | ;; | |
7389 | powerpc64-*linux*) | |
7390 | LD="${LD-ld} -m elf32ppclinux" | |
7391 | ;; | |
7392 | s390x-*linux*) | |
7393 | LD="${LD-ld} -m elf_s390" | |
7394 | ;; | |
7395 | sparc64-*linux*) | |
7396 | LD="${LD-ld} -m elf32_sparc" | |
7397 | ;; | |
7398 | esac | |
7399 | ;; | |
7400 | *64-bit*) | |
7401 | case $host in | |
7402 | x86_64-*kfreebsd*-gnu) | |
7403 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7404 | ;; | |
7405 | x86_64-*linux*) | |
7406 | LD="${LD-ld} -m elf_x86_64" | |
7407 | ;; | |
7408 | powerpcle-*linux*) | |
7409 | LD="${LD-ld} -m elf64lppc" | |
7410 | ;; | |
7411 | powerpc-*linux*) | |
7412 | LD="${LD-ld} -m elf64ppc" | |
7413 | ;; | |
7414 | s390*-*linux*|s390*-*tpf*) | |
7415 | LD="${LD-ld} -m elf64_s390" | |
7416 | ;; | |
7417 | sparc*-*linux*) | |
7418 | LD="${LD-ld} -m elf64_sparc" | |
7419 | ;; | |
7420 | esac | |
7421 | ;; | |
7422 | esac | |
7423 | fi | |
7424 | rm -rf conftest* | |
7425 | ;; | |
7426 | ||
7427 | *-*-sco3.2v5*) | |
7428 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7429 | SAVE_CFLAGS=$CFLAGS | |
7430 | CFLAGS="$CFLAGS -belf" | |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7432 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7433 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7434 | $as_echo_n "(cached) " >&6 | |
7435 | else | |
7436 | ac_ext=c | |
7437 | ac_cpp='$CPP $CPPFLAGS' | |
7438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7441 | ||
7442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7443 | /* end confdefs.h. */ | |
7444 | ||
7445 | int | |
7446 | main () | |
7447 | { | |
7448 | ||
7449 | ; | |
7450 | return 0; | |
7451 | } | |
7452 | _ACEOF | |
7453 | if ac_fn_c_try_link "$LINENO"; then : | |
7454 | lt_cv_cc_needs_belf=yes | |
7455 | else | |
7456 | lt_cv_cc_needs_belf=no | |
7457 | fi | |
7458 | rm -f core conftest.err conftest.$ac_objext \ | |
7459 | conftest$ac_exeext conftest.$ac_ext | |
7460 | ac_ext=c | |
7461 | ac_cpp='$CPP $CPPFLAGS' | |
7462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7465 | ||
7466 | fi | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7468 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7469 | if test yes != "$lt_cv_cc_needs_belf"; then | |
7470 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7471 | CFLAGS=$SAVE_CFLAGS | |
7472 | fi | |
7473 | ;; | |
7474 | *-*solaris*) | |
7475 | # Find out what ABI is being produced by ac_compile, and set linker | |
7476 | # options accordingly. | |
7477 | echo 'int i;' > conftest.$ac_ext | |
7478 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7479 | (eval $ac_compile) 2>&5 | |
7480 | ac_status=$? | |
7481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7482 | test $ac_status = 0; }; then | |
7483 | case `/usr/bin/file conftest.o` in | |
7484 | *64-bit*) | |
7485 | case $lt_cv_prog_gnu_ld in | |
7486 | yes*) | |
7487 | case $host in | |
7488 | i?86-*-solaris*|x86_64-*-solaris*) | |
7489 | LD="${LD-ld} -m elf_x86_64" | |
7490 | ;; | |
7491 | sparc*-*-solaris*) | |
7492 | LD="${LD-ld} -m elf64_sparc" | |
7493 | ;; | |
7494 | esac | |
7495 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7496 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7497 | LD=${LD-ld}_sol2 | |
7498 | fi | |
7499 | ;; | |
7500 | *) | |
7501 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7502 | LD="${LD-ld} -64" | |
7503 | fi | |
7504 | ;; | |
7505 | esac | |
7506 | ;; | |
7507 | esac | |
7508 | fi | |
7509 | rm -rf conftest* | |
7510 | ;; | |
7511 | esac | |
7512 | ||
7513 | need_locks=$enable_libtool_lock | |
7514 | ||
7515 | if test -n "$ac_tool_prefix"; then | |
7516 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7517 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7519 | $as_echo_n "checking for $ac_word... " >&6; } | |
7520 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7521 | $as_echo_n "(cached) " >&6 | |
7522 | else | |
7523 | if test -n "$MANIFEST_TOOL"; then | |
7524 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7525 | else | |
7526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7527 | for as_dir in $PATH | |
7528 | do | |
7529 | IFS=$as_save_IFS | |
7530 | test -z "$as_dir" && as_dir=. | |
7531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7533 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7535 | break 2 | |
7536 | fi | |
7537 | done | |
7538 | done | |
7539 | IFS=$as_save_IFS | |
7540 | ||
7541 | fi | |
7542 | fi | |
7543 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7544 | if test -n "$MANIFEST_TOOL"; then | |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7546 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7547 | else | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7549 | $as_echo "no" >&6; } | |
7550 | fi | |
7551 | ||
7552 | ||
7553 | fi | |
7554 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7555 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7556 | # Extract the first word of "mt", so it can be a program name with args. | |
7557 | set dummy mt; ac_word=$2 | |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7559 | $as_echo_n "checking for $ac_word... " >&6; } | |
7560 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7561 | $as_echo_n "(cached) " >&6 | |
7562 | else | |
7563 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7564 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7565 | else | |
7566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7567 | for as_dir in $PATH | |
7568 | do | |
7569 | IFS=$as_save_IFS | |
7570 | test -z "$as_dir" && as_dir=. | |
7571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7573 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7575 | break 2 | |
7576 | fi | |
7577 | done | |
7578 | done | |
7579 | IFS=$as_save_IFS | |
7580 | ||
7581 | fi | |
7582 | fi | |
7583 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7584 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7586 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7587 | else | |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7589 | $as_echo "no" >&6; } | |
7590 | fi | |
7591 | ||
7592 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7593 | MANIFEST_TOOL=":" | |
7594 | else | |
7595 | case $cross_compiling:$ac_tool_warned in | |
7596 | yes:) | |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7598 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7599 | ac_tool_warned=yes ;; | |
7600 | esac | |
7601 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7602 | fi | |
7603 | else | |
7604 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7605 | fi | |
7606 | ||
7607 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7609 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7610 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7611 | $as_echo_n "(cached) " >&6 | |
7612 | else | |
7613 | lt_cv_path_mainfest_tool=no | |
7614 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7615 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7616 | cat conftest.err >&5 | |
7617 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7618 | lt_cv_path_mainfest_tool=yes | |
7619 | fi | |
7620 | rm -f conftest* | |
7621 | fi | |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7623 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7624 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
7625 | MANIFEST_TOOL=: | |
7626 | fi | |
7627 | ||
7628 | ||
7629 | ||
7630 | ||
7631 | ||
7632 | ||
7633 | case $host_os in | |
7634 | rhapsody* | darwin*) | |
7635 | if test -n "$ac_tool_prefix"; then | |
7636 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7637 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7639 | $as_echo_n "checking for $ac_word... " >&6; } | |
7640 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7641 | $as_echo_n "(cached) " >&6 | |
7642 | else | |
7643 | if test -n "$DSYMUTIL"; then | |
7644 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7645 | else | |
7646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7647 | for as_dir in $PATH | |
7648 | do | |
7649 | IFS=$as_save_IFS | |
7650 | test -z "$as_dir" && as_dir=. | |
7651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7652 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7653 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7655 | break 2 | |
7656 | fi | |
7657 | done | |
7658 | done | |
7659 | IFS=$as_save_IFS | |
7660 | ||
7661 | fi | |
7662 | fi | |
7663 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7664 | if test -n "$DSYMUTIL"; then | |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7666 | $as_echo "$DSYMUTIL" >&6; } | |
7667 | else | |
7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7669 | $as_echo "no" >&6; } | |
7670 | fi | |
7671 | ||
7672 | ||
7673 | fi | |
7674 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7675 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7676 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7677 | set dummy dsymutil; ac_word=$2 | |
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7679 | $as_echo_n "checking for $ac_word... " >&6; } | |
7680 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7681 | $as_echo_n "(cached) " >&6 | |
7682 | else | |
7683 | if test -n "$ac_ct_DSYMUTIL"; then | |
7684 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7685 | else | |
7686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7687 | for as_dir in $PATH | |
7688 | do | |
7689 | IFS=$as_save_IFS | |
7690 | test -z "$as_dir" && as_dir=. | |
7691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7693 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7695 | break 2 | |
7696 | fi | |
7697 | done | |
7698 | done | |
7699 | IFS=$as_save_IFS | |
7700 | ||
7701 | fi | |
7702 | fi | |
7703 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7704 | if test -n "$ac_ct_DSYMUTIL"; then | |
7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7706 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7707 | else | |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7709 | $as_echo "no" >&6; } | |
7710 | fi | |
7711 | ||
7712 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7713 | DSYMUTIL=":" | |
7714 | else | |
7715 | case $cross_compiling:$ac_tool_warned in | |
7716 | yes:) | |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7718 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7719 | ac_tool_warned=yes ;; | |
7720 | esac | |
7721 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7722 | fi | |
7723 | else | |
7724 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7725 | fi | |
7726 | ||
7727 | if test -n "$ac_tool_prefix"; then | |
7728 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7729 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7731 | $as_echo_n "checking for $ac_word... " >&6; } | |
7732 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7733 | $as_echo_n "(cached) " >&6 | |
7734 | else | |
7735 | if test -n "$NMEDIT"; then | |
7736 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7737 | else | |
7738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7739 | for as_dir in $PATH | |
7740 | do | |
7741 | IFS=$as_save_IFS | |
7742 | test -z "$as_dir" && as_dir=. | |
7743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7745 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7747 | break 2 | |
7748 | fi | |
7749 | done | |
7750 | done | |
7751 | IFS=$as_save_IFS | |
7752 | ||
7753 | fi | |
7754 | fi | |
7755 | NMEDIT=$ac_cv_prog_NMEDIT | |
7756 | if test -n "$NMEDIT"; then | |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7758 | $as_echo "$NMEDIT" >&6; } | |
7759 | else | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7761 | $as_echo "no" >&6; } | |
7762 | fi | |
7763 | ||
7764 | ||
7765 | fi | |
7766 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7767 | ac_ct_NMEDIT=$NMEDIT | |
7768 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7769 | set dummy nmedit; ac_word=$2 | |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7771 | $as_echo_n "checking for $ac_word... " >&6; } | |
7772 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7773 | $as_echo_n "(cached) " >&6 | |
7774 | else | |
7775 | if test -n "$ac_ct_NMEDIT"; then | |
7776 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7777 | else | |
7778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7779 | for as_dir in $PATH | |
7780 | do | |
7781 | IFS=$as_save_IFS | |
7782 | test -z "$as_dir" && as_dir=. | |
7783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7785 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7787 | break 2 | |
7788 | fi | |
7789 | done | |
7790 | done | |
7791 | IFS=$as_save_IFS | |
7792 | ||
7793 | fi | |
7794 | fi | |
7795 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7796 | if test -n "$ac_ct_NMEDIT"; then | |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7798 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7799 | else | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7801 | $as_echo "no" >&6; } | |
7802 | fi | |
7803 | ||
7804 | if test "x$ac_ct_NMEDIT" = x; then | |
7805 | NMEDIT=":" | |
7806 | else | |
7807 | case $cross_compiling:$ac_tool_warned in | |
7808 | yes:) | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7811 | ac_tool_warned=yes ;; | |
7812 | esac | |
7813 | NMEDIT=$ac_ct_NMEDIT | |
7814 | fi | |
7815 | else | |
7816 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7817 | fi | |
7818 | ||
7819 | if test -n "$ac_tool_prefix"; then | |
7820 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7821 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7823 | $as_echo_n "checking for $ac_word... " >&6; } | |
7824 | if ${ac_cv_prog_LIPO+:} false; then : | |
7825 | $as_echo_n "(cached) " >&6 | |
7826 | else | |
7827 | if test -n "$LIPO"; then | |
7828 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7829 | else | |
7830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7831 | for as_dir in $PATH | |
7832 | do | |
7833 | IFS=$as_save_IFS | |
7834 | test -z "$as_dir" && as_dir=. | |
7835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7837 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7839 | break 2 | |
7840 | fi | |
7841 | done | |
7842 | done | |
7843 | IFS=$as_save_IFS | |
7844 | ||
7845 | fi | |
7846 | fi | |
7847 | LIPO=$ac_cv_prog_LIPO | |
7848 | if test -n "$LIPO"; then | |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7850 | $as_echo "$LIPO" >&6; } | |
7851 | else | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7853 | $as_echo "no" >&6; } | |
7854 | fi | |
7855 | ||
7856 | ||
7857 | fi | |
7858 | if test -z "$ac_cv_prog_LIPO"; then | |
7859 | ac_ct_LIPO=$LIPO | |
7860 | # Extract the first word of "lipo", so it can be a program name with args. | |
7861 | set dummy lipo; ac_word=$2 | |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7863 | $as_echo_n "checking for $ac_word... " >&6; } | |
7864 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7865 | $as_echo_n "(cached) " >&6 | |
7866 | else | |
7867 | if test -n "$ac_ct_LIPO"; then | |
7868 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7869 | else | |
7870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7871 | for as_dir in $PATH | |
7872 | do | |
7873 | IFS=$as_save_IFS | |
7874 | test -z "$as_dir" && as_dir=. | |
7875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7877 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7879 | break 2 | |
7880 | fi | |
7881 | done | |
7882 | done | |
7883 | IFS=$as_save_IFS | |
7884 | ||
7885 | fi | |
7886 | fi | |
7887 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7888 | if test -n "$ac_ct_LIPO"; then | |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7890 | $as_echo "$ac_ct_LIPO" >&6; } | |
7891 | else | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7893 | $as_echo "no" >&6; } | |
7894 | fi | |
7895 | ||
7896 | if test "x$ac_ct_LIPO" = x; then | |
7897 | LIPO=":" | |
7898 | else | |
7899 | case $cross_compiling:$ac_tool_warned in | |
7900 | yes:) | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7902 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7903 | ac_tool_warned=yes ;; | |
7904 | esac | |
7905 | LIPO=$ac_ct_LIPO | |
7906 | fi | |
7907 | else | |
7908 | LIPO="$ac_cv_prog_LIPO" | |
7909 | fi | |
7910 | ||
7911 | if test -n "$ac_tool_prefix"; then | |
7912 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7913 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7915 | $as_echo_n "checking for $ac_word... " >&6; } | |
7916 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7917 | $as_echo_n "(cached) " >&6 | |
7918 | else | |
7919 | if test -n "$OTOOL"; then | |
7920 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7921 | else | |
7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7923 | for as_dir in $PATH | |
7924 | do | |
7925 | IFS=$as_save_IFS | |
7926 | test -z "$as_dir" && as_dir=. | |
7927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7929 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7931 | break 2 | |
7932 | fi | |
7933 | done | |
7934 | done | |
7935 | IFS=$as_save_IFS | |
7936 | ||
7937 | fi | |
7938 | fi | |
7939 | OTOOL=$ac_cv_prog_OTOOL | |
7940 | if test -n "$OTOOL"; then | |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7942 | $as_echo "$OTOOL" >&6; } | |
7943 | else | |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7945 | $as_echo "no" >&6; } | |
7946 | fi | |
7947 | ||
7948 | ||
7949 | fi | |
7950 | if test -z "$ac_cv_prog_OTOOL"; then | |
7951 | ac_ct_OTOOL=$OTOOL | |
7952 | # Extract the first word of "otool", so it can be a program name with args. | |
7953 | set dummy otool; ac_word=$2 | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7955 | $as_echo_n "checking for $ac_word... " >&6; } | |
7956 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7957 | $as_echo_n "(cached) " >&6 | |
7958 | else | |
7959 | if test -n "$ac_ct_OTOOL"; then | |
7960 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7961 | else | |
7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7963 | for as_dir in $PATH | |
7964 | do | |
7965 | IFS=$as_save_IFS | |
7966 | test -z "$as_dir" && as_dir=. | |
7967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7969 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7971 | break 2 | |
7972 | fi | |
7973 | done | |
7974 | done | |
7975 | IFS=$as_save_IFS | |
7976 | ||
7977 | fi | |
7978 | fi | |
7979 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7980 | if test -n "$ac_ct_OTOOL"; then | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7982 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7983 | else | |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7985 | $as_echo "no" >&6; } | |
7986 | fi | |
7987 | ||
7988 | if test "x$ac_ct_OTOOL" = x; then | |
7989 | OTOOL=":" | |
7990 | else | |
7991 | case $cross_compiling:$ac_tool_warned in | |
7992 | yes:) | |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7995 | ac_tool_warned=yes ;; | |
7996 | esac | |
7997 | OTOOL=$ac_ct_OTOOL | |
7998 | fi | |
7999 | else | |
8000 | OTOOL="$ac_cv_prog_OTOOL" | |
8001 | fi | |
8002 | ||
8003 | if test -n "$ac_tool_prefix"; then | |
8004 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8005 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8007 | $as_echo_n "checking for $ac_word... " >&6; } | |
8008 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8009 | $as_echo_n "(cached) " >&6 | |
8010 | else | |
8011 | if test -n "$OTOOL64"; then | |
8012 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8013 | else | |
8014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8015 | for as_dir in $PATH | |
8016 | do | |
8017 | IFS=$as_save_IFS | |
8018 | test -z "$as_dir" && as_dir=. | |
8019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8021 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8023 | break 2 | |
8024 | fi | |
8025 | done | |
8026 | done | |
8027 | IFS=$as_save_IFS | |
8028 | ||
8029 | fi | |
8030 | fi | |
8031 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8032 | if test -n "$OTOOL64"; then | |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8034 | $as_echo "$OTOOL64" >&6; } | |
8035 | else | |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8037 | $as_echo "no" >&6; } | |
8038 | fi | |
8039 | ||
8040 | ||
8041 | fi | |
8042 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8043 | ac_ct_OTOOL64=$OTOOL64 | |
8044 | # Extract the first word of "otool64", so it can be a program name with args. | |
8045 | set dummy otool64; ac_word=$2 | |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8047 | $as_echo_n "checking for $ac_word... " >&6; } | |
8048 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8049 | $as_echo_n "(cached) " >&6 | |
8050 | else | |
8051 | if test -n "$ac_ct_OTOOL64"; then | |
8052 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8053 | else | |
8054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8055 | for as_dir in $PATH | |
8056 | do | |
8057 | IFS=$as_save_IFS | |
8058 | test -z "$as_dir" && as_dir=. | |
8059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8061 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8063 | break 2 | |
8064 | fi | |
8065 | done | |
8066 | done | |
8067 | IFS=$as_save_IFS | |
8068 | ||
8069 | fi | |
8070 | fi | |
8071 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8072 | if test -n "$ac_ct_OTOOL64"; then | |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8074 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8075 | else | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8077 | $as_echo "no" >&6; } | |
8078 | fi | |
8079 | ||
8080 | if test "x$ac_ct_OTOOL64" = x; then | |
8081 | OTOOL64=":" | |
8082 | else | |
8083 | case $cross_compiling:$ac_tool_warned in | |
8084 | yes:) | |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8087 | ac_tool_warned=yes ;; | |
8088 | esac | |
8089 | OTOOL64=$ac_ct_OTOOL64 | |
8090 | fi | |
8091 | else | |
8092 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8093 | fi | |
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8122 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8123 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8124 | $as_echo_n "(cached) " >&6 | |
8125 | else | |
8126 | lt_cv_apple_cc_single_mod=no | |
8127 | if test -z "$LT_MULTI_MODULE"; then | |
8128 | # By default we will add the -single_module flag. You can override | |
8129 | # by either setting the environment variable LT_MULTI_MODULE | |
8130 | # non-empty at configure time, or by adding -multi_module to the | |
8131 | # link flags. | |
8132 | rm -rf libconftest.dylib* | |
8133 | echo "int foo(void){return 1;}" > conftest.c | |
8134 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8135 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8136 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8137 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8138 | _lt_result=$? | |
8139 | # If there is a non-empty error log, and "single_module" | |
8140 | # appears in it, assume the flag caused a linker warning | |
8141 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8142 | cat conftest.err >&5 | |
8143 | # Otherwise, if the output was created with a 0 exit code from | |
8144 | # the compiler, it worked. | |
8145 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
8146 | lt_cv_apple_cc_single_mod=yes | |
8147 | else | |
8148 | cat conftest.err >&5 | |
8149 | fi | |
8150 | rm -rf libconftest.dylib* | |
8151 | rm -f conftest.* | |
8152 | fi | |
8153 | fi | |
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8155 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8156 | ||
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8158 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8159 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8160 | $as_echo_n "(cached) " >&6 | |
8161 | else | |
8162 | lt_cv_ld_exported_symbols_list=no | |
8163 | save_LDFLAGS=$LDFLAGS | |
8164 | echo "_main" > conftest.sym | |
8165 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8167 | /* end confdefs.h. */ | |
8168 | ||
8169 | int | |
8170 | main () | |
8171 | { | |
8172 | ||
8173 | ; | |
8174 | return 0; | |
8175 | } | |
8176 | _ACEOF | |
8177 | if ac_fn_c_try_link "$LINENO"; then : | |
8178 | lt_cv_ld_exported_symbols_list=yes | |
8179 | else | |
8180 | lt_cv_ld_exported_symbols_list=no | |
8181 | fi | |
8182 | rm -f core conftest.err conftest.$ac_objext \ | |
8183 | conftest$ac_exeext conftest.$ac_ext | |
8184 | LDFLAGS=$save_LDFLAGS | |
8185 | ||
8186 | fi | |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8188 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8189 | ||
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8191 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8192 | if ${lt_cv_ld_force_load+:} false; then : | |
8193 | $as_echo_n "(cached) " >&6 | |
8194 | else | |
8195 | lt_cv_ld_force_load=no | |
8196 | cat > conftest.c << _LT_EOF | |
8197 | int forced_loaded() { return 2;} | |
8198 | _LT_EOF | |
8199 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8200 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8201 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8202 | $AR cru libconftest.a conftest.o 2>&5 | |
8203 | echo "$RANLIB libconftest.a" >&5 | |
8204 | $RANLIB libconftest.a 2>&5 | |
8205 | cat > conftest.c << _LT_EOF | |
8206 | int main() { return 0;} | |
8207 | _LT_EOF | |
8208 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8209 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8210 | _lt_result=$? | |
8211 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8212 | cat conftest.err >&5 | |
8213 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
8214 | lt_cv_ld_force_load=yes | |
8215 | else | |
8216 | cat conftest.err >&5 | |
8217 | fi | |
8218 | rm -f conftest.err libconftest.a conftest conftest.c | |
8219 | rm -rf conftest.dSYM | |
8220 | ||
8221 | fi | |
8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8223 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8224 | case $host_os in | |
8225 | rhapsody* | darwin1.[012]) | |
8226 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
8227 | darwin1.*) | |
8228 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8229 | darwin*) # darwin 5.x on | |
8230 | # if running on 10.5 or later, the deployment target defaults | |
8231 | # to the OS version, if on x86, and 10.4, the deployment | |
8232 | # target defaults to 10.4. Don't you love it? | |
8233 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8234 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8235 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
8236 | 10.[012][,.]*) | |
8237 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8238 | 10.*) | |
8239 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
8240 | esac | |
8241 | ;; | |
8242 | esac | |
8243 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
8244 | _lt_dar_single_mod='$single_module' | |
8245 | fi | |
8246 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
8247 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8248 | else | |
8249 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
8250 | fi | |
8251 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
8252 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8253 | else | |
8254 | _lt_dsymutil= | |
8255 | fi | |
8256 | ;; | |
8257 | esac | |
8258 | ||
8259 | # func_munge_path_list VARIABLE PATH | |
8260 | # ----------------------------------- | |
8261 | # VARIABLE is name of variable containing _space_ separated list of | |
8262 | # directories to be munged by the contents of PATH, which is string | |
8263 | # having a format: | |
8264 | # "DIR[:DIR]:" | |
8265 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8266 | # ":DIR[:DIR]" | |
8267 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8268 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8269 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8270 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8271 | # "DIR[:DIR]" | |
8272 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8273 | func_munge_path_list () | |
8274 | { | |
8275 | case x$2 in | |
8276 | x) | |
8277 | ;; | |
8278 | *:) | |
8279 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8280 | ;; | |
8281 | x:*) | |
8282 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8283 | ;; | |
8284 | *::*) | |
8285 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8286 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8287 | ;; | |
8288 | *) | |
8289 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8290 | ;; | |
8291 | esac | |
8292 | } | |
8293 | ||
8294 | ac_ext=c | |
8295 | ac_cpp='$CPP $CPPFLAGS' | |
8296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8300 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8301 | # On Suns, sometimes $CPP names a directory. | |
8302 | if test -n "$CPP" && test -d "$CPP"; then | |
8303 | CPP= | |
8304 | fi | |
8305 | if test -z "$CPP"; then | |
8306 | if ${ac_cv_prog_CPP+:} false; then : | |
8307 | $as_echo_n "(cached) " >&6 | |
8308 | else | |
8309 | # Double quotes because CPP needs to be expanded | |
8310 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8311 | do | |
8312 | ac_preproc_ok=false | |
8313 | for ac_c_preproc_warn_flag in '' yes | |
8314 | do | |
8315 | # Use a header file that comes with gcc, so configuring glibc | |
8316 | # with a fresh cross-compiler works. | |
8317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8318 | # <limits.h> exists even on freestanding compilers. | |
8319 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8320 | # not just through cpp. "Syntax error" is here to catch this case. | |
8321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8322 | /* end confdefs.h. */ | |
8323 | #ifdef __STDC__ | |
8324 | # include <limits.h> | |
8325 | #else | |
8326 | # include <assert.h> | |
8327 | #endif | |
8328 | Syntax error | |
8329 | _ACEOF | |
8330 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8331 | ||
8332 | else | |
8333 | # Broken: fails on valid input. | |
8334 | continue | |
8335 | fi | |
8336 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8337 | ||
8338 | # OK, works on sane cases. Now check whether nonexistent headers | |
8339 | # can be detected and how. | |
8340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8341 | /* end confdefs.h. */ | |
8342 | #include <ac_nonexistent.h> | |
8343 | _ACEOF | |
8344 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8345 | # Broken: success on invalid input. | |
8346 | continue | |
8347 | else | |
8348 | # Passes both tests. | |
8349 | ac_preproc_ok=: | |
8350 | break | |
8351 | fi | |
8352 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8353 | ||
8354 | done | |
8355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8356 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8357 | if $ac_preproc_ok; then : | |
8358 | break | |
8359 | fi | |
8360 | ||
8361 | done | |
8362 | ac_cv_prog_CPP=$CPP | |
8363 | ||
8364 | fi | |
8365 | CPP=$ac_cv_prog_CPP | |
8366 | else | |
8367 | ac_cv_prog_CPP=$CPP | |
8368 | fi | |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8370 | $as_echo "$CPP" >&6; } | |
8371 | ac_preproc_ok=false | |
8372 | for ac_c_preproc_warn_flag in '' yes | |
8373 | do | |
8374 | # Use a header file that comes with gcc, so configuring glibc | |
8375 | # with a fresh cross-compiler works. | |
8376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8377 | # <limits.h> exists even on freestanding compilers. | |
8378 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8379 | # not just through cpp. "Syntax error" is here to catch this case. | |
8380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8381 | /* end confdefs.h. */ | |
8382 | #ifdef __STDC__ | |
8383 | # include <limits.h> | |
8384 | #else | |
8385 | # include <assert.h> | |
8386 | #endif | |
8387 | Syntax error | |
8388 | _ACEOF | |
8389 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8390 | ||
8391 | else | |
8392 | # Broken: fails on valid input. | |
8393 | continue | |
8394 | fi | |
8395 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8396 | ||
8397 | # OK, works on sane cases. Now check whether nonexistent headers | |
8398 | # can be detected and how. | |
8399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8400 | /* end confdefs.h. */ | |
8401 | #include <ac_nonexistent.h> | |
8402 | _ACEOF | |
8403 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8404 | # Broken: success on invalid input. | |
8405 | continue | |
8406 | else | |
8407 | # Passes both tests. | |
8408 | ac_preproc_ok=: | |
8409 | break | |
8410 | fi | |
8411 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8412 | ||
8413 | done | |
8414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8415 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8416 | if $ac_preproc_ok; then : | |
8417 | ||
8418 | else | |
8419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8421 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8422 | See \`config.log' for more details" "$LINENO" 5; } | |
8423 | fi | |
8424 | ||
8425 | ac_ext=c | |
8426 | ac_cpp='$CPP $CPPFLAGS' | |
8427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8430 | ||
8431 | ||
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8433 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8434 | if ${ac_cv_header_stdc+:} false; then : | |
8435 | $as_echo_n "(cached) " >&6 | |
8436 | else | |
8437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8438 | /* end confdefs.h. */ | |
8439 | #include <stdlib.h> | |
8440 | #include <stdarg.h> | |
8441 | #include <string.h> | |
8442 | #include <float.h> | |
8443 | ||
8444 | int | |
8445 | main () | |
8446 | { | |
8447 | ||
8448 | ; | |
8449 | return 0; | |
8450 | } | |
8451 | _ACEOF | |
8452 | if ac_fn_c_try_compile "$LINENO"; then : | |
8453 | ac_cv_header_stdc=yes | |
8454 | else | |
8455 | ac_cv_header_stdc=no | |
8456 | fi | |
8457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8458 | ||
8459 | if test $ac_cv_header_stdc = yes; then | |
8460 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8462 | /* end confdefs.h. */ | |
8463 | #include <string.h> | |
8464 | ||
8465 | _ACEOF | |
8466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8467 | $EGREP "memchr" >/dev/null 2>&1; then : | |
8468 | ||
8469 | else | |
8470 | ac_cv_header_stdc=no | |
8471 | fi | |
8472 | rm -f conftest* | |
8473 | ||
8474 | fi | |
8475 | ||
8476 | if test $ac_cv_header_stdc = yes; then | |
8477 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8479 | /* end confdefs.h. */ | |
8480 | #include <stdlib.h> | |
8481 | ||
8482 | _ACEOF | |
8483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8484 | $EGREP "free" >/dev/null 2>&1; then : | |
8485 | ||
8486 | else | |
8487 | ac_cv_header_stdc=no | |
8488 | fi | |
8489 | rm -f conftest* | |
8490 | ||
8491 | fi | |
8492 | ||
8493 | if test $ac_cv_header_stdc = yes; then | |
8494 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8495 | if test "$cross_compiling" = yes; then : | |
8496 | : | |
8497 | else | |
8498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8499 | /* end confdefs.h. */ | |
8500 | #include <ctype.h> | |
8501 | #include <stdlib.h> | |
8502 | #if ((' ' & 0x0FF) == 0x020) | |
8503 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8504 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8505 | #else | |
8506 | # define ISLOWER(c) \ | |
8507 | (('a' <= (c) && (c) <= 'i') \ | |
8508 | || ('j' <= (c) && (c) <= 'r') \ | |
8509 | || ('s' <= (c) && (c) <= 'z')) | |
8510 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8511 | #endif | |
8512 | ||
8513 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8514 | int | |
8515 | main () | |
8516 | { | |
8517 | int i; | |
8518 | for (i = 0; i < 256; i++) | |
8519 | if (XOR (islower (i), ISLOWER (i)) | |
8520 | || toupper (i) != TOUPPER (i)) | |
8521 | return 2; | |
8522 | return 0; | |
8523 | } | |
8524 | _ACEOF | |
8525 | if ac_fn_c_try_run "$LINENO"; then : | |
8526 | ||
8527 | else | |
8528 | ac_cv_header_stdc=no | |
8529 | fi | |
8530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8531 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8532 | fi | |
8533 | ||
8534 | fi | |
8535 | fi | |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8537 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8538 | if test $ac_cv_header_stdc = yes; then | |
8539 | ||
8540 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8541 | ||
8542 | fi | |
8543 | ||
8544 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8545 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8546 | inttypes.h stdint.h unistd.h | |
8547 | do : | |
8548 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8549 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8550 | " | |
8551 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8552 | cat >>confdefs.h <<_ACEOF | |
8553 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8554 | _ACEOF | |
8555 | ||
8556 | fi | |
8557 | ||
8558 | done | |
8559 | ||
8560 | ||
8561 | for ac_header in dlfcn.h | |
8562 | do : | |
8563 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8564 | " | |
8565 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8566 | cat >>confdefs.h <<_ACEOF | |
8567 | #define HAVE_DLFCN_H 1 | |
8568 | _ACEOF | |
8569 | ||
8570 | fi | |
8571 | ||
8572 | done | |
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | func_stripname_cnf () | |
8578 | { | |
8579 | case $2 in | |
8580 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
8581 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
8582 | esac | |
8583 | } # func_stripname_cnf | |
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | # Set options | |
8590 | ||
8591 | ||
8592 | ||
8593 | enable_dlopen=no | |
8594 | ||
8595 | ||
8596 | enable_win32_dll=no | |
8597 | ||
8598 | ||
8599 | # Check whether --enable-shared was given. | |
8600 | if test "${enable_shared+set}" = set; then : | |
8601 | enableval=$enable_shared; p=${PACKAGE-default} | |
8602 | case $enableval in | |
8603 | yes) enable_shared=yes ;; | |
8604 | no) enable_shared=no ;; | |
8605 | *) | |
8606 | enable_shared=no | |
8607 | # Look at the argument we got. We use all the common list separators. | |
8608 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8609 | for pkg in $enableval; do | |
8610 | IFS=$lt_save_ifs | |
8611 | if test "X$pkg" = "X$p"; then | |
8612 | enable_shared=yes | |
8613 | fi | |
8614 | done | |
8615 | IFS=$lt_save_ifs | |
8616 | ;; | |
8617 | esac | |
8618 | else | |
8619 | enable_shared=yes | |
8620 | fi | |
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | # Check whether --enable-static was given. | |
8631 | if test "${enable_static+set}" = set; then : | |
8632 | enableval=$enable_static; p=${PACKAGE-default} | |
8633 | case $enableval in | |
8634 | yes) enable_static=yes ;; | |
8635 | no) enable_static=no ;; | |
8636 | *) | |
8637 | enable_static=no | |
8638 | # Look at the argument we got. We use all the common list separators. | |
8639 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8640 | for pkg in $enableval; do | |
8641 | IFS=$lt_save_ifs | |
8642 | if test "X$pkg" = "X$p"; then | |
8643 | enable_static=yes | |
8644 | fi | |
8645 | done | |
8646 | IFS=$lt_save_ifs | |
8647 | ;; | |
8648 | esac | |
8649 | else | |
8650 | enable_static=yes | |
8651 | fi | |
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | ||
8662 | # Check whether --with-pic was given. | |
8663 | if test "${with_pic+set}" = set; then : | |
8664 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8665 | case $withval in | |
8666 | yes|no) pic_mode=$withval ;; | |
8667 | *) | |
8668 | pic_mode=default | |
8669 | # Look at the argument we got. We use all the common list separators. | |
8670 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8671 | for lt_pkg in $withval; do | |
8672 | IFS=$lt_save_ifs | |
8673 | if test "X$lt_pkg" = "X$lt_p"; then | |
8674 | pic_mode=yes | |
8675 | fi | |
8676 | done | |
8677 | IFS=$lt_save_ifs | |
8678 | ;; | |
8679 | esac | |
8680 | else | |
8681 | pic_mode=default | |
8682 | fi | |
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | # Check whether --enable-fast-install was given. | |
8692 | if test "${enable_fast_install+set}" = set; then : | |
8693 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8694 | case $enableval in | |
8695 | yes) enable_fast_install=yes ;; | |
8696 | no) enable_fast_install=no ;; | |
8697 | *) | |
8698 | enable_fast_install=no | |
8699 | # Look at the argument we got. We use all the common list separators. | |
8700 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8701 | for pkg in $enableval; do | |
8702 | IFS=$lt_save_ifs | |
8703 | if test "X$pkg" = "X$p"; then | |
8704 | enable_fast_install=yes | |
8705 | fi | |
8706 | done | |
8707 | IFS=$lt_save_ifs | |
8708 | ;; | |
8709 | esac | |
8710 | else | |
8711 | enable_fast_install=yes | |
8712 | fi | |
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | shared_archive_member_spec= | |
8722 | case $host,$enable_shared in | |
8723 | power*-*-aix[5-9]*,yes) | |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8725 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8726 | ||
8727 | # Check whether --with-aix-soname was given. | |
8728 | if test "${with_aix_soname+set}" = set; then : | |
8729 | withval=$with_aix_soname; case $withval in | |
8730 | aix|svr4|both) | |
8731 | ;; | |
8732 | *) | |
8733 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8734 | ;; | |
8735 | esac | |
8736 | lt_cv_with_aix_soname=$with_aix_soname | |
8737 | else | |
8738 | if ${lt_cv_with_aix_soname+:} false; then : | |
8739 | $as_echo_n "(cached) " >&6 | |
8740 | else | |
8741 | lt_cv_with_aix_soname=aix | |
8742 | fi | |
8743 | ||
8744 | with_aix_soname=$lt_cv_with_aix_soname | |
8745 | fi | |
8746 | ||
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8748 | $as_echo "$with_aix_soname" >&6; } | |
8749 | if test aix != "$with_aix_soname"; then | |
8750 | # For the AIX way of multilib, we name the shared archive member | |
8751 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8752 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8753 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8754 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8755 | if test 64 = "${OBJECT_MODE-32}"; then | |
8756 | shared_archive_member_spec=shr_64 | |
8757 | else | |
8758 | shared_archive_member_spec=shr | |
8759 | fi | |
8760 | fi | |
8761 | ;; | |
8762 | *) | |
8763 | with_aix_soname=aix | |
8764 | ;; | |
8765 | esac | |
8766 | ||
8767 | ||
8768 | ||
8769 | ||
8770 | ||
8771 | ||
8772 | ||
8773 | ||
8774 | ||
8775 | ||
8776 | # This can be used to rebuild libtool when needed | |
8777 | LIBTOOL_DEPS=$ltmain | |
8778 | ||
8779 | # Always use our own libtool. | |
8780 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8781 | ||
8782 | ||
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | ||
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | ||
8803 | ||
8804 | ||
8805 | ||
8806 | ||
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | test -z "$LN_S" && LN_S="ln -s" | |
8812 | ||
8813 | ||
8814 | ||
8815 | ||
8816 | ||
8817 | ||
8818 | ||
8819 | ||
8820 | ||
8821 | ||
8822 | ||
8823 | ||
8824 | ||
8825 | ||
8826 | if test -n "${ZSH_VERSION+set}"; then | |
8827 | setopt NO_GLOB_SUBST | |
8828 | fi | |
8829 | ||
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8831 | $as_echo_n "checking for objdir... " >&6; } | |
8832 | if ${lt_cv_objdir+:} false; then : | |
8833 | $as_echo_n "(cached) " >&6 | |
8834 | else | |
8835 | rm -f .libs 2>/dev/null | |
8836 | mkdir .libs 2>/dev/null | |
8837 | if test -d .libs; then | |
8838 | lt_cv_objdir=.libs | |
8839 | else | |
8840 | # MS-DOS does not allow filenames that begin with a dot. | |
8841 | lt_cv_objdir=_libs | |
8842 | fi | |
8843 | rmdir .libs 2>/dev/null | |
8844 | fi | |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8846 | $as_echo "$lt_cv_objdir" >&6; } | |
8847 | objdir=$lt_cv_objdir | |
8848 | ||
8849 | ||
8850 | ||
8851 | ||
8852 | ||
8853 | cat >>confdefs.h <<_ACEOF | |
8854 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8855 | _ACEOF | |
8856 | ||
8857 | ||
8858 | ||
8859 | ||
8860 | case $host_os in | |
8861 | aix3*) | |
8862 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8863 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8864 | # vanish in a puff of smoke. | |
8865 | if test set != "${COLLECT_NAMES+set}"; then | |
8866 | COLLECT_NAMES= | |
8867 | export COLLECT_NAMES | |
8868 | fi | |
8869 | ;; | |
8870 | esac | |
8871 | ||
8872 | # Global variables: | |
8873 | ofile=libtool | |
8874 | can_build_shared=yes | |
8875 | ||
8876 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8877 | # which needs '.lib'). | |
8878 | libext=a | |
8879 | ||
8880 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8881 | ||
8882 | old_CC=$CC | |
8883 | old_CFLAGS=$CFLAGS | |
8884 | ||
8885 | # Set sane defaults for various variables | |
8886 | test -z "$CC" && CC=cc | |
8887 | test -z "$LTCC" && LTCC=$CC | |
8888 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8889 | test -z "$LD" && LD=ld | |
8890 | test -z "$ac_objext" && ac_objext=o | |
8891 | ||
8892 | func_cc_basename $compiler | |
8893 | cc_basename=$func_cc_basename_result | |
8894 | ||
8895 | ||
8896 | # Only perform the check for file, if the check method requires it | |
8897 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8898 | case $deplibs_check_method in | |
8899 | file_magic*) | |
8900 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8902 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8903 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8904 | $as_echo_n "(cached) " >&6 | |
8905 | else | |
8906 | case $MAGIC_CMD in | |
8907 | [\\/*] | ?:[\\/]*) | |
8908 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8909 | ;; | |
8910 | *) | |
8911 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8912 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8913 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8914 | for ac_dir in $ac_dummy; do | |
8915 | IFS=$lt_save_ifs | |
8916 | test -z "$ac_dir" && ac_dir=. | |
8917 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8918 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8919 | if test -n "$file_magic_test_file"; then | |
8920 | case $deplibs_check_method in | |
8921 | "file_magic "*) | |
8922 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8923 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8924 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8925 | $EGREP "$file_magic_regex" > /dev/null; then | |
8926 | : | |
8927 | else | |
8928 | cat <<_LT_EOF 1>&2 | |
8929 | ||
8930 | *** Warning: the command libtool uses to detect shared libraries, | |
8931 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8932 | *** The result is that libtool may fail to recognize shared libraries | |
8933 | *** as such. This will affect the creation of libtool libraries that | |
8934 | *** depend on shared libraries, but programs linked with such libtool | |
8935 | *** libraries will work regardless of this problem. Nevertheless, you | |
8936 | *** may want to report the problem to your system manager and/or to | |
8937 | *** bug-libtool@gnu.org | |
8938 | ||
8939 | _LT_EOF | |
8940 | fi ;; | |
8941 | esac | |
8942 | fi | |
8943 | break | |
8944 | fi | |
8945 | done | |
8946 | IFS=$lt_save_ifs | |
8947 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8948 | ;; | |
8949 | esac | |
8950 | fi | |
8951 | ||
8952 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8953 | if test -n "$MAGIC_CMD"; then | |
8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8955 | $as_echo "$MAGIC_CMD" >&6; } | |
8956 | else | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8958 | $as_echo "no" >&6; } | |
8959 | fi | |
8960 | ||
8961 | ||
8962 | ||
8963 | ||
8964 | ||
8965 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8966 | if test -n "$ac_tool_prefix"; then | |
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8968 | $as_echo_n "checking for file... " >&6; } | |
8969 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8970 | $as_echo_n "(cached) " >&6 | |
8971 | else | |
8972 | case $MAGIC_CMD in | |
8973 | [\\/*] | ?:[\\/]*) | |
8974 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8975 | ;; | |
8976 | *) | |
8977 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8978 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8979 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8980 | for ac_dir in $ac_dummy; do | |
8981 | IFS=$lt_save_ifs | |
8982 | test -z "$ac_dir" && ac_dir=. | |
8983 | if test -f "$ac_dir/file"; then | |
8984 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8985 | if test -n "$file_magic_test_file"; then | |
8986 | case $deplibs_check_method in | |
8987 | "file_magic "*) | |
8988 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8989 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8990 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8991 | $EGREP "$file_magic_regex" > /dev/null; then | |
8992 | : | |
8993 | else | |
8994 | cat <<_LT_EOF 1>&2 | |
8995 | ||
8996 | *** Warning: the command libtool uses to detect shared libraries, | |
8997 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8998 | *** The result is that libtool may fail to recognize shared libraries | |
8999 | *** as such. This will affect the creation of libtool libraries that | |
9000 | *** depend on shared libraries, but programs linked with such libtool | |
9001 | *** libraries will work regardless of this problem. Nevertheless, you | |
9002 | *** may want to report the problem to your system manager and/or to | |
9003 | *** bug-libtool@gnu.org | |
9004 | ||
9005 | _LT_EOF | |
9006 | fi ;; | |
9007 | esac | |
9008 | fi | |
9009 | break | |
9010 | fi | |
9011 | done | |
9012 | IFS=$lt_save_ifs | |
9013 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
9014 | ;; | |
9015 | esac | |
9016 | fi | |
9017 | ||
9018 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
9019 | if test -n "$MAGIC_CMD"; then | |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9021 | $as_echo "$MAGIC_CMD" >&6; } | |
9022 | else | |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9024 | $as_echo "no" >&6; } | |
9025 | fi | |
9026 | ||
9027 | ||
9028 | else | |
9029 | MAGIC_CMD=: | |
9030 | fi | |
9031 | fi | |
9032 | ||
9033 | fi | |
9034 | ;; | |
9035 | esac | |
9036 | ||
9037 | # Use C for the default configuration in the libtool script | |
9038 | ||
9039 | lt_save_CC=$CC | |
9040 | ac_ext=c | |
9041 | ac_cpp='$CPP $CPPFLAGS' | |
9042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9045 | ||
9046 | ||
9047 | # Source file extension for C test sources. | |
9048 | ac_ext=c | |
9049 | ||
9050 | # Object file extension for compiled C test sources. | |
9051 | objext=o | |
9052 | objext=$objext | |
9053 | ||
9054 | # Code to be used in simple compile tests | |
9055 | lt_simple_compile_test_code="int some_variable = 0;" | |
9056 | ||
9057 | # Code to be used in simple link tests | |
9058 | lt_simple_link_test_code='int main(){return(0);}' | |
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | ||
9066 | # If no C compiler was specified, use CC. | |
9067 | LTCC=${LTCC-"$CC"} | |
9068 | ||
9069 | # If no C compiler flags were specified, use CFLAGS. | |
9070 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9071 | ||
9072 | # Allow CC to be a program name with arguments. | |
9073 | compiler=$CC | |
9074 | ||
9075 | # Save the default compiler, since it gets overwritten when the other | |
9076 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9077 | compiler_DEFAULT=$CC | |
9078 | ||
9079 | # save warnings/boilerplate of simple test code | |
9080 | ac_outfile=conftest.$ac_objext | |
9081 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9082 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9083 | _lt_compiler_boilerplate=`cat conftest.err` | |
9084 | $RM conftest* | |
9085 | ||
9086 | ac_outfile=conftest.$ac_objext | |
9087 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9088 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9089 | _lt_linker_boilerplate=`cat conftest.err` | |
9090 | $RM -r conftest* | |
9091 | ||
9092 | ||
9093 | ## CAVEAT EMPTOR: | |
9094 | ## There is no encapsulation within the following macros, do not change | |
9095 | ## the running order or otherwise move them around unless you know exactly | |
9096 | ## what you are doing... | |
9097 | if test -n "$compiler"; then | |
9098 | ||
9099 | lt_prog_compiler_no_builtin_flag= | |
9100 | ||
9101 | if test yes = "$GCC"; then | |
9102 | case $cc_basename in | |
9103 | nvcc*) | |
9104 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9105 | *) | |
9106 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9107 | esac | |
9108 | ||
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9110 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9111 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9112 | $as_echo_n "(cached) " >&6 | |
9113 | else | |
9114 | lt_cv_prog_compiler_rtti_exceptions=no | |
9115 | ac_outfile=conftest.$ac_objext | |
9116 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9117 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
9118 | # Insert the option either (1) after the last *FLAGS variable, or | |
9119 | # (2) before a word containing "conftest.", or (3) at the end. | |
9120 | # Note that $ac_compile itself does not contain backslashes and begins | |
9121 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9122 | # The option is referenced via a variable to avoid confusing sed. | |
9123 | lt_compile=`echo "$ac_compile" | $SED \ | |
9124 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9125 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9126 | -e 's:$: $lt_compiler_flag:'` | |
9127 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9128 | (eval "$lt_compile" 2>conftest.err) | |
9129 | ac_status=$? | |
9130 | cat conftest.err >&5 | |
9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9132 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9133 | # The compiler can only warn and ignore the option if not recognized | |
9134 | # So say no if there are warnings other than the usual output. | |
9135 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9136 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9137 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9138 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9139 | fi | |
9140 | fi | |
9141 | $RM conftest* | |
9142 | ||
9143 | fi | |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9145 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9146 | ||
9147 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
9148 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9149 | else | |
9150 | : | |
9151 | fi | |
9152 | ||
9153 | fi | |
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | lt_prog_compiler_wl= | |
9161 | lt_prog_compiler_pic= | |
9162 | lt_prog_compiler_static= | |
9163 | ||
9164 | ||
9165 | if test yes = "$GCC"; then | |
9166 | lt_prog_compiler_wl='-Wl,' | |
9167 | lt_prog_compiler_static='-static' | |
9168 | ||
9169 | case $host_os in | |
9170 | aix*) | |
9171 | # All AIX code is PIC. | |
9172 | if test ia64 = "$host_cpu"; then | |
9173 | # AIX 5 now supports IA64 processor | |
9174 | lt_prog_compiler_static='-Bstatic' | |
9175 | fi | |
9176 | lt_prog_compiler_pic='-fPIC' | |
9177 | ;; | |
9178 | ||
9179 | amigaos*) | |
9180 | case $host_cpu in | |
9181 | powerpc) | |
9182 | # see comment about AmigaOS4 .so support | |
9183 | lt_prog_compiler_pic='-fPIC' | |
9184 | ;; | |
9185 | m68k) | |
9186 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9187 | # adding the '-m68020' flag to GCC prevents building anything better, | |
9188 | # like '-m68040'. | |
9189 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9190 | ;; | |
9191 | esac | |
9192 | ;; | |
9193 | ||
9194 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9195 | # PIC is the default for these OSes. | |
9196 | ;; | |
9197 | ||
9198 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9199 | # This hack is so that the source file can tell whether it is being | |
9200 | # built for inclusion in a dll (and should export symbols for example). | |
9201 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9202 | # (--disable-auto-import) libraries | |
9203 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9204 | case $host_os in | |
9205 | os2*) | |
9206 | lt_prog_compiler_static='$wl-static' | |
9207 | ;; | |
9208 | esac | |
9209 | ;; | |
9210 | ||
9211 | darwin* | rhapsody*) | |
9212 | # PIC is the default on this platform | |
9213 | # Common symbols not allowed in MH_DYLIB files | |
9214 | lt_prog_compiler_pic='-fno-common' | |
9215 | ;; | |
9216 | ||
9217 | haiku*) | |
9218 | # PIC is the default for Haiku. | |
9219 | # The "-static" flag exists, but is broken. | |
9220 | lt_prog_compiler_static= | |
9221 | ;; | |
9222 | ||
9223 | hpux*) | |
9224 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9225 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9226 | # sets the default TLS model and affects inlining. | |
9227 | case $host_cpu in | |
9228 | hppa*64*) | |
9229 | # +Z the default | |
9230 | ;; | |
9231 | *) | |
9232 | lt_prog_compiler_pic='-fPIC' | |
9233 | ;; | |
9234 | esac | |
9235 | ;; | |
9236 | ||
9237 | interix[3-9]*) | |
9238 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9239 | # Instead, we relocate shared libraries at runtime. | |
9240 | ;; | |
9241 | ||
9242 | msdosdjgpp*) | |
9243 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9244 | # on systems that don't support them. | |
9245 | lt_prog_compiler_can_build_shared=no | |
9246 | enable_shared=no | |
9247 | ;; | |
9248 | ||
9249 | *nto* | *qnx*) | |
9250 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9251 | # it will coredump. | |
9252 | lt_prog_compiler_pic='-fPIC -shared' | |
9253 | ;; | |
9254 | ||
9255 | sysv4*MP*) | |
9256 | if test -d /usr/nec; then | |
9257 | lt_prog_compiler_pic=-Kconform_pic | |
9258 | fi | |
9259 | ;; | |
9260 | ||
9261 | *) | |
9262 | lt_prog_compiler_pic='-fPIC' | |
9263 | ;; | |
9264 | esac | |
9265 | ||
9266 | case $cc_basename in | |
9267 | nvcc*) # Cuda Compiler Driver 2.2 | |
9268 | lt_prog_compiler_wl='-Xlinker ' | |
9269 | if test -n "$lt_prog_compiler_pic"; then | |
9270 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9271 | fi | |
9272 | ;; | |
9273 | esac | |
9274 | else | |
9275 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9276 | case $host_os in | |
9277 | aix*) | |
9278 | lt_prog_compiler_wl='-Wl,' | |
9279 | if test ia64 = "$host_cpu"; then | |
9280 | # AIX 5 now supports IA64 processor | |
9281 | lt_prog_compiler_static='-Bstatic' | |
9282 | else | |
9283 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9284 | fi | |
9285 | ;; | |
9286 | ||
9287 | darwin* | rhapsody*) | |
9288 | # PIC is the default on this platform | |
9289 | # Common symbols not allowed in MH_DYLIB files | |
9290 | lt_prog_compiler_pic='-fno-common' | |
9291 | case $cc_basename in | |
9292 | nagfor*) | |
9293 | # NAG Fortran compiler | |
9294 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9295 | lt_prog_compiler_pic='-PIC' | |
9296 | lt_prog_compiler_static='-Bstatic' | |
9297 | ;; | |
9298 | esac | |
9299 | ;; | |
9300 | ||
9301 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9302 | # This hack is so that the source file can tell whether it is being | |
9303 | # built for inclusion in a dll (and should export symbols for example). | |
9304 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9305 | case $host_os in | |
9306 | os2*) | |
9307 | lt_prog_compiler_static='$wl-static' | |
9308 | ;; | |
9309 | esac | |
9310 | ;; | |
9311 | ||
9312 | hpux9* | hpux10* | hpux11*) | |
9313 | lt_prog_compiler_wl='-Wl,' | |
9314 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9315 | # not for PA HP-UX. | |
9316 | case $host_cpu in | |
9317 | hppa*64*|ia64*) | |
9318 | # +Z the default | |
9319 | ;; | |
9320 | *) | |
9321 | lt_prog_compiler_pic='+Z' | |
9322 | ;; | |
9323 | esac | |
9324 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9325 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
9326 | ;; | |
9327 | ||
9328 | irix5* | irix6* | nonstopux*) | |
9329 | lt_prog_compiler_wl='-Wl,' | |
9330 | # PIC (with -KPIC) is the default. | |
9331 | lt_prog_compiler_static='-non_shared' | |
9332 | ;; | |
9333 | ||
9334 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
9335 | case $cc_basename in | |
9336 | # old Intel for x86_64, which still supported -KPIC. | |
9337 | ecc*) | |
9338 | lt_prog_compiler_wl='-Wl,' | |
9339 | lt_prog_compiler_pic='-KPIC' | |
9340 | lt_prog_compiler_static='-static' | |
9341 | ;; | |
9342 | # icc used to be incompatible with GCC. | |
9343 | # ICC 10 doesn't accept -KPIC any more. | |
9344 | icc* | ifort*) | |
9345 | lt_prog_compiler_wl='-Wl,' | |
9346 | lt_prog_compiler_pic='-fPIC' | |
9347 | lt_prog_compiler_static='-static' | |
9348 | ;; | |
9349 | # Lahey Fortran 8.1. | |
9350 | lf95*) | |
9351 | lt_prog_compiler_wl='-Wl,' | |
9352 | lt_prog_compiler_pic='--shared' | |
9353 | lt_prog_compiler_static='--static' | |
9354 | ;; | |
9355 | nagfor*) | |
9356 | # NAG Fortran compiler | |
9357 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9358 | lt_prog_compiler_pic='-PIC' | |
9359 | lt_prog_compiler_static='-Bstatic' | |
9360 | ;; | |
9361 | tcc*) | |
9362 | # Fabrice Bellard et al's Tiny C Compiler | |
9363 | lt_prog_compiler_wl='-Wl,' | |
9364 | lt_prog_compiler_pic='-fPIC' | |
9365 | lt_prog_compiler_static='-static' | |
9366 | ;; | |
9367 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9368 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9369 | # which looks to be a dead project) | |
9370 | lt_prog_compiler_wl='-Wl,' | |
9371 | lt_prog_compiler_pic='-fpic' | |
9372 | lt_prog_compiler_static='-Bstatic' | |
9373 | ;; | |
9374 | ccc*) | |
9375 | lt_prog_compiler_wl='-Wl,' | |
9376 | # All Alpha code is PIC. | |
9377 | lt_prog_compiler_static='-non_shared' | |
9378 | ;; | |
9379 | xl* | bgxl* | bgf* | mpixl*) | |
9380 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9381 | lt_prog_compiler_wl='-Wl,' | |
9382 | lt_prog_compiler_pic='-qpic' | |
9383 | lt_prog_compiler_static='-qstaticlink' | |
9384 | ;; | |
9385 | *) | |
9386 | case `$CC -V 2>&1 | sed 5q` in | |
9387 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9388 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9389 | lt_prog_compiler_pic='-KPIC' | |
9390 | lt_prog_compiler_static='-Bstatic' | |
9391 | lt_prog_compiler_wl='' | |
9392 | ;; | |
9393 | *Sun\ F* | *Sun*Fortran*) | |
9394 | lt_prog_compiler_pic='-KPIC' | |
9395 | lt_prog_compiler_static='-Bstatic' | |
9396 | lt_prog_compiler_wl='-Qoption ld ' | |
9397 | ;; | |
9398 | *Sun\ C*) | |
9399 | # Sun C 5.9 | |
9400 | lt_prog_compiler_pic='-KPIC' | |
9401 | lt_prog_compiler_static='-Bstatic' | |
9402 | lt_prog_compiler_wl='-Wl,' | |
9403 | ;; | |
9404 | *Intel*\ [CF]*Compiler*) | |
9405 | lt_prog_compiler_wl='-Wl,' | |
9406 | lt_prog_compiler_pic='-fPIC' | |
9407 | lt_prog_compiler_static='-static' | |
9408 | ;; | |
9409 | *Portland\ Group*) | |
9410 | lt_prog_compiler_wl='-Wl,' | |
9411 | lt_prog_compiler_pic='-fpic' | |
9412 | lt_prog_compiler_static='-Bstatic' | |
9413 | ;; | |
9414 | esac | |
9415 | ;; | |
9416 | esac | |
9417 | ;; | |
9418 | ||
9419 | newsos6) | |
9420 | lt_prog_compiler_pic='-KPIC' | |
9421 | lt_prog_compiler_static='-Bstatic' | |
9422 | ;; | |
9423 | ||
9424 | *nto* | *qnx*) | |
9425 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9426 | # it will coredump. | |
9427 | lt_prog_compiler_pic='-fPIC -shared' | |
9428 | ;; | |
9429 | ||
9430 | osf3* | osf4* | osf5*) | |
9431 | lt_prog_compiler_wl='-Wl,' | |
9432 | # All OSF/1 code is PIC. | |
9433 | lt_prog_compiler_static='-non_shared' | |
9434 | ;; | |
9435 | ||
9436 | rdos*) | |
9437 | lt_prog_compiler_static='-non_shared' | |
9438 | ;; | |
9439 | ||
9440 | solaris*) | |
9441 | lt_prog_compiler_pic='-KPIC' | |
9442 | lt_prog_compiler_static='-Bstatic' | |
9443 | case $cc_basename in | |
9444 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9445 | lt_prog_compiler_wl='-Qoption ld ';; | |
9446 | *) | |
9447 | lt_prog_compiler_wl='-Wl,';; | |
9448 | esac | |
9449 | ;; | |
9450 | ||
9451 | sunos4*) | |
9452 | lt_prog_compiler_wl='-Qoption ld ' | |
9453 | lt_prog_compiler_pic='-PIC' | |
9454 | lt_prog_compiler_static='-Bstatic' | |
9455 | ;; | |
9456 | ||
9457 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9458 | lt_prog_compiler_wl='-Wl,' | |
9459 | lt_prog_compiler_pic='-KPIC' | |
9460 | lt_prog_compiler_static='-Bstatic' | |
9461 | ;; | |
9462 | ||
9463 | sysv4*MP*) | |
9464 | if test -d /usr/nec; then | |
9465 | lt_prog_compiler_pic='-Kconform_pic' | |
9466 | lt_prog_compiler_static='-Bstatic' | |
9467 | fi | |
9468 | ;; | |
9469 | ||
9470 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9471 | lt_prog_compiler_wl='-Wl,' | |
9472 | lt_prog_compiler_pic='-KPIC' | |
9473 | lt_prog_compiler_static='-Bstatic' | |
9474 | ;; | |
9475 | ||
9476 | unicos*) | |
9477 | lt_prog_compiler_wl='-Wl,' | |
9478 | lt_prog_compiler_can_build_shared=no | |
9479 | ;; | |
9480 | ||
9481 | uts4*) | |
9482 | lt_prog_compiler_pic='-pic' | |
9483 | lt_prog_compiler_static='-Bstatic' | |
9484 | ;; | |
9485 | ||
9486 | *) | |
9487 | lt_prog_compiler_can_build_shared=no | |
9488 | ;; | |
9489 | esac | |
9490 | fi | |
9491 | ||
9492 | case $host_os in | |
9493 | # For platforms that do not support PIC, -DPIC is meaningless: | |
9494 | *djgpp*) | |
9495 | lt_prog_compiler_pic= | |
9496 | ;; | |
9497 | *) | |
9498 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9499 | ;; | |
9500 | esac | |
9501 | ||
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9503 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9504 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9505 | $as_echo_n "(cached) " >&6 | |
9506 | else | |
9507 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9508 | fi | |
9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9510 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9511 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9512 | ||
9513 | # | |
9514 | # Check to make sure the PIC flag actually works. | |
9515 | # | |
9516 | if test -n "$lt_prog_compiler_pic"; then | |
9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9518 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9519 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9520 | $as_echo_n "(cached) " >&6 | |
9521 | else | |
9522 | lt_cv_prog_compiler_pic_works=no | |
9523 | ac_outfile=conftest.$ac_objext | |
9524 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9525 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
9526 | # Insert the option either (1) after the last *FLAGS variable, or | |
9527 | # (2) before a word containing "conftest.", or (3) at the end. | |
9528 | # Note that $ac_compile itself does not contain backslashes and begins | |
9529 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9530 | # The option is referenced via a variable to avoid confusing sed. | |
9531 | lt_compile=`echo "$ac_compile" | $SED \ | |
9532 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9533 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9534 | -e 's:$: $lt_compiler_flag:'` | |
9535 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9536 | (eval "$lt_compile" 2>conftest.err) | |
9537 | ac_status=$? | |
9538 | cat conftest.err >&5 | |
9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9540 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9541 | # The compiler can only warn and ignore the option if not recognized | |
9542 | # So say no if there are warnings other than the usual output. | |
9543 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9544 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9545 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9546 | lt_cv_prog_compiler_pic_works=yes | |
9547 | fi | |
9548 | fi | |
9549 | $RM conftest* | |
9550 | ||
9551 | fi | |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9553 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9554 | ||
9555 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
9556 | case $lt_prog_compiler_pic in | |
9557 | "" | " "*) ;; | |
9558 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9559 | esac | |
9560 | else | |
9561 | lt_prog_compiler_pic= | |
9562 | lt_prog_compiler_can_build_shared=no | |
9563 | fi | |
9564 | ||
9565 | fi | |
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | # | |
9578 | # Check to make sure the static flag actually works. | |
9579 | # | |
9580 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9582 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9583 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9584 | $as_echo_n "(cached) " >&6 | |
9585 | else | |
9586 | lt_cv_prog_compiler_static_works=no | |
9587 | save_LDFLAGS=$LDFLAGS | |
9588 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9589 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9590 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9591 | # The linker can only warn and ignore the option if not recognized | |
9592 | # So say no if there are warnings | |
9593 | if test -s conftest.err; then | |
9594 | # Append any errors to the config.log. | |
9595 | cat conftest.err 1>&5 | |
9596 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9597 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9598 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9599 | lt_cv_prog_compiler_static_works=yes | |
9600 | fi | |
9601 | else | |
9602 | lt_cv_prog_compiler_static_works=yes | |
9603 | fi | |
9604 | fi | |
9605 | $RM -r conftest* | |
9606 | LDFLAGS=$save_LDFLAGS | |
9607 | ||
9608 | fi | |
9609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9610 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9611 | ||
9612 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
9613 | : | |
9614 | else | |
9615 | lt_prog_compiler_static= | |
9616 | fi | |
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9625 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9626 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9627 | $as_echo_n "(cached) " >&6 | |
9628 | else | |
9629 | lt_cv_prog_compiler_c_o=no | |
9630 | $RM -r conftest 2>/dev/null | |
9631 | mkdir conftest | |
9632 | cd conftest | |
9633 | mkdir out | |
9634 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9635 | ||
9636 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9637 | # Insert the option either (1) after the last *FLAGS variable, or | |
9638 | # (2) before a word containing "conftest.", or (3) at the end. | |
9639 | # Note that $ac_compile itself does not contain backslashes and begins | |
9640 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9641 | lt_compile=`echo "$ac_compile" | $SED \ | |
9642 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9643 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9644 | -e 's:$: $lt_compiler_flag:'` | |
9645 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9646 | (eval "$lt_compile" 2>out/conftest.err) | |
9647 | ac_status=$? | |
9648 | cat out/conftest.err >&5 | |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9651 | then | |
9652 | # The compiler can only warn and ignore the option if not recognized | |
9653 | # So say no if there are warnings | |
9654 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9655 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9656 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9657 | lt_cv_prog_compiler_c_o=yes | |
9658 | fi | |
9659 | fi | |
9660 | chmod u+w . 2>&5 | |
9661 | $RM conftest* | |
9662 | # SGI C++ compiler will create directory out/ii_files/ for | |
9663 | # template instantiation | |
9664 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9665 | $RM out/* && rmdir out | |
9666 | cd .. | |
9667 | $RM -r conftest | |
9668 | $RM conftest* | |
9669 | ||
9670 | fi | |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9672 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9680 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9681 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9682 | $as_echo_n "(cached) " >&6 | |
9683 | else | |
9684 | lt_cv_prog_compiler_c_o=no | |
9685 | $RM -r conftest 2>/dev/null | |
9686 | mkdir conftest | |
9687 | cd conftest | |
9688 | mkdir out | |
9689 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9690 | ||
9691 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9692 | # Insert the option either (1) after the last *FLAGS variable, or | |
9693 | # (2) before a word containing "conftest.", or (3) at the end. | |
9694 | # Note that $ac_compile itself does not contain backslashes and begins | |
9695 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9696 | lt_compile=`echo "$ac_compile" | $SED \ | |
9697 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9698 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9699 | -e 's:$: $lt_compiler_flag:'` | |
9700 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9701 | (eval "$lt_compile" 2>out/conftest.err) | |
9702 | ac_status=$? | |
9703 | cat out/conftest.err >&5 | |
9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9705 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9706 | then | |
9707 | # The compiler can only warn and ignore the option if not recognized | |
9708 | # So say no if there are warnings | |
9709 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9710 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9711 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9712 | lt_cv_prog_compiler_c_o=yes | |
9713 | fi | |
9714 | fi | |
9715 | chmod u+w . 2>&5 | |
9716 | $RM conftest* | |
9717 | # SGI C++ compiler will create directory out/ii_files/ for | |
9718 | # template instantiation | |
9719 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9720 | $RM out/* && rmdir out | |
9721 | cd .. | |
9722 | $RM -r conftest | |
9723 | $RM conftest* | |
9724 | ||
9725 | fi | |
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9727 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | hard_links=nottested | |
9733 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
9734 | # do not overwrite the value of need_locks provided by the user | |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9736 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9737 | hard_links=yes | |
9738 | $RM conftest* | |
9739 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9740 | touch conftest.a | |
9741 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9742 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9744 | $as_echo "$hard_links" >&6; } | |
9745 | if test no = "$hard_links"; then | |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9747 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
9748 | need_locks=warn | |
9749 | fi | |
9750 | else | |
9751 | need_locks=no | |
9752 | fi | |
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9760 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9761 | ||
9762 | runpath_var= | |
9763 | allow_undefined_flag= | |
9764 | always_export_symbols=no | |
9765 | archive_cmds= | |
9766 | archive_expsym_cmds= | |
9767 | compiler_needs_object=no | |
9768 | enable_shared_with_static_runtimes=no | |
9769 | export_dynamic_flag_spec= | |
9770 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9771 | hardcode_automatic=no | |
9772 | hardcode_direct=no | |
9773 | hardcode_direct_absolute=no | |
9774 | hardcode_libdir_flag_spec= | |
9775 | hardcode_libdir_separator= | |
9776 | hardcode_minus_L=no | |
9777 | hardcode_shlibpath_var=unsupported | |
9778 | inherit_rpath=no | |
9779 | link_all_deplibs=unknown | |
9780 | module_cmds= | |
9781 | module_expsym_cmds= | |
9782 | old_archive_from_new_cmds= | |
9783 | old_archive_from_expsyms_cmds= | |
9784 | thread_safe_flag_spec= | |
9785 | whole_archive_flag_spec= | |
9786 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9787 | # included in the symbol list | |
9788 | include_expsyms= | |
9789 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9790 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9791 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9792 | # as well as any symbol that contains 'd'. | |
9793 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9794 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9795 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9796 | # the symbol is explicitly referenced. Since portable code cannot | |
9797 | # rely on this symbol name, it's probably fine to never include it in | |
9798 | # preloaded symbol tables. | |
9799 | # Exclude shared library initialization/finalization symbols. | |
9800 | extract_expsyms_cmds= | |
9801 | ||
9802 | case $host_os in | |
9803 | cygwin* | mingw* | pw32* | cegcc*) | |
9804 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9805 | # When not using gcc, we currently assume that we are using | |
9806 | # Microsoft Visual C++. | |
9807 | if test yes != "$GCC"; then | |
9808 | with_gnu_ld=no | |
9809 | fi | |
9810 | ;; | |
9811 | interix*) | |
9812 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9813 | with_gnu_ld=yes | |
9814 | ;; | |
9815 | openbsd* | bitrig*) | |
9816 | with_gnu_ld=no | |
9817 | ;; | |
9818 | linux* | k*bsd*-gnu | gnu*) | |
9819 | link_all_deplibs=no | |
9820 | ;; | |
9821 | esac | |
9822 | ||
9823 | ld_shlibs=yes | |
9824 | ||
9825 | # On some targets, GNU ld is compatible enough with the native linker | |
9826 | # that we're better off using the native interface for both. | |
9827 | lt_use_gnu_ld_interface=no | |
9828 | if test yes = "$with_gnu_ld"; then | |
9829 | case $host_os in | |
9830 | aix*) | |
9831 | # The AIX port of GNU ld has always aspired to compatibility | |
9832 | # with the native linker. However, as the warning in the GNU ld | |
9833 | # block says, versions before 2.19.5* couldn't really create working | |
9834 | # shared libraries, regardless of the interface used. | |
9835 | case `$LD -v 2>&1` in | |
9836 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9837 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9838 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9839 | *) | |
9840 | lt_use_gnu_ld_interface=yes | |
9841 | ;; | |
9842 | esac | |
9843 | ;; | |
9844 | *) | |
9845 | lt_use_gnu_ld_interface=yes | |
9846 | ;; | |
9847 | esac | |
9848 | fi | |
9849 | ||
9850 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9851 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9852 | wlarc='$wl' | |
9853 | ||
9854 | # Set some defaults for GNU ld with shared library support. These | |
9855 | # are reset later if shared libraries are not supported. Putting them | |
9856 | # here allows them to be overridden if necessary. | |
9857 | runpath_var=LD_RUN_PATH | |
9858 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9859 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9860 | # ancient GNU ld didn't support --whole-archive et. al. | |
9861 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9862 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9863 | else | |
9864 | whole_archive_flag_spec= | |
9865 | fi | |
9866 | supports_anon_versioning=no | |
9867 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9868 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9869 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9870 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9871 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9872 | *\ 2.11.*) ;; # other 2.11 versions | |
9873 | *) supports_anon_versioning=yes ;; | |
9874 | esac | |
9875 | ||
9876 | # See if GNU ld supports shared libraries. | |
9877 | case $host_os in | |
9878 | aix[3-9]*) | |
9879 | # On AIX/PPC, the GNU linker is very broken | |
9880 | if test ia64 != "$host_cpu"; then | |
9881 | ld_shlibs=no | |
9882 | cat <<_LT_EOF 1>&2 | |
9883 | ||
9884 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9885 | *** to be unable to reliably create shared libraries on AIX. | |
9886 | *** Therefore, libtool is disabling shared libraries support. If you | |
9887 | *** really care for shared libraries, you may want to install binutils | |
9888 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9889 | *** You will then need to restart the configuration process. | |
9890 | ||
9891 | _LT_EOF | |
9892 | fi | |
9893 | ;; | |
9894 | ||
9895 | amigaos*) | |
9896 | case $host_cpu in | |
9897 | powerpc) | |
9898 | # see comment about AmigaOS4 .so support | |
9899 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9900 | archive_expsym_cmds='' | |
9901 | ;; | |
9902 | m68k) | |
9903 | 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)' | |
9904 | hardcode_libdir_flag_spec='-L$libdir' | |
9905 | hardcode_minus_L=yes | |
9906 | ;; | |
9907 | esac | |
9908 | ;; | |
9909 | ||
9910 | beos*) | |
9911 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9912 | allow_undefined_flag=unsupported | |
9913 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9914 | # support --undefined. This deserves some investigation. FIXME | |
9915 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9916 | else | |
9917 | ld_shlibs=no | |
9918 | fi | |
9919 | ;; | |
9920 | ||
9921 | cygwin* | mingw* | pw32* | cegcc*) | |
9922 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9923 | # as there is no search path for DLLs. | |
9924 | hardcode_libdir_flag_spec='-L$libdir' | |
9925 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9926 | allow_undefined_flag=unsupported | |
9927 | always_export_symbols=no | |
9928 | enable_shared_with_static_runtimes=yes | |
9929 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
9930 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9931 | ||
9932 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9933 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9934 | # If the export-symbols file already is a .def file, use it as | |
9935 | # is; otherwise, prepend EXPORTS... | |
9936 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9937 | cp $export_symbols $output_objdir/$soname.def; | |
9938 | else | |
9939 | echo EXPORTS > $output_objdir/$soname.def; | |
9940 | cat $export_symbols >> $output_objdir/$soname.def; | |
9941 | fi~ | |
9942 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9943 | else | |
9944 | ld_shlibs=no | |
9945 | fi | |
9946 | ;; | |
9947 | ||
9948 | haiku*) | |
9949 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9950 | link_all_deplibs=yes | |
9951 | ;; | |
9952 | ||
9953 | os2*) | |
9954 | hardcode_libdir_flag_spec='-L$libdir' | |
9955 | hardcode_minus_L=yes | |
9956 | allow_undefined_flag=unsupported | |
9957 | shrext_cmds=.dll | |
9958 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9959 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9960 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9961 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9962 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9963 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9964 | emximp -o $lib $output_objdir/$libname.def' | |
9965 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9966 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9967 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9968 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9969 | prefix_cmds="$SED"~ | |
9970 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9971 | prefix_cmds="$prefix_cmds -e 1d"; | |
9972 | fi~ | |
9973 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9974 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9975 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9976 | emximp -o $lib $output_objdir/$libname.def' | |
9977 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9978 | enable_shared_with_static_runtimes=yes | |
9979 | ;; | |
9980 | ||
9981 | interix[3-9]*) | |
9982 | hardcode_direct=no | |
9983 | hardcode_shlibpath_var=no | |
9984 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9985 | export_dynamic_flag_spec='$wl-E' | |
9986 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9987 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9988 | # default) and relocated if they conflict, which is a slow very memory | |
9989 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9990 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9991 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9992 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9993 | 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' | |
9994 | ;; | |
9995 | ||
9996 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9997 | tmp_diet=no | |
9998 | if test linux-dietlibc = "$host_os"; then | |
9999 | case $cc_basename in | |
10000 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10001 | esac | |
10002 | fi | |
10003 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10004 | && test no = "$tmp_diet" | |
10005 | then | |
10006 | tmp_addflag=' $pic_flag' | |
10007 | tmp_sharedflag='-shared' | |
10008 | case $cc_basename,$host_cpu in | |
10009 | pgcc*) # Portland Group C compiler | |
10010 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10011 | tmp_addflag=' $pic_flag' | |
10012 | ;; | |
10013 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10014 | # Portland Group f77 and f90 compilers | |
10015 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10016 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10017 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10018 | tmp_addflag=' -i_dynamic' ;; | |
10019 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10020 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10021 | ifc* | ifort*) # Intel Fortran compiler | |
10022 | tmp_addflag=' -nofor_main' ;; | |
10023 | lf95*) # Lahey Fortran 8.1 | |
10024 | whole_archive_flag_spec= | |
10025 | tmp_sharedflag='--shared' ;; | |
10026 | nagfor*) # NAGFOR 5.3 | |
10027 | tmp_sharedflag='-Wl,-shared' ;; | |
10028 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10029 | tmp_sharedflag='-qmkshrobj' | |
10030 | tmp_addflag= ;; | |
10031 | nvcc*) # Cuda Compiler Driver 2.2 | |
10032 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10033 | compiler_needs_object=yes | |
10034 | ;; | |
10035 | esac | |
10036 | case `$CC -V 2>&1 | sed 5q` in | |
10037 | *Sun\ C*) # Sun C 5.9 | |
10038 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10039 | compiler_needs_object=yes | |
10040 | tmp_sharedflag='-G' ;; | |
10041 | *Sun\ F*) # Sun Fortran 8.3 | |
10042 | tmp_sharedflag='-G' ;; | |
10043 | esac | |
10044 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10045 | ||
10046 | if test yes = "$supports_anon_versioning"; then | |
10047 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10048 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10049 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10050 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
10051 | fi | |
10052 | ||
10053 | case $cc_basename in | |
10054 | tcc*) | |
10055 | export_dynamic_flag_spec='-rdynamic' | |
10056 | ;; | |
10057 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10058 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10059 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10060 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10061 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10062 | if test yes = "$supports_anon_versioning"; then | |
10063 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10064 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10065 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10066 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10067 | fi | |
10068 | ;; | |
10069 | esac | |
10070 | else | |
10071 | ld_shlibs=no | |
10072 | fi | |
10073 | ;; | |
10074 | ||
10075 | netbsd* | netbsdelf*-gnu) | |
10076 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10077 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10078 | wlarc= | |
10079 | else | |
10080 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10081 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10082 | fi | |
10083 | ;; | |
10084 | ||
10085 | solaris*) | |
10086 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10087 | ld_shlibs=no | |
10088 | cat <<_LT_EOF 1>&2 | |
10089 | ||
10090 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10091 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10092 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10093 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10094 | *** your PATH or compiler configuration so that the native linker is | |
10095 | *** used, and then restart. | |
10096 | ||
10097 | _LT_EOF | |
10098 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10099 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10100 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10101 | else | |
10102 | ld_shlibs=no | |
10103 | fi | |
10104 | ;; | |
10105 | ||
10106 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10107 | case `$LD -v 2>&1` in | |
10108 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10109 | ld_shlibs=no | |
10110 | cat <<_LT_EOF 1>&2 | |
10111 | ||
10112 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
10113 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10114 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10115 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10116 | *** your PATH or compiler configuration so that the native linker is | |
10117 | *** used, and then restart. | |
10118 | ||
10119 | _LT_EOF | |
10120 | ;; | |
10121 | *) | |
10122 | # For security reasons, it is highly recommended that you always | |
10123 | # use absolute paths for naming shared libraries, and exclude the | |
10124 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10125 | # requires that you compile everything twice, which is a pain. | |
10126 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10127 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10128 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10129 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10130 | else | |
10131 | ld_shlibs=no | |
10132 | fi | |
10133 | ;; | |
10134 | esac | |
10135 | ;; | |
10136 | ||
10137 | sunos4*) | |
10138 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10139 | wlarc= | |
10140 | hardcode_direct=yes | |
10141 | hardcode_shlibpath_var=no | |
10142 | ;; | |
10143 | ||
10144 | *) | |
10145 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10146 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10147 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10148 | else | |
10149 | ld_shlibs=no | |
10150 | fi | |
10151 | ;; | |
10152 | esac | |
10153 | ||
10154 | if test no = "$ld_shlibs"; then | |
10155 | runpath_var= | |
10156 | hardcode_libdir_flag_spec= | |
10157 | export_dynamic_flag_spec= | |
10158 | whole_archive_flag_spec= | |
10159 | fi | |
10160 | else | |
10161 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10162 | case $host_os in | |
10163 | aix3*) | |
10164 | allow_undefined_flag=unsupported | |
10165 | always_export_symbols=yes | |
10166 | 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' | |
10167 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10168 | # are no directories specified by -L. | |
10169 | hardcode_minus_L=yes | |
10170 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
10171 | # Neither direct hardcoding nor static linking is supported with a | |
10172 | # broken collect2. | |
10173 | hardcode_direct=unsupported | |
10174 | fi | |
10175 | ;; | |
10176 | ||
10177 | aix[4-9]*) | |
10178 | if test ia64 = "$host_cpu"; then | |
10179 | # On IA64, the linker does run time linking by default, so we don't | |
10180 | # have to do anything special. | |
10181 | aix_use_runtimelinking=no | |
10182 | exp_sym_flag='-Bexport' | |
10183 | no_entry_flag= | |
10184 | else | |
10185 | # If we're using GNU nm, then we don't want the "-C" option. | |
10186 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
10187 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10188 | # weak defined symbols like other global defined symbols, whereas | |
10189 | # GNU nm marks them as "W". | |
10190 | # While the 'weak' keyword is ignored in the Export File, we need | |
10191 | # it in the Import File for the 'aix-soname' feature, so we have | |
10192 | # to replace the "-B" option with "-P" for AIX nm. | |
10193 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10194 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
10195 | else | |
10196 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
10197 | fi | |
10198 | aix_use_runtimelinking=no | |
10199 | ||
10200 | # Test if we are trying to use run time linking or normal | |
10201 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10202 | # have runtime linking enabled, and use it for executables. | |
10203 | # For shared libraries, we enable/disable runtime linking | |
10204 | # depending on the kind of the shared library created - | |
10205 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10206 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10207 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10208 | # lib.a static archive | |
10209 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10210 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10211 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10212 | # lib.a(lib.so.V) shared, rtl:no | |
10213 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10214 | # lib.a static archive | |
10215 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10216 | for ld_flag in $LDFLAGS; do | |
10217 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
10218 | aix_use_runtimelinking=yes | |
10219 | break | |
10220 | fi | |
10221 | done | |
10222 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
10223 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10224 | # so we don't have lib.a shared libs to link our executables. | |
10225 | # We have to force runtime linking in this case. | |
10226 | aix_use_runtimelinking=yes | |
10227 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10228 | fi | |
10229 | ;; | |
10230 | esac | |
10231 | ||
10232 | exp_sym_flag='-bexport' | |
10233 | no_entry_flag='-bnoentry' | |
10234 | fi | |
10235 | ||
10236 | # When large executables or shared objects are built, AIX ld can | |
10237 | # have problems creating the table of contents. If linking a library | |
10238 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10239 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10240 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10241 | ||
10242 | archive_cmds='' | |
10243 | hardcode_direct=yes | |
10244 | hardcode_direct_absolute=yes | |
10245 | hardcode_libdir_separator=':' | |
10246 | link_all_deplibs=yes | |
10247 | file_list_spec='$wl-f,' | |
10248 | case $with_aix_soname,$aix_use_runtimelinking in | |
10249 | aix,*) ;; # traditional, no import file | |
10250 | svr4,* | *,yes) # use import file | |
10251 | # The Import File defines what to hardcode. | |
10252 | hardcode_direct=no | |
10253 | hardcode_direct_absolute=no | |
10254 | ;; | |
10255 | esac | |
10256 | ||
10257 | if test yes = "$GCC"; then | |
10258 | case $host_os in aix4.[012]|aix4.[012].*) | |
10259 | # We only want to do this on AIX 4.2 and lower, the check | |
10260 | # below for broken collect2 doesn't work under 4.3+ | |
10261 | collect2name=`$CC -print-prog-name=collect2` | |
10262 | if test -f "$collect2name" && | |
10263 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10264 | then | |
10265 | # We have reworked collect2 | |
10266 | : | |
10267 | else | |
10268 | # We have old collect2 | |
10269 | hardcode_direct=unsupported | |
10270 | # It fails to find uninstalled libraries when the uninstalled | |
10271 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10272 | # to unsupported forces relinking | |
10273 | hardcode_minus_L=yes | |
10274 | hardcode_libdir_flag_spec='-L$libdir' | |
10275 | hardcode_libdir_separator= | |
10276 | fi | |
10277 | ;; | |
10278 | esac | |
10279 | shared_flag='-shared' | |
10280 | if test yes = "$aix_use_runtimelinking"; then | |
10281 | shared_flag="$shared_flag "'$wl-G' | |
10282 | fi | |
10283 | # Need to ensure runtime linking is disabled for the traditional | |
10284 | # shared library, or the linker may eventually find shared libraries | |
10285 | # /with/ Import File - we do not want to mix them. | |
10286 | shared_flag_aix='-shared' | |
10287 | shared_flag_svr4='-shared $wl-G' | |
10288 | else | |
10289 | # not using gcc | |
10290 | if test ia64 = "$host_cpu"; then | |
10291 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10292 | # chokes on -Wl,-G. The following line is correct: | |
10293 | shared_flag='-G' | |
10294 | else | |
10295 | if test yes = "$aix_use_runtimelinking"; then | |
10296 | shared_flag='$wl-G' | |
10297 | else | |
10298 | shared_flag='$wl-bM:SRE' | |
10299 | fi | |
10300 | shared_flag_aix='$wl-bM:SRE' | |
10301 | shared_flag_svr4='$wl-G' | |
10302 | fi | |
10303 | fi | |
10304 | ||
10305 | export_dynamic_flag_spec='$wl-bexpall' | |
10306 | # It seems that -bexpall does not export symbols beginning with | |
10307 | # underscore (_), so it is better to generate a list of symbols to export. | |
10308 | always_export_symbols=yes | |
10309 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
10310 | # Warning - without using the other runtime loading flags (-brtl), | |
10311 | # -berok will link without error, but may produce a broken library. | |
10312 | allow_undefined_flag='-berok' | |
10313 | # Determine the default libpath from the value encoded in an | |
10314 | # empty executable. | |
10315 | if test set = "${lt_cv_aix_libpath+set}"; then | |
10316 | aix_libpath=$lt_cv_aix_libpath | |
10317 | else | |
10318 | if ${lt_cv_aix_libpath_+:} false; then : | |
10319 | $as_echo_n "(cached) " >&6 | |
10320 | else | |
10321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10322 | /* end confdefs.h. */ | |
10323 | ||
10324 | int | |
10325 | main () | |
10326 | { | |
10327 | ||
10328 | ; | |
10329 | return 0; | |
10330 | } | |
10331 | _ACEOF | |
10332 | if ac_fn_c_try_link "$LINENO"; then : | |
10333 | ||
10334 | lt_aix_libpath_sed=' | |
10335 | /Import File Strings/,/^$/ { | |
10336 | /^0/ { | |
10337 | s/^0 *\([^ ]*\) *$/\1/ | |
10338 | p | |
10339 | } | |
10340 | }' | |
10341 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10342 | # Check for a 64-bit object if we didn't find anything. | |
10343 | if test -z "$lt_cv_aix_libpath_"; then | |
10344 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10345 | fi | |
10346 | fi | |
10347 | rm -f core conftest.err conftest.$ac_objext \ | |
10348 | conftest$ac_exeext conftest.$ac_ext | |
10349 | if test -z "$lt_cv_aix_libpath_"; then | |
10350 | lt_cv_aix_libpath_=/usr/lib:/lib | |
10351 | fi | |
10352 | ||
10353 | fi | |
10354 | ||
10355 | aix_libpath=$lt_cv_aix_libpath_ | |
10356 | fi | |
10357 | ||
10358 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
10359 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
10360 | else | |
10361 | if test ia64 = "$host_cpu"; then | |
10362 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
10363 | allow_undefined_flag="-z nodefs" | |
10364 | 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" | |
10365 | else | |
10366 | # Determine the default libpath from the value encoded in an | |
10367 | # empty executable. | |
10368 | if test set = "${lt_cv_aix_libpath+set}"; then | |
10369 | aix_libpath=$lt_cv_aix_libpath | |
10370 | else | |
10371 | if ${lt_cv_aix_libpath_+:} false; then : | |
10372 | $as_echo_n "(cached) " >&6 | |
10373 | else | |
10374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10375 | /* end confdefs.h. */ | |
10376 | ||
10377 | int | |
10378 | main () | |
10379 | { | |
10380 | ||
10381 | ; | |
10382 | return 0; | |
10383 | } | |
10384 | _ACEOF | |
10385 | if ac_fn_c_try_link "$LINENO"; then : | |
10386 | ||
10387 | lt_aix_libpath_sed=' | |
10388 | /Import File Strings/,/^$/ { | |
10389 | /^0/ { | |
10390 | s/^0 *\([^ ]*\) *$/\1/ | |
10391 | p | |
10392 | } | |
10393 | }' | |
10394 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10395 | # Check for a 64-bit object if we didn't find anything. | |
10396 | if test -z "$lt_cv_aix_libpath_"; then | |
10397 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10398 | fi | |
10399 | fi | |
10400 | rm -f core conftest.err conftest.$ac_objext \ | |
10401 | conftest$ac_exeext conftest.$ac_ext | |
10402 | if test -z "$lt_cv_aix_libpath_"; then | |
10403 | lt_cv_aix_libpath_=/usr/lib:/lib | |
10404 | fi | |
10405 | ||
10406 | fi | |
10407 | ||
10408 | aix_libpath=$lt_cv_aix_libpath_ | |
10409 | fi | |
10410 | ||
10411 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
10412 | # Warning - without using the other run time loading flags, | |
10413 | # -berok will link without error, but may produce a broken library. | |
10414 | no_undefined_flag=' $wl-bernotok' | |
10415 | allow_undefined_flag=' $wl-berok' | |
10416 | if test yes = "$with_gnu_ld"; then | |
10417 | # We only use this code for GNU lds that support --whole-archive. | |
10418 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
10419 | else | |
10420 | # Exported symbols can be pulled into shared objects from archives | |
10421 | whole_archive_flag_spec='$convenience' | |
10422 | fi | |
10423 | archive_cmds_need_lc=yes | |
10424 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
10425 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10426 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10427 | if test svr4 != "$with_aix_soname"; then | |
10428 | # This is similar to how AIX traditionally builds its shared libraries. | |
10429 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
10430 | fi | |
10431 | if test aix != "$with_aix_soname"; then | |
10432 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
10433 | else | |
10434 | # used by -dlpreopen to get the symbols | |
10435 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10436 | fi | |
10437 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
10438 | fi | |
10439 | fi | |
10440 | ;; | |
10441 | ||
10442 | amigaos*) | |
10443 | case $host_cpu in | |
10444 | powerpc) | |
10445 | # see comment about AmigaOS4 .so support | |
10446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10447 | archive_expsym_cmds='' | |
10448 | ;; | |
10449 | m68k) | |
10450 | 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)' | |
10451 | hardcode_libdir_flag_spec='-L$libdir' | |
10452 | hardcode_minus_L=yes | |
10453 | ;; | |
10454 | esac | |
10455 | ;; | |
10456 | ||
10457 | bsdi[45]*) | |
10458 | export_dynamic_flag_spec=-rdynamic | |
10459 | ;; | |
10460 | ||
10461 | cygwin* | mingw* | pw32* | cegcc*) | |
10462 | # When not using gcc, we currently assume that we are using | |
10463 | # Microsoft Visual C++. | |
10464 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10465 | # no search path for DLLs. | |
10466 | case $cc_basename in | |
10467 | cl*) | |
10468 | # Native MSVC | |
10469 | hardcode_libdir_flag_spec=' ' | |
10470 | allow_undefined_flag=unsupported | |
10471 | always_export_symbols=yes | |
10472 | file_list_spec='@' | |
10473 | # Tell ltmain to make .lib files, not .a files. | |
10474 | libext=lib | |
10475 | # Tell ltmain to make .dll files, not .so files. | |
10476 | shrext_cmds=.dll | |
10477 | # FIXME: Setting linknames here is a bad hack. | |
10478 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
10479 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10480 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10481 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10482 | else | |
10483 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10484 | fi~ | |
10485 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10486 | linknames=' | |
10487 | # The linker will not automatically build a static lib if we build a DLL. | |
10488 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10489 | enable_shared_with_static_runtimes=yes | |
10490 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10491 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10492 | # Don't use ranlib | |
10493 | old_postinstall_cmds='chmod 644 $oldlib' | |
10494 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10495 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10496 | case $lt_outputfile in | |
10497 | *.exe|*.EXE) ;; | |
10498 | *) | |
10499 | lt_outputfile=$lt_outputfile.exe | |
10500 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10501 | ;; | |
10502 | esac~ | |
10503 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10504 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10505 | $RM "$lt_outputfile.manifest"; | |
10506 | fi' | |
10507 | ;; | |
10508 | *) | |
10509 | # Assume MSVC wrapper | |
10510 | hardcode_libdir_flag_spec=' ' | |
10511 | allow_undefined_flag=unsupported | |
10512 | # Tell ltmain to make .lib files, not .a files. | |
10513 | libext=lib | |
10514 | # Tell ltmain to make .dll files, not .so files. | |
10515 | shrext_cmds=.dll | |
10516 | # FIXME: Setting linknames here is a bad hack. | |
10517 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10518 | # The linker will automatically build a .lib file if we build a DLL. | |
10519 | old_archive_from_new_cmds='true' | |
10520 | # FIXME: Should let the user specify the lib program. | |
10521 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10522 | enable_shared_with_static_runtimes=yes | |
10523 | ;; | |
10524 | esac | |
10525 | ;; | |
10526 | ||
10527 | darwin* | rhapsody*) | |
10528 | ||
10529 | ||
10530 | archive_cmds_need_lc=no | |
10531 | hardcode_direct=no | |
10532 | hardcode_automatic=yes | |
10533 | hardcode_shlibpath_var=unsupported | |
10534 | if test yes = "$lt_cv_ld_force_load"; then | |
10535 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10536 | ||
10537 | else | |
10538 | whole_archive_flag_spec='' | |
10539 | fi | |
10540 | link_all_deplibs=yes | |
10541 | allow_undefined_flag=$_lt_dar_allow_undefined | |
10542 | case $cc_basename in | |
10543 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
10544 | *) _lt_dar_can_shared=$GCC ;; | |
10545 | esac | |
10546 | if test yes = "$_lt_dar_can_shared"; then | |
10547 | output_verbose_link_cmd=func_echo_all | |
10548 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
10549 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10550 | archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" | |
10551 | module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" | |
10552 | ||
10553 | else | |
10554 | ld_shlibs=no | |
10555 | fi | |
10556 | ||
10557 | ;; | |
10558 | ||
10559 | dgux*) | |
10560 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10561 | hardcode_libdir_flag_spec='-L$libdir' | |
10562 | hardcode_shlibpath_var=no | |
10563 | ;; | |
10564 | ||
10565 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10566 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10567 | # does not break anything, and helps significantly (at the cost of a little | |
10568 | # extra space). | |
10569 | freebsd2.2*) | |
10570 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10571 | hardcode_libdir_flag_spec='-R$libdir' | |
10572 | hardcode_direct=yes | |
10573 | hardcode_shlibpath_var=no | |
10574 | ;; | |
10575 | ||
10576 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10577 | freebsd2.*) | |
10578 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10579 | hardcode_direct=yes | |
10580 | hardcode_minus_L=yes | |
10581 | hardcode_shlibpath_var=no | |
10582 | ;; | |
10583 | ||
10584 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10585 | freebsd* | dragonfly*) | |
10586 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10587 | hardcode_libdir_flag_spec='-R$libdir' | |
10588 | hardcode_direct=yes | |
10589 | hardcode_shlibpath_var=no | |
10590 | ;; | |
10591 | ||
10592 | hpux9*) | |
10593 | if test yes = "$GCC"; then | |
10594 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10595 | else | |
10596 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10597 | fi | |
10598 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10599 | hardcode_libdir_separator=: | |
10600 | hardcode_direct=yes | |
10601 | ||
10602 | # hardcode_minus_L: Not really in the search PATH, | |
10603 | # but as the default location of the library. | |
10604 | hardcode_minus_L=yes | |
10605 | export_dynamic_flag_spec='$wl-E' | |
10606 | ;; | |
10607 | ||
10608 | hpux10*) | |
10609 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10610 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10611 | else | |
10612 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10613 | fi | |
10614 | if test no = "$with_gnu_ld"; then | |
10615 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10616 | hardcode_libdir_separator=: | |
10617 | hardcode_direct=yes | |
10618 | hardcode_direct_absolute=yes | |
10619 | export_dynamic_flag_spec='$wl-E' | |
10620 | # hardcode_minus_L: Not really in the search PATH, | |
10621 | # but as the default location of the library. | |
10622 | hardcode_minus_L=yes | |
10623 | fi | |
10624 | ;; | |
10625 | ||
10626 | hpux11*) | |
10627 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10628 | case $host_cpu in | |
10629 | hppa*64*) | |
10630 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10631 | ;; | |
10632 | ia64*) | |
10633 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10634 | ;; | |
10635 | *) | |
10636 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10637 | ;; | |
10638 | esac | |
10639 | else | |
10640 | case $host_cpu in | |
10641 | hppa*64*) | |
10642 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10643 | ;; | |
10644 | ia64*) | |
10645 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10646 | ;; | |
10647 | *) | |
10648 | ||
10649 | # Older versions of the 11.00 compiler do not understand -b yet | |
10650 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10652 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10653 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10654 | $as_echo_n "(cached) " >&6 | |
10655 | else | |
10656 | lt_cv_prog_compiler__b=no | |
10657 | save_LDFLAGS=$LDFLAGS | |
10658 | LDFLAGS="$LDFLAGS -b" | |
10659 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10660 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10661 | # The linker can only warn and ignore the option if not recognized | |
10662 | # So say no if there are warnings | |
10663 | if test -s conftest.err; then | |
10664 | # Append any errors to the config.log. | |
10665 | cat conftest.err 1>&5 | |
10666 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10667 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10668 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10669 | lt_cv_prog_compiler__b=yes | |
10670 | fi | |
10671 | else | |
10672 | lt_cv_prog_compiler__b=yes | |
10673 | fi | |
10674 | fi | |
10675 | $RM -r conftest* | |
10676 | LDFLAGS=$save_LDFLAGS | |
10677 | ||
10678 | fi | |
10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10680 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10681 | ||
10682 | if test yes = "$lt_cv_prog_compiler__b"; then | |
10683 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10684 | else | |
10685 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10686 | fi | |
10687 | ||
10688 | ;; | |
10689 | esac | |
10690 | fi | |
10691 | if test no = "$with_gnu_ld"; then | |
10692 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10693 | hardcode_libdir_separator=: | |
10694 | ||
10695 | case $host_cpu in | |
10696 | hppa*64*|ia64*) | |
10697 | hardcode_direct=no | |
10698 | hardcode_shlibpath_var=no | |
10699 | ;; | |
10700 | *) | |
10701 | hardcode_direct=yes | |
10702 | hardcode_direct_absolute=yes | |
10703 | export_dynamic_flag_spec='$wl-E' | |
10704 | ||
10705 | # hardcode_minus_L: Not really in the search PATH, | |
10706 | # but as the default location of the library. | |
10707 | hardcode_minus_L=yes | |
10708 | ;; | |
10709 | esac | |
10710 | fi | |
10711 | ;; | |
10712 | ||
10713 | irix5* | irix6* | nonstopux*) | |
10714 | if test yes = "$GCC"; then | |
10715 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
10716 | # Try to use the -exported_symbol ld option, if it does not | |
10717 | # work, assume that -exports_file does not work either and | |
10718 | # implicitly export all symbols. | |
10719 | # This should be the same for all languages, so no per-tag cache variable. | |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10721 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10722 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10723 | $as_echo_n "(cached) " >&6 | |
10724 | else | |
10725 | save_LDFLAGS=$LDFLAGS | |
10726 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
10727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10728 | /* end confdefs.h. */ | |
10729 | int foo (void) { return 0; } | |
10730 | _ACEOF | |
10731 | if ac_fn_c_try_link "$LINENO"; then : | |
10732 | lt_cv_irix_exported_symbol=yes | |
10733 | else | |
10734 | lt_cv_irix_exported_symbol=no | |
10735 | fi | |
10736 | rm -f core conftest.err conftest.$ac_objext \ | |
10737 | conftest$ac_exeext conftest.$ac_ext | |
10738 | LDFLAGS=$save_LDFLAGS | |
10739 | fi | |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10741 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10742 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
10743 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | |
10744 | fi | |
10745 | link_all_deplibs=no | |
10746 | else | |
10747 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
10748 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' | |
10749 | fi | |
10750 | archive_cmds_need_lc='no' | |
10751 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10752 | hardcode_libdir_separator=: | |
10753 | inherit_rpath=yes | |
10754 | link_all_deplibs=yes | |
10755 | ;; | |
10756 | ||
10757 | linux*) | |
10758 | case $cc_basename in | |
10759 | tcc*) | |
10760 | # Fabrice Bellard et al's Tiny C Compiler | |
10761 | ld_shlibs=yes | |
10762 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10763 | ;; | |
10764 | esac | |
10765 | ;; | |
10766 | ||
10767 | netbsd* | netbsdelf*-gnu) | |
10768 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10769 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10770 | else | |
10771 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10772 | fi | |
10773 | hardcode_libdir_flag_spec='-R$libdir' | |
10774 | hardcode_direct=yes | |
10775 | hardcode_shlibpath_var=no | |
10776 | ;; | |
10777 | ||
10778 | newsos6) | |
10779 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10780 | hardcode_direct=yes | |
10781 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10782 | hardcode_libdir_separator=: | |
10783 | hardcode_shlibpath_var=no | |
10784 | ;; | |
10785 | ||
10786 | *nto* | *qnx*) | |
10787 | ;; | |
10788 | ||
10789 | openbsd* | bitrig*) | |
10790 | if test -f /usr/libexec/ld.so; then | |
10791 | hardcode_direct=yes | |
10792 | hardcode_shlibpath_var=no | |
10793 | hardcode_direct_absolute=yes | |
10794 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10795 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10796 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10797 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10798 | export_dynamic_flag_spec='$wl-E' | |
10799 | else | |
10800 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10801 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10802 | fi | |
10803 | else | |
10804 | ld_shlibs=no | |
10805 | fi | |
10806 | ;; | |
10807 | ||
10808 | os2*) | |
10809 | hardcode_libdir_flag_spec='-L$libdir' | |
10810 | hardcode_minus_L=yes | |
10811 | allow_undefined_flag=unsupported | |
10812 | shrext_cmds=.dll | |
10813 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10814 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10815 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10816 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10817 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10818 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10819 | emximp -o $lib $output_objdir/$libname.def' | |
10820 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10821 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10822 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10823 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10824 | prefix_cmds="$SED"~ | |
10825 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10826 | prefix_cmds="$prefix_cmds -e 1d"; | |
10827 | fi~ | |
10828 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10829 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10830 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10831 | emximp -o $lib $output_objdir/$libname.def' | |
10832 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10833 | enable_shared_with_static_runtimes=yes | |
10834 | ;; | |
10835 | ||
10836 | osf3*) | |
10837 | if test yes = "$GCC"; then | |
10838 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10839 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
10840 | else | |
10841 | allow_undefined_flag=' -expect_unresolved \*' | |
10842 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
10843 | fi | |
10844 | archive_cmds_need_lc='no' | |
10845 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10846 | hardcode_libdir_separator=: | |
10847 | ;; | |
10848 | ||
10849 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10850 | if test yes = "$GCC"; then | |
10851 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10852 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
10853 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10854 | else | |
10855 | allow_undefined_flag=' -expect_unresolved \*' | |
10856 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
10857 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
10858 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' | |
10859 | ||
10860 | # Both c and cxx compiler support -rpath directly | |
10861 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10862 | fi | |
10863 | archive_cmds_need_lc='no' | |
10864 | hardcode_libdir_separator=: | |
10865 | ;; | |
10866 | ||
10867 | solaris*) | |
10868 | no_undefined_flag=' -z defs' | |
10869 | if test yes = "$GCC"; then | |
10870 | wlarc='$wl' | |
10871 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10872 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10873 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10874 | else | |
10875 | case `$CC -V 2>&1` in | |
10876 | *"Compilers 5.0"*) | |
10877 | wlarc='' | |
10878 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10879 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10880 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10881 | ;; | |
10882 | *) | |
10883 | wlarc='$wl' | |
10884 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10885 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10886 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10887 | ;; | |
10888 | esac | |
10889 | fi | |
10890 | hardcode_libdir_flag_spec='-R$libdir' | |
10891 | hardcode_shlibpath_var=no | |
10892 | case $host_os in | |
10893 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10894 | *) | |
10895 | # The compiler driver will combine and reorder linker options, | |
10896 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10897 | # but is careful enough not to reorder. | |
10898 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10899 | if test yes = "$GCC"; then | |
10900 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10901 | else | |
10902 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10903 | fi | |
10904 | ;; | |
10905 | esac | |
10906 | link_all_deplibs=yes | |
10907 | ;; | |
10908 | ||
10909 | sunos4*) | |
10910 | if test sequent = "$host_vendor"; then | |
10911 | # Use $CC to link under sequent, because it throws in some extra .o | |
10912 | # files that make .init and .fini sections work. | |
10913 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10914 | else | |
10915 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10916 | fi | |
10917 | hardcode_libdir_flag_spec='-L$libdir' | |
10918 | hardcode_direct=yes | |
10919 | hardcode_minus_L=yes | |
10920 | hardcode_shlibpath_var=no | |
10921 | ;; | |
10922 | ||
10923 | sysv4) | |
10924 | case $host_vendor in | |
10925 | sni) | |
10926 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10927 | hardcode_direct=yes # is this really true??? | |
10928 | ;; | |
10929 | siemens) | |
10930 | ## LD is ld it makes a PLAMLIB | |
10931 | ## CC just makes a GrossModule. | |
10932 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10933 | reload_cmds='$CC -r -o $output$reload_objs' | |
10934 | hardcode_direct=no | |
10935 | ;; | |
10936 | motorola) | |
10937 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10938 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10939 | ;; | |
10940 | esac | |
10941 | runpath_var='LD_RUN_PATH' | |
10942 | hardcode_shlibpath_var=no | |
10943 | ;; | |
10944 | ||
10945 | sysv4.3*) | |
10946 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10947 | hardcode_shlibpath_var=no | |
10948 | export_dynamic_flag_spec='-Bexport' | |
10949 | ;; | |
10950 | ||
10951 | sysv4*MP*) | |
10952 | if test -d /usr/nec; then | |
10953 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10954 | hardcode_shlibpath_var=no | |
10955 | runpath_var=LD_RUN_PATH | |
10956 | hardcode_runpath_var=yes | |
10957 | ld_shlibs=yes | |
10958 | fi | |
10959 | ;; | |
10960 | ||
10961 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10962 | no_undefined_flag='$wl-z,text' | |
10963 | archive_cmds_need_lc=no | |
10964 | hardcode_shlibpath_var=no | |
10965 | runpath_var='LD_RUN_PATH' | |
10966 | ||
10967 | if test yes = "$GCC"; then | |
10968 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10969 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10970 | else | |
10971 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10972 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10973 | fi | |
10974 | ;; | |
10975 | ||
10976 | sysv5* | sco3.2v5* | sco5v6*) | |
10977 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10978 | # link with -lc, and that would cause any symbols used from libc to | |
10979 | # always be unresolved, which means just about no library would | |
10980 | # ever link correctly. If we're not using GNU ld we use -z text | |
10981 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10982 | # as -z defs. | |
10983 | no_undefined_flag='$wl-z,text' | |
10984 | allow_undefined_flag='$wl-z,nodefs' | |
10985 | archive_cmds_need_lc=no | |
10986 | hardcode_shlibpath_var=no | |
10987 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10988 | hardcode_libdir_separator=':' | |
10989 | link_all_deplibs=yes | |
10990 | export_dynamic_flag_spec='$wl-Bexport' | |
10991 | runpath_var='LD_RUN_PATH' | |
10992 | ||
10993 | if test yes = "$GCC"; then | |
10994 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10995 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10996 | else | |
10997 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10998 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10999 | fi | |
11000 | ;; | |
11001 | ||
11002 | uts4*) | |
11003 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11004 | hardcode_libdir_flag_spec='-L$libdir' | |
11005 | hardcode_shlibpath_var=no | |
11006 | ;; | |
11007 | ||
11008 | *) | |
11009 | ld_shlibs=no | |
11010 | ;; | |
11011 | esac | |
11012 | ||
11013 | if test sni = "$host_vendor"; then | |
11014 | case $host in | |
11015 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11016 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
11017 | ;; | |
11018 | esac | |
11019 | fi | |
11020 | fi | |
11021 | ||
11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11023 | $as_echo "$ld_shlibs" >&6; } | |
11024 | test no = "$ld_shlibs" && can_build_shared=no | |
11025 | ||
11026 | with_gnu_ld=$with_gnu_ld | |
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | # | |
11043 | # Do we need to explicitly link libc? | |
11044 | # | |
11045 | case "x$archive_cmds_need_lc" in | |
11046 | x|xyes) | |
11047 | # Assume -lc should be added | |
11048 | archive_cmds_need_lc=yes | |
11049 | ||
11050 | if test yes,yes = "$GCC,$enable_shared"; then | |
11051 | case $archive_cmds in | |
11052 | *'~'*) | |
11053 | # FIXME: we may have to deal with multi-command sequences. | |
11054 | ;; | |
11055 | '$CC '*) | |
11056 | # Test whether the compiler implicitly links with -lc since on some | |
11057 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11058 | # to ld, don't add -lc before -lgcc. | |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11060 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11061 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11062 | $as_echo_n "(cached) " >&6 | |
11063 | else | |
11064 | $RM conftest* | |
11065 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11066 | ||
11067 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11068 | (eval $ac_compile) 2>&5 | |
11069 | ac_status=$? | |
11070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11071 | test $ac_status = 0; } 2>conftest.err; then | |
11072 | soname=conftest | |
11073 | lib=conftest | |
11074 | libobjs=conftest.$ac_objext | |
11075 | deplibs= | |
11076 | wl=$lt_prog_compiler_wl | |
11077 | pic_flag=$lt_prog_compiler_pic | |
11078 | compiler_flags=-v | |
11079 | linker_flags=-v | |
11080 | verstring= | |
11081 | output_objdir=. | |
11082 | libname=conftest | |
11083 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11084 | allow_undefined_flag= | |
11085 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11086 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11087 | ac_status=$? | |
11088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11089 | test $ac_status = 0; } | |
11090 | then | |
11091 | lt_cv_archive_cmds_need_lc=no | |
11092 | else | |
11093 | lt_cv_archive_cmds_need_lc=yes | |
11094 | fi | |
11095 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11096 | else | |
11097 | cat conftest.err 1>&5 | |
11098 | fi | |
11099 | $RM conftest* | |
11100 | ||
11101 | fi | |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11103 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11104 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11105 | ;; | |
11106 | esac | |
11107 | fi | |
11108 | ;; | |
11109 | esac | |
11110 | ||
11111 | ||
11112 | ||
11113 | ||
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | ||
11119 | ||
11120 | ||
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11263 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11264 | ||
11265 | if test yes = "$GCC"; then | |
11266 | case $host_os in | |
11267 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
11268 | *) lt_awk_arg='/^libraries:/' ;; | |
11269 | esac | |
11270 | case $host_os in | |
11271 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
11272 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
11273 | esac | |
11274 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11275 | case $lt_search_path_spec in | |
11276 | *\;*) | |
11277 | # if the path contains ";" then we assume it to be the separator | |
11278 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11279 | # assumed that no part of a normal pathname contains ";" but that should | |
11280 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11281 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11282 | ;; | |
11283 | *) | |
11284 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11285 | ;; | |
11286 | esac | |
11287 | # Ok, now we have the path, separated by spaces, we can step through it | |
11288 | # and add multilib dir if necessary... | |
11289 | lt_tmp_lt_search_path_spec= | |
11290 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11291 | # ...but if some path component already ends with the multilib dir we assume | |
11292 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11293 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11294 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11295 | lt_multi_os_dir= | |
11296 | ;; | |
11297 | esac | |
11298 | for lt_sys_path in $lt_search_path_spec; do | |
11299 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
11300 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11301 | elif test -n "$lt_multi_os_dir"; then | |
11302 | test -d "$lt_sys_path" && \ | |
11303 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11304 | fi | |
11305 | done | |
11306 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11307 | BEGIN {RS = " "; FS = "/|\n";} { | |
11308 | lt_foo = ""; | |
11309 | lt_count = 0; | |
11310 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11311 | if ($lt_i != "" && $lt_i != ".") { | |
11312 | if ($lt_i == "..") { | |
11313 | lt_count++; | |
11314 | } else { | |
11315 | if (lt_count == 0) { | |
11316 | lt_foo = "/" $lt_i lt_foo; | |
11317 | } else { | |
11318 | lt_count--; | |
11319 | } | |
11320 | } | |
11321 | } | |
11322 | } | |
11323 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11324 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11325 | }'` | |
11326 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11327 | # for these hosts. | |
11328 | case $host_os in | |
11329 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11330 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
11331 | esac | |
11332 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11333 | else | |
11334 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11335 | fi | |
11336 | library_names_spec= | |
11337 | libname_spec='lib$name' | |
11338 | soname_spec= | |
11339 | shrext_cmds=.so | |
11340 | postinstall_cmds= | |
11341 | postuninstall_cmds= | |
11342 | finish_cmds= | |
11343 | finish_eval= | |
11344 | shlibpath_var= | |
11345 | shlibpath_overrides_runpath=unknown | |
11346 | version_type=none | |
11347 | dynamic_linker="$host_os ld.so" | |
11348 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11349 | need_lib_prefix=unknown | |
11350 | hardcode_into_libs=no | |
11351 | ||
11352 | # when you set need_version to no, make sure it does not cause -set_version | |
11353 | # flags to be left without arguments | |
11354 | need_version=unknown | |
11355 | ||
11356 | ||
11357 | ||
11358 | case $host_os in | |
11359 | aix3*) | |
11360 | version_type=linux # correct to gnu/linux during the next big refactor | |
11361 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
11362 | shlibpath_var=LIBPATH | |
11363 | ||
11364 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11365 | soname_spec='$libname$release$shared_ext$major' | |
11366 | ;; | |
11367 | ||
11368 | aix[4-9]*) | |
11369 | version_type=linux # correct to gnu/linux during the next big refactor | |
11370 | need_lib_prefix=no | |
11371 | need_version=no | |
11372 | hardcode_into_libs=yes | |
11373 | if test ia64 = "$host_cpu"; then | |
11374 | # AIX 5 supports IA64 | |
11375 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
11376 | shlibpath_var=LD_LIBRARY_PATH | |
11377 | else | |
11378 | # With GCC up to 2.95.x, collect2 would create an import file | |
11379 | # for dependence libraries. The import file would start with | |
11380 | # the line '#! .'. This would cause the generated library to | |
11381 | # depend on '.', always an invalid library. This was fixed in | |
11382 | # development snapshots of GCC prior to 3.0. | |
11383 | case $host_os in | |
11384 | aix4 | aix4.[01] | aix4.[01].*) | |
11385 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11386 | echo ' yes ' | |
11387 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
11388 | : | |
11389 | else | |
11390 | can_build_shared=no | |
11391 | fi | |
11392 | ;; | |
11393 | esac | |
11394 | # Using Import Files as archive members, it is possible to support | |
11395 | # filename-based versioning of shared library archives on AIX. While | |
11396 | # this would work for both with and without runtime linking, it will | |
11397 | # prevent static linking of such archives. So we do filename-based | |
11398 | # shared library versioning with .so extension only, which is used | |
11399 | # when both runtime linking and shared linking is enabled. | |
11400 | # Unfortunately, runtime linking may impact performance, so we do | |
11401 | # not want this to be the default eventually. Also, we use the | |
11402 | # versioned .so libs for executables only if there is the -brtl | |
11403 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11404 | # To allow for filename-based versioning support, we need to create | |
11405 | # libNAME.so.V as an archive file, containing: | |
11406 | # *) an Import File, referring to the versioned filename of the | |
11407 | # archive as well as the shared archive member, telling the | |
11408 | # bitwidth (32 or 64) of that shared object, and providing the | |
11409 | # list of exported symbols of that shared object, eventually | |
11410 | # decorated with the 'weak' keyword | |
11411 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11412 | # it being seen by the linker. | |
11413 | # At run time we better use the real file rather than another symlink, | |
11414 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11415 | ||
11416 | case $with_aix_soname,$aix_use_runtimelinking in | |
11417 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
11418 | # soname into executable. Probably we can add versioning support to | |
11419 | # collect2, so additional links can be useful in future. | |
11420 | aix,yes) # traditional libtool | |
11421 | dynamic_linker='AIX unversionable lib.so' | |
11422 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11423 | # instead of lib<name>.a to let people know that these are not | |
11424 | # typical AIX shared libraries. | |
11425 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11426 | ;; | |
11427 | aix,no) # traditional AIX only | |
11428 | dynamic_linker='AIX lib.a(lib.so.V)' | |
11429 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11430 | # and later when we are not doing run time linking. | |
11431 | library_names_spec='$libname$release.a $libname.a' | |
11432 | soname_spec='$libname$release$shared_ext$major' | |
11433 | ;; | |
11434 | svr4,*) # full svr4 only | |
11435 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11436 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11437 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11438 | shlibpath_overrides_runpath=yes | |
11439 | ;; | |
11440 | *,yes) # both, prefer svr4 | |
11441 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11442 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11443 | # unpreferred sharedlib libNAME.a needs extra handling | |
11444 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
11445 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
11446 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11447 | shlibpath_overrides_runpath=yes | |
11448 | ;; | |
11449 | *,no) # both, prefer aix | |
11450 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11451 | library_names_spec='$libname$release.a $libname.a' | |
11452 | soname_spec='$libname$release$shared_ext$major' | |
11453 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11454 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
11455 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
11456 | ;; | |
11457 | esac | |
11458 | shlibpath_var=LIBPATH | |
11459 | fi | |
11460 | ;; | |
11461 | ||
11462 | amigaos*) | |
11463 | case $host_cpu in | |
11464 | powerpc) | |
11465 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11466 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11467 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11468 | ;; | |
11469 | m68k) | |
11470 | library_names_spec='$libname.ixlibrary $libname.a' | |
11471 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11472 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' | |
11473 | ;; | |
11474 | esac | |
11475 | ;; | |
11476 | ||
11477 | beos*) | |
11478 | library_names_spec='$libname$shared_ext' | |
11479 | dynamic_linker="$host_os ld.so" | |
11480 | shlibpath_var=LIBRARY_PATH | |
11481 | ;; | |
11482 | ||
11483 | bsdi[45]*) | |
11484 | version_type=linux # correct to gnu/linux during the next big refactor | |
11485 | need_version=no | |
11486 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11487 | soname_spec='$libname$release$shared_ext$major' | |
11488 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11489 | shlibpath_var=LD_LIBRARY_PATH | |
11490 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11491 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11492 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11493 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11494 | # libtool to hard-code these into programs | |
11495 | ;; | |
11496 | ||
11497 | cygwin* | mingw* | pw32* | cegcc*) | |
11498 | version_type=windows | |
11499 | shrext_cmds=.dll | |
11500 | need_version=no | |
11501 | need_lib_prefix=no | |
11502 | ||
11503 | case $GCC,$cc_basename in | |
11504 | yes,*) | |
11505 | # gcc | |
11506 | library_names_spec='$libname.dll.a' | |
11507 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11508 | postinstall_cmds='base_file=`basename \$file`~ | |
11509 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11510 | dldir=$destdir/`dirname \$dlpath`~ | |
11511 | test -d \$dldir || mkdir -p \$dldir~ | |
11512 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11513 | chmod a+x \$dldir/$dlname~ | |
11514 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11515 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11516 | fi' | |
11517 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11518 | dlpath=$dir/\$dldll~ | |
11519 | $RM \$dlpath' | |
11520 | shlibpath_overrides_runpath=yes | |
11521 | ||
11522 | case $host_os in | |
11523 | cygwin*) | |
11524 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11525 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11526 | ||
11527 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11528 | ;; | |
11529 | mingw* | cegcc*) | |
11530 | # MinGW DLLs use traditional 'lib' prefix | |
11531 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11532 | ;; | |
11533 | pw32*) | |
11534 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11535 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11536 | ;; | |
11537 | esac | |
11538 | dynamic_linker='Win32 ld.exe' | |
11539 | ;; | |
11540 | ||
11541 | *,cl*) | |
11542 | # Native MSVC | |
11543 | libname_spec='$name' | |
11544 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11545 | library_names_spec='$libname.dll.lib' | |
11546 | ||
11547 | case $build_os in | |
11548 | mingw*) | |
11549 | sys_lib_search_path_spec= | |
11550 | lt_save_ifs=$IFS | |
11551 | IFS=';' | |
11552 | for lt_path in $LIB | |
11553 | do | |
11554 | IFS=$lt_save_ifs | |
11555 | # Let DOS variable expansion print the short 8.3 style file name. | |
11556 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11557 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11558 | done | |
11559 | IFS=$lt_save_ifs | |
11560 | # Convert to MSYS style. | |
11561 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11562 | ;; | |
11563 | cygwin*) | |
11564 | # Convert to unix form, then to dos form, then back to unix form | |
11565 | # but this time dos style (no spaces!) so that the unix form looks | |
11566 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11567 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11568 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11569 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11570 | ;; | |
11571 | *) | |
11572 | sys_lib_search_path_spec=$LIB | |
11573 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11574 | # It is most probably a Windows format PATH. | |
11575 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11576 | else | |
11577 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11578 | fi | |
11579 | # FIXME: find the short name or the path components, as spaces are | |
11580 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11581 | ;; | |
11582 | esac | |
11583 | ||
11584 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11585 | postinstall_cmds='base_file=`basename \$file`~ | |
11586 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11587 | dldir=$destdir/`dirname \$dlpath`~ | |
11588 | test -d \$dldir || mkdir -p \$dldir~ | |
11589 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11590 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11591 | dlpath=$dir/\$dldll~ | |
11592 | $RM \$dlpath' | |
11593 | shlibpath_overrides_runpath=yes | |
11594 | dynamic_linker='Win32 link.exe' | |
11595 | ;; | |
11596 | ||
11597 | *) | |
11598 | # Assume MSVC wrapper | |
11599 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
11600 | dynamic_linker='Win32 ld.exe' | |
11601 | ;; | |
11602 | esac | |
11603 | # FIXME: first we should search . and the directory the executable is in | |
11604 | shlibpath_var=PATH | |
11605 | ;; | |
11606 | ||
11607 | darwin* | rhapsody*) | |
11608 | dynamic_linker="$host_os dyld" | |
11609 | version_type=darwin | |
11610 | need_lib_prefix=no | |
11611 | need_version=no | |
11612 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
11613 | soname_spec='$libname$release$major$shared_ext' | |
11614 | shlibpath_overrides_runpath=yes | |
11615 | shlibpath_var=DYLD_LIBRARY_PATH | |
11616 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11617 | ||
11618 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11619 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11620 | ;; | |
11621 | ||
11622 | dgux*) | |
11623 | version_type=linux # correct to gnu/linux during the next big refactor | |
11624 | need_lib_prefix=no | |
11625 | need_version=no | |
11626 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11627 | soname_spec='$libname$release$shared_ext$major' | |
11628 | shlibpath_var=LD_LIBRARY_PATH | |
11629 | ;; | |
11630 | ||
11631 | freebsd* | dragonfly*) | |
11632 | # DragonFly does not have aout. When/if they implement a new | |
11633 | # versioning mechanism, adjust this. | |
11634 | if test -x /usr/bin/objformat; then | |
11635 | objformat=`/usr/bin/objformat` | |
11636 | else | |
11637 | case $host_os in | |
11638 | freebsd[23].*) objformat=aout ;; | |
11639 | *) objformat=elf ;; | |
11640 | esac | |
11641 | fi | |
11642 | version_type=freebsd-$objformat | |
11643 | case $version_type in | |
11644 | freebsd-elf*) | |
11645 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11646 | soname_spec='$libname$release$shared_ext$major' | |
11647 | need_version=no | |
11648 | need_lib_prefix=no | |
11649 | ;; | |
11650 | freebsd-*) | |
11651 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11652 | need_version=yes | |
11653 | ;; | |
11654 | esac | |
11655 | shlibpath_var=LD_LIBRARY_PATH | |
11656 | case $host_os in | |
11657 | freebsd2.*) | |
11658 | shlibpath_overrides_runpath=yes | |
11659 | ;; | |
11660 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11661 | shlibpath_overrides_runpath=yes | |
11662 | hardcode_into_libs=yes | |
11663 | ;; | |
11664 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11665 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11666 | shlibpath_overrides_runpath=no | |
11667 | hardcode_into_libs=yes | |
11668 | ;; | |
11669 | *) # from 4.6 on, and DragonFly | |
11670 | shlibpath_overrides_runpath=yes | |
11671 | hardcode_into_libs=yes | |
11672 | ;; | |
11673 | esac | |
11674 | ;; | |
11675 | ||
11676 | haiku*) | |
11677 | version_type=linux # correct to gnu/linux during the next big refactor | |
11678 | need_lib_prefix=no | |
11679 | need_version=no | |
11680 | dynamic_linker="$host_os runtime_loader" | |
11681 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11682 | soname_spec='$libname$release$shared_ext$major' | |
11683 | shlibpath_var=LIBRARY_PATH | |
11684 | shlibpath_overrides_runpath=no | |
11685 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11686 | hardcode_into_libs=yes | |
11687 | ;; | |
11688 | ||
11689 | hpux9* | hpux10* | hpux11*) | |
11690 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11691 | # link against other versions. | |
11692 | version_type=sunos | |
11693 | need_lib_prefix=no | |
11694 | need_version=no | |
11695 | case $host_cpu in | |
11696 | ia64*) | |
11697 | shrext_cmds='.so' | |
11698 | hardcode_into_libs=yes | |
11699 | dynamic_linker="$host_os dld.so" | |
11700 | shlibpath_var=LD_LIBRARY_PATH | |
11701 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11702 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11703 | soname_spec='$libname$release$shared_ext$major' | |
11704 | if test 32 = "$HPUX_IA64_MODE"; then | |
11705 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11706 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
11707 | else | |
11708 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11709 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
11710 | fi | |
11711 | ;; | |
11712 | hppa*64*) | |
11713 | shrext_cmds='.sl' | |
11714 | hardcode_into_libs=yes | |
11715 | dynamic_linker="$host_os dld.sl" | |
11716 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11717 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11718 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11719 | soname_spec='$libname$release$shared_ext$major' | |
11720 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11721 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11722 | ;; | |
11723 | *) | |
11724 | shrext_cmds='.sl' | |
11725 | dynamic_linker="$host_os dld.sl" | |
11726 | shlibpath_var=SHLIB_PATH | |
11727 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11728 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11729 | soname_spec='$libname$release$shared_ext$major' | |
11730 | ;; | |
11731 | esac | |
11732 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11733 | postinstall_cmds='chmod 555 $lib' | |
11734 | # or fails outright, so override atomically: | |
11735 | install_override_mode=555 | |
11736 | ;; | |
11737 | ||
11738 | interix[3-9]*) | |
11739 | version_type=linux # correct to gnu/linux during the next big refactor | |
11740 | need_lib_prefix=no | |
11741 | need_version=no | |
11742 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11743 | soname_spec='$libname$release$shared_ext$major' | |
11744 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11745 | shlibpath_var=LD_LIBRARY_PATH | |
11746 | shlibpath_overrides_runpath=no | |
11747 | hardcode_into_libs=yes | |
11748 | ;; | |
11749 | ||
11750 | irix5* | irix6* | nonstopux*) | |
11751 | case $host_os in | |
11752 | nonstopux*) version_type=nonstopux ;; | |
11753 | *) | |
11754 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11755 | version_type=linux # correct to gnu/linux during the next big refactor | |
11756 | else | |
11757 | version_type=irix | |
11758 | fi ;; | |
11759 | esac | |
11760 | need_lib_prefix=no | |
11761 | need_version=no | |
11762 | soname_spec='$libname$release$shared_ext$major' | |
11763 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11764 | case $host_os in | |
11765 | irix5* | nonstopux*) | |
11766 | libsuff= shlibsuff= | |
11767 | ;; | |
11768 | *) | |
11769 | case $LD in # libtool.m4 will add one of these switches to LD | |
11770 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11771 | libsuff= shlibsuff= libmagic=32-bit;; | |
11772 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11773 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11774 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11775 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11776 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11777 | esac | |
11778 | ;; | |
11779 | esac | |
11780 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11781 | shlibpath_overrides_runpath=no | |
11782 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11783 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11784 | hardcode_into_libs=yes | |
11785 | ;; | |
11786 | ||
11787 | # No shared lib support for Linux oldld, aout, or coff. | |
11788 | linux*oldld* | linux*aout* | linux*coff*) | |
11789 | dynamic_linker=no | |
11790 | ;; | |
11791 | ||
11792 | linux*android*) | |
11793 | version_type=none # Android doesn't support versioned libraries. | |
11794 | need_lib_prefix=no | |
11795 | need_version=no | |
11796 | library_names_spec='$libname$release$shared_ext' | |
11797 | soname_spec='$libname$release$shared_ext' | |
11798 | finish_cmds= | |
11799 | shlibpath_var=LD_LIBRARY_PATH | |
11800 | shlibpath_overrides_runpath=yes | |
11801 | ||
11802 | # This implies no fast_install, which is unacceptable. | |
11803 | # Some rework will be needed to allow for fast_install | |
11804 | # before this can be enabled. | |
11805 | hardcode_into_libs=yes | |
11806 | ||
11807 | dynamic_linker='Android linker' | |
11808 | # Don't embed -rpath directories since the linker doesn't support them. | |
11809 | hardcode_libdir_flag_spec='-L$libdir' | |
11810 | ;; | |
11811 | ||
11812 | # This must be glibc/ELF. | |
11813 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11814 | version_type=linux # correct to gnu/linux during the next big refactor | |
11815 | need_lib_prefix=no | |
11816 | need_version=no | |
11817 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11818 | soname_spec='$libname$release$shared_ext$major' | |
11819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11820 | shlibpath_var=LD_LIBRARY_PATH | |
11821 | shlibpath_overrides_runpath=no | |
11822 | ||
11823 | # Some binutils ld are patched to set DT_RUNPATH | |
11824 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11825 | $as_echo_n "(cached) " >&6 | |
11826 | else | |
11827 | lt_cv_shlibpath_overrides_runpath=no | |
11828 | save_LDFLAGS=$LDFLAGS | |
11829 | save_libdir=$libdir | |
11830 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11831 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11833 | /* end confdefs.h. */ | |
11834 | ||
11835 | int | |
11836 | main () | |
11837 | { | |
11838 | ||
11839 | ; | |
11840 | return 0; | |
11841 | } | |
11842 | _ACEOF | |
11843 | if ac_fn_c_try_link "$LINENO"; then : | |
11844 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11845 | lt_cv_shlibpath_overrides_runpath=yes | |
11846 | fi | |
11847 | fi | |
11848 | rm -f core conftest.err conftest.$ac_objext \ | |
11849 | conftest$ac_exeext conftest.$ac_ext | |
11850 | LDFLAGS=$save_LDFLAGS | |
11851 | libdir=$save_libdir | |
11852 | ||
11853 | fi | |
11854 | ||
11855 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11856 | ||
11857 | # This implies no fast_install, which is unacceptable. | |
11858 | # Some rework will be needed to allow for fast_install | |
11859 | # before this can be enabled. | |
11860 | hardcode_into_libs=yes | |
11861 | ||
11862 | # Ideally, we could use ldconfig to report *all* directores which are | |
11863 | # searched for libraries, however this is still not possible. Aside from not | |
11864 | # being certain /sbin/ldconfig is available, command | |
11865 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11866 | # even though it is searched at run-time. Try to do the best guess by | |
11867 | # appending ld.so.conf contents (and includes) to the search path. | |
11868 | if test -f /etc/ld.so.conf; then | |
11869 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
11870 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11871 | fi | |
11872 | ||
11873 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11874 | # powerpc, because MkLinux only supported shared libraries with the | |
11875 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11876 | # most powerpc-linux boxes support dynamic linking these days and | |
11877 | # people can always --disable-shared, the test was removed, and we | |
11878 | # assume the GNU/Linux dynamic linker is in use. | |
11879 | dynamic_linker='GNU/Linux ld.so' | |
11880 | ;; | |
11881 | ||
11882 | netbsdelf*-gnu) | |
11883 | version_type=linux | |
11884 | need_lib_prefix=no | |
11885 | need_version=no | |
11886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11887 | soname_spec='${libname}${release}${shared_ext}$major' | |
11888 | shlibpath_var=LD_LIBRARY_PATH | |
11889 | shlibpath_overrides_runpath=no | |
11890 | hardcode_into_libs=yes | |
11891 | dynamic_linker='NetBSD ld.elf_so' | |
11892 | ;; | |
11893 | ||
11894 | netbsd*) | |
11895 | version_type=sunos | |
11896 | need_lib_prefix=no | |
11897 | need_version=no | |
11898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11899 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11901 | dynamic_linker='NetBSD (a.out) ld.so' | |
11902 | else | |
11903 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11904 | soname_spec='$libname$release$shared_ext$major' | |
11905 | dynamic_linker='NetBSD ld.elf_so' | |
11906 | fi | |
11907 | shlibpath_var=LD_LIBRARY_PATH | |
11908 | shlibpath_overrides_runpath=yes | |
11909 | hardcode_into_libs=yes | |
11910 | ;; | |
11911 | ||
11912 | newsos6) | |
11913 | version_type=linux # correct to gnu/linux during the next big refactor | |
11914 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11915 | shlibpath_var=LD_LIBRARY_PATH | |
11916 | shlibpath_overrides_runpath=yes | |
11917 | ;; | |
11918 | ||
11919 | *nto* | *qnx*) | |
11920 | version_type=qnx | |
11921 | need_lib_prefix=no | |
11922 | need_version=no | |
11923 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11924 | soname_spec='$libname$release$shared_ext$major' | |
11925 | shlibpath_var=LD_LIBRARY_PATH | |
11926 | shlibpath_overrides_runpath=no | |
11927 | hardcode_into_libs=yes | |
11928 | dynamic_linker='ldqnx.so' | |
11929 | ;; | |
11930 | ||
11931 | openbsd* | bitrig*) | |
11932 | version_type=sunos | |
11933 | sys_lib_dlsearch_path_spec=/usr/lib | |
11934 | need_lib_prefix=no | |
11935 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11936 | need_version=no | |
11937 | else | |
11938 | need_version=yes | |
11939 | fi | |
11940 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11942 | shlibpath_var=LD_LIBRARY_PATH | |
11943 | shlibpath_overrides_runpath=yes | |
11944 | ;; | |
11945 | ||
11946 | os2*) | |
11947 | libname_spec='$name' | |
11948 | version_type=windows | |
11949 | shrext_cmds=.dll | |
11950 | need_version=no | |
11951 | need_lib_prefix=no | |
11952 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11953 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11954 | v=$($ECHO $release$versuffix | tr -d .-); | |
11955 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11956 | $ECHO $n$v`$shared_ext' | |
11957 | library_names_spec='${libname}_dll.$libext' | |
11958 | dynamic_linker='OS/2 ld.exe' | |
11959 | shlibpath_var=BEGINLIBPATH | |
11960 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11961 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11962 | postinstall_cmds='base_file=`basename \$file`~ | |
11963 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11964 | dldir=$destdir/`dirname \$dlpath`~ | |
11965 | test -d \$dldir || mkdir -p \$dldir~ | |
11966 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11967 | chmod a+x \$dldir/$dlname~ | |
11968 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11969 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11970 | fi' | |
11971 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11972 | dlpath=$dir/\$dldll~ | |
11973 | $RM \$dlpath' | |
11974 | ;; | |
11975 | ||
11976 | osf3* | osf4* | osf5*) | |
11977 | version_type=osf | |
11978 | need_lib_prefix=no | |
11979 | need_version=no | |
11980 | soname_spec='$libname$release$shared_ext$major' | |
11981 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11982 | shlibpath_var=LD_LIBRARY_PATH | |
11983 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11984 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11985 | ;; | |
11986 | ||
11987 | rdos*) | |
11988 | dynamic_linker=no | |
11989 | ;; | |
11990 | ||
11991 | solaris*) | |
11992 | version_type=linux # correct to gnu/linux during the next big refactor | |
11993 | need_lib_prefix=no | |
11994 | need_version=no | |
11995 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11996 | soname_spec='$libname$release$shared_ext$major' | |
11997 | shlibpath_var=LD_LIBRARY_PATH | |
11998 | shlibpath_overrides_runpath=yes | |
11999 | hardcode_into_libs=yes | |
12000 | # ldd complains unless libraries are executable | |
12001 | postinstall_cmds='chmod +x $lib' | |
12002 | ;; | |
12003 | ||
12004 | sunos4*) | |
12005 | version_type=sunos | |
12006 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
12007 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12008 | shlibpath_var=LD_LIBRARY_PATH | |
12009 | shlibpath_overrides_runpath=yes | |
12010 | if test yes = "$with_gnu_ld"; then | |
12011 | need_lib_prefix=no | |
12012 | fi | |
12013 | need_version=yes | |
12014 | ;; | |
12015 | ||
12016 | sysv4 | sysv4.3*) | |
12017 | version_type=linux # correct to gnu/linux during the next big refactor | |
12018 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12019 | soname_spec='$libname$release$shared_ext$major' | |
12020 | shlibpath_var=LD_LIBRARY_PATH | |
12021 | case $host_vendor in | |
12022 | sni) | |
12023 | shlibpath_overrides_runpath=no | |
12024 | need_lib_prefix=no | |
12025 | runpath_var=LD_RUN_PATH | |
12026 | ;; | |
12027 | siemens) | |
12028 | need_lib_prefix=no | |
12029 | ;; | |
12030 | motorola) | |
12031 | need_lib_prefix=no | |
12032 | need_version=no | |
12033 | shlibpath_overrides_runpath=no | |
12034 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12035 | ;; | |
12036 | esac | |
12037 | ;; | |
12038 | ||
12039 | sysv4*MP*) | |
12040 | if test -d /usr/nec; then | |
12041 | version_type=linux # correct to gnu/linux during the next big refactor | |
12042 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
12043 | soname_spec='$libname$shared_ext.$major' | |
12044 | shlibpath_var=LD_LIBRARY_PATH | |
12045 | fi | |
12046 | ;; | |
12047 | ||
12048 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12049 | version_type=sco | |
12050 | need_lib_prefix=no | |
12051 | need_version=no | |
12052 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
12053 | soname_spec='$libname$release$shared_ext$major' | |
12054 | shlibpath_var=LD_LIBRARY_PATH | |
12055 | shlibpath_overrides_runpath=yes | |
12056 | hardcode_into_libs=yes | |
12057 | if test yes = "$with_gnu_ld"; then | |
12058 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12059 | else | |
12060 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12061 | case $host_os in | |
12062 | sco3.2v5*) | |
12063 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12064 | ;; | |
12065 | esac | |
12066 | fi | |
12067 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12068 | ;; | |
12069 | ||
12070 | tpf*) | |
12071 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12072 | version_type=linux # correct to gnu/linux during the next big refactor | |
12073 | need_lib_prefix=no | |
12074 | need_version=no | |
12075 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12076 | shlibpath_var=LD_LIBRARY_PATH | |
12077 | shlibpath_overrides_runpath=no | |
12078 | hardcode_into_libs=yes | |
12079 | ;; | |
12080 | ||
12081 | uts4*) | |
12082 | version_type=linux # correct to gnu/linux during the next big refactor | |
12083 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12084 | soname_spec='$libname$release$shared_ext$major' | |
12085 | shlibpath_var=LD_LIBRARY_PATH | |
12086 | ;; | |
12087 | ||
12088 | *) | |
12089 | dynamic_linker=no | |
12090 | ;; | |
12091 | esac | |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12093 | $as_echo "$dynamic_linker" >&6; } | |
12094 | test no = "$dynamic_linker" && can_build_shared=no | |
12095 | ||
12096 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12097 | if test yes = "$GCC"; then | |
12098 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12099 | fi | |
12100 | ||
12101 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
12102 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
12103 | fi | |
12104 | ||
12105 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12106 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
12107 | fi | |
12108 | ||
12109 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
12110 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12111 | ||
12112 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12113 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12114 | ||
12115 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12116 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12117 | ||
12118 | ||
12119 | ||
12120 | ||
12121 | ||
12122 | ||
12123 | ||
12124 | ||
12125 | ||
12126 | ||
12127 | ||
12128 | ||
12129 | ||
12130 | ||
12131 | ||
12132 | ||
12133 | ||
12134 | ||
12135 | ||
12136 | ||
12137 | ||
12138 | ||
12139 | ||
12140 | ||
12141 | ||
12142 | ||
12143 | ||
12144 | ||
12145 | ||
12146 | ||
12147 | ||
12148 | ||
12149 | ||
12150 | ||
12151 | ||
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | ||
12157 | ||
12158 | ||
12159 | ||
12160 | ||
12161 | ||
12162 | ||
12163 | ||
12164 | ||
12165 | ||
12166 | ||
12167 | ||
12168 | ||
12169 | ||
12170 | ||
12171 | ||
12172 | ||
12173 | ||
12174 | ||
12175 | ||
12176 | ||
12177 | ||
12178 | ||
12179 | ||
12180 | ||
12181 | ||
12182 | ||
12183 | ||
12184 | ||
12185 | ||
12186 | ||
12187 | ||
12188 | ||
12189 | ||
12190 | ||
12191 | ||
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ||
12208 | ||
12209 | ||
12210 | ||
12211 | ||
12212 | ||
12213 | ||
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12215 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12216 | hardcode_action= | |
12217 | if test -n "$hardcode_libdir_flag_spec" || | |
12218 | test -n "$runpath_var" || | |
12219 | test yes = "$hardcode_automatic"; then | |
12220 | ||
12221 | # We can hardcode non-existent directories. | |
12222 | if test no != "$hardcode_direct" && | |
12223 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12224 | # have to relink, otherwise we might link with an installed library | |
12225 | # when we should be linking with a yet-to-be-installed one | |
12226 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
12227 | test no != "$hardcode_minus_L"; then | |
12228 | # Linking always hardcodes the temporary library directory. | |
12229 | hardcode_action=relink | |
12230 | else | |
12231 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12232 | hardcode_action=immediate | |
12233 | fi | |
12234 | else | |
12235 | # We cannot hardcode anything, or else we can only hardcode existing | |
12236 | # directories. | |
12237 | hardcode_action=unsupported | |
12238 | fi | |
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12240 | $as_echo "$hardcode_action" >&6; } | |
12241 | ||
12242 | if test relink = "$hardcode_action" || | |
12243 | test yes = "$inherit_rpath"; then | |
12244 | # Fast installation is not supported | |
12245 | enable_fast_install=no | |
12246 | elif test yes = "$shlibpath_overrides_runpath" || | |
12247 | test no = "$enable_shared"; then | |
12248 | # Fast installation is not necessary | |
12249 | enable_fast_install=needless | |
12250 | fi | |
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | if test yes != "$enable_dlopen"; then | |
12258 | enable_dlopen=unknown | |
12259 | enable_dlopen_self=unknown | |
12260 | enable_dlopen_self_static=unknown | |
12261 | else | |
12262 | lt_cv_dlopen=no | |
12263 | lt_cv_dlopen_libs= | |
12264 | ||
12265 | case $host_os in | |
12266 | beos*) | |
12267 | lt_cv_dlopen=load_add_on | |
12268 | lt_cv_dlopen_libs= | |
12269 | lt_cv_dlopen_self=yes | |
12270 | ;; | |
12271 | ||
12272 | mingw* | pw32* | cegcc*) | |
12273 | lt_cv_dlopen=LoadLibrary | |
12274 | lt_cv_dlopen_libs= | |
12275 | ;; | |
12276 | ||
12277 | cygwin*) | |
12278 | lt_cv_dlopen=dlopen | |
12279 | lt_cv_dlopen_libs= | |
12280 | ;; | |
12281 | ||
12282 | darwin*) | |
12283 | # if libdl is installed we need to link against it | |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12285 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12286 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12287 | $as_echo_n "(cached) " >&6 | |
12288 | else | |
12289 | ac_check_lib_save_LIBS=$LIBS | |
12290 | LIBS="-ldl $LIBS" | |
12291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12292 | /* end confdefs.h. */ | |
12293 | ||
12294 | /* Override any GCC internal prototype to avoid an error. | |
12295 | Use char because int might match the return type of a GCC | |
12296 | builtin and then its argument prototype would still apply. */ | |
12297 | #ifdef __cplusplus | |
12298 | extern "C" | |
12299 | #endif | |
12300 | char dlopen (); | |
12301 | int | |
12302 | main () | |
12303 | { | |
12304 | return dlopen (); | |
12305 | ; | |
12306 | return 0; | |
12307 | } | |
12308 | _ACEOF | |
12309 | if ac_fn_c_try_link "$LINENO"; then : | |
12310 | ac_cv_lib_dl_dlopen=yes | |
12311 | else | |
12312 | ac_cv_lib_dl_dlopen=no | |
12313 | fi | |
12314 | rm -f core conftest.err conftest.$ac_objext \ | |
12315 | conftest$ac_exeext conftest.$ac_ext | |
12316 | LIBS=$ac_check_lib_save_LIBS | |
12317 | fi | |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12319 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12320 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12321 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
12322 | else | |
12323 | ||
12324 | lt_cv_dlopen=dyld | |
12325 | lt_cv_dlopen_libs= | |
12326 | lt_cv_dlopen_self=yes | |
12327 | ||
12328 | fi | |
12329 | ||
12330 | ;; | |
12331 | ||
12332 | tpf*) | |
12333 | # Don't try to run any link tests for TPF. We know it's impossible | |
12334 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12335 | lt_cv_dlopen=dlopen | |
12336 | lt_cv_dlopen_libs= | |
12337 | lt_cv_dlopen_self=no | |
12338 | ;; | |
12339 | ||
12340 | *) | |
12341 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12342 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12343 | lt_cv_dlopen=shl_load | |
12344 | else | |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12346 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12347 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12348 | $as_echo_n "(cached) " >&6 | |
12349 | else | |
12350 | ac_check_lib_save_LIBS=$LIBS | |
12351 | LIBS="-ldld $LIBS" | |
12352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12353 | /* end confdefs.h. */ | |
12354 | ||
12355 | /* Override any GCC internal prototype to avoid an error. | |
12356 | Use char because int might match the return type of a GCC | |
12357 | builtin and then its argument prototype would still apply. */ | |
12358 | #ifdef __cplusplus | |
12359 | extern "C" | |
12360 | #endif | |
12361 | char shl_load (); | |
12362 | int | |
12363 | main () | |
12364 | { | |
12365 | return shl_load (); | |
12366 | ; | |
12367 | return 0; | |
12368 | } | |
12369 | _ACEOF | |
12370 | if ac_fn_c_try_link "$LINENO"; then : | |
12371 | ac_cv_lib_dld_shl_load=yes | |
12372 | else | |
12373 | ac_cv_lib_dld_shl_load=no | |
12374 | fi | |
12375 | rm -f core conftest.err conftest.$ac_objext \ | |
12376 | conftest$ac_exeext conftest.$ac_ext | |
12377 | LIBS=$ac_check_lib_save_LIBS | |
12378 | fi | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12380 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12381 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12382 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
12383 | else | |
12384 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12385 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12386 | lt_cv_dlopen=dlopen | |
12387 | else | |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12389 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12390 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12391 | $as_echo_n "(cached) " >&6 | |
12392 | else | |
12393 | ac_check_lib_save_LIBS=$LIBS | |
12394 | LIBS="-ldl $LIBS" | |
12395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12396 | /* end confdefs.h. */ | |
12397 | ||
12398 | /* Override any GCC internal prototype to avoid an error. | |
12399 | Use char because int might match the return type of a GCC | |
12400 | builtin and then its argument prototype would still apply. */ | |
12401 | #ifdef __cplusplus | |
12402 | extern "C" | |
12403 | #endif | |
12404 | char dlopen (); | |
12405 | int | |
12406 | main () | |
12407 | { | |
12408 | return dlopen (); | |
12409 | ; | |
12410 | return 0; | |
12411 | } | |
12412 | _ACEOF | |
12413 | if ac_fn_c_try_link "$LINENO"; then : | |
12414 | ac_cv_lib_dl_dlopen=yes | |
12415 | else | |
12416 | ac_cv_lib_dl_dlopen=no | |
12417 | fi | |
12418 | rm -f core conftest.err conftest.$ac_objext \ | |
12419 | conftest$ac_exeext conftest.$ac_ext | |
12420 | LIBS=$ac_check_lib_save_LIBS | |
12421 | fi | |
12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12423 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12424 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12425 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
12426 | else | |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12428 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12429 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12430 | $as_echo_n "(cached) " >&6 | |
12431 | else | |
12432 | ac_check_lib_save_LIBS=$LIBS | |
12433 | LIBS="-lsvld $LIBS" | |
12434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12435 | /* end confdefs.h. */ | |
12436 | ||
12437 | /* Override any GCC internal prototype to avoid an error. | |
12438 | Use char because int might match the return type of a GCC | |
12439 | builtin and then its argument prototype would still apply. */ | |
12440 | #ifdef __cplusplus | |
12441 | extern "C" | |
12442 | #endif | |
12443 | char dlopen (); | |
12444 | int | |
12445 | main () | |
12446 | { | |
12447 | return dlopen (); | |
12448 | ; | |
12449 | return 0; | |
12450 | } | |
12451 | _ACEOF | |
12452 | if ac_fn_c_try_link "$LINENO"; then : | |
12453 | ac_cv_lib_svld_dlopen=yes | |
12454 | else | |
12455 | ac_cv_lib_svld_dlopen=no | |
12456 | fi | |
12457 | rm -f core conftest.err conftest.$ac_objext \ | |
12458 | conftest$ac_exeext conftest.$ac_ext | |
12459 | LIBS=$ac_check_lib_save_LIBS | |
12460 | fi | |
12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12462 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12463 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12464 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
12465 | else | |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12467 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12468 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12469 | $as_echo_n "(cached) " >&6 | |
12470 | else | |
12471 | ac_check_lib_save_LIBS=$LIBS | |
12472 | LIBS="-ldld $LIBS" | |
12473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12474 | /* end confdefs.h. */ | |
12475 | ||
12476 | /* Override any GCC internal prototype to avoid an error. | |
12477 | Use char because int might match the return type of a GCC | |
12478 | builtin and then its argument prototype would still apply. */ | |
12479 | #ifdef __cplusplus | |
12480 | extern "C" | |
12481 | #endif | |
12482 | char dld_link (); | |
12483 | int | |
12484 | main () | |
12485 | { | |
12486 | return dld_link (); | |
12487 | ; | |
12488 | return 0; | |
12489 | } | |
12490 | _ACEOF | |
12491 | if ac_fn_c_try_link "$LINENO"; then : | |
12492 | ac_cv_lib_dld_dld_link=yes | |
12493 | else | |
12494 | ac_cv_lib_dld_dld_link=no | |
12495 | fi | |
12496 | rm -f core conftest.err conftest.$ac_objext \ | |
12497 | conftest$ac_exeext conftest.$ac_ext | |
12498 | LIBS=$ac_check_lib_save_LIBS | |
12499 | fi | |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12501 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12502 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12503 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
12504 | fi | |
12505 | ||
12506 | ||
12507 | fi | |
12508 | ||
12509 | ||
12510 | fi | |
12511 | ||
12512 | ||
12513 | fi | |
12514 | ||
12515 | ||
12516 | fi | |
12517 | ||
12518 | ||
12519 | fi | |
12520 | ||
12521 | ;; | |
12522 | esac | |
12523 | ||
12524 | if test no = "$lt_cv_dlopen"; then | |
12525 | enable_dlopen=no | |
12526 | else | |
12527 | enable_dlopen=yes | |
12528 | fi | |
12529 | ||
12530 | case $lt_cv_dlopen in | |
12531 | dlopen) | |
12532 | save_CPPFLAGS=$CPPFLAGS | |
12533 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12534 | ||
12535 | save_LDFLAGS=$LDFLAGS | |
12536 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12537 | ||
12538 | save_LIBS=$LIBS | |
12539 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12540 | ||
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12542 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12543 | if ${lt_cv_dlopen_self+:} false; then : | |
12544 | $as_echo_n "(cached) " >&6 | |
12545 | else | |
12546 | if test yes = "$cross_compiling"; then : | |
12547 | lt_cv_dlopen_self=cross | |
12548 | else | |
12549 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12550 | lt_status=$lt_dlunknown | |
12551 | cat > conftest.$ac_ext <<_LT_EOF | |
12552 | #line $LINENO "configure" | |
12553 | #include "confdefs.h" | |
12554 | ||
12555 | #if HAVE_DLFCN_H | |
12556 | #include <dlfcn.h> | |
12557 | #endif | |
12558 | ||
12559 | #include <stdio.h> | |
12560 | ||
12561 | #ifdef RTLD_GLOBAL | |
12562 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12563 | #else | |
12564 | # ifdef DL_GLOBAL | |
12565 | # define LT_DLGLOBAL DL_GLOBAL | |
12566 | # else | |
12567 | # define LT_DLGLOBAL 0 | |
12568 | # endif | |
12569 | #endif | |
12570 | ||
12571 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12572 | find out it does not work in some platform. */ | |
12573 | #ifndef LT_DLLAZY_OR_NOW | |
12574 | # ifdef RTLD_LAZY | |
12575 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12576 | # else | |
12577 | # ifdef DL_LAZY | |
12578 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12579 | # else | |
12580 | # ifdef RTLD_NOW | |
12581 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12582 | # else | |
12583 | # ifdef DL_NOW | |
12584 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12585 | # else | |
12586 | # define LT_DLLAZY_OR_NOW 0 | |
12587 | # endif | |
12588 | # endif | |
12589 | # endif | |
12590 | # endif | |
12591 | #endif | |
12592 | ||
12593 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12594 | correspondingly for the symbols needed. */ | |
12595 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12596 | int fnord () __attribute__((visibility("default"))); | |
12597 | #endif | |
12598 | ||
12599 | int fnord () { return 42; } | |
12600 | int main () | |
12601 | { | |
12602 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12603 | int status = $lt_dlunknown; | |
12604 | ||
12605 | if (self) | |
12606 | { | |
12607 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12608 | else | |
12609 | { | |
12610 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12611 | else puts (dlerror ()); | |
12612 | } | |
12613 | /* dlclose (self); */ | |
12614 | } | |
12615 | else | |
12616 | puts (dlerror ()); | |
12617 | ||
12618 | return status; | |
12619 | } | |
12620 | _LT_EOF | |
12621 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12622 | (eval $ac_link) 2>&5 | |
12623 | ac_status=$? | |
12624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12625 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12626 | (./conftest; exit; ) >&5 2>/dev/null | |
12627 | lt_status=$? | |
12628 | case x$lt_status in | |
12629 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12630 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12631 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12632 | esac | |
12633 | else : | |
12634 | # compilation failed | |
12635 | lt_cv_dlopen_self=no | |
12636 | fi | |
12637 | fi | |
12638 | rm -fr conftest* | |
12639 | ||
12640 | ||
12641 | fi | |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12643 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12644 | ||
12645 | if test yes = "$lt_cv_dlopen_self"; then | |
12646 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12648 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12649 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12650 | $as_echo_n "(cached) " >&6 | |
12651 | else | |
12652 | if test yes = "$cross_compiling"; then : | |
12653 | lt_cv_dlopen_self_static=cross | |
12654 | else | |
12655 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12656 | lt_status=$lt_dlunknown | |
12657 | cat > conftest.$ac_ext <<_LT_EOF | |
12658 | #line $LINENO "configure" | |
12659 | #include "confdefs.h" | |
12660 | ||
12661 | #if HAVE_DLFCN_H | |
12662 | #include <dlfcn.h> | |
12663 | #endif | |
12664 | ||
12665 | #include <stdio.h> | |
12666 | ||
12667 | #ifdef RTLD_GLOBAL | |
12668 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12669 | #else | |
12670 | # ifdef DL_GLOBAL | |
12671 | # define LT_DLGLOBAL DL_GLOBAL | |
12672 | # else | |
12673 | # define LT_DLGLOBAL 0 | |
12674 | # endif | |
12675 | #endif | |
12676 | ||
12677 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12678 | find out it does not work in some platform. */ | |
12679 | #ifndef LT_DLLAZY_OR_NOW | |
12680 | # ifdef RTLD_LAZY | |
12681 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12682 | # else | |
12683 | # ifdef DL_LAZY | |
12684 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12685 | # else | |
12686 | # ifdef RTLD_NOW | |
12687 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12688 | # else | |
12689 | # ifdef DL_NOW | |
12690 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12691 | # else | |
12692 | # define LT_DLLAZY_OR_NOW 0 | |
12693 | # endif | |
12694 | # endif | |
12695 | # endif | |
12696 | # endif | |
12697 | #endif | |
12698 | ||
12699 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12700 | correspondingly for the symbols needed. */ | |
12701 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12702 | int fnord () __attribute__((visibility("default"))); | |
12703 | #endif | |
12704 | ||
12705 | int fnord () { return 42; } | |
12706 | int main () | |
12707 | { | |
12708 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12709 | int status = $lt_dlunknown; | |
12710 | ||
12711 | if (self) | |
12712 | { | |
12713 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12714 | else | |
12715 | { | |
12716 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12717 | else puts (dlerror ()); | |
12718 | } | |
12719 | /* dlclose (self); */ | |
12720 | } | |
12721 | else | |
12722 | puts (dlerror ()); | |
12723 | ||
12724 | return status; | |
12725 | } | |
12726 | _LT_EOF | |
12727 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12728 | (eval $ac_link) 2>&5 | |
12729 | ac_status=$? | |
12730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12731 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12732 | (./conftest; exit; ) >&5 2>/dev/null | |
12733 | lt_status=$? | |
12734 | case x$lt_status in | |
12735 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12736 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12737 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12738 | esac | |
12739 | else : | |
12740 | # compilation failed | |
12741 | lt_cv_dlopen_self_static=no | |
12742 | fi | |
12743 | fi | |
12744 | rm -fr conftest* | |
12745 | ||
12746 | ||
12747 | fi | |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12749 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12750 | fi | |
12751 | ||
12752 | CPPFLAGS=$save_CPPFLAGS | |
12753 | LDFLAGS=$save_LDFLAGS | |
12754 | LIBS=$save_LIBS | |
12755 | ;; | |
12756 | esac | |
12757 | ||
12758 | case $lt_cv_dlopen_self in | |
12759 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12760 | *) enable_dlopen_self=unknown ;; | |
12761 | esac | |
12762 | ||
12763 | case $lt_cv_dlopen_self_static in | |
12764 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12765 | *) enable_dlopen_self_static=unknown ;; | |
12766 | esac | |
12767 | fi | |
12768 | ||
12769 | ||
12770 | ||
12771 | ||
12772 | ||
12773 | ||
12774 | ||
12775 | ||
12776 | ||
12777 | ||
12778 | ||
12779 | ||
12780 | ||
12781 | ||
12782 | ||
12783 | ||
12784 | ||
12785 | striplib= | |
12786 | old_striplib= | |
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12788 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12789 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12790 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12791 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12793 | $as_echo "yes" >&6; } | |
12794 | else | |
12795 | # FIXME - insert some real tests, host_os isn't really good enough | |
12796 | case $host_os in | |
12797 | darwin*) | |
12798 | if test -n "$STRIP"; then | |
12799 | striplib="$STRIP -x" | |
12800 | old_striplib="$STRIP -S" | |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12802 | $as_echo "yes" >&6; } | |
12803 | else | |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12805 | $as_echo "no" >&6; } | |
12806 | fi | |
12807 | ;; | |
12808 | *) | |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12810 | $as_echo "no" >&6; } | |
12811 | ;; | |
12812 | esac | |
12813 | fi | |
12814 | ||
12815 | ||
12816 | ||
12817 | ||
12818 | ||
12819 | ||
12820 | ||
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | # Report what library types will actually be built | |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12828 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12830 | $as_echo "$can_build_shared" >&6; } | |
12831 | ||
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12833 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12834 | test no = "$can_build_shared" && enable_shared=no | |
12835 | ||
12836 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12837 | # are all built from PIC. | |
12838 | case $host_os in | |
12839 | aix3*) | |
12840 | test yes = "$enable_shared" && enable_static=no | |
12841 | if test -n "$RANLIB"; then | |
12842 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12843 | postinstall_cmds='$RANLIB $lib' | |
12844 | fi | |
12845 | ;; | |
12846 | ||
12847 | aix[4-9]*) | |
12848 | if test ia64 != "$host_cpu"; then | |
12849 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12850 | yes,aix,yes) ;; # shared object as lib.so file only | |
12851 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12852 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12853 | esac | |
12854 | fi | |
12855 | ;; | |
12856 | esac | |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12858 | $as_echo "$enable_shared" >&6; } | |
12859 | ||
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12861 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12862 | # Make sure either enable_shared or enable_static is yes. | |
12863 | test yes = "$enable_shared" || enable_static=yes | |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12865 | $as_echo "$enable_static" >&6; } | |
12866 | ||
12867 | ||
12868 | ||
12869 | ||
12870 | fi | |
12871 | ac_ext=c | |
12872 | ac_cpp='$CPP $CPPFLAGS' | |
12873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12876 | ||
12877 | CC=$lt_save_CC | |
12878 | ||
12879 | if test -n "$CXX" && ( test no != "$CXX" && | |
12880 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
12881 | (test g++ != "$CXX"))); then | |
12882 | ac_ext=cpp | |
12883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12888 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12889 | if test -z "$CXXCPP"; then | |
12890 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
12891 | $as_echo_n "(cached) " >&6 | |
12892 | else | |
12893 | # Double quotes because CXXCPP needs to be expanded | |
12894 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12895 | do | |
12896 | ac_preproc_ok=false | |
12897 | for ac_cxx_preproc_warn_flag in '' yes | |
12898 | do | |
12899 | # Use a header file that comes with gcc, so configuring glibc | |
12900 | # with a fresh cross-compiler works. | |
12901 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12902 | # <limits.h> exists even on freestanding compilers. | |
12903 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12904 | # not just through cpp. "Syntax error" is here to catch this case. | |
12905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12906 | /* end confdefs.h. */ | |
12907 | #ifdef __STDC__ | |
12908 | # include <limits.h> | |
12909 | #else | |
12910 | # include <assert.h> | |
12911 | #endif | |
12912 | Syntax error | |
12913 | _ACEOF | |
12914 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12915 | ||
12916 | else | |
12917 | # Broken: fails on valid input. | |
12918 | continue | |
12919 | fi | |
12920 | rm -f conftest.err conftest.i conftest.$ac_ext | |
12921 | ||
12922 | # OK, works on sane cases. Now check whether nonexistent headers | |
12923 | # can be detected and how. | |
12924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12925 | /* end confdefs.h. */ | |
12926 | #include <ac_nonexistent.h> | |
12927 | _ACEOF | |
12928 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12929 | # Broken: success on invalid input. | |
12930 | continue | |
12931 | else | |
12932 | # Passes both tests. | |
12933 | ac_preproc_ok=: | |
12934 | break | |
12935 | fi | |
12936 | rm -f conftest.err conftest.i conftest.$ac_ext | |
12937 | ||
12938 | done | |
12939 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12940 | rm -f conftest.i conftest.err conftest.$ac_ext | |
12941 | if $ac_preproc_ok; then : | |
12942 | break | |
12943 | fi | |
12944 | ||
12945 | done | |
12946 | ac_cv_prog_CXXCPP=$CXXCPP | |
12947 | ||
12948 | fi | |
12949 | CXXCPP=$ac_cv_prog_CXXCPP | |
12950 | else | |
12951 | ac_cv_prog_CXXCPP=$CXXCPP | |
12952 | fi | |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12954 | $as_echo "$CXXCPP" >&6; } | |
12955 | ac_preproc_ok=false | |
12956 | for ac_cxx_preproc_warn_flag in '' yes | |
12957 | do | |
12958 | # Use a header file that comes with gcc, so configuring glibc | |
12959 | # with a fresh cross-compiler works. | |
12960 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12961 | # <limits.h> exists even on freestanding compilers. | |
12962 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12963 | # not just through cpp. "Syntax error" is here to catch this case. | |
12964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12965 | /* end confdefs.h. */ | |
12966 | #ifdef __STDC__ | |
12967 | # include <limits.h> | |
12968 | #else | |
12969 | # include <assert.h> | |
12970 | #endif | |
12971 | Syntax error | |
12972 | _ACEOF | |
12973 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12974 | ||
12975 | else | |
12976 | # Broken: fails on valid input. | |
12977 | continue | |
12978 | fi | |
12979 | rm -f conftest.err conftest.i conftest.$ac_ext | |
12980 | ||
12981 | # OK, works on sane cases. Now check whether nonexistent headers | |
12982 | # can be detected and how. | |
12983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12984 | /* end confdefs.h. */ | |
12985 | #include <ac_nonexistent.h> | |
12986 | _ACEOF | |
12987 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12988 | # Broken: success on invalid input. | |
12989 | continue | |
12990 | else | |
12991 | # Passes both tests. | |
12992 | ac_preproc_ok=: | |
12993 | break | |
12994 | fi | |
12995 | rm -f conftest.err conftest.i conftest.$ac_ext | |
12996 | ||
12997 | done | |
12998 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12999 | rm -f conftest.i conftest.err conftest.$ac_ext | |
13000 | if $ac_preproc_ok; then : | |
13001 | ||
13002 | else | |
13003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13004 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13005 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
13006 | See \`config.log' for more details" "$LINENO" 5; } | |
13007 | fi | |
13008 | ||
13009 | ac_ext=c | |
13010 | ac_cpp='$CPP $CPPFLAGS' | |
13011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13014 | ||
13015 | else | |
13016 | _lt_caught_CXX_error=yes | |
13017 | fi | |
13018 | ||
13019 | ac_ext=cpp | |
13020 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13021 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13022 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13024 | ||
13025 | archive_cmds_need_lc_CXX=no | |
13026 | allow_undefined_flag_CXX= | |
13027 | always_export_symbols_CXX=no | |
13028 | archive_expsym_cmds_CXX= | |
13029 | compiler_needs_object_CXX=no | |
13030 | export_dynamic_flag_spec_CXX= | |
13031 | hardcode_direct_CXX=no | |
13032 | hardcode_direct_absolute_CXX=no | |
13033 | hardcode_libdir_flag_spec_CXX= | |
13034 | hardcode_libdir_separator_CXX= | |
13035 | hardcode_minus_L_CXX=no | |
13036 | hardcode_shlibpath_var_CXX=unsupported | |
13037 | hardcode_automatic_CXX=no | |
13038 | inherit_rpath_CXX=no | |
13039 | module_cmds_CXX= | |
13040 | module_expsym_cmds_CXX= | |
13041 | link_all_deplibs_CXX=unknown | |
13042 | old_archive_cmds_CXX=$old_archive_cmds | |
13043 | reload_flag_CXX=$reload_flag | |
13044 | reload_cmds_CXX=$reload_cmds | |
13045 | no_undefined_flag_CXX= | |
13046 | whole_archive_flag_spec_CXX= | |
13047 | enable_shared_with_static_runtimes_CXX=no | |
13048 | ||
13049 | # Source file extension for C++ test sources. | |
13050 | ac_ext=cpp | |
13051 | ||
13052 | # Object file extension for compiled C++ test sources. | |
13053 | objext=o | |
13054 | objext_CXX=$objext | |
13055 | ||
13056 | # No sense in running all these tests if we already determined that | |
13057 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13058 | # are currently assumed to apply to all compilers on this platform, | |
13059 | # and will be corrupted by setting them based on a non-working compiler. | |
13060 | if test yes != "$_lt_caught_CXX_error"; then | |
13061 | # Code to be used in simple compile tests | |
13062 | lt_simple_compile_test_code="int some_variable = 0;" | |
13063 | ||
13064 | # Code to be used in simple link tests | |
13065 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
13066 | ||
13067 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13068 | ||
13069 | ||
13070 | ||
13071 | ||
13072 | ||
13073 | ||
13074 | # If no C compiler was specified, use CC. | |
13075 | LTCC=${LTCC-"$CC"} | |
13076 | ||
13077 | # If no C compiler flags were specified, use CFLAGS. | |
13078 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13079 | ||
13080 | # Allow CC to be a program name with arguments. | |
13081 | compiler=$CC | |
13082 | ||
13083 | ||
13084 | # save warnings/boilerplate of simple test code | |
13085 | ac_outfile=conftest.$ac_objext | |
13086 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13087 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13088 | _lt_compiler_boilerplate=`cat conftest.err` | |
13089 | $RM conftest* | |
13090 | ||
13091 | ac_outfile=conftest.$ac_objext | |
13092 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13093 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13094 | _lt_linker_boilerplate=`cat conftest.err` | |
13095 | $RM -r conftest* | |
13096 | ||
13097 | ||
13098 | # Allow CC to be a program name with arguments. | |
13099 | lt_save_CC=$CC | |
13100 | lt_save_CFLAGS=$CFLAGS | |
13101 | lt_save_LD=$LD | |
13102 | lt_save_GCC=$GCC | |
13103 | GCC=$GXX | |
13104 | lt_save_with_gnu_ld=$with_gnu_ld | |
13105 | lt_save_path_LD=$lt_cv_path_LD | |
13106 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13107 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
13108 | else | |
13109 | $as_unset lt_cv_prog_gnu_ld | |
13110 | fi | |
13111 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
13112 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
13113 | else | |
13114 | $as_unset lt_cv_path_LD | |
13115 | fi | |
13116 | test -z "${LDCXX+set}" || LD=$LDCXX | |
13117 | CC=${CXX-"c++"} | |
13118 | CFLAGS=$CXXFLAGS | |
13119 | compiler=$CC | |
13120 | compiler_CXX=$CC | |
13121 | func_cc_basename $compiler | |
13122 | cc_basename=$func_cc_basename_result | |
13123 | ||
13124 | ||
13125 | if test -n "$compiler"; then | |
13126 | # We don't want -fno-exception when compiling C++ code, so set the | |
13127 | # no_builtin_flag separately | |
13128 | if test yes = "$GXX"; then | |
13129 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
13130 | else | |
13131 | lt_prog_compiler_no_builtin_flag_CXX= | |
13132 | fi | |
13133 | ||
13134 | if test yes = "$GXX"; then | |
13135 | # Set up default GNU C++ configuration | |
13136 | ||
13137 | ||
13138 | ||
13139 | # Check whether --with-gnu-ld was given. | |
13140 | if test "${with_gnu_ld+set}" = set; then : | |
13141 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
13142 | else | |
13143 | with_gnu_ld=no | |
13144 | fi | |
13145 | ||
13146 | ac_prog=ld | |
13147 | if test yes = "$GCC"; then | |
13148 | # Check if gcc -print-prog-name=ld gives a path. | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13150 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13151 | case $host in | |
13152 | *-*-mingw*) | |
13153 | # gcc leaves a trailing carriage return, which upsets mingw | |
13154 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13155 | *) | |
13156 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13157 | esac | |
13158 | case $ac_prog in | |
13159 | # Accept absolute paths. | |
13160 | [\\/]* | ?:[\\/]*) | |
13161 | re_direlt='/[^/][^/]*/\.\./' | |
13162 | # Canonicalize the pathname of ld | |
13163 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13164 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13165 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13166 | done | |
13167 | test -z "$LD" && LD=$ac_prog | |
13168 | ;; | |
13169 | "") | |
13170 | # If it fails, then pretend we aren't using GCC. | |
13171 | ac_prog=ld | |
13172 | ;; | |
13173 | *) | |
13174 | # If it is relative, then search for the first ld in PATH. | |
13175 | with_gnu_ld=unknown | |
13176 | ;; | |
13177 | esac | |
13178 | elif test yes = "$with_gnu_ld"; then | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13180 | $as_echo_n "checking for GNU ld... " >&6; } | |
13181 | else | |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13183 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
13184 | fi | |
13185 | if ${lt_cv_path_LD+:} false; then : | |
13186 | $as_echo_n "(cached) " >&6 | |
13187 | else | |
13188 | if test -z "$LD"; then | |
13189 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
13190 | for ac_dir in $PATH; do | |
13191 | IFS=$lt_save_ifs | |
13192 | test -z "$ac_dir" && ac_dir=. | |
13193 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13194 | lt_cv_path_LD=$ac_dir/$ac_prog | |
13195 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13196 | # but apparently some variants of GNU ld only accept -v. | |
13197 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13198 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13199 | *GNU* | *'with BFD'*) | |
13200 | test no != "$with_gnu_ld" && break | |
13201 | ;; | |
13202 | *) | |
13203 | test yes != "$with_gnu_ld" && break | |
13204 | ;; | |
13205 | esac | |
13206 | fi | |
13207 | done | |
13208 | IFS=$lt_save_ifs | |
13209 | else | |
13210 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
13211 | fi | |
13212 | fi | |
13213 | ||
13214 | LD=$lt_cv_path_LD | |
13215 | if test -n "$LD"; then | |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13217 | $as_echo "$LD" >&6; } | |
13218 | else | |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13220 | $as_echo "no" >&6; } | |
13221 | fi | |
13222 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
13224 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
13225 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
13226 | $as_echo_n "(cached) " >&6 | |
13227 | else | |
13228 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13229 | case `$LD -v 2>&1 </dev/null` in | |
13230 | *GNU* | *'with BFD'*) | |
13231 | lt_cv_prog_gnu_ld=yes | |
13232 | ;; | |
13233 | *) | |
13234 | lt_cv_prog_gnu_ld=no | |
13235 | ;; | |
13236 | esac | |
13237 | fi | |
13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13239 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13240 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | ||
13246 | ||
13247 | ||
13248 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
13249 | # archiving commands below assume that GNU ld is being used. | |
13250 | if test yes = "$with_gnu_ld"; then | |
13251 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13252 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
13253 | ||
13254 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
13255 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
13256 | ||
13257 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13258 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13259 | # investigate it a little bit more. (MM) | |
13260 | wlarc='$wl' | |
13261 | ||
13262 | # ancient GNU ld didn't support --whole-archive et. al. | |
13263 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13264 | $GREP 'no-whole-archive' > /dev/null; then | |
13265 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
13266 | else | |
13267 | whole_archive_flag_spec_CXX= | |
13268 | fi | |
13269 | else | |
13270 | with_gnu_ld=no | |
13271 | wlarc= | |
13272 | ||
13273 | # A generic and very simple default shared library creation | |
13274 | # command for GNU C++ for the case where it uses the native | |
13275 | # linker, instead of GNU ld. If possible, this setting should | |
13276 | # overridden to take advantage of the native linker features on | |
13277 | # the platform it is being used on. | |
13278 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13279 | fi | |
13280 | ||
13281 | # Commands to make compiler produce verbose output that lists | |
13282 | # what "hidden" libraries, object files and flags are used when | |
13283 | # linking a shared library. | |
13284 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13285 | ||
13286 | else | |
13287 | GXX=no | |
13288 | with_gnu_ld=no | |
13289 | wlarc= | |
13290 | fi | |
13291 | ||
13292 | # PORTME: fill in a description of your system's C++ link characteristics | |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13294 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13295 | ld_shlibs_CXX=yes | |
13296 | case $host_os in | |
13297 | aix3*) | |
13298 | # FIXME: insert proper C++ library support | |
13299 | ld_shlibs_CXX=no | |
13300 | ;; | |
13301 | aix[4-9]*) | |
13302 | if test ia64 = "$host_cpu"; then | |
13303 | # On IA64, the linker does run time linking by default, so we don't | |
13304 | # have to do anything special. | |
13305 | aix_use_runtimelinking=no | |
13306 | exp_sym_flag='-Bexport' | |
13307 | no_entry_flag= | |
13308 | else | |
13309 | aix_use_runtimelinking=no | |
13310 | ||
13311 | # Test if we are trying to use run time linking or normal | |
13312 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13313 | # have runtime linking enabled, and use it for executables. | |
13314 | # For shared libraries, we enable/disable runtime linking | |
13315 | # depending on the kind of the shared library created - | |
13316 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
13317 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
13318 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
13319 | # lib.a static archive | |
13320 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
13321 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
13322 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13323 | # lib.a(lib.so.V) shared, rtl:no | |
13324 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13325 | # lib.a static archive | |
13326 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13327 | for ld_flag in $LDFLAGS; do | |
13328 | case $ld_flag in | |
13329 | *-brtl*) | |
13330 | aix_use_runtimelinking=yes | |
13331 | break | |
13332 | ;; | |
13333 | esac | |
13334 | done | |
13335 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
13336 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
13337 | # so we don't have lib.a shared libs to link our executables. | |
13338 | # We have to force runtime linking in this case. | |
13339 | aix_use_runtimelinking=yes | |
13340 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
13341 | fi | |
13342 | ;; | |
13343 | esac | |
13344 | ||
13345 | exp_sym_flag='-bexport' | |
13346 | no_entry_flag='-bnoentry' | |
13347 | fi | |
13348 | ||
13349 | # When large executables or shared objects are built, AIX ld can | |
13350 | # have problems creating the table of contents. If linking a library | |
13351 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13352 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13353 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13354 | ||
13355 | archive_cmds_CXX='' | |
13356 | hardcode_direct_CXX=yes | |
13357 | hardcode_direct_absolute_CXX=yes | |
13358 | hardcode_libdir_separator_CXX=':' | |
13359 | link_all_deplibs_CXX=yes | |
13360 | file_list_spec_CXX='$wl-f,' | |
13361 | case $with_aix_soname,$aix_use_runtimelinking in | |
13362 | aix,*) ;; # no import file | |
13363 | svr4,* | *,yes) # use import file | |
13364 | # The Import File defines what to hardcode. | |
13365 | hardcode_direct_CXX=no | |
13366 | hardcode_direct_absolute_CXX=no | |
13367 | ;; | |
13368 | esac | |
13369 | ||
13370 | if test yes = "$GXX"; then | |
13371 | case $host_os in aix4.[012]|aix4.[012].*) | |
13372 | # We only want to do this on AIX 4.2 and lower, the check | |
13373 | # below for broken collect2 doesn't work under 4.3+ | |
13374 | collect2name=`$CC -print-prog-name=collect2` | |
13375 | if test -f "$collect2name" && | |
13376 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13377 | then | |
13378 | # We have reworked collect2 | |
13379 | : | |
13380 | else | |
13381 | # We have old collect2 | |
13382 | hardcode_direct_CXX=unsupported | |
13383 | # It fails to find uninstalled libraries when the uninstalled | |
13384 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13385 | # to unsupported forces relinking | |
13386 | hardcode_minus_L_CXX=yes | |
13387 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13388 | hardcode_libdir_separator_CXX= | |
13389 | fi | |
13390 | esac | |
13391 | shared_flag='-shared' | |
13392 | if test yes = "$aix_use_runtimelinking"; then | |
13393 | shared_flag=$shared_flag' $wl-G' | |
13394 | fi | |
13395 | # Need to ensure runtime linking is disabled for the traditional | |
13396 | # shared library, or the linker may eventually find shared libraries | |
13397 | # /with/ Import File - we do not want to mix them. | |
13398 | shared_flag_aix='-shared' | |
13399 | shared_flag_svr4='-shared $wl-G' | |
13400 | else | |
13401 | # not using gcc | |
13402 | if test ia64 = "$host_cpu"; then | |
13403 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13404 | # chokes on -Wl,-G. The following line is correct: | |
13405 | shared_flag='-G' | |
13406 | else | |
13407 | if test yes = "$aix_use_runtimelinking"; then | |
13408 | shared_flag='$wl-G' | |
13409 | else | |
13410 | shared_flag='$wl-bM:SRE' | |
13411 | fi | |
13412 | shared_flag_aix='$wl-bM:SRE' | |
13413 | shared_flag_svr4='$wl-G' | |
13414 | fi | |
13415 | fi | |
13416 | ||
13417 | export_dynamic_flag_spec_CXX='$wl-bexpall' | |
13418 | # It seems that -bexpall does not export symbols beginning with | |
13419 | # underscore (_), so it is better to generate a list of symbols to | |
13420 | # export. | |
13421 | always_export_symbols_CXX=yes | |
13422 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
13423 | # Warning - without using the other runtime loading flags (-brtl), | |
13424 | # -berok will link without error, but may produce a broken library. | |
13425 | # The "-G" linker flag allows undefined symbols. | |
13426 | no_undefined_flag_CXX='-bernotok' | |
13427 | # Determine the default libpath from the value encoded in an empty | |
13428 | # executable. | |
13429 | if test set = "${lt_cv_aix_libpath+set}"; then | |
13430 | aix_libpath=$lt_cv_aix_libpath | |
13431 | else | |
13432 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13433 | $as_echo_n "(cached) " >&6 | |
13434 | else | |
13435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13436 | /* end confdefs.h. */ | |
13437 | ||
13438 | int | |
13439 | main () | |
13440 | { | |
13441 | ||
13442 | ; | |
13443 | return 0; | |
13444 | } | |
13445 | _ACEOF | |
13446 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13447 | ||
13448 | lt_aix_libpath_sed=' | |
13449 | /Import File Strings/,/^$/ { | |
13450 | /^0/ { | |
13451 | s/^0 *\([^ ]*\) *$/\1/ | |
13452 | p | |
13453 | } | |
13454 | }' | |
13455 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13456 | # Check for a 64-bit object if we didn't find anything. | |
13457 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13458 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13459 | fi | |
13460 | fi | |
13461 | rm -f core conftest.err conftest.$ac_objext \ | |
13462 | conftest$ac_exeext conftest.$ac_ext | |
13463 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13464 | lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
13465 | fi | |
13466 | ||
13467 | fi | |
13468 | ||
13469 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13470 | fi | |
13471 | ||
13472 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
13473 | ||
13474 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
13475 | else | |
13476 | if test ia64 = "$host_cpu"; then | |
13477 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
13478 | allow_undefined_flag_CXX="-z nodefs" | |
13479 | 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" | |
13480 | else | |
13481 | # Determine the default libpath from the value encoded in an | |
13482 | # empty executable. | |
13483 | if test set = "${lt_cv_aix_libpath+set}"; then | |
13484 | aix_libpath=$lt_cv_aix_libpath | |
13485 | else | |
13486 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13487 | $as_echo_n "(cached) " >&6 | |
13488 | else | |
13489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13490 | /* end confdefs.h. */ | |
13491 | ||
13492 | int | |
13493 | main () | |
13494 | { | |
13495 | ||
13496 | ; | |
13497 | return 0; | |
13498 | } | |
13499 | _ACEOF | |
13500 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13501 | ||
13502 | lt_aix_libpath_sed=' | |
13503 | /Import File Strings/,/^$/ { | |
13504 | /^0/ { | |
13505 | s/^0 *\([^ ]*\) *$/\1/ | |
13506 | p | |
13507 | } | |
13508 | }' | |
13509 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13510 | # Check for a 64-bit object if we didn't find anything. | |
13511 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13512 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13513 | fi | |
13514 | fi | |
13515 | rm -f core conftest.err conftest.$ac_objext \ | |
13516 | conftest$ac_exeext conftest.$ac_ext | |
13517 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13518 | lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
13519 | fi | |
13520 | ||
13521 | fi | |
13522 | ||
13523 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13524 | fi | |
13525 | ||
13526 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
13527 | # Warning - without using the other run time loading flags, | |
13528 | # -berok will link without error, but may produce a broken library. | |
13529 | no_undefined_flag_CXX=' $wl-bernotok' | |
13530 | allow_undefined_flag_CXX=' $wl-berok' | |
13531 | if test yes = "$with_gnu_ld"; then | |
13532 | # We only use this code for GNU lds that support --whole-archive. | |
13533 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
13534 | else | |
13535 | # Exported symbols can be pulled into shared objects from archives | |
13536 | whole_archive_flag_spec_CXX='$convenience' | |
13537 | fi | |
13538 | archive_cmds_need_lc_CXX=yes | |
13539 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
13540 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
13541 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
13542 | if test svr4 != "$with_aix_soname"; then | |
13543 | # This is similar to how AIX traditionally builds its shared | |
13544 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
13545 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
13546 | fi | |
13547 | if test aix != "$with_aix_soname"; then | |
13548 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
13549 | else | |
13550 | # used by -dlpreopen to get the symbols | |
13551 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
13552 | fi | |
13553 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
13554 | fi | |
13555 | fi | |
13556 | ;; | |
13557 | ||
13558 | beos*) | |
13559 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13560 | allow_undefined_flag_CXX=unsupported | |
13561 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13562 | # support --undefined. This deserves some investigation. FIXME | |
13563 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
13564 | else | |
13565 | ld_shlibs_CXX=no | |
13566 | fi | |
13567 | ;; | |
13568 | ||
13569 | chorus*) | |
13570 | case $cc_basename in | |
13571 | *) | |
13572 | # FIXME: insert proper C++ library support | |
13573 | ld_shlibs_CXX=no | |
13574 | ;; | |
13575 | esac | |
13576 | ;; | |
13577 | ||
13578 | cygwin* | mingw* | pw32* | cegcc*) | |
13579 | case $GXX,$cc_basename in | |
13580 | ,cl* | no,cl*) | |
13581 | # Native MSVC | |
13582 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13583 | # no search path for DLLs. | |
13584 | hardcode_libdir_flag_spec_CXX=' ' | |
13585 | allow_undefined_flag_CXX=unsupported | |
13586 | always_export_symbols_CXX=yes | |
13587 | file_list_spec_CXX='@' | |
13588 | # Tell ltmain to make .lib files, not .a files. | |
13589 | libext=lib | |
13590 | # Tell ltmain to make .dll files, not .so files. | |
13591 | shrext_cmds=.dll | |
13592 | # FIXME: Setting linknames here is a bad hack. | |
13593 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
13594 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13595 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
13596 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
13597 | else | |
13598 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
13599 | fi~ | |
13600 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13601 | linknames=' | |
13602 | # The linker will not automatically build a static lib if we build a DLL. | |
13603 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13604 | enable_shared_with_static_runtimes_CXX=yes | |
13605 | # Don't use ranlib | |
13606 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13607 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13608 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13609 | case $lt_outputfile in | |
13610 | *.exe|*.EXE) ;; | |
13611 | *) | |
13612 | lt_outputfile=$lt_outputfile.exe | |
13613 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
13614 | ;; | |
13615 | esac~ | |
13616 | func_to_tool_file "$lt_outputfile"~ | |
13617 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
13618 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13619 | $RM "$lt_outputfile.manifest"; | |
13620 | fi' | |
13621 | ;; | |
13622 | *) | |
13623 | # g++ | |
13624 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13625 | # as there is no search path for DLLs. | |
13626 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13627 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' | |
13628 | allow_undefined_flag_CXX=unsupported | |
13629 | always_export_symbols_CXX=no | |
13630 | enable_shared_with_static_runtimes_CXX=yes | |
13631 | ||
13632 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13633 | 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' | |
13634 | # If the export-symbols file already is a .def file, use it as | |
13635 | # is; otherwise, prepend EXPORTS... | |
13636 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13637 | cp $export_symbols $output_objdir/$soname.def; | |
13638 | else | |
13639 | echo EXPORTS > $output_objdir/$soname.def; | |
13640 | cat $export_symbols >> $output_objdir/$soname.def; | |
13641 | fi~ | |
13642 | $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' | |
13643 | else | |
13644 | ld_shlibs_CXX=no | |
13645 | fi | |
13646 | ;; | |
13647 | esac | |
13648 | ;; | |
13649 | darwin* | rhapsody*) | |
13650 | ||
13651 | ||
13652 | archive_cmds_need_lc_CXX=no | |
13653 | hardcode_direct_CXX=no | |
13654 | hardcode_automatic_CXX=yes | |
13655 | hardcode_shlibpath_var_CXX=unsupported | |
13656 | if test yes = "$lt_cv_ld_force_load"; then | |
13657 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13658 | ||
13659 | else | |
13660 | whole_archive_flag_spec_CXX='' | |
13661 | fi | |
13662 | link_all_deplibs_CXX=yes | |
13663 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined | |
13664 | case $cc_basename in | |
13665 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
13666 | *) _lt_dar_can_shared=$GCC ;; | |
13667 | esac | |
13668 | if test yes = "$_lt_dar_can_shared"; then | |
13669 | output_verbose_link_cmd=func_echo_all | |
13670 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
13671 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
13672 | archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" | |
13673 | module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" | |
13674 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
13675 | 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$_lt_dsymutil" | |
13676 | archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil" | |
13677 | fi | |
13678 | ||
13679 | else | |
13680 | ld_shlibs_CXX=no | |
13681 | fi | |
13682 | ||
13683 | ;; | |
13684 | ||
13685 | os2*) | |
13686 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13687 | hardcode_minus_L_CXX=yes | |
13688 | allow_undefined_flag_CXX=unsupported | |
13689 | shrext_cmds=.dll | |
13690 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
13691 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
13692 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
13693 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
13694 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
13695 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
13696 | emximp -o $lib $output_objdir/$libname.def' | |
13697 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
13698 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
13699 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
13700 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
13701 | prefix_cmds="$SED"~ | |
13702 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
13703 | prefix_cmds="$prefix_cmds -e 1d"; | |
13704 | fi~ | |
13705 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
13706 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
13707 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
13708 | emximp -o $lib $output_objdir/$libname.def' | |
13709 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
13710 | enable_shared_with_static_runtimes_CXX=yes | |
13711 | ;; | |
13712 | ||
13713 | dgux*) | |
13714 | case $cc_basename in | |
13715 | ec++*) | |
13716 | # FIXME: insert proper C++ library support | |
13717 | ld_shlibs_CXX=no | |
13718 | ;; | |
13719 | ghcx*) | |
13720 | # Green Hills C++ Compiler | |
13721 | # FIXME: insert proper C++ library support | |
13722 | ld_shlibs_CXX=no | |
13723 | ;; | |
13724 | *) | |
13725 | # FIXME: insert proper C++ library support | |
13726 | ld_shlibs_CXX=no | |
13727 | ;; | |
13728 | esac | |
13729 | ;; | |
13730 | ||
13731 | freebsd2.*) | |
13732 | # C++ shared libraries reported to be fairly broken before | |
13733 | # switch to ELF | |
13734 | ld_shlibs_CXX=no | |
13735 | ;; | |
13736 | ||
13737 | freebsd-elf*) | |
13738 | archive_cmds_need_lc_CXX=no | |
13739 | ;; | |
13740 | ||
13741 | freebsd* | dragonfly*) | |
13742 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13743 | # conventions | |
13744 | ld_shlibs_CXX=yes | |
13745 | ;; | |
13746 | ||
13747 | haiku*) | |
13748 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
13749 | link_all_deplibs_CXX=yes | |
13750 | ;; | |
13751 | ||
13752 | hpux9*) | |
13753 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
13754 | hardcode_libdir_separator_CXX=: | |
13755 | export_dynamic_flag_spec_CXX='$wl-E' | |
13756 | hardcode_direct_CXX=yes | |
13757 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13758 | # but as the default | |
13759 | # location of the library. | |
13760 | ||
13761 | case $cc_basename in | |
13762 | CC*) | |
13763 | # FIXME: insert proper C++ library support | |
13764 | ld_shlibs_CXX=no | |
13765 | ;; | |
13766 | aCC*) | |
13767 | 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
13768 | # Commands to make compiler produce verbose output that lists | |
13769 | # what "hidden" libraries, object files and flags are used when | |
13770 | # linking a shared library. | |
13771 | # | |
13772 | # There doesn't appear to be a way to prevent this compiler from | |
13773 | # explicitly linking system object files so we need to strip them | |
13774 | # from the output so that they don't get included in the library | |
13775 | # dependencies. | |
13776 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13777 | ;; | |
13778 | *) | |
13779 | if test yes = "$GXX"; then | |
13780 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
13781 | else | |
13782 | # FIXME: insert proper C++ library support | |
13783 | ld_shlibs_CXX=no | |
13784 | fi | |
13785 | ;; | |
13786 | esac | |
13787 | ;; | |
13788 | ||
13789 | hpux10*|hpux11*) | |
13790 | if test no = "$with_gnu_ld"; then | |
13791 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
13792 | hardcode_libdir_separator_CXX=: | |
13793 | ||
13794 | case $host_cpu in | |
13795 | hppa*64*|ia64*) | |
13796 | ;; | |
13797 | *) | |
13798 | export_dynamic_flag_spec_CXX='$wl-E' | |
13799 | ;; | |
13800 | esac | |
13801 | fi | |
13802 | case $host_cpu in | |
13803 | hppa*64*|ia64*) | |
13804 | hardcode_direct_CXX=no | |
13805 | hardcode_shlibpath_var_CXX=no | |
13806 | ;; | |
13807 | *) | |
13808 | hardcode_direct_CXX=yes | |
13809 | hardcode_direct_absolute_CXX=yes | |
13810 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13811 | # but as the default | |
13812 | # location of the library. | |
13813 | ;; | |
13814 | esac | |
13815 | ||
13816 | case $cc_basename in | |
13817 | CC*) | |
13818 | # FIXME: insert proper C++ library support | |
13819 | ld_shlibs_CXX=no | |
13820 | ;; | |
13821 | aCC*) | |
13822 | case $host_cpu in | |
13823 | hppa*64*) | |
13824 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13825 | ;; | |
13826 | ia64*) | |
13827 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13828 | ;; | |
13829 | *) | |
13830 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13831 | ;; | |
13832 | esac | |
13833 | # Commands to make compiler produce verbose output that lists | |
13834 | # what "hidden" libraries, object files and flags are used when | |
13835 | # linking a shared library. | |
13836 | # | |
13837 | # There doesn't appear to be a way to prevent this compiler from | |
13838 | # explicitly linking system object files so we need to strip them | |
13839 | # from the output so that they don't get included in the library | |
13840 | # dependencies. | |
13841 | 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; func_echo_all "$list"' | |
13842 | ;; | |
13843 | *) | |
13844 | if test yes = "$GXX"; then | |
13845 | if test no = "$with_gnu_ld"; then | |
13846 | case $host_cpu in | |
13847 | hppa*64*) | |
13848 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13849 | ;; | |
13850 | ia64*) | |
13851 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13852 | ;; | |
13853 | *) | |
13854 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13855 | ;; | |
13856 | esac | |
13857 | fi | |
13858 | else | |
13859 | # FIXME: insert proper C++ library support | |
13860 | ld_shlibs_CXX=no | |
13861 | fi | |
13862 | ;; | |
13863 | esac | |
13864 | ;; | |
13865 | ||
13866 | interix[3-9]*) | |
13867 | hardcode_direct_CXX=no | |
13868 | hardcode_shlibpath_var_CXX=no | |
13869 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
13870 | export_dynamic_flag_spec_CXX='$wl-E' | |
13871 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13872 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13873 | # default) and relocated if they conflict, which is a slow very memory | |
13874 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13875 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13876 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13877 | 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' | |
13878 | 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' | |
13879 | ;; | |
13880 | irix5* | irix6*) | |
13881 | case $cc_basename in | |
13882 | CC*) | |
13883 | # SGI C++ | |
13884 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
13885 | ||
13886 | # Archives containing C++ object files must be created using | |
13887 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13888 | # necessary to make sure instantiated templates are included | |
13889 | # in the archive. | |
13890 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13891 | ;; | |
13892 | *) | |
13893 | if test yes = "$GXX"; then | |
13894 | if test no = "$with_gnu_ld"; then | |
13895 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
13896 | else | |
13897 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' | |
13898 | fi | |
13899 | fi | |
13900 | link_all_deplibs_CXX=yes | |
13901 | ;; | |
13902 | esac | |
13903 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
13904 | hardcode_libdir_separator_CXX=: | |
13905 | inherit_rpath_CXX=yes | |
13906 | ;; | |
13907 | ||
13908 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
13909 | case $cc_basename in | |
13910 | KCC*) | |
13911 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13912 | ||
13913 | # KCC will only create a shared library if the output file | |
13914 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13915 | # to its proper name (with version) after linking. | |
13916 | 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' | |
13917 | 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' | |
13918 | # Commands to make compiler produce verbose output that lists | |
13919 | # what "hidden" libraries, object files and flags are used when | |
13920 | # linking a shared library. | |
13921 | # | |
13922 | # There doesn't appear to be a way to prevent this compiler from | |
13923 | # explicitly linking system object files so we need to strip them | |
13924 | # from the output so that they don't get included in the library | |
13925 | # dependencies. | |
13926 | 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; func_echo_all "$list"' | |
13927 | ||
13928 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
13929 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
13930 | ||
13931 | # Archives containing C++ object files must be created using | |
13932 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13933 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13934 | ;; | |
13935 | icpc* | ecpc* ) | |
13936 | # Intel C++ | |
13937 | with_gnu_ld=yes | |
13938 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13939 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13940 | # earlier do not add the objects themselves. | |
13941 | case `$CC -V 2>&1` in | |
13942 | *"Version 7."*) | |
13943 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13944 | 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' | |
13945 | ;; | |
13946 | *) # Version 8.0 or newer | |
13947 | tmp_idyn= | |
13948 | case $host_cpu in | |
13949 | ia64*) tmp_idyn=' -i_dynamic';; | |
13950 | esac | |
13951 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
13952 | 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' | |
13953 | ;; | |
13954 | esac | |
13955 | archive_cmds_need_lc_CXX=no | |
13956 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
13957 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
13958 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
13959 | ;; | |
13960 | pgCC* | pgcpp*) | |
13961 | # Portland Group C++ compiler | |
13962 | case `$CC -V` in | |
13963 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13964 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13965 | rm -rf $tpldir~ | |
13966 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13967 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
13968 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
13969 | rm -rf $tpldir~ | |
13970 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13971 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
13972 | $RANLIB $oldlib' | |
13973 | archive_cmds_CXX='tpldir=Template.dir~ | |
13974 | rm -rf $tpldir~ | |
13975 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13976 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13977 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13978 | rm -rf $tpldir~ | |
13979 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13980 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
13981 | ;; | |
13982 | *) # Version 6 and above use weak symbols | |
13983 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13984 | 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' | |
13985 | ;; | |
13986 | esac | |
13987 | ||
13988 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' | |
13989 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
13990 | whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
13991 | ;; | |
13992 | cxx*) | |
13993 | # Compaq C++ | |
13994 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13995 | 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' | |
13996 | ||
13997 | runpath_var=LD_RUN_PATH | |
13998 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13999 | hardcode_libdir_separator_CXX=: | |
14000 | ||
14001 | # Commands to make compiler produce verbose output that lists | |
14002 | # what "hidden" libraries, object files and flags are used when | |
14003 | # linking a shared library. | |
14004 | # | |
14005 | # There doesn't appear to be a way to prevent this compiler from | |
14006 | # explicitly linking system object files so we need to strip them | |
14007 | # from the output so that they don't get included in the library | |
14008 | # dependencies. | |
14009 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' | |
14010 | ;; | |
14011 | xl* | mpixl* | bgxl*) | |
14012 | # IBM XL 8.0 on PPC, with GNU ld | |
14013 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14014 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14015 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14016 | if test yes = "$supports_anon_versioning"; then | |
14017 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
14018 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14019 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14020 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
14021 | fi | |
14022 | ;; | |
14023 | *) | |
14024 | case `$CC -V 2>&1 | sed 5q` in | |
14025 | *Sun\ C*) | |
14026 | # Sun C++ 5.9 | |
14027 | no_undefined_flag_CXX=' -zdefs' | |
14028 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14029 | archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' | |
14030 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14031 | whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
14032 | compiler_needs_object_CXX=yes | |
14033 | ||
14034 | # Not sure whether something based on | |
14035 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14036 | # would be better. | |
14037 | output_verbose_link_cmd='func_echo_all' | |
14038 | ||
14039 | # Archives containing C++ object files must be created using | |
14040 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14041 | # necessary to make sure instantiated templates are included | |
14042 | # in the archive. | |
14043 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14044 | ;; | |
14045 | esac | |
14046 | ;; | |
14047 | esac | |
14048 | ;; | |
14049 | ||
14050 | lynxos*) | |
14051 | # FIXME: insert proper C++ library support | |
14052 | ld_shlibs_CXX=no | |
14053 | ;; | |
14054 | ||
14055 | m88k*) | |
14056 | # FIXME: insert proper C++ library support | |
14057 | ld_shlibs_CXX=no | |
14058 | ;; | |
14059 | ||
14060 | mvs*) | |
14061 | case $cc_basename in | |
14062 | cxx*) | |
14063 | # FIXME: insert proper C++ library support | |
14064 | ld_shlibs_CXX=no | |
14065 | ;; | |
14066 | *) | |
14067 | # FIXME: insert proper C++ library support | |
14068 | ld_shlibs_CXX=no | |
14069 | ;; | |
14070 | esac | |
14071 | ;; | |
14072 | ||
14073 | netbsd*) | |
14074 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14075 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14076 | wlarc= | |
14077 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14078 | hardcode_direct_CXX=yes | |
14079 | hardcode_shlibpath_var_CXX=no | |
14080 | fi | |
14081 | # Workaround some broken pre-1.5 toolchains | |
14082 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
14083 | ;; | |
14084 | ||
14085 | *nto* | *qnx*) | |
14086 | ld_shlibs_CXX=yes | |
14087 | ;; | |
14088 | ||
14089 | openbsd* | bitrig*) | |
14090 | if test -f /usr/libexec/ld.so; then | |
14091 | hardcode_direct_CXX=yes | |
14092 | hardcode_shlibpath_var_CXX=no | |
14093 | hardcode_direct_absolute_CXX=yes | |
14094 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
14095 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14096 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
14097 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
14098 | export_dynamic_flag_spec_CXX='$wl-E' | |
14099 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
14100 | fi | |
14101 | output_verbose_link_cmd=func_echo_all | |
14102 | else | |
14103 | ld_shlibs_CXX=no | |
14104 | fi | |
14105 | ;; | |
14106 | ||
14107 | osf3* | osf4* | osf5*) | |
14108 | case $cc_basename in | |
14109 | KCC*) | |
14110 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14111 | ||
14112 | # KCC will only create a shared library if the output file | |
14113 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14114 | # to its proper name (with version) after linking. | |
14115 | 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' | |
14116 | ||
14117 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14118 | hardcode_libdir_separator_CXX=: | |
14119 | ||
14120 | # Archives containing C++ object files must be created using | |
14121 | # the KAI C++ compiler. | |
14122 | case $host in | |
14123 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14124 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14125 | esac | |
14126 | ;; | |
14127 | RCC*) | |
14128 | # Rational C++ 2.4.1 | |
14129 | # FIXME: insert proper C++ library support | |
14130 | ld_shlibs_CXX=no | |
14131 | ;; | |
14132 | cxx*) | |
14133 | case $host in | |
14134 | osf3*) | |
14135 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
14136 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14137 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14138 | ;; | |
14139 | *) | |
14140 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
14141 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14142 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
14143 | echo "-hidden">> $lib.exp~ | |
14144 | $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~ | |
14145 | $RM $lib.exp' | |
14146 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14147 | ;; | |
14148 | esac | |
14149 | ||
14150 | hardcode_libdir_separator_CXX=: | |
14151 | ||
14152 | # Commands to make compiler produce verbose output that lists | |
14153 | # what "hidden" libraries, object files and flags are used when | |
14154 | # linking a shared library. | |
14155 | # | |
14156 | # There doesn't appear to be a way to prevent this compiler from | |
14157 | # explicitly linking system object files so we need to strip them | |
14158 | # from the output so that they don't get included in the library | |
14159 | # dependencies. | |
14160 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' | |
14161 | ;; | |
14162 | *) | |
14163 | if test yes,no = "$GXX,$with_gnu_ld"; then | |
14164 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
14165 | case $host in | |
14166 | osf3*) | |
14167 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
14168 | ;; | |
14169 | *) | |
14170 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
14171 | ;; | |
14172 | esac | |
14173 | ||
14174 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14175 | hardcode_libdir_separator_CXX=: | |
14176 | ||
14177 | # Commands to make compiler produce verbose output that lists | |
14178 | # what "hidden" libraries, object files and flags are used when | |
14179 | # linking a shared library. | |
14180 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14181 | ||
14182 | else | |
14183 | # FIXME: insert proper C++ library support | |
14184 | ld_shlibs_CXX=no | |
14185 | fi | |
14186 | ;; | |
14187 | esac | |
14188 | ;; | |
14189 | ||
14190 | psos*) | |
14191 | # FIXME: insert proper C++ library support | |
14192 | ld_shlibs_CXX=no | |
14193 | ;; | |
14194 | ||
14195 | sunos4*) | |
14196 | case $cc_basename in | |
14197 | CC*) | |
14198 | # Sun C++ 4.x | |
14199 | # FIXME: insert proper C++ library support | |
14200 | ld_shlibs_CXX=no | |
14201 | ;; | |
14202 | lcc*) | |
14203 | # Lucid | |
14204 | # FIXME: insert proper C++ library support | |
14205 | ld_shlibs_CXX=no | |
14206 | ;; | |
14207 | *) | |
14208 | # FIXME: insert proper C++ library support | |
14209 | ld_shlibs_CXX=no | |
14210 | ;; | |
14211 | esac | |
14212 | ;; | |
14213 | ||
14214 | solaris*) | |
14215 | case $cc_basename in | |
14216 | CC* | sunCC*) | |
14217 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14218 | archive_cmds_need_lc_CXX=yes | |
14219 | no_undefined_flag_CXX=' -zdefs' | |
14220 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14221 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14222 | $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' | |
14223 | ||
14224 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14225 | hardcode_shlibpath_var_CXX=no | |
14226 | case $host_os in | |
14227 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14228 | *) | |
14229 | # The compiler driver will combine and reorder linker options, | |
14230 | # but understands '-z linker_flag'. | |
14231 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14232 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14233 | ;; | |
14234 | esac | |
14235 | link_all_deplibs_CXX=yes | |
14236 | ||
14237 | output_verbose_link_cmd='func_echo_all' | |
14238 | ||
14239 | # Archives containing C++ object files must be created using | |
14240 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14241 | # necessary to make sure instantiated templates are included | |
14242 | # in the archive. | |
14243 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14244 | ;; | |
14245 | gcx*) | |
14246 | # Green Hills C++ Compiler | |
14247 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14248 | ||
14249 | # The C++ compiler must be used to create the archive. | |
14250 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14251 | ;; | |
14252 | *) | |
14253 | # GNU C++ compiler with Solaris linker | |
14254 | if test yes,no = "$GXX,$with_gnu_ld"; then | |
14255 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
14256 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
14257 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14258 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14259 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14260 | ||
14261 | # Commands to make compiler produce verbose output that lists | |
14262 | # what "hidden" libraries, object files and flags are used when | |
14263 | # linking a shared library. | |
14264 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14265 | else | |
14266 | # g++ 2.7 appears to require '-G' NOT '-shared' on this | |
14267 | # platform. | |
14268 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14269 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14270 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14271 | ||
14272 | # Commands to make compiler produce verbose output that lists | |
14273 | # what "hidden" libraries, object files and flags are used when | |
14274 | # linking a shared library. | |
14275 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14276 | fi | |
14277 | ||
14278 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' | |
14279 | case $host_os in | |
14280 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14281 | *) | |
14282 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
14283 | ;; | |
14284 | esac | |
14285 | fi | |
14286 | ;; | |
14287 | esac | |
14288 | ;; | |
14289 | ||
14290 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
14291 | no_undefined_flag_CXX='$wl-z,text' | |
14292 | archive_cmds_need_lc_CXX=no | |
14293 | hardcode_shlibpath_var_CXX=no | |
14294 | runpath_var='LD_RUN_PATH' | |
14295 | ||
14296 | case $cc_basename in | |
14297 | CC*) | |
14298 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14299 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14300 | ;; | |
14301 | *) | |
14302 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14303 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14304 | ;; | |
14305 | esac | |
14306 | ;; | |
14307 | ||
14308 | sysv5* | sco3.2v5* | sco5v6*) | |
14309 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
14310 | # link with -lc, and that would cause any symbols used from libc to | |
14311 | # always be unresolved, which means just about no library would | |
14312 | # ever link correctly. If we're not using GNU ld we use -z text | |
14313 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14314 | # as -z defs. | |
14315 | no_undefined_flag_CXX='$wl-z,text' | |
14316 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
14317 | archive_cmds_need_lc_CXX=no | |
14318 | hardcode_shlibpath_var_CXX=no | |
14319 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' | |
14320 | hardcode_libdir_separator_CXX=':' | |
14321 | link_all_deplibs_CXX=yes | |
14322 | export_dynamic_flag_spec_CXX='$wl-Bexport' | |
14323 | runpath_var='LD_RUN_PATH' | |
14324 | ||
14325 | case $cc_basename in | |
14326 | CC*) | |
14327 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14328 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14329 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
14330 | '"$old_archive_cmds_CXX" | |
14331 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14332 | '"$reload_cmds_CXX" | |
14333 | ;; | |
14334 | *) | |
14335 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14336 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14337 | ;; | |
14338 | esac | |
14339 | ;; | |
14340 | ||
14341 | tandem*) | |
14342 | case $cc_basename in | |
14343 | NCC*) | |
14344 | # NonStop-UX NCC 3.20 | |
14345 | # FIXME: insert proper C++ library support | |
14346 | ld_shlibs_CXX=no | |
14347 | ;; | |
14348 | *) | |
14349 | # FIXME: insert proper C++ library support | |
14350 | ld_shlibs_CXX=no | |
14351 | ;; | |
14352 | esac | |
14353 | ;; | |
14354 | ||
14355 | vxworks*) | |
14356 | # FIXME: insert proper C++ library support | |
14357 | ld_shlibs_CXX=no | |
14358 | ;; | |
14359 | ||
14360 | *) | |
14361 | # FIXME: insert proper C++ library support | |
14362 | ld_shlibs_CXX=no | |
14363 | ;; | |
14364 | esac | |
14365 | ||
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14367 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14368 | test no = "$ld_shlibs_CXX" && can_build_shared=no | |
14369 | ||
14370 | GCC_CXX=$GXX | |
14371 | LD_CXX=$LD | |
14372 | ||
14373 | ## CAVEAT EMPTOR: | |
14374 | ## There is no encapsulation within the following macros, do not change | |
14375 | ## the running order or otherwise move them around unless you know exactly | |
14376 | ## what you are doing... | |
14377 | # Dependencies to place before and after the object being linked: | |
14378 | predep_objects_CXX= | |
14379 | postdep_objects_CXX= | |
14380 | predeps_CXX= | |
14381 | postdeps_CXX= | |
14382 | compiler_lib_search_path_CXX= | |
14383 | ||
14384 | cat > conftest.$ac_ext <<_LT_EOF | |
14385 | class Foo | |
14386 | { | |
14387 | public: | |
14388 | Foo (void) { a = 0; } | |
14389 | private: | |
14390 | int a; | |
14391 | }; | |
14392 | _LT_EOF | |
14393 | ||
14394 | ||
14395 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14396 | case "$CC $CFLAGS " in #( | |
14397 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14398 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
14399 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
14400 | esac | |
14401 | ||
14402 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14403 | (eval $ac_compile) 2>&5 | |
14404 | ac_status=$? | |
14405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14406 | test $ac_status = 0; }; then | |
14407 | # Parse the compiler output and extract the necessary | |
14408 | # objects, libraries and library flags. | |
14409 | ||
14410 | # Sentinel used to keep track of whether or not we are before | |
14411 | # the conftest object file. | |
14412 | pre_test_object_deps_done=no | |
14413 | ||
14414 | for p in `eval "$output_verbose_link_cmd"`; do | |
14415 | case $prev$p in | |
14416 | ||
14417 | -L* | -R* | -l*) | |
14418 | # Some compilers place space between "-{L,R}" and the path. | |
14419 | # Remove the space. | |
14420 | if test x-L = "$p" || | |
14421 | test x-R = "$p"; then | |
14422 | prev=$p | |
14423 | continue | |
14424 | fi | |
14425 | ||
14426 | # Expand the sysroot to ease extracting the directories later. | |
14427 | if test -z "$prev"; then | |
14428 | case $p in | |
14429 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14430 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14431 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14432 | esac | |
14433 | fi | |
14434 | case $p in | |
14435 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14436 | esac | |
14437 | if test no = "$pre_test_object_deps_done"; then | |
14438 | case $prev in | |
14439 | -L | -R) | |
14440 | # Internal compiler library paths should come after those | |
14441 | # provided the user. The postdeps already come after the | |
14442 | # user supplied libs so there is no need to process them. | |
14443 | if test -z "$compiler_lib_search_path_CXX"; then | |
14444 | compiler_lib_search_path_CXX=$prev$p | |
14445 | else | |
14446 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" | |
14447 | fi | |
14448 | ;; | |
14449 | # The "-l" case would never come before the object being | |
14450 | # linked, so don't bother handling this case. | |
14451 | esac | |
14452 | else | |
14453 | if test -z "$postdeps_CXX"; then | |
14454 | postdeps_CXX=$prev$p | |
14455 | else | |
14456 | postdeps_CXX="${postdeps_CXX} $prev$p" | |
14457 | fi | |
14458 | fi | |
14459 | prev= | |
14460 | ;; | |
14461 | ||
14462 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
14463 | *.$objext) | |
14464 | # This assumes that the test object file only shows up | |
14465 | # once in the compiler output. | |
14466 | if test "$p" = "conftest.$objext"; then | |
14467 | pre_test_object_deps_done=yes | |
14468 | continue | |
14469 | fi | |
14470 | ||
14471 | if test no = "$pre_test_object_deps_done"; then | |
14472 | if test -z "$predep_objects_CXX"; then | |
14473 | predep_objects_CXX=$p | |
14474 | else | |
14475 | predep_objects_CXX="$predep_objects_CXX $p" | |
14476 | fi | |
14477 | else | |
14478 | if test -z "$postdep_objects_CXX"; then | |
14479 | postdep_objects_CXX=$p | |
14480 | else | |
14481 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14482 | fi | |
14483 | fi | |
14484 | ;; | |
14485 | ||
14486 | *) ;; # Ignore the rest. | |
14487 | ||
14488 | esac | |
14489 | done | |
14490 | ||
14491 | # Clean up. | |
14492 | rm -f a.out a.exe | |
14493 | else | |
14494 | echo "libtool.m4: error: problem compiling CXX test program" | |
14495 | fi | |
14496 | ||
14497 | $RM -f confest.$objext | |
14498 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
14499 | ||
14500 | # PORTME: override above test on systems where it is broken | |
14501 | case $host_os in | |
14502 | interix[3-9]*) | |
14503 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14504 | # hack all around it, let's just trust "g++" to DTRT. | |
14505 | predep_objects_CXX= | |
14506 | postdep_objects_CXX= | |
14507 | postdeps_CXX= | |
14508 | ;; | |
14509 | esac | |
14510 | ||
14511 | ||
14512 | case " $postdeps_CXX " in | |
14513 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14514 | esac | |
14515 | compiler_lib_search_dirs_CXX= | |
14516 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14517 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` | |
14518 | fi | |
14519 | ||
14520 | ||
14521 | ||
14522 | ||
14523 | ||
14524 | ||
14525 | ||
14526 | ||
14527 | ||
14528 | ||
14529 | ||
14530 | ||
14531 | ||
14532 | ||
14533 | ||
14534 | ||
14535 | ||
14536 | ||
14537 | ||
14538 | ||
14539 | ||
14540 | ||
14541 | ||
14542 | ||
14543 | ||
14544 | ||
14545 | ||
14546 | ||
14547 | ||
14548 | ||
14549 | ||
14550 | lt_prog_compiler_wl_CXX= | |
14551 | lt_prog_compiler_pic_CXX= | |
14552 | lt_prog_compiler_static_CXX= | |
14553 | ||
14554 | ||
14555 | # C++ specific cases for pic, static, wl, etc. | |
14556 | if test yes = "$GXX"; then | |
14557 | lt_prog_compiler_wl_CXX='-Wl,' | |
14558 | lt_prog_compiler_static_CXX='-static' | |
14559 | ||
14560 | case $host_os in | |
14561 | aix*) | |
14562 | # All AIX code is PIC. | |
14563 | if test ia64 = "$host_cpu"; then | |
14564 | # AIX 5 now supports IA64 processor | |
14565 | lt_prog_compiler_static_CXX='-Bstatic' | |
14566 | fi | |
14567 | lt_prog_compiler_pic_CXX='-fPIC' | |
14568 | ;; | |
14569 | ||
14570 | amigaos*) | |
14571 | case $host_cpu in | |
14572 | powerpc) | |
14573 | # see comment about AmigaOS4 .so support | |
14574 | lt_prog_compiler_pic_CXX='-fPIC' | |
14575 | ;; | |
14576 | m68k) | |
14577 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14578 | # adding the '-m68020' flag to GCC prevents building anything better, | |
14579 | # like '-m68040'. | |
14580 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14581 | ;; | |
14582 | esac | |
14583 | ;; | |
14584 | ||
14585 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14586 | # PIC is the default for these OSes. | |
14587 | ;; | |
14588 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14589 | # This hack is so that the source file can tell whether it is being | |
14590 | # built for inclusion in a dll (and should export symbols for example). | |
14591 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14592 | # (--disable-auto-import) libraries | |
14593 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14594 | case $host_os in | |
14595 | os2*) | |
14596 | lt_prog_compiler_static_CXX='$wl-static' | |
14597 | ;; | |
14598 | esac | |
14599 | ;; | |
14600 | darwin* | rhapsody*) | |
14601 | # PIC is the default on this platform | |
14602 | # Common symbols not allowed in MH_DYLIB files | |
14603 | lt_prog_compiler_pic_CXX='-fno-common' | |
14604 | ;; | |
14605 | *djgpp*) | |
14606 | # DJGPP does not support shared libraries at all | |
14607 | lt_prog_compiler_pic_CXX= | |
14608 | ;; | |
14609 | haiku*) | |
14610 | # PIC is the default for Haiku. | |
14611 | # The "-static" flag exists, but is broken. | |
14612 | lt_prog_compiler_static_CXX= | |
14613 | ;; | |
14614 | interix[3-9]*) | |
14615 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14616 | # Instead, we relocate shared libraries at runtime. | |
14617 | ;; | |
14618 | sysv4*MP*) | |
14619 | if test -d /usr/nec; then | |
14620 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14621 | fi | |
14622 | ;; | |
14623 | hpux*) | |
14624 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14625 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14626 | # sets the default TLS model and affects inlining. | |
14627 | case $host_cpu in | |
14628 | hppa*64*) | |
14629 | ;; | |
14630 | *) | |
14631 | lt_prog_compiler_pic_CXX='-fPIC' | |
14632 | ;; | |
14633 | esac | |
14634 | ;; | |
14635 | *qnx* | *nto*) | |
14636 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14637 | # it will coredump. | |
14638 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14639 | ;; | |
14640 | *) | |
14641 | lt_prog_compiler_pic_CXX='-fPIC' | |
14642 | ;; | |
14643 | esac | |
14644 | else | |
14645 | case $host_os in | |
14646 | aix[4-9]*) | |
14647 | # All AIX code is PIC. | |
14648 | if test ia64 = "$host_cpu"; then | |
14649 | # AIX 5 now supports IA64 processor | |
14650 | lt_prog_compiler_static_CXX='-Bstatic' | |
14651 | else | |
14652 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14653 | fi | |
14654 | ;; | |
14655 | chorus*) | |
14656 | case $cc_basename in | |
14657 | cxch68*) | |
14658 | # Green Hills C++ Compiler | |
14659 | # _LT_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" | |
14660 | ;; | |
14661 | esac | |
14662 | ;; | |
14663 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14664 | # This hack is so that the source file can tell whether it is being | |
14665 | # built for inclusion in a dll (and should export symbols for example). | |
14666 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14667 | ;; | |
14668 | dgux*) | |
14669 | case $cc_basename in | |
14670 | ec++*) | |
14671 | lt_prog_compiler_pic_CXX='-KPIC' | |
14672 | ;; | |
14673 | ghcx*) | |
14674 | # Green Hills C++ Compiler | |
14675 | lt_prog_compiler_pic_CXX='-pic' | |
14676 | ;; | |
14677 | *) | |
14678 | ;; | |
14679 | esac | |
14680 | ;; | |
14681 | freebsd* | dragonfly*) | |
14682 | # FreeBSD uses GNU C++ | |
14683 | ;; | |
14684 | hpux9* | hpux10* | hpux11*) | |
14685 | case $cc_basename in | |
14686 | CC*) | |
14687 | lt_prog_compiler_wl_CXX='-Wl,' | |
14688 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
14689 | if test ia64 != "$host_cpu"; then | |
14690 | lt_prog_compiler_pic_CXX='+Z' | |
14691 | fi | |
14692 | ;; | |
14693 | aCC*) | |
14694 | lt_prog_compiler_wl_CXX='-Wl,' | |
14695 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
14696 | case $host_cpu in | |
14697 | hppa*64*|ia64*) | |
14698 | # +Z the default | |
14699 | ;; | |
14700 | *) | |
14701 | lt_prog_compiler_pic_CXX='+Z' | |
14702 | ;; | |
14703 | esac | |
14704 | ;; | |
14705 | *) | |
14706 | ;; | |
14707 | esac | |
14708 | ;; | |
14709 | interix*) | |
14710 | # This is c89, which is MS Visual C++ (no shared libs) | |
14711 | # Anyone wants to do a port? | |
14712 | ;; | |
14713 | irix5* | irix6* | nonstopux*) | |
14714 | case $cc_basename in | |
14715 | CC*) | |
14716 | lt_prog_compiler_wl_CXX='-Wl,' | |
14717 | lt_prog_compiler_static_CXX='-non_shared' | |
14718 | # CC pic flag -KPIC is the default. | |
14719 | ;; | |
14720 | *) | |
14721 | ;; | |
14722 | esac | |
14723 | ;; | |
14724 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
14725 | case $cc_basename in | |
14726 | KCC*) | |
14727 | # KAI C++ Compiler | |
14728 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14729 | lt_prog_compiler_pic_CXX='-fPIC' | |
14730 | ;; | |
14731 | ecpc* ) | |
14732 | # old Intel C++ for x86_64, which still supported -KPIC. | |
14733 | lt_prog_compiler_wl_CXX='-Wl,' | |
14734 | lt_prog_compiler_pic_CXX='-KPIC' | |
14735 | lt_prog_compiler_static_CXX='-static' | |
14736 | ;; | |
14737 | icpc* ) | |
14738 | # Intel C++, used to be incompatible with GCC. | |
14739 | # ICC 10 doesn't accept -KPIC any more. | |
14740 | lt_prog_compiler_wl_CXX='-Wl,' | |
14741 | lt_prog_compiler_pic_CXX='-fPIC' | |
14742 | lt_prog_compiler_static_CXX='-static' | |
14743 | ;; | |
14744 | pgCC* | pgcpp*) | |
14745 | # Portland Group C++ compiler | |
14746 | lt_prog_compiler_wl_CXX='-Wl,' | |
14747 | lt_prog_compiler_pic_CXX='-fpic' | |
14748 | lt_prog_compiler_static_CXX='-Bstatic' | |
14749 | ;; | |
14750 | cxx*) | |
14751 | # Compaq C++ | |
14752 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14753 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14754 | lt_prog_compiler_pic_CXX= | |
14755 | lt_prog_compiler_static_CXX='-non_shared' | |
14756 | ;; | |
14757 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14758 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14759 | lt_prog_compiler_wl_CXX='-Wl,' | |
14760 | lt_prog_compiler_pic_CXX='-qpic' | |
14761 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14762 | ;; | |
14763 | *) | |
14764 | case `$CC -V 2>&1 | sed 5q` in | |
14765 | *Sun\ C*) | |
14766 | # Sun C++ 5.9 | |
14767 | lt_prog_compiler_pic_CXX='-KPIC' | |
14768 | lt_prog_compiler_static_CXX='-Bstatic' | |
14769 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14770 | ;; | |
14771 | esac | |
14772 | ;; | |
14773 | esac | |
14774 | ;; | |
14775 | lynxos*) | |
14776 | ;; | |
14777 | m88k*) | |
14778 | ;; | |
14779 | mvs*) | |
14780 | case $cc_basename in | |
14781 | cxx*) | |
14782 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14783 | ;; | |
14784 | *) | |
14785 | ;; | |
14786 | esac | |
14787 | ;; | |
14788 | netbsd* | netbsdelf*-gnu) | |
14789 | ;; | |
14790 | *qnx* | *nto*) | |
14791 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14792 | # it will coredump. | |
14793 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14794 | ;; | |
14795 | osf3* | osf4* | osf5*) | |
14796 | case $cc_basename in | |
14797 | KCC*) | |
14798 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14799 | ;; | |
14800 | RCC*) | |
14801 | # Rational C++ 2.4.1 | |
14802 | lt_prog_compiler_pic_CXX='-pic' | |
14803 | ;; | |
14804 | cxx*) | |
14805 | # Digital/Compaq C++ | |
14806 | lt_prog_compiler_wl_CXX='-Wl,' | |
14807 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14808 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14809 | lt_prog_compiler_pic_CXX= | |
14810 | lt_prog_compiler_static_CXX='-non_shared' | |
14811 | ;; | |
14812 | *) | |
14813 | ;; | |
14814 | esac | |
14815 | ;; | |
14816 | psos*) | |
14817 | ;; | |
14818 | solaris*) | |
14819 | case $cc_basename in | |
14820 | CC* | sunCC*) | |
14821 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14822 | lt_prog_compiler_pic_CXX='-KPIC' | |
14823 | lt_prog_compiler_static_CXX='-Bstatic' | |
14824 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14825 | ;; | |
14826 | gcx*) | |
14827 | # Green Hills C++ Compiler | |
14828 | lt_prog_compiler_pic_CXX='-PIC' | |
14829 | ;; | |
14830 | *) | |
14831 | ;; | |
14832 | esac | |
14833 | ;; | |
14834 | sunos4*) | |
14835 | case $cc_basename in | |
14836 | CC*) | |
14837 | # Sun C++ 4.x | |
14838 | lt_prog_compiler_pic_CXX='-pic' | |
14839 | lt_prog_compiler_static_CXX='-Bstatic' | |
14840 | ;; | |
14841 | lcc*) | |
14842 | # Lucid | |
14843 | lt_prog_compiler_pic_CXX='-pic' | |
14844 | ;; | |
14845 | *) | |
14846 | ;; | |
14847 | esac | |
14848 | ;; | |
14849 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14850 | case $cc_basename in | |
14851 | CC*) | |
14852 | lt_prog_compiler_wl_CXX='-Wl,' | |
14853 | lt_prog_compiler_pic_CXX='-KPIC' | |
14854 | lt_prog_compiler_static_CXX='-Bstatic' | |
14855 | ;; | |
14856 | esac | |
14857 | ;; | |
14858 | tandem*) | |
14859 | case $cc_basename in | |
14860 | NCC*) | |
14861 | # NonStop-UX NCC 3.20 | |
14862 | lt_prog_compiler_pic_CXX='-KPIC' | |
14863 | ;; | |
14864 | *) | |
14865 | ;; | |
14866 | esac | |
14867 | ;; | |
14868 | vxworks*) | |
14869 | ;; | |
14870 | *) | |
14871 | lt_prog_compiler_can_build_shared_CXX=no | |
14872 | ;; | |
14873 | esac | |
14874 | fi | |
14875 | ||
14876 | case $host_os in | |
14877 | # For platforms that do not support PIC, -DPIC is meaningless: | |
14878 | *djgpp*) | |
14879 | lt_prog_compiler_pic_CXX= | |
14880 | ;; | |
14881 | *) | |
14882 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14883 | ;; | |
14884 | esac | |
14885 | ||
14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
14887 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14888 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14889 | $as_echo_n "(cached) " >&6 | |
14890 | else | |
14891 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14892 | fi | |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14894 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14895 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
14896 | ||
14897 | # | |
14898 | # Check to make sure the PIC flag actually works. | |
14899 | # | |
14900 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14902 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
14903 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | |
14904 | $as_echo_n "(cached) " >&6 | |
14905 | else | |
14906 | lt_cv_prog_compiler_pic_works_CXX=no | |
14907 | ac_outfile=conftest.$ac_objext | |
14908 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14909 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
14910 | # Insert the option either (1) after the last *FLAGS variable, or | |
14911 | # (2) before a word containing "conftest.", or (3) at the end. | |
14912 | # Note that $ac_compile itself does not contain backslashes and begins | |
14913 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14914 | # The option is referenced via a variable to avoid confusing sed. | |
14915 | lt_compile=`echo "$ac_compile" | $SED \ | |
14916 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14917 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14918 | -e 's:$: $lt_compiler_flag:'` | |
14919 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14920 | (eval "$lt_compile" 2>conftest.err) | |
14921 | ac_status=$? | |
14922 | cat conftest.err >&5 | |
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14924 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14925 | # The compiler can only warn and ignore the option if not recognized | |
14926 | # So say no if there are warnings other than the usual output. | |
14927 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14928 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14929 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14930 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14931 | fi | |
14932 | fi | |
14933 | $RM conftest* | |
14934 | ||
14935 | fi | |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14937 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14938 | ||
14939 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then | |
14940 | case $lt_prog_compiler_pic_CXX in | |
14941 | "" | " "*) ;; | |
14942 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14943 | esac | |
14944 | else | |
14945 | lt_prog_compiler_pic_CXX= | |
14946 | lt_prog_compiler_can_build_shared_CXX=no | |
14947 | fi | |
14948 | ||
14949 | fi | |
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | ||
14955 | # | |
14956 | # Check to make sure the static flag actually works. | |
14957 | # | |
14958 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14960 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
14961 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | |
14962 | $as_echo_n "(cached) " >&6 | |
14963 | else | |
14964 | lt_cv_prog_compiler_static_works_CXX=no | |
14965 | save_LDFLAGS=$LDFLAGS | |
14966 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14967 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14968 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14969 | # The linker can only warn and ignore the option if not recognized | |
14970 | # So say no if there are warnings | |
14971 | if test -s conftest.err; then | |
14972 | # Append any errors to the config.log. | |
14973 | cat conftest.err 1>&5 | |
14974 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14975 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14976 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14977 | lt_cv_prog_compiler_static_works_CXX=yes | |
14978 | fi | |
14979 | else | |
14980 | lt_cv_prog_compiler_static_works_CXX=yes | |
14981 | fi | |
14982 | fi | |
14983 | $RM -r conftest* | |
14984 | LDFLAGS=$save_LDFLAGS | |
14985 | ||
14986 | fi | |
14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14988 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14989 | ||
14990 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then | |
14991 | : | |
14992 | else | |
14993 | lt_prog_compiler_static_CXX= | |
14994 | fi | |
14995 | ||
14996 | ||
14997 | ||
14998 | ||
14999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15000 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15001 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
15002 | $as_echo_n "(cached) " >&6 | |
15003 | else | |
15004 | lt_cv_prog_compiler_c_o_CXX=no | |
15005 | $RM -r conftest 2>/dev/null | |
15006 | mkdir conftest | |
15007 | cd conftest | |
15008 | mkdir out | |
15009 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15010 | ||
15011 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15012 | # Insert the option either (1) after the last *FLAGS variable, or | |
15013 | # (2) before a word containing "conftest.", or (3) at the end. | |
15014 | # Note that $ac_compile itself does not contain backslashes and begins | |
15015 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15016 | lt_compile=`echo "$ac_compile" | $SED \ | |
15017 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15018 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15019 | -e 's:$: $lt_compiler_flag:'` | |
15020 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
15021 | (eval "$lt_compile" 2>out/conftest.err) | |
15022 | ac_status=$? | |
15023 | cat out/conftest.err >&5 | |
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15025 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15026 | then | |
15027 | # The compiler can only warn and ignore the option if not recognized | |
15028 | # So say no if there are warnings | |
15029 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
15030 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15031 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15032 | lt_cv_prog_compiler_c_o_CXX=yes | |
15033 | fi | |
15034 | fi | |
15035 | chmod u+w . 2>&5 | |
15036 | $RM conftest* | |
15037 | # SGI C++ compiler will create directory out/ii_files/ for | |
15038 | # template instantiation | |
15039 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15040 | $RM out/* && rmdir out | |
15041 | cd .. | |
15042 | $RM -r conftest | |
15043 | $RM conftest* | |
15044 | ||
15045 | fi | |
15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15047 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15048 | ||
15049 | ||
15050 | ||
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15052 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15053 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
15054 | $as_echo_n "(cached) " >&6 | |
15055 | else | |
15056 | lt_cv_prog_compiler_c_o_CXX=no | |
15057 | $RM -r conftest 2>/dev/null | |
15058 | mkdir conftest | |
15059 | cd conftest | |
15060 | mkdir out | |
15061 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15062 | ||
15063 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15064 | # Insert the option either (1) after the last *FLAGS variable, or | |
15065 | # (2) before a word containing "conftest.", or (3) at the end. | |
15066 | # Note that $ac_compile itself does not contain backslashes and begins | |
15067 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15068 | lt_compile=`echo "$ac_compile" | $SED \ | |
15069 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15070 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15071 | -e 's:$: $lt_compiler_flag:'` | |
15072 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
15073 | (eval "$lt_compile" 2>out/conftest.err) | |
15074 | ac_status=$? | |
15075 | cat out/conftest.err >&5 | |
15076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15077 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15078 | then | |
15079 | # The compiler can only warn and ignore the option if not recognized | |
15080 | # So say no if there are warnings | |
15081 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
15082 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15083 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15084 | lt_cv_prog_compiler_c_o_CXX=yes | |
15085 | fi | |
15086 | fi | |
15087 | chmod u+w . 2>&5 | |
15088 | $RM conftest* | |
15089 | # SGI C++ compiler will create directory out/ii_files/ for | |
15090 | # template instantiation | |
15091 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15092 | $RM out/* && rmdir out | |
15093 | cd .. | |
15094 | $RM -r conftest | |
15095 | $RM conftest* | |
15096 | ||
15097 | fi | |
15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15099 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | hard_links=nottested | |
15105 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
15106 | # do not overwrite the value of need_locks provided by the user | |
15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
15108 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
15109 | hard_links=yes | |
15110 | $RM conftest* | |
15111 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15112 | touch conftest.a | |
15113 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15114 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
15116 | $as_echo "$hard_links" >&6; } | |
15117 | if test no = "$hard_links"; then | |
15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
15119 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
15120 | need_locks=warn | |
15121 | fi | |
15122 | else | |
15123 | need_locks=no | |
15124 | fi | |
15125 | ||
15126 | ||
15127 | ||
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15129 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15130 | ||
15131 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15132 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
15133 | case $host_os in | |
15134 | aix[4-9]*) | |
15135 | # If we're using GNU nm, then we don't want the "-C" option. | |
15136 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
15137 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
15138 | # weak defined symbols like other global defined symbols, whereas | |
15139 | # GNU nm marks them as "W". | |
15140 | # While the 'weak' keyword is ignored in the Export File, we need | |
15141 | # it in the Import File for the 'aix-soname' feature, so we have | |
15142 | # to replace the "-B" option with "-P" for AIX nm. | |
15143 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
15144 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
15145 | else | |
15146 | export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
15147 | fi | |
15148 | ;; | |
15149 | pw32*) | |
15150 | export_symbols_cmds_CXX=$ltdll_cmds | |
15151 | ;; | |
15152 | cygwin* | mingw* | cegcc*) | |
15153 | case $cc_basename in | |
15154 | cl*) | |
15155 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
15156 | ;; | |
15157 | *) | |
15158 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
15159 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
15160 | ;; | |
15161 | esac | |
15162 | ;; | |
15163 | linux* | k*bsd*-gnu | gnu*) | |
15164 | link_all_deplibs_CXX=no | |
15165 | ;; | |
15166 | *) | |
15167 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15168 | ;; | |
15169 | esac | |
15170 | ||
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
15172 | $as_echo "$ld_shlibs_CXX" >&6; } | |
15173 | test no = "$ld_shlibs_CXX" && can_build_shared=no | |
15174 | ||
15175 | with_gnu_ld_CXX=$with_gnu_ld | |
15176 | ||
15177 | ||
15178 | ||
15179 | ||
15180 | ||
15181 | ||
15182 | # | |
15183 | # Do we need to explicitly link libc? | |
15184 | # | |
15185 | case "x$archive_cmds_need_lc_CXX" in | |
15186 | x|xyes) | |
15187 | # Assume -lc should be added | |
15188 | archive_cmds_need_lc_CXX=yes | |
15189 | ||
15190 | if test yes,yes = "$GCC,$enable_shared"; then | |
15191 | case $archive_cmds_CXX in | |
15192 | *'~'*) | |
15193 | # FIXME: we may have to deal with multi-command sequences. | |
15194 | ;; | |
15195 | '$CC '*) | |
15196 | # Test whether the compiler implicitly links with -lc since on some | |
15197 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15198 | # to ld, don't add -lc before -lgcc. | |
15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15200 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
15201 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | |
15202 | $as_echo_n "(cached) " >&6 | |
15203 | else | |
15204 | $RM conftest* | |
15205 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15206 | ||
15207 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15208 | (eval $ac_compile) 2>&5 | |
15209 | ac_status=$? | |
15210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15211 | test $ac_status = 0; } 2>conftest.err; then | |
15212 | soname=conftest | |
15213 | lib=conftest | |
15214 | libobjs=conftest.$ac_objext | |
15215 | deplibs= | |
15216 | wl=$lt_prog_compiler_wl_CXX | |
15217 | pic_flag=$lt_prog_compiler_pic_CXX | |
15218 | compiler_flags=-v | |
15219 | linker_flags=-v | |
15220 | verstring= | |
15221 | output_objdir=. | |
15222 | libname=conftest | |
15223 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15224 | allow_undefined_flag_CXX= | |
15225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
15226 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15227 | ac_status=$? | |
15228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15229 | test $ac_status = 0; } | |
15230 | then | |
15231 | lt_cv_archive_cmds_need_lc_CXX=no | |
15232 | else | |
15233 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15234 | fi | |
15235 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15236 | else | |
15237 | cat conftest.err 1>&5 | |
15238 | fi | |
15239 | $RM conftest* | |
15240 | ||
15241 | fi | |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15243 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15244 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
15245 | ;; | |
15246 | esac | |
15247 | fi | |
15248 | ;; | |
15249 | esac | |
15250 | ||
15251 | ||
15252 | ||
15253 | ||
15254 | ||
15255 | ||
15256 | ||
15257 | ||
15258 | ||
15259 | ||
15260 | ||
15261 | ||
15262 | ||
15263 | ||
15264 | ||
15265 | ||
15266 | ||
15267 | ||
15268 | ||
15269 | ||
15270 | ||
15271 | ||
15272 | ||
15273 | ||
15274 | ||
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | ||
15289 | ||
15290 | ||
15291 | ||
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | ||
15297 | ||
15298 | ||
15299 | ||
15300 | ||
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | ||
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15313 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15314 | ||
15315 | library_names_spec= | |
15316 | libname_spec='lib$name' | |
15317 | soname_spec= | |
15318 | shrext_cmds=.so | |
15319 | postinstall_cmds= | |
15320 | postuninstall_cmds= | |
15321 | finish_cmds= | |
15322 | finish_eval= | |
15323 | shlibpath_var= | |
15324 | shlibpath_overrides_runpath=unknown | |
15325 | version_type=none | |
15326 | dynamic_linker="$host_os ld.so" | |
15327 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15328 | need_lib_prefix=unknown | |
15329 | hardcode_into_libs=no | |
15330 | ||
15331 | # when you set need_version to no, make sure it does not cause -set_version | |
15332 | # flags to be left without arguments | |
15333 | need_version=unknown | |
15334 | ||
15335 | ||
15336 | ||
15337 | case $host_os in | |
15338 | aix3*) | |
15339 | version_type=linux # correct to gnu/linux during the next big refactor | |
15340 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
15341 | shlibpath_var=LIBPATH | |
15342 | ||
15343 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15344 | soname_spec='$libname$release$shared_ext$major' | |
15345 | ;; | |
15346 | ||
15347 | aix[4-9]*) | |
15348 | version_type=linux # correct to gnu/linux during the next big refactor | |
15349 | need_lib_prefix=no | |
15350 | need_version=no | |
15351 | hardcode_into_libs=yes | |
15352 | if test ia64 = "$host_cpu"; then | |
15353 | # AIX 5 supports IA64 | |
15354 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
15355 | shlibpath_var=LD_LIBRARY_PATH | |
15356 | else | |
15357 | # With GCC up to 2.95.x, collect2 would create an import file | |
15358 | # for dependence libraries. The import file would start with | |
15359 | # the line '#! .'. This would cause the generated library to | |
15360 | # depend on '.', always an invalid library. This was fixed in | |
15361 | # development snapshots of GCC prior to 3.0. | |
15362 | case $host_os in | |
15363 | aix4 | aix4.[01] | aix4.[01].*) | |
15364 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15365 | echo ' yes ' | |
15366 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
15367 | : | |
15368 | else | |
15369 | can_build_shared=no | |
15370 | fi | |
15371 | ;; | |
15372 | esac | |
15373 | # Using Import Files as archive members, it is possible to support | |
15374 | # filename-based versioning of shared library archives on AIX. While | |
15375 | # this would work for both with and without runtime linking, it will | |
15376 | # prevent static linking of such archives. So we do filename-based | |
15377 | # shared library versioning with .so extension only, which is used | |
15378 | # when both runtime linking and shared linking is enabled. | |
15379 | # Unfortunately, runtime linking may impact performance, so we do | |
15380 | # not want this to be the default eventually. Also, we use the | |
15381 | # versioned .so libs for executables only if there is the -brtl | |
15382 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
15383 | # To allow for filename-based versioning support, we need to create | |
15384 | # libNAME.so.V as an archive file, containing: | |
15385 | # *) an Import File, referring to the versioned filename of the | |
15386 | # archive as well as the shared archive member, telling the | |
15387 | # bitwidth (32 or 64) of that shared object, and providing the | |
15388 | # list of exported symbols of that shared object, eventually | |
15389 | # decorated with the 'weak' keyword | |
15390 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
15391 | # it being seen by the linker. | |
15392 | # At run time we better use the real file rather than another symlink, | |
15393 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
15394 | ||
15395 | case $with_aix_soname,$aix_use_runtimelinking in | |
15396 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
15397 | # soname into executable. Probably we can add versioning support to | |
15398 | # collect2, so additional links can be useful in future. | |
15399 | aix,yes) # traditional libtool | |
15400 | dynamic_linker='AIX unversionable lib.so' | |
15401 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15402 | # instead of lib<name>.a to let people know that these are not | |
15403 | # typical AIX shared libraries. | |
15404 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15405 | ;; | |
15406 | aix,no) # traditional AIX only | |
15407 | dynamic_linker='AIX lib.a(lib.so.V)' | |
15408 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15409 | # and later when we are not doing run time linking. | |
15410 | library_names_spec='$libname$release.a $libname.a' | |
15411 | soname_spec='$libname$release$shared_ext$major' | |
15412 | ;; | |
15413 | svr4,*) # full svr4 only | |
15414 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
15415 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15416 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15417 | shlibpath_overrides_runpath=yes | |
15418 | ;; | |
15419 | *,yes) # both, prefer svr4 | |
15420 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
15421 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15422 | # unpreferred sharedlib libNAME.a needs extra handling | |
15423 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
15424 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
15425 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15426 | shlibpath_overrides_runpath=yes | |
15427 | ;; | |
15428 | *,no) # both, prefer aix | |
15429 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
15430 | library_names_spec='$libname$release.a $libname.a' | |
15431 | soname_spec='$libname$release$shared_ext$major' | |
15432 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
15433 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
15434 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
15435 | ;; | |
15436 | esac | |
15437 | shlibpath_var=LIBPATH | |
15438 | fi | |
15439 | ;; | |
15440 | ||
15441 | amigaos*) | |
15442 | case $host_cpu in | |
15443 | powerpc) | |
15444 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15445 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15446 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15447 | ;; | |
15448 | m68k) | |
15449 | library_names_spec='$libname.ixlibrary $libname.a' | |
15450 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15451 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' | |
15452 | ;; | |
15453 | esac | |
15454 | ;; | |
15455 | ||
15456 | beos*) | |
15457 | library_names_spec='$libname$shared_ext' | |
15458 | dynamic_linker="$host_os ld.so" | |
15459 | shlibpath_var=LIBRARY_PATH | |
15460 | ;; | |
15461 | ||
15462 | bsdi[45]*) | |
15463 | version_type=linux # correct to gnu/linux during the next big refactor | |
15464 | need_version=no | |
15465 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15466 | soname_spec='$libname$release$shared_ext$major' | |
15467 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15468 | shlibpath_var=LD_LIBRARY_PATH | |
15469 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15470 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15471 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15472 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15473 | # libtool to hard-code these into programs | |
15474 | ;; | |
15475 | ||
15476 | cygwin* | mingw* | pw32* | cegcc*) | |
15477 | version_type=windows | |
15478 | shrext_cmds=.dll | |
15479 | need_version=no | |
15480 | need_lib_prefix=no | |
15481 | ||
15482 | case $GCC,$cc_basename in | |
15483 | yes,*) | |
15484 | # gcc | |
15485 | library_names_spec='$libname.dll.a' | |
15486 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15487 | postinstall_cmds='base_file=`basename \$file`~ | |
15488 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
15489 | dldir=$destdir/`dirname \$dlpath`~ | |
15490 | test -d \$dldir || mkdir -p \$dldir~ | |
15491 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15492 | chmod a+x \$dldir/$dlname~ | |
15493 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15494 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15495 | fi' | |
15496 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15497 | dlpath=$dir/\$dldll~ | |
15498 | $RM \$dlpath' | |
15499 | shlibpath_overrides_runpath=yes | |
15500 | ||
15501 | case $host_os in | |
15502 | cygwin*) | |
15503 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15504 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15505 | ||
15506 | ;; | |
15507 | mingw* | cegcc*) | |
15508 | # MinGW DLLs use traditional 'lib' prefix | |
15509 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15510 | ;; | |
15511 | pw32*) | |
15512 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15513 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15514 | ;; | |
15515 | esac | |
15516 | dynamic_linker='Win32 ld.exe' | |
15517 | ;; | |
15518 | ||
15519 | *,cl*) | |
15520 | # Native MSVC | |
15521 | libname_spec='$name' | |
15522 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15523 | library_names_spec='$libname.dll.lib' | |
15524 | ||
15525 | case $build_os in | |
15526 | mingw*) | |
15527 | sys_lib_search_path_spec= | |
15528 | lt_save_ifs=$IFS | |
15529 | IFS=';' | |
15530 | for lt_path in $LIB | |
15531 | do | |
15532 | IFS=$lt_save_ifs | |
15533 | # Let DOS variable expansion print the short 8.3 style file name. | |
15534 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15535 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15536 | done | |
15537 | IFS=$lt_save_ifs | |
15538 | # Convert to MSYS style. | |
15539 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15540 | ;; | |
15541 | cygwin*) | |
15542 | # Convert to unix form, then to dos form, then back to unix form | |
15543 | # but this time dos style (no spaces!) so that the unix form looks | |
15544 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15545 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15546 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15547 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15548 | ;; | |
15549 | *) | |
15550 | sys_lib_search_path_spec=$LIB | |
15551 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15552 | # It is most probably a Windows format PATH. | |
15553 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15554 | else | |
15555 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15556 | fi | |
15557 | # FIXME: find the short name or the path components, as spaces are | |
15558 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15559 | ;; | |
15560 | esac | |
15561 | ||
15562 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15563 | postinstall_cmds='base_file=`basename \$file`~ | |
15564 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
15565 | dldir=$destdir/`dirname \$dlpath`~ | |
15566 | test -d \$dldir || mkdir -p \$dldir~ | |
15567 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15568 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15569 | dlpath=$dir/\$dldll~ | |
15570 | $RM \$dlpath' | |
15571 | shlibpath_overrides_runpath=yes | |
15572 | dynamic_linker='Win32 link.exe' | |
15573 | ;; | |
15574 | ||
15575 | *) | |
15576 | # Assume MSVC wrapper | |
15577 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
15578 | dynamic_linker='Win32 ld.exe' | |
15579 | ;; | |
15580 | esac | |
15581 | # FIXME: first we should search . and the directory the executable is in | |
15582 | shlibpath_var=PATH | |
15583 | ;; | |
15584 | ||
15585 | darwin* | rhapsody*) | |
15586 | dynamic_linker="$host_os dyld" | |
15587 | version_type=darwin | |
15588 | need_lib_prefix=no | |
15589 | need_version=no | |
15590 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
15591 | soname_spec='$libname$release$major$shared_ext' | |
15592 | shlibpath_overrides_runpath=yes | |
15593 | shlibpath_var=DYLD_LIBRARY_PATH | |
15594 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15595 | ||
15596 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15597 | ;; | |
15598 | ||
15599 | dgux*) | |
15600 | version_type=linux # correct to gnu/linux during the next big refactor | |
15601 | need_lib_prefix=no | |
15602 | need_version=no | |
15603 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15604 | soname_spec='$libname$release$shared_ext$major' | |
15605 | shlibpath_var=LD_LIBRARY_PATH | |
15606 | ;; | |
15607 | ||
15608 | freebsd* | dragonfly*) | |
15609 | # DragonFly does not have aout. When/if they implement a new | |
15610 | # versioning mechanism, adjust this. | |
15611 | if test -x /usr/bin/objformat; then | |
15612 | objformat=`/usr/bin/objformat` | |
15613 | else | |
15614 | case $host_os in | |
15615 | freebsd[23].*) objformat=aout ;; | |
15616 | *) objformat=elf ;; | |
15617 | esac | |
15618 | fi | |
15619 | version_type=freebsd-$objformat | |
15620 | case $version_type in | |
15621 | freebsd-elf*) | |
15622 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15623 | soname_spec='$libname$release$shared_ext$major' | |
15624 | need_version=no | |
15625 | need_lib_prefix=no | |
15626 | ;; | |
15627 | freebsd-*) | |
15628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
15629 | need_version=yes | |
15630 | ;; | |
15631 | esac | |
15632 | shlibpath_var=LD_LIBRARY_PATH | |
15633 | case $host_os in | |
15634 | freebsd2.*) | |
15635 | shlibpath_overrides_runpath=yes | |
15636 | ;; | |
15637 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15638 | shlibpath_overrides_runpath=yes | |
15639 | hardcode_into_libs=yes | |
15640 | ;; | |
15641 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15642 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15643 | shlibpath_overrides_runpath=no | |
15644 | hardcode_into_libs=yes | |
15645 | ;; | |
15646 | *) # from 4.6 on, and DragonFly | |
15647 | shlibpath_overrides_runpath=yes | |
15648 | hardcode_into_libs=yes | |
15649 | ;; | |
15650 | esac | |
15651 | ;; | |
15652 | ||
15653 | haiku*) | |
15654 | version_type=linux # correct to gnu/linux during the next big refactor | |
15655 | need_lib_prefix=no | |
15656 | need_version=no | |
15657 | dynamic_linker="$host_os runtime_loader" | |
15658 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15659 | soname_spec='$libname$release$shared_ext$major' | |
15660 | shlibpath_var=LIBRARY_PATH | |
15661 | shlibpath_overrides_runpath=no | |
15662 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
15663 | hardcode_into_libs=yes | |
15664 | ;; | |
15665 | ||
15666 | hpux9* | hpux10* | hpux11*) | |
15667 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15668 | # link against other versions. | |
15669 | version_type=sunos | |
15670 | need_lib_prefix=no | |
15671 | need_version=no | |
15672 | case $host_cpu in | |
15673 | ia64*) | |
15674 | shrext_cmds='.so' | |
15675 | hardcode_into_libs=yes | |
15676 | dynamic_linker="$host_os dld.so" | |
15677 | shlibpath_var=LD_LIBRARY_PATH | |
15678 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15680 | soname_spec='$libname$release$shared_ext$major' | |
15681 | if test 32 = "$HPUX_IA64_MODE"; then | |
15682 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15683 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
15684 | else | |
15685 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15686 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
15687 | fi | |
15688 | ;; | |
15689 | hppa*64*) | |
15690 | shrext_cmds='.sl' | |
15691 | hardcode_into_libs=yes | |
15692 | dynamic_linker="$host_os dld.sl" | |
15693 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15694 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15695 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15696 | soname_spec='$libname$release$shared_ext$major' | |
15697 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15698 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15699 | ;; | |
15700 | *) | |
15701 | shrext_cmds='.sl' | |
15702 | dynamic_linker="$host_os dld.sl" | |
15703 | shlibpath_var=SHLIB_PATH | |
15704 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15705 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15706 | soname_spec='$libname$release$shared_ext$major' | |
15707 | ;; | |
15708 | esac | |
15709 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
15710 | postinstall_cmds='chmod 555 $lib' | |
15711 | # or fails outright, so override atomically: | |
15712 | install_override_mode=555 | |
15713 | ;; | |
15714 | ||
15715 | interix[3-9]*) | |
15716 | version_type=linux # correct to gnu/linux during the next big refactor | |
15717 | need_lib_prefix=no | |
15718 | need_version=no | |
15719 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15720 | soname_spec='$libname$release$shared_ext$major' | |
15721 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15722 | shlibpath_var=LD_LIBRARY_PATH | |
15723 | shlibpath_overrides_runpath=no | |
15724 | hardcode_into_libs=yes | |
15725 | ;; | |
15726 | ||
15727 | irix5* | irix6* | nonstopux*) | |
15728 | case $host_os in | |
15729 | nonstopux*) version_type=nonstopux ;; | |
15730 | *) | |
15731 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
15732 | version_type=linux # correct to gnu/linux during the next big refactor | |
15733 | else | |
15734 | version_type=irix | |
15735 | fi ;; | |
15736 | esac | |
15737 | need_lib_prefix=no | |
15738 | need_version=no | |
15739 | soname_spec='$libname$release$shared_ext$major' | |
15740 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
15741 | case $host_os in | |
15742 | irix5* | nonstopux*) | |
15743 | libsuff= shlibsuff= | |
15744 | ;; | |
15745 | *) | |
15746 | case $LD in # libtool.m4 will add one of these switches to LD | |
15747 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15748 | libsuff= shlibsuff= libmagic=32-bit;; | |
15749 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15750 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15751 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15752 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15753 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15754 | esac | |
15755 | ;; | |
15756 | esac | |
15757 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15758 | shlibpath_overrides_runpath=no | |
15759 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
15760 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
15761 | hardcode_into_libs=yes | |
15762 | ;; | |
15763 | ||
15764 | # No shared lib support for Linux oldld, aout, or coff. | |
15765 | linux*oldld* | linux*aout* | linux*coff*) | |
15766 | dynamic_linker=no | |
15767 | ;; | |
15768 | ||
15769 | linux*android*) | |
15770 | version_type=none # Android doesn't support versioned libraries. | |
15771 | need_lib_prefix=no | |
15772 | need_version=no | |
15773 | library_names_spec='$libname$release$shared_ext' | |
15774 | soname_spec='$libname$release$shared_ext' | |
15775 | finish_cmds= | |
15776 | shlibpath_var=LD_LIBRARY_PATH | |
15777 | shlibpath_overrides_runpath=yes | |
15778 | ||
15779 | # This implies no fast_install, which is unacceptable. | |
15780 | # Some rework will be needed to allow for fast_install | |
15781 | # before this can be enabled. | |
15782 | hardcode_into_libs=yes | |
15783 | ||
15784 | dynamic_linker='Android linker' | |
15785 | # Don't embed -rpath directories since the linker doesn't support them. | |
15786 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
15787 | ;; | |
15788 | ||
15789 | # This must be glibc/ELF. | |
15790 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
15791 | version_type=linux # correct to gnu/linux during the next big refactor | |
15792 | need_lib_prefix=no | |
15793 | need_version=no | |
15794 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15795 | soname_spec='$libname$release$shared_ext$major' | |
15796 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15797 | shlibpath_var=LD_LIBRARY_PATH | |
15798 | shlibpath_overrides_runpath=no | |
15799 | ||
15800 | # Some binutils ld are patched to set DT_RUNPATH | |
15801 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
15802 | $as_echo_n "(cached) " >&6 | |
15803 | else | |
15804 | lt_cv_shlibpath_overrides_runpath=no | |
15805 | save_LDFLAGS=$LDFLAGS | |
15806 | save_libdir=$libdir | |
15807 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15808 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15810 | /* end confdefs.h. */ | |
15811 | ||
15812 | int | |
15813 | main () | |
15814 | { | |
15815 | ||
15816 | ; | |
15817 | return 0; | |
15818 | } | |
15819 | _ACEOF | |
15820 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15821 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15822 | lt_cv_shlibpath_overrides_runpath=yes | |
15823 | fi | |
15824 | fi | |
15825 | rm -f core conftest.err conftest.$ac_objext \ | |
15826 | conftest$ac_exeext conftest.$ac_ext | |
15827 | LDFLAGS=$save_LDFLAGS | |
15828 | libdir=$save_libdir | |
15829 | ||
15830 | fi | |
15831 | ||
15832 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15833 | ||
15834 | # This implies no fast_install, which is unacceptable. | |
15835 | # Some rework will be needed to allow for fast_install | |
15836 | # before this can be enabled. | |
15837 | hardcode_into_libs=yes | |
15838 | ||
15839 | # Ideally, we could use ldconfig to report *all* directores which are | |
15840 | # searched for libraries, however this is still not possible. Aside from not | |
15841 | # being certain /sbin/ldconfig is available, command | |
15842 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
15843 | # even though it is searched at run-time. Try to do the best guess by | |
15844 | # appending ld.so.conf contents (and includes) to the search path. | |
15845 | if test -f /etc/ld.so.conf; then | |
15846 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
15847 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15848 | fi | |
15849 | ||
15850 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15851 | # powerpc, because MkLinux only supported shared libraries with the | |
15852 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15853 | # most powerpc-linux boxes support dynamic linking these days and | |
15854 | # people can always --disable-shared, the test was removed, and we | |
15855 | # assume the GNU/Linux dynamic linker is in use. | |
15856 | dynamic_linker='GNU/Linux ld.so' | |
15857 | ;; | |
15858 | ||
15859 | netbsdelf*-gnu) | |
15860 | version_type=linux | |
15861 | need_lib_prefix=no | |
15862 | need_version=no | |
15863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15864 | soname_spec='${libname}${release}${shared_ext}$major' | |
15865 | shlibpath_var=LD_LIBRARY_PATH | |
15866 | shlibpath_overrides_runpath=no | |
15867 | hardcode_into_libs=yes | |
15868 | dynamic_linker='NetBSD ld.elf_so' | |
15869 | ;; | |
15870 | ||
15871 | netbsd*) | |
15872 | version_type=sunos | |
15873 | need_lib_prefix=no | |
15874 | need_version=no | |
15875 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15876 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
15877 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15878 | dynamic_linker='NetBSD (a.out) ld.so' | |
15879 | else | |
15880 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15881 | soname_spec='$libname$release$shared_ext$major' | |
15882 | dynamic_linker='NetBSD ld.elf_so' | |
15883 | fi | |
15884 | shlibpath_var=LD_LIBRARY_PATH | |
15885 | shlibpath_overrides_runpath=yes | |
15886 | hardcode_into_libs=yes | |
15887 | ;; | |
15888 | ||
15889 | newsos6) | |
15890 | version_type=linux # correct to gnu/linux during the next big refactor | |
15891 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15892 | shlibpath_var=LD_LIBRARY_PATH | |
15893 | shlibpath_overrides_runpath=yes | |
15894 | ;; | |
15895 | ||
15896 | *nto* | *qnx*) | |
15897 | version_type=qnx | |
15898 | need_lib_prefix=no | |
15899 | need_version=no | |
15900 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15901 | soname_spec='$libname$release$shared_ext$major' | |
15902 | shlibpath_var=LD_LIBRARY_PATH | |
15903 | shlibpath_overrides_runpath=no | |
15904 | hardcode_into_libs=yes | |
15905 | dynamic_linker='ldqnx.so' | |
15906 | ;; | |
15907 | ||
15908 | openbsd* | bitrig*) | |
15909 | version_type=sunos | |
15910 | sys_lib_dlsearch_path_spec=/usr/lib | |
15911 | need_lib_prefix=no | |
15912 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
15913 | need_version=no | |
15914 | else | |
15915 | need_version=yes | |
15916 | fi | |
15917 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
15918 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15919 | shlibpath_var=LD_LIBRARY_PATH | |
15920 | shlibpath_overrides_runpath=yes | |
15921 | ;; | |
15922 | ||
15923 | os2*) | |
15924 | libname_spec='$name' | |
15925 | version_type=windows | |
15926 | shrext_cmds=.dll | |
15927 | need_version=no | |
15928 | need_lib_prefix=no | |
15929 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
15930 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
15931 | v=$($ECHO $release$versuffix | tr -d .-); | |
15932 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
15933 | $ECHO $n$v`$shared_ext' | |
15934 | library_names_spec='${libname}_dll.$libext' | |
15935 | dynamic_linker='OS/2 ld.exe' | |
15936 | shlibpath_var=BEGINLIBPATH | |
15937 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
15938 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15939 | postinstall_cmds='base_file=`basename \$file`~ | |
15940 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
15941 | dldir=$destdir/`dirname \$dlpath`~ | |
15942 | test -d \$dldir || mkdir -p \$dldir~ | |
15943 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15944 | chmod a+x \$dldir/$dlname~ | |
15945 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15946 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15947 | fi' | |
15948 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
15949 | dlpath=$dir/\$dldll~ | |
15950 | $RM \$dlpath' | |
15951 | ;; | |
15952 | ||
15953 | osf3* | osf4* | osf5*) | |
15954 | version_type=osf | |
15955 | need_lib_prefix=no | |
15956 | need_version=no | |
15957 | soname_spec='$libname$release$shared_ext$major' | |
15958 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15959 | shlibpath_var=LD_LIBRARY_PATH | |
15960 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15961 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15962 | ;; | |
15963 | ||
15964 | rdos*) | |
15965 | dynamic_linker=no | |
15966 | ;; | |
15967 | ||
15968 | solaris*) | |
15969 | version_type=linux # correct to gnu/linux during the next big refactor | |
15970 | need_lib_prefix=no | |
15971 | need_version=no | |
15972 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15973 | soname_spec='$libname$release$shared_ext$major' | |
15974 | shlibpath_var=LD_LIBRARY_PATH | |
15975 | shlibpath_overrides_runpath=yes | |
15976 | hardcode_into_libs=yes | |
15977 | # ldd complains unless libraries are executable | |
15978 | postinstall_cmds='chmod +x $lib' | |
15979 | ;; | |
15980 | ||
15981 | sunos4*) | |
15982 | version_type=sunos | |
15983 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
15984 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15985 | shlibpath_var=LD_LIBRARY_PATH | |
15986 | shlibpath_overrides_runpath=yes | |
15987 | if test yes = "$with_gnu_ld"; then | |
15988 | need_lib_prefix=no | |
15989 | fi | |
15990 | need_version=yes | |
15991 | ;; | |
15992 | ||
15993 | sysv4 | sysv4.3*) | |
15994 | version_type=linux # correct to gnu/linux during the next big refactor | |
15995 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15996 | soname_spec='$libname$release$shared_ext$major' | |
15997 | shlibpath_var=LD_LIBRARY_PATH | |
15998 | case $host_vendor in | |
15999 | sni) | |
16000 | shlibpath_overrides_runpath=no | |
16001 | need_lib_prefix=no | |
16002 | runpath_var=LD_RUN_PATH | |
16003 | ;; | |
16004 | siemens) | |
16005 | need_lib_prefix=no | |
16006 | ;; | |
16007 | motorola) | |
16008 | need_lib_prefix=no | |
16009 | need_version=no | |
16010 | shlibpath_overrides_runpath=no | |
16011 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16012 | ;; | |
16013 | esac | |
16014 | ;; | |
16015 | ||
16016 | sysv4*MP*) | |
16017 | if test -d /usr/nec; then | |
16018 | version_type=linux # correct to gnu/linux during the next big refactor | |
16019 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
16020 | soname_spec='$libname$shared_ext.$major' | |
16021 | shlibpath_var=LD_LIBRARY_PATH | |
16022 | fi | |
16023 | ;; | |
16024 | ||
16025 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16026 | version_type=sco | |
16027 | need_lib_prefix=no | |
16028 | need_version=no | |
16029 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
16030 | soname_spec='$libname$release$shared_ext$major' | |
16031 | shlibpath_var=LD_LIBRARY_PATH | |
16032 | shlibpath_overrides_runpath=yes | |
16033 | hardcode_into_libs=yes | |
16034 | if test yes = "$with_gnu_ld"; then | |
16035 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16036 | else | |
16037 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16038 | case $host_os in | |
16039 | sco3.2v5*) | |
16040 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16041 | ;; | |
16042 | esac | |
16043 | fi | |
16044 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16045 | ;; | |
16046 | ||
16047 | tpf*) | |
16048 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16049 | version_type=linux # correct to gnu/linux during the next big refactor | |
16050 | need_lib_prefix=no | |
16051 | need_version=no | |
16052 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16053 | shlibpath_var=LD_LIBRARY_PATH | |
16054 | shlibpath_overrides_runpath=no | |
16055 | hardcode_into_libs=yes | |
16056 | ;; | |
16057 | ||
16058 | uts4*) | |
16059 | version_type=linux # correct to gnu/linux during the next big refactor | |
16060 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16061 | soname_spec='$libname$release$shared_ext$major' | |
16062 | shlibpath_var=LD_LIBRARY_PATH | |
16063 | ;; | |
16064 | ||
16065 | *) | |
16066 | dynamic_linker=no | |
16067 | ;; | |
16068 | esac | |
16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
16070 | $as_echo "$dynamic_linker" >&6; } | |
16071 | test no = "$dynamic_linker" && can_build_shared=no | |
16072 | ||
16073 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16074 | if test yes = "$GCC"; then | |
16075 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16076 | fi | |
16077 | ||
16078 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
16079 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
16080 | fi | |
16081 | ||
16082 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
16083 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
16084 | fi | |
16085 | ||
16086 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
16087 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
16088 | ||
16089 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
16090 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
16091 | ||
16092 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
16093 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
16094 | ||
16095 | ||
16096 | ||
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | ||
16102 | ||
16103 | ||
16104 | ||
16105 | ||
16106 | ||
16107 | ||
16108 | ||
16109 | ||
16110 | ||
16111 | ||
16112 | ||
16113 | ||
16114 | ||
16115 | ||
16116 | ||
16117 | ||
16118 | ||
16119 | ||
16120 | ||
16121 | ||
16122 | ||
16123 | ||
16124 | ||
16125 | ||
16126 | ||
16127 | ||
16128 | ||
16129 | ||
16130 | ||
16131 | ||
16132 | ||
16133 | ||
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
16135 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
16136 | hardcode_action_CXX= | |
16137 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16138 | test -n "$runpath_var_CXX" || | |
16139 | test yes = "$hardcode_automatic_CXX"; then | |
16140 | ||
16141 | # We can hardcode non-existent directories. | |
16142 | if test no != "$hardcode_direct_CXX" && | |
16143 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16144 | # have to relink, otherwise we might link with an installed library | |
16145 | # when we should be linking with a yet-to-be-installed one | |
16146 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && | |
16147 | test no != "$hardcode_minus_L_CXX"; then | |
16148 | # Linking always hardcodes the temporary library directory. | |
16149 | hardcode_action_CXX=relink | |
16150 | else | |
16151 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16152 | hardcode_action_CXX=immediate | |
16153 | fi | |
16154 | else | |
16155 | # We cannot hardcode anything, or else we can only hardcode existing | |
16156 | # directories. | |
16157 | hardcode_action_CXX=unsupported | |
16158 | fi | |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
16160 | $as_echo "$hardcode_action_CXX" >&6; } | |
16161 | ||
16162 | if test relink = "$hardcode_action_CXX" || | |
16163 | test yes = "$inherit_rpath_CXX"; then | |
16164 | # Fast installation is not supported | |
16165 | enable_fast_install=no | |
16166 | elif test yes = "$shlibpath_overrides_runpath" || | |
16167 | test no = "$enable_shared"; then | |
16168 | # Fast installation is not necessary | |
16169 | enable_fast_install=needless | |
16170 | fi | |
16171 | ||
16172 | ||
16173 | ||
16174 | ||
16175 | ||
16176 | ||
16177 | ||
16178 | fi # test -n "$compiler" | |
16179 | ||
16180 | CC=$lt_save_CC | |
16181 | CFLAGS=$lt_save_CFLAGS | |
16182 | LDCXX=$LD | |
16183 | LD=$lt_save_LD | |
16184 | GCC=$lt_save_GCC | |
16185 | with_gnu_ld=$lt_save_with_gnu_ld | |
16186 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16187 | lt_cv_path_LD=$lt_save_path_LD | |
16188 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16189 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
16190 | fi # test yes != "$_lt_caught_CXX_error" | |
16191 | ||
16192 | ac_ext=c | |
16193 | ac_cpp='$CPP $CPPFLAGS' | |
16194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16197 | ||
16198 | ||
16199 | ||
16200 | ||
16201 | ||
16202 | ||
16203 | ||
16204 | ||
16205 | ||
16206 | ||
16207 | ||
16208 | ||
16209 | ||
16210 | ||
16211 | ||
16212 | ac_config_commands="$ac_config_commands libtool" | |
16213 | ||
16214 | ||
16215 | ||
16216 | ||
16217 | # Only expand once: | |
16218 | ||
16219 | ||
16220 | if test -n "$ac_tool_prefix"; then | |
16221 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
16222 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16224 | $as_echo_n "checking for $ac_word... " >&6; } | |
16225 | if ${ac_cv_prog_RC+:} false; then : | |
16226 | $as_echo_n "(cached) " >&6 | |
16227 | else | |
16228 | if test -n "$RC"; then | |
16229 | ac_cv_prog_RC="$RC" # Let the user override the test. | |
16230 | else | |
16231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16232 | for as_dir in $PATH | |
16233 | do | |
16234 | IFS=$as_save_IFS | |
16235 | test -z "$as_dir" && as_dir=. | |
16236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16238 | ac_cv_prog_RC="${ac_tool_prefix}windres" | |
16239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16240 | break 2 | |
16241 | fi | |
16242 | done | |
16243 | done | |
16244 | IFS=$as_save_IFS | |
16245 | ||
16246 | fi | |
16247 | fi | |
16248 | RC=$ac_cv_prog_RC | |
16249 | if test -n "$RC"; then | |
16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 | |
16251 | $as_echo "$RC" >&6; } | |
16252 | else | |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16254 | $as_echo "no" >&6; } | |
16255 | fi | |
16256 | ||
16257 | ||
16258 | fi | |
16259 | if test -z "$ac_cv_prog_RC"; then | |
16260 | ac_ct_RC=$RC | |
16261 | # Extract the first word of "windres", so it can be a program name with args. | |
16262 | set dummy windres; ac_word=$2 | |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16264 | $as_echo_n "checking for $ac_word... " >&6; } | |
16265 | if ${ac_cv_prog_ac_ct_RC+:} false; then : | |
16266 | $as_echo_n "(cached) " >&6 | |
16267 | else | |
16268 | if test -n "$ac_ct_RC"; then | |
16269 | ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. | |
16270 | else | |
16271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16272 | for as_dir in $PATH | |
16273 | do | |
16274 | IFS=$as_save_IFS | |
16275 | test -z "$as_dir" && as_dir=. | |
16276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16278 | ac_cv_prog_ac_ct_RC="windres" | |
16279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16280 | break 2 | |
16281 | fi | |
16282 | done | |
16283 | done | |
16284 | IFS=$as_save_IFS | |
16285 | ||
16286 | fi | |
16287 | fi | |
16288 | ac_ct_RC=$ac_cv_prog_ac_ct_RC | |
16289 | if test -n "$ac_ct_RC"; then | |
16290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 | |
16291 | $as_echo "$ac_ct_RC" >&6; } | |
16292 | else | |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16294 | $as_echo "no" >&6; } | |
16295 | fi | |
16296 | ||
16297 | if test "x$ac_ct_RC" = x; then | |
16298 | RC="" | |
16299 | else | |
16300 | case $cross_compiling:$ac_tool_warned in | |
16301 | yes:) | |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16304 | ac_tool_warned=yes ;; | |
16305 | esac | |
16306 | RC=$ac_ct_RC | |
16307 | fi | |
16308 | else | |
16309 | RC="$ac_cv_prog_RC" | |
16310 | fi | |
16311 | ||
16312 | ||
16313 | ||
16314 | # Source file extension for RC test sources. | |
16315 | ac_ext=rc | |
16316 | ||
16317 | # Object file extension for compiled RC test sources. | |
16318 | objext=o | |
16319 | objext_RC=$objext | |
16320 | ||
16321 | # Code to be used in simple compile tests | |
16322 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
16323 | ||
16324 | # Code to be used in simple link tests | |
16325 | lt_simple_link_test_code=$lt_simple_compile_test_code | |
16326 | ||
16327 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
16328 | ||
16329 | ||
16330 | ||
16331 | ||
16332 | ||
16333 | ||
16334 | # If no C compiler was specified, use CC. | |
16335 | LTCC=${LTCC-"$CC"} | |
16336 | ||
16337 | # If no C compiler flags were specified, use CFLAGS. | |
16338 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
16339 | ||
16340 | # Allow CC to be a program name with arguments. | |
16341 | compiler=$CC | |
16342 | ||
16343 | ||
16344 | # save warnings/boilerplate of simple test code | |
16345 | ac_outfile=conftest.$ac_objext | |
16346 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
16347 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16348 | _lt_compiler_boilerplate=`cat conftest.err` | |
16349 | $RM conftest* | |
16350 | ||
16351 | ac_outfile=conftest.$ac_objext | |
16352 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
16353 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16354 | _lt_linker_boilerplate=`cat conftest.err` | |
16355 | $RM -r conftest* | |
16356 | ||
16357 | ||
16358 | # Allow CC to be a program name with arguments. | |
16359 | lt_save_CC=$CC | |
16360 | lt_save_CFLAGS=$CFLAGS | |
16361 | lt_save_GCC=$GCC | |
16362 | GCC= | |
16363 | CC=${RC-"windres"} | |
16364 | CFLAGS= | |
16365 | compiler=$CC | |
16366 | compiler_RC=$CC | |
16367 | func_cc_basename $compiler | |
16368 | cc_basename=$func_cc_basename_result | |
16369 | ||
16370 | lt_cv_prog_compiler_c_o_RC=yes | |
16371 | ||
16372 | if test -n "$compiler"; then | |
16373 | : | |
16374 | ||
16375 | ||
16376 | ||
16377 | fi | |
16378 | ||
16379 | GCC=$lt_save_GCC | |
16380 | ac_ext=c | |
16381 | ac_cpp='$CPP $CPPFLAGS' | |
16382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16385 | ||
16386 | CC=$lt_save_CC | |
16387 | CFLAGS=$lt_save_CFLAGS | |
16388 | ||
16389 | ||
16390 | ||
16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
16392 | $as_echo_n "checking whether ln -s works... " >&6; } | |
16393 | LN_S=$as_ln_s | |
16394 | if test "$LN_S" = "ln -s"; then | |
16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16396 | $as_echo "yes" >&6; } | |
16397 | else | |
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
16399 | $as_echo "no, using $LN_S" >&6; } | |
16400 | fi | |
16401 | ||
16402 | ||
16403 | #------------------------------------------------------------------------------------ | |
16404 | # Rules for library version information: | |
16405 | # | |
16406 | # 1. Start with version information of `0:0:0' for each libtool library. | |
16407 | # 2. Update the version information only immediately before a public release of | |
16408 | # your software. More frequent updates are unnecessary, and only guarantee | |
16409 | # that the current interface number gets larger faster. | |
16410 | # 3. If the library source code has changed at all since the last update, then | |
16411 | # increment revision (`c:r:a' becomes `c:r+1:a'). | |
16412 | # 4. If any interfaces have been added, removed, or changed since the last update, | |
16413 | # increment current, and set revision to 0. | |
16414 | # 5. If any interfaces have been added since the last public release, then increment | |
16415 | # age. | |
16416 | # 6. If any interfaces have been removed since the last public release, then set age | |
16417 | # to 0. | |
16418 | ||
16419 | SHARED_VERSION_INFO="1:8:1" | |
16420 | ||
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
16426 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
16427 | set x ${MAKE-make} | |
16428 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
16429 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
16430 | $as_echo_n "(cached) " >&6 | |
16431 | else | |
16432 | cat >conftest.make <<\_ACEOF | |
16433 | SHELL = /bin/sh | |
16434 | all: | |
16435 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
16436 | _ACEOF | |
16437 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
16438 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
16439 | *@@@%%%=?*=@@@%%%*) | |
16440 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
16441 | *) | |
16442 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
16443 | esac | |
16444 | rm -f conftest.make | |
16445 | fi | |
16446 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
16447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16448 | $as_echo "yes" >&6; } | |
16449 | SET_MAKE= | |
16450 | else | |
16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16452 | $as_echo "no" >&6; } | |
16453 | SET_MAKE="MAKE=${MAKE-make}" | |
16454 | fi | |
16455 | ||
16456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
16457 | $as_echo_n "checking whether ln -s works... " >&6; } | |
16458 | LN_S=$as_ln_s | |
16459 | if test "$LN_S" = "ln -s"; then | |
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16461 | $as_echo "yes" >&6; } | |
16462 | else | |
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
16464 | $as_echo "no, using $LN_S" >&6; } | |
16465 | fi | |
16466 | ||
16467 | ||
16468 | ||
16469 | if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then | |
16470 | # Extract the first word of "dlltool", so it can be a program name with args. | |
16471 | set dummy dlltool; ac_word=$2 | |
16472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16473 | $as_echo_n "checking for $ac_word... " >&6; } | |
16474 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
16475 | $as_echo_n "(cached) " >&6 | |
16476 | else | |
16477 | if test -n "$DLLTOOL"; then | |
16478 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
16479 | else | |
16480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16481 | for as_dir in $PATH | |
16482 | do | |
16483 | IFS=$as_save_IFS | |
16484 | test -z "$as_dir" && as_dir=. | |
16485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16487 | ac_cv_prog_DLLTOOL="dlltool" | |
16488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16489 | break 2 | |
16490 | fi | |
16491 | done | |
16492 | done | |
16493 | IFS=$as_save_IFS | |
16494 | ||
16495 | fi | |
16496 | fi | |
16497 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
16498 | if test -n "$DLLTOOL"; then | |
16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
16500 | $as_echo "$DLLTOOL" >&6; } | |
16501 | else | |
16502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16503 | $as_echo "no" >&6; } | |
16504 | fi | |
16505 | ||
16506 | ||
16507 | # Extract the first word of "dllwrap", so it can be a program name with args. | |
16508 | set dummy dllwrap; ac_word=$2 | |
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16510 | $as_echo_n "checking for $ac_word... " >&6; } | |
16511 | if ${ac_cv_prog_DLLWRAP+:} false; then : | |
16512 | $as_echo_n "(cached) " >&6 | |
16513 | else | |
16514 | if test -n "$DLLWRAP"; then | |
16515 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. | |
16516 | else | |
16517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16518 | for as_dir in $PATH | |
16519 | do | |
16520 | IFS=$as_save_IFS | |
16521 | test -z "$as_dir" && as_dir=. | |
16522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16524 | ac_cv_prog_DLLWRAP="dllwrap" | |
16525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16526 | break 2 | |
16527 | fi | |
16528 | done | |
16529 | done | |
16530 | IFS=$as_save_IFS | |
16531 | ||
16532 | fi | |
16533 | fi | |
16534 | DLLWRAP=$ac_cv_prog_DLLWRAP | |
16535 | if test -n "$DLLWRAP"; then | |
16536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 | |
16537 | $as_echo "$DLLWRAP" >&6; } | |
16538 | else | |
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16540 | $as_echo "no" >&6; } | |
16541 | fi | |
16542 | ||
16543 | ||
16544 | # Extract the first word of "pexports", so it can be a program name with args. | |
16545 | set dummy pexports; ac_word=$2 | |
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16547 | $as_echo_n "checking for $ac_word... " >&6; } | |
16548 | if ${ac_cv_prog_PEXPORTS+:} false; then : | |
16549 | $as_echo_n "(cached) " >&6 | |
16550 | else | |
16551 | if test -n "$PEXPORTS"; then | |
16552 | ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test. | |
16553 | else | |
16554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16555 | for as_dir in $PATH | |
16556 | do | |
16557 | IFS=$as_save_IFS | |
16558 | test -z "$as_dir" && as_dir=. | |
16559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16561 | ac_cv_prog_PEXPORTS="pexports" | |
16562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16563 | break 2 | |
16564 | fi | |
16565 | done | |
16566 | done | |
16567 | IFS=$as_save_IFS | |
16568 | ||
16569 | fi | |
16570 | fi | |
16571 | PEXPORTS=$ac_cv_prog_PEXPORTS | |
16572 | if test -n "$PEXPORTS"; then | |
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5 | |
16574 | $as_echo "$PEXPORTS" >&6; } | |
16575 | else | |
16576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16577 | $as_echo "no" >&6; } | |
16578 | fi | |
16579 | ||
16580 | ||
16581 | fi | |
16582 | ||
16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
16584 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
16585 | if ${ac_cv_header_stdc+:} false; then : | |
16586 | $as_echo_n "(cached) " >&6 | |
16587 | else | |
16588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16589 | /* end confdefs.h. */ | |
16590 | #include <stdlib.h> | |
16591 | #include <stdarg.h> | |
16592 | #include <string.h> | |
16593 | #include <float.h> | |
16594 | ||
16595 | int | |
16596 | main () | |
16597 | { | |
16598 | ||
16599 | ; | |
16600 | return 0; | |
16601 | } | |
16602 | _ACEOF | |
16603 | if ac_fn_c_try_compile "$LINENO"; then : | |
16604 | ac_cv_header_stdc=yes | |
16605 | else | |
16606 | ac_cv_header_stdc=no | |
16607 | fi | |
16608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16609 | ||
16610 | if test $ac_cv_header_stdc = yes; then | |
16611 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16613 | /* end confdefs.h. */ | |
16614 | #include <string.h> | |
16615 | ||
16616 | _ACEOF | |
16617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16618 | $EGREP "memchr" >/dev/null 2>&1; then : | |
16619 | ||
16620 | else | |
16621 | ac_cv_header_stdc=no | |
16622 | fi | |
16623 | rm -f conftest* | |
16624 | ||
16625 | fi | |
16626 | ||
16627 | if test $ac_cv_header_stdc = yes; then | |
16628 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16630 | /* end confdefs.h. */ | |
16631 | #include <stdlib.h> | |
16632 | ||
16633 | _ACEOF | |
16634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16635 | $EGREP "free" >/dev/null 2>&1; then : | |
16636 | ||
16637 | else | |
16638 | ac_cv_header_stdc=no | |
16639 | fi | |
16640 | rm -f conftest* | |
16641 | ||
16642 | fi | |
16643 | ||
16644 | if test $ac_cv_header_stdc = yes; then | |
16645 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16646 | if test "$cross_compiling" = yes; then : | |
16647 | : | |
16648 | else | |
16649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16650 | /* end confdefs.h. */ | |
16651 | #include <ctype.h> | |
16652 | #include <stdlib.h> | |
16653 | #if ((' ' & 0x0FF) == 0x020) | |
16654 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16655 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16656 | #else | |
16657 | # define ISLOWER(c) \ | |
16658 | (('a' <= (c) && (c) <= 'i') \ | |
16659 | || ('j' <= (c) && (c) <= 'r') \ | |
16660 | || ('s' <= (c) && (c) <= 'z')) | |
16661 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
16662 | #endif | |
16663 | ||
16664 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16665 | int | |
16666 | main () | |
16667 | { | |
16668 | int i; | |
16669 | for (i = 0; i < 256; i++) | |
16670 | if (XOR (islower (i), ISLOWER (i)) | |
16671 | || toupper (i) != TOUPPER (i)) | |
16672 | return 2; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
16676 | if ac_fn_c_try_run "$LINENO"; then : | |
16677 | ||
16678 | else | |
16679 | ac_cv_header_stdc=no | |
16680 | fi | |
16681 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16682 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16683 | fi | |
16684 | ||
16685 | fi | |
16686 | fi | |
16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
16688 | $as_echo "$ac_cv_header_stdc" >&6; } | |
16689 | if test $ac_cv_header_stdc = yes; then | |
16690 | ||
16691 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
16692 | ||
16693 | fi | |
16694 | ||
16695 | ||
16696 | for ac_header in stdint.h sys/times.h | |
16697 | do : | |
16698 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16699 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16700 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
16701 | cat >>confdefs.h <<_ACEOF | |
16702 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16703 | _ACEOF | |
16704 | ||
16705 | fi | |
16706 | ||
16707 | done | |
16708 | ||
16709 | ||
16710 | #==================================================================================== | |
16711 | # Couple of initializations here. Fill in real values later. | |
16712 | ||
16713 | SHLIB_VERSION_ARG="" | |
16714 | ||
16715 | #==================================================================================== | |
16716 | # Finished checking, handle options. | |
16717 | ||
16718 | # Check whether --enable-gcc-werror was given. | |
16719 | if test "${enable_gcc_werror+set}" = set; then : | |
16720 | enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes | |
16721 | else | |
16722 | ac_arg_gcc_werror=no | |
16723 | fi | |
16724 | ||
16725 | ||
16726 | # Check whether --enable-gcc-pipe was given. | |
16727 | if test "${enable_gcc_pipe+set}" = set; then : | |
16728 | enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N" | |
16729 | else | |
16730 | ac_arg_gcc_pipe="Y" | |
16731 | fi | |
16732 | ||
16733 | ||
16734 | # Check whether --enable-gcc-opt was given. | |
16735 | if test "${enable_gcc_opt+set}" = set; then : | |
16736 | enableval=$enable_gcc_opt; ac_arg_gcc_opt="N" | |
16737 | else | |
16738 | ac_arg_gcc_opt="Y" | |
16739 | fi | |
16740 | ||
16741 | ||
16742 | # Check whether --enable-fftw was given. | |
16743 | if test "${enable_fftw+set}" = set; then : | |
16744 | enableval=$enable_fftw; ac_arg_fftw="N" | |
16745 | else | |
16746 | ac_arg_fftw="Y" | |
16747 | fi | |
16748 | ||
16749 | ||
16750 | # Check whether --enable-cpu-clip was given. | |
16751 | if test "${enable_cpu_clip+set}" = set; then : | |
16752 | enableval=$enable_cpu_clip; ac_arg_cpu_clip="N" | |
16753 | else | |
16754 | ac_arg_cpu_clip="Y" | |
16755 | fi | |
16756 | ||
16757 | ||
16758 | #==================================================================================== | |
16759 | # Check types and their sizes. | |
16760 | ||
16761 | # The cast to long int works around a bug in the HP C Compiler | |
16762 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16763 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16764 | # This bug is HP SR number 8606223364. | |
16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16766 | $as_echo_n "checking size of int... " >&6; } | |
16767 | if ${ac_cv_sizeof_int+:} false; then : | |
16768 | $as_echo_n "(cached) " >&6 | |
16769 | else | |
16770 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
16771 | ||
16772 | else | |
16773 | if test "$ac_cv_type_int" = yes; then | |
16774 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16776 | as_fn_error 77 "cannot compute sizeof (int) | |
16777 | See \`config.log' for more details" "$LINENO" 5; } | |
16778 | else | |
16779 | ac_cv_sizeof_int=0 | |
16780 | fi | |
16781 | fi | |
16782 | ||
16783 | fi | |
16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16785 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
16786 | ||
16787 | ||
16788 | ||
16789 | cat >>confdefs.h <<_ACEOF | |
16790 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16791 | _ACEOF | |
16792 | ||
16793 | ||
16794 | # The cast to long int works around a bug in the HP C Compiler | |
16795 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16796 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16797 | # This bug is HP SR number 8606223364. | |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16799 | $as_echo_n "checking size of long... " >&6; } | |
16800 | if ${ac_cv_sizeof_long+:} false; then : | |
16801 | $as_echo_n "(cached) " >&6 | |
16802 | else | |
16803 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
16804 | ||
16805 | else | |
16806 | if test "$ac_cv_type_long" = yes; then | |
16807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16808 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16809 | as_fn_error 77 "cannot compute sizeof (long) | |
16810 | See \`config.log' for more details" "$LINENO" 5; } | |
16811 | else | |
16812 | ac_cv_sizeof_long=0 | |
16813 | fi | |
16814 | fi | |
16815 | ||
16816 | fi | |
16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16818 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
16819 | ||
16820 | ||
16821 | ||
16822 | cat >>confdefs.h <<_ACEOF | |
16823 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16824 | _ACEOF | |
16825 | ||
16826 | ||
16827 | # The cast to long int works around a bug in the HP C Compiler | |
16828 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16829 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16830 | # This bug is HP SR number 8606223364. | |
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | |
16832 | $as_echo_n "checking size of float... " >&6; } | |
16833 | if ${ac_cv_sizeof_float+:} false; then : | |
16834 | $as_echo_n "(cached) " >&6 | |
16835 | else | |
16836 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : | |
16837 | ||
16838 | else | |
16839 | if test "$ac_cv_type_float" = yes; then | |
16840 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16841 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16842 | as_fn_error 77 "cannot compute sizeof (float) | |
16843 | See \`config.log' for more details" "$LINENO" 5; } | |
16844 | else | |
16845 | ac_cv_sizeof_float=0 | |
16846 | fi | |
16847 | fi | |
16848 | ||
16849 | fi | |
16850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | |
16851 | $as_echo "$ac_cv_sizeof_float" >&6; } | |
16852 | ||
16853 | ||
16854 | ||
16855 | cat >>confdefs.h <<_ACEOF | |
16856 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | |
16857 | _ACEOF | |
16858 | ||
16859 | ||
16860 | # The cast to long int works around a bug in the HP C Compiler | |
16861 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16862 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16863 | # This bug is HP SR number 8606223364. | |
16864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
16865 | $as_echo_n "checking size of double... " >&6; } | |
16866 | if ${ac_cv_sizeof_double+:} false; then : | |
16867 | $as_echo_n "(cached) " >&6 | |
16868 | else | |
16869 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
16870 | ||
16871 | else | |
16872 | if test "$ac_cv_type_double" = yes; then | |
16873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16875 | as_fn_error 77 "cannot compute sizeof (double) | |
16876 | See \`config.log' for more details" "$LINENO" 5; } | |
16877 | else | |
16878 | ac_cv_sizeof_double=0 | |
16879 | fi | |
16880 | fi | |
16881 | ||
16882 | fi | |
16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
16884 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
16885 | ||
16886 | ||
16887 | ||
16888 | cat >>confdefs.h <<_ACEOF | |
16889 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
16890 | _ACEOF | |
16891 | ||
16892 | ||
16893 | ||
16894 | #==================================================================================== | |
16895 | # Determine endian-ness of target processor. | |
16896 | ||
16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5 | |
16898 | $as_echo_n "checking processor byte ordering... " >&6; } | |
16899 | if ${ac_cv_c_byte_order+:} false; then : | |
16900 | $as_echo_n "(cached) " >&6 | |
16901 | else | |
16902 | # Initialize to unknown | |
16903 | ac_cv_c_byte_order=unknown | |
16904 | ||
16905 | if test x$ac_cv_header_endian_h = xyes ; then | |
16906 | ||
16907 | # First try <endian.h> which should set BYTE_ORDER. | |
16908 | ||
16909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16910 | /* end confdefs.h. */ | |
16911 | ||
16912 | #include <endian.h> | |
16913 | #if BYTE_ORDER != LITTLE_ENDIAN | |
16914 | not big endian | |
16915 | #endif | |
16916 | ||
16917 | int | |
16918 | main () | |
16919 | { | |
16920 | return 0 ; | |
16921 | ; | |
16922 | return 0; | |
16923 | } | |
16924 | _ACEOF | |
16925 | if ac_fn_c_try_link "$LINENO"; then : | |
16926 | ac_cv_c_byte_order=little | |
16927 | ||
16928 | fi | |
16929 | rm -f core conftest.err conftest.$ac_objext \ | |
16930 | conftest$ac_exeext conftest.$ac_ext | |
16931 | ||
16932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16933 | /* end confdefs.h. */ | |
16934 | ||
16935 | #include <endian.h> | |
16936 | #if BYTE_ORDER != BIG_ENDIAN | |
16937 | not big endian | |
16938 | #endif | |
16939 | ||
16940 | int | |
16941 | main () | |
16942 | { | |
16943 | return 0 ; | |
16944 | ; | |
16945 | return 0; | |
16946 | } | |
16947 | _ACEOF | |
16948 | if ac_fn_c_try_link "$LINENO"; then : | |
16949 | ac_cv_c_byte_order=big | |
16950 | ||
16951 | fi | |
16952 | rm -f core conftest.err conftest.$ac_objext \ | |
16953 | conftest$ac_exeext conftest.$ac_ext | |
16954 | ||
16955 | fi | |
16956 | ||
16957 | if test $ac_cv_c_byte_order = unknown ; then | |
16958 | ||
16959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16960 | /* end confdefs.h. */ | |
16961 | ||
16962 | #include <sys/types.h> | |
16963 | #include <sys/param.h> | |
16964 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16965 | bogus endian macros | |
16966 | #endif | |
16967 | ||
16968 | int | |
16969 | main () | |
16970 | { | |
16971 | return 0 ; | |
16972 | ; | |
16973 | return 0; | |
16974 | } | |
16975 | _ACEOF | |
16976 | if ac_fn_c_try_link "$LINENO"; then : | |
16977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16978 | /* end confdefs.h. */ | |
16979 | ||
16980 | #include <sys/types.h> | |
16981 | #include <sys/param.h> | |
16982 | #if BYTE_ORDER != LITTLE_ENDIAN | |
16983 | not big endian | |
16984 | #endif | |
16985 | ||
16986 | int | |
16987 | main () | |
16988 | { | |
16989 | return 0 ; | |
16990 | ; | |
16991 | return 0; | |
16992 | } | |
16993 | _ACEOF | |
16994 | if ac_fn_c_try_link "$LINENO"; then : | |
16995 | ac_cv_c_byte_order=little | |
16996 | ||
16997 | fi | |
16998 | rm -f core conftest.err conftest.$ac_objext \ | |
16999 | conftest$ac_exeext conftest.$ac_ext | |
17000 | ||
17001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17002 | /* end confdefs.h. */ | |
17003 | ||
17004 | #include <sys/types.h> | |
17005 | #include <sys/param.h> | |
17006 | #if BYTE_ORDER != LITTLE_ENDIAN | |
17007 | not big endian | |
17008 | #endif | |
17009 | ||
17010 | int | |
17011 | main () | |
17012 | { | |
17013 | return 0 ; | |
17014 | ; | |
17015 | return 0; | |
17016 | } | |
17017 | _ACEOF | |
17018 | if ac_fn_c_try_link "$LINENO"; then : | |
17019 | ac_cv_c_byte_order=little | |
17020 | ||
17021 | fi | |
17022 | rm -f core conftest.err conftest.$ac_objext \ | |
17023 | conftest$ac_exeext conftest.$ac_ext | |
17024 | ||
17025 | ||
17026 | fi | |
17027 | rm -f core conftest.err conftest.$ac_objext \ | |
17028 | conftest$ac_exeext conftest.$ac_ext | |
17029 | ||
17030 | fi | |
17031 | ||
17032 | if test $ac_cv_c_byte_order = unknown ; then | |
17033 | if test $cross_compiling = yes ; then | |
17034 | # This is the last resort. Try to guess the target processor endian-ness | |
17035 | # by looking at the target CPU type. | |
17036 | ||
17037 | case "$target_cpu" in | |
17038 | alpha* | i?86* | mipsel* | ia64*) | |
17039 | ac_cv_c_byte_order=little | |
17040 | ;; | |
17041 | ||
17042 | m68* | mips* | powerpc* | hppa* | sparc*) | |
17043 | ac_cv_c_byte_order=big | |
17044 | ;; | |
17045 | ||
17046 | esac | |
17047 | ||
17048 | else | |
17049 | if test "$cross_compiling" = yes; then : | |
17050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17052 | as_fn_error $? "cannot run test program while cross compiling | |
17053 | See \`config.log' for more details" "$LINENO" 5; } | |
17054 | else | |
17055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17056 | /* end confdefs.h. */ | |
17057 | ||
17058 | int main (void) | |
17059 | { /* Are we little or big endian? From Harbison&Steele. */ | |
17060 | union | |
17061 | { long l ; | |
17062 | char c [sizeof (long)] ; | |
17063 | } u ; | |
17064 | u.l = 1 ; | |
17065 | return (u.c [sizeof (long) - 1] == 1); | |
17066 | } | |
17067 | ||
17068 | _ACEOF | |
17069 | if ac_fn_c_try_run "$LINENO"; then : | |
17070 | ||
17071 | else | |
17072 | ac_cv_c_byte_order=big | |
17073 | fi | |
17074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17075 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17076 | fi | |
17077 | ||
17078 | ||
17079 | if test "$cross_compiling" = yes; then : | |
17080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17082 | as_fn_error $? "cannot run test program while cross compiling | |
17083 | See \`config.log' for more details" "$LINENO" 5; } | |
17084 | else | |
17085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17086 | /* end confdefs.h. */ | |
17087 | int main (void) | |
17088 | { /* Are we little or big endian? From Harbison&Steele. */ | |
17089 | union | |
17090 | { long l ; | |
17091 | char c [sizeof (long)] ; | |
17092 | } u ; | |
17093 | u.l = 1 ; | |
17094 | return (u.c [0] == 1); | |
17095 | } | |
17096 | _ACEOF | |
17097 | if ac_fn_c_try_run "$LINENO"; then : | |
17098 | ||
17099 | else | |
17100 | ac_cv_c_byte_order=little | |
17101 | fi | |
17102 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17103 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17104 | fi | |
17105 | ||
17106 | fi | |
17107 | fi | |
17108 | ||
17109 | ||
17110 | fi | |
17111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5 | |
17112 | $as_echo "$ac_cv_c_byte_order" >&6; } | |
17113 | ||
17114 | if test $ac_cv_c_byte_order = big ; then | |
17115 | ac_cv_c_big_endian=1 | |
17116 | ac_cv_c_little_endian=0 | |
17117 | elif test $ac_cv_c_byte_order = little ; then | |
17118 | ac_cv_c_big_endian=0 | |
17119 | ac_cv_c_little_endian=1 | |
17120 | else | |
17121 | ac_cv_c_big_endian=0 | |
17122 | ac_cv_c_little_endian=0 | |
17123 | ||
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 | |
17125 | $as_echo "$as_me: WARNING: *****************************************************************" >&2;} | |
17126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5 | |
17127 | $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;} | |
17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5 | |
17129 | $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;} | |
17130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5 | |
17131 | $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;} | |
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 | |
17133 | $as_echo "$as_me: WARNING: *****************************************************************" >&2;} | |
17134 | fi | |
17135 | ||
17136 | ||
17137 | ||
17138 | ||
17139 | ||
17140 | cat >>confdefs.h <<_ACEOF | |
17141 | #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian} | |
17142 | _ACEOF | |
17143 | ||
17144 | ||
17145 | cat >>confdefs.h <<_ACEOF | |
17146 | #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian} | |
17147 | _ACEOF | |
17148 | ||
17149 | ||
17150 | #==================================================================================== | |
17151 | # Check for functions. | |
17152 | ||
17153 | for ac_func in malloc calloc free memcpy memmove alarm signal | |
17154 | do : | |
17155 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17156 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
17157 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
17158 | cat >>confdefs.h <<_ACEOF | |
17159 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17160 | _ACEOF | |
17161 | ||
17162 | fi | |
17163 | done | |
17164 | ||
17165 | ||
17166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 | |
17167 | $as_echo_n "checking for floor in -lm... " >&6; } | |
17168 | if ${ac_cv_lib_m_floor+:} false; then : | |
17169 | $as_echo_n "(cached) " >&6 | |
17170 | else | |
17171 | ac_check_lib_save_LIBS=$LIBS | |
17172 | LIBS="-lm $LIBS" | |
17173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17174 | /* end confdefs.h. */ | |
17175 | ||
17176 | /* Override any GCC internal prototype to avoid an error. | |
17177 | Use char because int might match the return type of a GCC | |
17178 | builtin and then its argument prototype would still apply. */ | |
17179 | #ifdef __cplusplus | |
17180 | extern "C" | |
17181 | #endif | |
17182 | char floor (); | |
17183 | int | |
17184 | main () | |
17185 | { | |
17186 | return floor (); | |
17187 | ; | |
17188 | return 0; | |
17189 | } | |
17190 | _ACEOF | |
17191 | if ac_fn_c_try_link "$LINENO"; then : | |
17192 | ac_cv_lib_m_floor=yes | |
17193 | else | |
17194 | ac_cv_lib_m_floor=no | |
17195 | fi | |
17196 | rm -f core conftest.err conftest.$ac_objext \ | |
17197 | conftest$ac_exeext conftest.$ac_ext | |
17198 | LIBS=$ac_check_lib_save_LIBS | |
17199 | fi | |
17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 | |
17201 | $as_echo "$ac_cv_lib_m_floor" >&6; } | |
17202 | if test "x$ac_cv_lib_m_floor" = xyes; then : | |
17203 | cat >>confdefs.h <<_ACEOF | |
17204 | #define HAVE_LIBM 1 | |
17205 | _ACEOF | |
17206 | ||
17207 | LIBS="-lm $LIBS" | |
17208 | ||
17209 | fi | |
17210 | ||
17211 | for ac_func in floor ceil fmod | |
17212 | do : | |
17213 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17214 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
17215 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
17216 | cat >>confdefs.h <<_ACEOF | |
17217 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17218 | _ACEOF | |
17219 | ||
17220 | fi | |
17221 | done | |
17222 | ||
17223 | ||
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5 | |
17225 | $as_echo_n "checking for SIGALRM... " >&6; } | |
17226 | if ${ac_cv_signal_SIGALRM+:} false; then : | |
17227 | $as_echo_n "(cached) " >&6 | |
17228 | else | |
17229 | ||
17230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17231 | /* end confdefs.h. */ | |
17232 | ||
17233 | #include <signal.h> | |
17234 | ||
17235 | ||
17236 | int | |
17237 | main () | |
17238 | { | |
17239 | signal(SIGALRM, SIG_DFL) ; | |
17240 | ; | |
17241 | return 0; | |
17242 | } | |
17243 | _ACEOF | |
17244 | if ac_fn_c_try_link "$LINENO"; then : | |
17245 | ac_cv_signal_SIGALRM=yes | |
17246 | else | |
17247 | ac_cv_signal_SIGALRM=no | |
17248 | fi | |
17249 | rm -f core conftest.err conftest.$ac_objext \ | |
17250 | conftest$ac_exeext conftest.$ac_ext | |
17251 | ||
17252 | ||
17253 | fi | |
17254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5 | |
17255 | $as_echo "$ac_cv_signal_SIGALRM" >&6; } | |
17256 | ||
17257 | if test "$ac_cv_signal_SIGALRM" = yes; then | |
17258 | ||
17259 | $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h | |
17260 | ||
17261 | fi | |
17262 | ||
17263 | ||
17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5 | |
17265 | $as_echo_n "checking for lrint... " >&6; } | |
17266 | if ${ac_cv_c99_lrint+:} false; then : | |
17267 | $as_echo_n "(cached) " >&6 | |
17268 | else | |
17269 | ||
17270 | lrint_save_CFLAGS=$CFLAGS | |
17271 | CFLAGS="-lm" | |
17272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17273 | /* end confdefs.h. */ | |
17274 | ||
17275 | #define _ISOC9X_SOURCE 1 | |
17276 | #define _ISOC99_SOURCE 1 | |
17277 | #define __USE_ISOC99 1 | |
17278 | #define __USE_ISOC9X 1 | |
17279 | ||
17280 | #include <math.h> | |
17281 | ||
17282 | int | |
17283 | main () | |
17284 | { | |
17285 | if (!lrint(3.14159)) lrint(2.7183); | |
17286 | ; | |
17287 | return 0; | |
17288 | } | |
17289 | _ACEOF | |
17290 | if ac_fn_c_try_link "$LINENO"; then : | |
17291 | ac_cv_c99_lrint=yes | |
17292 | else | |
17293 | ac_cv_c99_lrint=no | |
17294 | fi | |
17295 | rm -f core conftest.err conftest.$ac_objext \ | |
17296 | conftest$ac_exeext conftest.$ac_ext | |
17297 | ||
17298 | CFLAGS=$lrint_save_CFLAGS | |
17299 | ||
17300 | ||
17301 | fi | |
17302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5 | |
17303 | $as_echo "$ac_cv_c99_lrint" >&6; } | |
17304 | ||
17305 | if test "$ac_cv_c99_lrint" = yes; then | |
17306 | ||
17307 | $as_echo "#define HAVE_LRINT 1" >>confdefs.h | |
17308 | ||
17309 | fi | |
17310 | ||
17311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5 | |
17312 | $as_echo_n "checking for lrintf... " >&6; } | |
17313 | if ${ac_cv_c99_lrintf+:} false; then : | |
17314 | $as_echo_n "(cached) " >&6 | |
17315 | else | |
17316 | ||
17317 | lrintf_save_CFLAGS=$CFLAGS | |
17318 | CFLAGS="-lm" | |
17319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17320 | /* end confdefs.h. */ | |
17321 | ||
17322 | #define _ISOC9X_SOURCE 1 | |
17323 | #define _ISOC99_SOURCE 1 | |
17324 | #define __USE_ISOC99 1 | |
17325 | #define __USE_ISOC9X 1 | |
17326 | ||
17327 | #include <math.h> | |
17328 | ||
17329 | int | |
17330 | main () | |
17331 | { | |
17332 | if (!lrintf(3.14159)) lrintf(2.7183); | |
17333 | ; | |
17334 | return 0; | |
17335 | } | |
17336 | _ACEOF | |
17337 | if ac_fn_c_try_link "$LINENO"; then : | |
17338 | ac_cv_c99_lrintf=yes | |
17339 | else | |
17340 | ac_cv_c99_lrintf=no | |
17341 | fi | |
17342 | rm -f core conftest.err conftest.$ac_objext \ | |
17343 | conftest$ac_exeext conftest.$ac_ext | |
17344 | ||
17345 | CFLAGS=$lrintf_save_CFLAGS | |
17346 | ||
17347 | ||
17348 | fi | |
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5 | |
17350 | $as_echo "$ac_cv_c99_lrintf" >&6; } | |
17351 | ||
17352 | if test "$ac_cv_c99_lrintf" = yes; then | |
17353 | ||
17354 | $as_echo "#define HAVE_LRINTF 1" >>confdefs.h | |
17355 | ||
17356 | fi | |
17357 | ||
17358 | # AC_C99_FUNC_LLRINT Don't need this (yet?). | |
17359 | ||
17360 | case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in | |
17361 | xyesyes) | |
17362 | ;; | |
17363 | *) | |
17364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5 | |
17365 | $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;} | |
17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5 | |
17367 | $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;} | |
17368 | ;; | |
17369 | esac | |
17370 | ||
17371 | #==================================================================================== | |
17372 | # Determine if the processor can do clipping on float to int conversions. | |
17373 | ||
17374 | if test x$ac_arg_cpu_clip = "xY" ; then | |
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5 | |
17376 | $as_echo_n "checking processor clipping capabilities... " >&6; } | |
17377 | if ${ac_cv_c_clip_type+:} false; then : | |
17378 | $as_echo_n "(cached) " >&6 | |
17379 | else | |
17380 | # Initialize to unknown | |
17381 | ac_cv_c_clip_positive=unknown | |
17382 | ac_cv_c_clip_negative=unknown | |
17383 | ||
17384 | ||
17385 | if test $ac_cv_c_clip_positive = unknown ; then | |
17386 | if test "$cross_compiling" = yes; then : | |
17387 | ac_cv_c_clip_positive=unknown | |
17388 | ||
17389 | else | |
17390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17391 | /* end confdefs.h. */ | |
17392 | ||
17393 | #define _ISOC9X_SOURCE 1 | |
17394 | #define _ISOC99_SOURCE 1 | |
17395 | #define __USE_ISOC99 1 | |
17396 | #define __USE_ISOC9X 1 | |
17397 | #include <math.h> | |
17398 | int main (void) | |
17399 | { double fval ; | |
17400 | int k, ival ; | |
17401 | ||
17402 | fval = 1.0 * 0x7FFFFFFF ; | |
17403 | for (k = 0 ; k < 100 ; k++) | |
17404 | { ival = (lrint (fval)) >> 24 ; | |
17405 | if (ival != 127) | |
17406 | return 1 ; | |
17407 | ||
17408 | fval *= 1.2499999 ; | |
17409 | } ; | |
17410 | ||
17411 | return 0 ; | |
17412 | } | |
17413 | ||
17414 | _ACEOF | |
17415 | if ac_fn_c_try_run "$LINENO"; then : | |
17416 | ac_cv_c_clip_positive=yes | |
17417 | else | |
17418 | ac_cv_c_clip_positive=no | |
17419 | fi | |
17420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17421 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17422 | fi | |
17423 | ||
17424 | ||
17425 | if test "$cross_compiling" = yes; then : | |
17426 | ac_cv_c_clip_negative=unknown | |
17427 | ||
17428 | else | |
17429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17430 | /* end confdefs.h. */ | |
17431 | ||
17432 | #define _ISOC9X_SOURCE 1 | |
17433 | #define _ISOC99_SOURCE 1 | |
17434 | #define __USE_ISOC99 1 | |
17435 | #define __USE_ISOC9X 1 | |
17436 | #include <math.h> | |
17437 | int main (void) | |
17438 | { double fval ; | |
17439 | int k, ival ; | |
17440 | ||
17441 | fval = -8.0 * 0x10000000 ; | |
17442 | for (k = 0 ; k < 100 ; k++) | |
17443 | { ival = (lrint (fval)) >> 24 ; | |
17444 | if (ival != -128) | |
17445 | return 1 ; | |
17446 | ||
17447 | fval *= 1.2499999 ; | |
17448 | } ; | |
17449 | ||
17450 | return 0 ; | |
17451 | } | |
17452 | ||
17453 | _ACEOF | |
17454 | if ac_fn_c_try_run "$LINENO"; then : | |
17455 | ac_cv_c_clip_negative=yes | |
17456 | else | |
17457 | ac_cv_c_clip_negative=no | |
17458 | fi | |
17459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17460 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17461 | fi | |
17462 | ||
17463 | fi | |
17464 | ||
17465 | if test $ac_cv_c_clip_positive = yes ; then | |
17466 | ac_cv_c_clip_positive=1 | |
17467 | else | |
17468 | ac_cv_c_clip_positive=0 | |
17469 | fi | |
17470 | ||
17471 | if test $ac_cv_c_clip_negative = yes ; then | |
17472 | ac_cv_c_clip_negative=1 | |
17473 | else | |
17474 | ac_cv_c_clip_negative=0 | |
17475 | fi | |
17476 | ||
17477 | ||
17478 | case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in | |
17479 | "00") | |
17480 | ac_cv_c_clip_type="none" | |
17481 | ;; | |
17482 | "10") | |
17483 | ac_cv_c_clip_type="positive" | |
17484 | ;; | |
17485 | "01") | |
17486 | ac_cv_c_clip_type="negative" | |
17487 | ;; | |
17488 | "11") | |
17489 | ac_cv_c_clip_type="both" | |
17490 | ;; | |
17491 | esac | |
17492 | ||
17493 | ||
17494 | ||
17495 | fi | |
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5 | |
17497 | $as_echo "$ac_cv_c_clip_type" >&6; } | |
17498 | ||
17499 | ||
17500 | ||
17501 | else | |
17502 | echo "checking processor clipping capabilities... disabled" | |
17503 | ac_cv_c_clip_positive=0 | |
17504 | ac_cv_c_clip_negative=0 | |
17505 | fi | |
17506 | ||
17507 | ||
17508 | cat >>confdefs.h <<_ACEOF | |
17509 | #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive} | |
17510 | _ACEOF | |
17511 | ||
17512 | ||
17513 | cat >>confdefs.h <<_ACEOF | |
17514 | #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative} | |
17515 | _ACEOF | |
17516 | ||
17517 | ||
17518 | #==================================================================================== | |
17519 | # Check for libsndfile which is required for the test and example programs. | |
17520 | ||
17521 | # Check whether --enable-sndfile was given. | |
17522 | if test "${enable_sndfile+set}" = set; then : | |
17523 | enableval=$enable_sndfile; enable_sndfile=$enableval | |
17524 | else | |
17525 | enable_sndfile=yes | |
17526 | fi | |
17527 | ||
17528 | ||
17529 | # Check for pkg-config outside the if statement. | |
17530 | ||
17531 | ||
17532 | ||
17533 | ||
17534 | ||
17535 | ||
17536 | ||
17537 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
17538 | if test -n "$ac_tool_prefix"; then | |
17539 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
17540 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17542 | $as_echo_n "checking for $ac_word... " >&6; } | |
17543 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
17544 | $as_echo_n "(cached) " >&6 | |
17545 | else | |
17546 | case $PKG_CONFIG in | |
17547 | [\\/]* | ?:[\\/]*) | |
17548 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
17549 | ;; | |
17550 | *) | |
17551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17552 | for as_dir in $PATH | |
17553 | do | |
17554 | IFS=$as_save_IFS | |
17555 | test -z "$as_dir" && as_dir=. | |
17556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
17558 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
17559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17560 | break 2 | |
17561 | fi | |
17562 | done | |
17563 | done | |
17564 | IFS=$as_save_IFS | |
17565 | ||
17566 | ;; | |
17567 | esac | |
17568 | fi | |
17569 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
17570 | if test -n "$PKG_CONFIG"; then | |
17571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
17572 | $as_echo "$PKG_CONFIG" >&6; } | |
17573 | else | |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17575 | $as_echo "no" >&6; } | |
17576 | fi | |
17577 | ||
17578 | ||
17579 | fi | |
17580 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
17581 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
17582 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
17583 | set dummy pkg-config; ac_word=$2 | |
17584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17585 | $as_echo_n "checking for $ac_word... " >&6; } | |
17586 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
17587 | $as_echo_n "(cached) " >&6 | |
17588 | else | |
17589 | case $ac_pt_PKG_CONFIG in | |
17590 | [\\/]* | ?:[\\/]*) | |
17591 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
17592 | ;; | |
17593 | *) | |
17594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17595 | for as_dir in $PATH | |
17596 | do | |
17597 | IFS=$as_save_IFS | |
17598 | test -z "$as_dir" && as_dir=. | |
17599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
17601 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
17602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17603 | break 2 | |
17604 | fi | |
17605 | done | |
17606 | done | |
17607 | IFS=$as_save_IFS | |
17608 | ||
17609 | ;; | |
17610 | esac | |
17611 | fi | |
17612 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
17613 | if test -n "$ac_pt_PKG_CONFIG"; then | |
17614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
17615 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
17616 | else | |
17617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17618 | $as_echo "no" >&6; } | |
17619 | fi | |
17620 | ||
17621 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
17622 | PKG_CONFIG="" | |
17623 | else | |
17624 | case $cross_compiling:$ac_tool_warned in | |
17625 | yes:) | |
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
17627 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
17628 | ac_tool_warned=yes ;; | |
17629 | esac | |
17630 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
17631 | fi | |
17632 | else | |
17633 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
17634 | fi | |
17635 | ||
17636 | fi | |
17637 | if test -n "$PKG_CONFIG"; then | |
17638 | _pkg_min_version=0.9.0 | |
17639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
17640 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
17641 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17643 | $as_echo "yes" >&6; } | |
17644 | else | |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17646 | $as_echo "no" >&6; } | |
17647 | PKG_CONFIG="" | |
17648 | fi | |
17649 | fi | |
17650 | ||
17651 | if test "x$enable_sndfile" = "xyes"; then | |
17652 | ||
17653 | pkg_failed=no | |
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 | |
17655 | $as_echo_n "checking for SNDFILE... " >&6; } | |
17656 | ||
17657 | if test -n "$SNDFILE_CFLAGS"; then | |
17658 | pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" | |
17659 | elif test -n "$PKG_CONFIG"; then | |
17660 | if test -n "$PKG_CONFIG" && \ | |
17661 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5 | |
17662 | ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5 | |
17663 | ac_status=$? | |
17664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17665 | test $ac_status = 0; }; then | |
17666 | pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null` | |
17667 | test "x$?" != "x0" && pkg_failed=yes | |
17668 | else | |
17669 | pkg_failed=yes | |
17670 | fi | |
17671 | else | |
17672 | pkg_failed=untried | |
17673 | fi | |
17674 | if test -n "$SNDFILE_LIBS"; then | |
17675 | pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" | |
17676 | elif test -n "$PKG_CONFIG"; then | |
17677 | if test -n "$PKG_CONFIG" && \ | |
17678 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5 | |
17679 | ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5 | |
17680 | ac_status=$? | |
17681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17682 | test $ac_status = 0; }; then | |
17683 | pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null` | |
17684 | test "x$?" != "x0" && pkg_failed=yes | |
17685 | else | |
17686 | pkg_failed=yes | |
17687 | fi | |
17688 | else | |
17689 | pkg_failed=untried | |
17690 | fi | |
17691 | ||
17692 | ||
17693 | ||
17694 | if test $pkg_failed = yes; then | |
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17696 | $as_echo "no" >&6; } | |
17697 | ||
17698 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17699 | _pkg_short_errors_supported=yes | |
17700 | else | |
17701 | _pkg_short_errors_supported=no | |
17702 | fi | |
17703 | if test $_pkg_short_errors_supported = yes; then | |
17704 | SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1` | |
17705 | else | |
17706 | SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1` | |
17707 | fi | |
17708 | # Put the nasty error message in config.log where it belongs | |
17709 | echo "$SNDFILE_PKG_ERRORS" >&5 | |
17710 | ||
17711 | ac_cv_sndfile=0 | |
17712 | elif test $pkg_failed = untried; then | |
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17714 | $as_echo "no" >&6; } | |
17715 | ac_cv_sndfile=0 | |
17716 | else | |
17717 | SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS | |
17718 | SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS | |
17719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17720 | $as_echo "yes" >&6; } | |
17721 | ac_cv_sndfile=1 | |
17722 | fi | |
17723 | else | |
17724 | ac_cv_sndfile=0 | |
17725 | fi | |
17726 | ||
17727 | ||
17728 | cat >>confdefs.h <<_ACEOF | |
17729 | #define HAVE_SNDFILE $ac_cv_sndfile | |
17730 | _ACEOF | |
17731 | ||
17732 | ||
17733 | if test x$ac_cv_sndfile = x1 ; then | |
17734 | ac_cv_sndfile=yes | |
17735 | HAVE_SNDFILE=1 | |
17736 | else | |
17737 | ac_cv_sndfile=no | |
17738 | HAVE_SNDFILE=0 | |
17739 | fi | |
17740 | ||
17741 | #==================================================================================== | |
17742 | # Check for ALSA. | |
17743 | ||
17744 | ALSA_LIBS="" | |
17745 | ||
17746 | if test x$enable_alsa != xno ; then | |
17747 | for ac_header in alsa/asoundlib.h | |
17748 | do : | |
17749 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" | |
17750 | if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : | |
17751 | cat >>confdefs.h <<_ACEOF | |
17752 | #define HAVE_ALSA_ASOUNDLIB_H 1 | |
17753 | _ACEOF | |
17754 | ||
17755 | fi | |
17756 | ||
17757 | done | |
17758 | ||
17759 | if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then | |
17760 | ALSA_LIBS="-lasound" | |
17761 | enable_alsa=yes | |
17762 | fi | |
17763 | fi | |
17764 | ||
17765 | #==================================================================================== | |
17766 | # Check for libfftw3 which is required for the test and example programs. | |
17767 | ||
17768 | if test $ac_arg_fftw = "Y" ; then | |
17769 | ||
17770 | pkg_failed=no | |
17771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5 | |
17772 | $as_echo_n "checking for FFTW3... " >&6; } | |
17773 | ||
17774 | if test -n "$FFTW3_CFLAGS"; then | |
17775 | pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS" | |
17776 | elif test -n "$PKG_CONFIG"; then | |
17777 | if test -n "$PKG_CONFIG" && \ | |
17778 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5 | |
17779 | ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5 | |
17780 | ac_status=$? | |
17781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17782 | test $ac_status = 0; }; then | |
17783 | pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null` | |
17784 | test "x$?" != "x0" && pkg_failed=yes | |
17785 | else | |
17786 | pkg_failed=yes | |
17787 | fi | |
17788 | else | |
17789 | pkg_failed=untried | |
17790 | fi | |
17791 | if test -n "$FFTW3_LIBS"; then | |
17792 | pkg_cv_FFTW3_LIBS="$FFTW3_LIBS" | |
17793 | elif test -n "$PKG_CONFIG"; then | |
17794 | if test -n "$PKG_CONFIG" && \ | |
17795 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5 | |
17796 | ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5 | |
17797 | ac_status=$? | |
17798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17799 | test $ac_status = 0; }; then | |
17800 | pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null` | |
17801 | test "x$?" != "x0" && pkg_failed=yes | |
17802 | else | |
17803 | pkg_failed=yes | |
17804 | fi | |
17805 | else | |
17806 | pkg_failed=untried | |
17807 | fi | |
17808 | ||
17809 | ||
17810 | ||
17811 | if test $pkg_failed = yes; then | |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17813 | $as_echo "no" >&6; } | |
17814 | ||
17815 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17816 | _pkg_short_errors_supported=yes | |
17817 | else | |
17818 | _pkg_short_errors_supported=no | |
17819 | fi | |
17820 | if test $_pkg_short_errors_supported = yes; then | |
17821 | FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1` | |
17822 | else | |
17823 | FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1` | |
17824 | fi | |
17825 | # Put the nasty error message in config.log where it belongs | |
17826 | echo "$FFTW3_PKG_ERRORS" >&5 | |
17827 | ||
17828 | ac_cv_fftw3=0 | |
17829 | elif test $pkg_failed = untried; then | |
17830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17831 | $as_echo "no" >&6; } | |
17832 | ac_cv_fftw3=0 | |
17833 | else | |
17834 | FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS | |
17835 | FFTW3_LIBS=$pkg_cv_FFTW3_LIBS | |
17836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17837 | $as_echo "yes" >&6; } | |
17838 | ac_cv_fftw3=1 | |
17839 | fi | |
17840 | ||
17841 | cat >>confdefs.h <<_ACEOF | |
17842 | #define HAVE_FFTW3 $ac_cv_fftw3 | |
17843 | _ACEOF | |
17844 | ||
17845 | ||
17846 | if test x$ac_cv_fftw3 = x1 ; then | |
17847 | ac_cv_fftw3=yes | |
17848 | HAVE_FFTW3=1 | |
17849 | fi | |
17850 | fi | |
17851 | ||
17852 | if test x$ac_cv_fftw3 != xyes ; then | |
17853 | ac_cv_fftw3=no | |
17854 | HAVE_FFTW3=0 | |
17855 | fi | |
17856 | ||
17857 | #==================================================================================== | |
17858 | # GCC stuff. | |
17859 | ||
17860 | if test $ac_cv_c_compiler_gnu = yes ; then | |
17861 | CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith" | |
17862 | # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline" | |
17863 | if test "$ac_arg_gcc_opt" = "N" ; then | |
17864 | temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"` | |
17865 | CFLAGS=$temp_CFLAGS | |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5 | |
17867 | $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;} | |
17868 | fi | |
17869 | ||
17870 | # Disable -Wall for Apple Darwin/Rhapsody. | |
17871 | # System headers on these systems are broken. | |
17872 | case "$target_os" in | |
17873 | darwin* | rhapsody*) | |
17874 | temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"` | |
17875 | CFLAGS=$temp_CFLAGS | |
17876 | ;; | |
17877 | ||
17878 | linux*|kfreebsd*-gnu*|gnu*) | |
17879 | SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" | |
17880 | ;; | |
17881 | *) | |
17882 | ;; | |
17883 | esac | |
17884 | if test x$ac_arg_gcc_pipe != "xN" ; then | |
17885 | CFLAGS="$CFLAGS -pipe" | |
17886 | fi | |
17887 | ||
17888 | if test x$ac_arg_gcc_werror = "xyes" ; then | |
17889 | CFLAGS="-Werror $CFLAGS" | |
17890 | fi | |
17891 | ||
17892 | ||
17893 | $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h | |
17894 | ||
17895 | GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"` | |
17896 | ||
17897 | cat >>confdefs.h <<_ACEOF | |
17898 | #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION} | |
17899 | _ACEOF | |
17900 | ||
17901 | fi | |
17902 | ||
17903 | #==================================================================================== | |
17904 | # Find known target OS. | |
17905 | ||
17906 | OS_SPECIFIC_INCLUDES="" | |
17907 | os_is_win32=0 | |
17908 | ||
17909 | case "$target_os" in | |
17910 | darwin* | rhapsody*) | |
17911 | OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon" | |
17912 | OS_SPECIFIC_LINKS="-framework CoreAudio" | |
17913 | ;; | |
17914 | mingw32*) | |
17915 | OS_SPECIFIC_LINKS="-lwinmm" | |
17916 | os_is_win32=1 | |
17917 | ;; | |
17918 | *) | |
17919 | OS_SPECIFIC_INCLUDES="" | |
17920 | OS_SPECIFIC_LINKS="" | |
17921 | ;; | |
17922 | esac | |
17923 | ||
17924 | htmldocdir=$prefix/share/doc/libsamplerate0-dev/html | |
17925 | ||
17926 | if test $prefix = "NONE" ; then | |
17927 | htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html | |
17928 | else | |
17929 | htmldocdir=$prefix/share/doc/libsamplerate0-dev/html | |
17930 | fi | |
17931 | ||
17932 | #==================================================================================== | |
17933 | # Now use the information from the checking stage. | |
17934 | ||
17935 | ||
17936 | cat >>confdefs.h <<_ACEOF | |
17937 | #define OS_IS_WIN32 ${os_is_win32} | |
17938 | _ACEOF | |
17939 | ||
17940 | ||
17941 | ||
17942 | ||
17943 | ||
17944 | ||
17945 | ||
17946 | ||
17947 | ||
17948 | ||
17949 | ||
17950 | ||
17951 | ||
17952 | ||
17953 | ||
17954 | ||
17955 | ||
17956 | ||
17957 | ||
17958 | ||
17959 | ||
17960 | ||
17961 | ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc" | |
17962 | ||
17963 | cat >confcache <<\_ACEOF | |
17964 | # This file is a shell script that caches the results of configure | |
17965 | # tests run on this system so they can be shared between configure | |
17966 | # scripts and configure runs, see configure's option --config-cache. | |
17967 | # It is not useful on other systems. If it contains results you don't | |
17968 | # want to keep, you may remove or edit it. | |
17969 | # | |
17970 | # config.status only pays attention to the cache file if you give it | |
17971 | # the --recheck option to rerun configure. | |
17972 | # | |
17973 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17974 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17975 | # following values. | |
17976 | ||
17977 | _ACEOF | |
17978 | ||
17979 | # The following way of writing the cache mishandles newlines in values, | |
17980 | # but we know of no workaround that is simple, portable, and efficient. | |
17981 | # So, we kill variables containing newlines. | |
17982 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17983 | # and sets the high bit in the cache file unless we assign to the vars. | |
17984 | ( | |
17985 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17986 | eval ac_val=\$$ac_var | |
17987 | case $ac_val in #( | |
17988 | *${as_nl}*) | |
17989 | case $ac_var in #( | |
17990 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17991 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17992 | esac | |
17993 | case $ac_var in #( | |
17994 | _ | IFS | as_nl) ;; #( | |
17995 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17996 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17997 | esac ;; | |
17998 | esac | |
17999 | done | |
18000 | ||
18001 | (set) 2>&1 | | |
18002 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18003 | *${as_nl}ac_space=\ *) | |
18004 | # `set' does not quote correctly, so add quotes: double-quote | |
18005 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18006 | sed -n \ | |
18007 | "s/'/'\\\\''/g; | |
18008 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18009 | ;; #( | |
18010 | *) | |
18011 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18012 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18013 | ;; | |
18014 | esac | | |
18015 | sort | |
18016 | ) | | |
18017 | sed ' | |
18018 | /^ac_cv_env_/b end | |
18019 | t clear | |
18020 | :clear | |
18021 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18022 | t end | |
18023 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18024 | :end' >>confcache | |
18025 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18026 | if test -w "$cache_file"; then | |
18027 | if test "x$cache_file" != "x/dev/null"; then | |
18028 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
18029 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
18030 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
18031 | cat confcache >"$cache_file" | |
18032 | else | |
18033 | case $cache_file in #( | |
18034 | */* | ?:*) | |
18035 | mv -f confcache "$cache_file"$$ && | |
18036 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18037 | *) | |
18038 | mv -f confcache "$cache_file" ;; | |
18039 | esac | |
18040 | fi | |
18041 | fi | |
18042 | else | |
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
18044 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18045 | fi | |
18046 | fi | |
18047 | rm -f confcache | |
18048 | ||
18049 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18050 | # Let make expand exec_prefix. | |
18051 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18052 | ||
18053 | DEFS=-DHAVE_CONFIG_H | |
18054 | ||
18055 | ac_libobjs= | |
18056 | ac_ltlibobjs= | |
18057 | U= | |
18058 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18059 | # 1. Remove the extension, and $U if already installed. | |
18060 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18061 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18062 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18063 | # will be set to the directory where LIBOBJS objects are built. | |
18064 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18065 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
18066 | done | |
18067 | LIBOBJS=$ac_libobjs | |
18068 | ||
18069 | LTLIBOBJS=$ac_ltlibobjs | |
18070 | ||
18071 | ||
18072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
18073 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
18074 | if test -n "$am_sleep_pid"; then | |
18075 | # Hide warnings about reused PIDs. | |
18076 | wait $am_sleep_pid 2>/dev/null | |
18077 | fi | |
18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
18079 | $as_echo "done" >&6; } | |
18080 | if test -n "$EXEEXT"; then | |
18081 | am__EXEEXT_TRUE= | |
18082 | am__EXEEXT_FALSE='#' | |
18083 | else | |
18084 | am__EXEEXT_TRUE='#' | |
18085 | am__EXEEXT_FALSE= | |
18086 | fi | |
18087 | ||
18088 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
18089 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
18090 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18091 | fi | |
18092 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
18093 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
18094 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18095 | fi | |
18096 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
18097 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
18098 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18099 | fi | |
18100 | ||
18101 | : "${CONFIG_STATUS=./config.status}" | |
18102 | ac_write_fail=0 | |
18103 | ac_clean_files_save=$ac_clean_files | |
18104 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
18106 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18107 | as_write_fail=0 | |
18108 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
18109 | #! $SHELL | |
18110 | # Generated by $as_me. | |
18111 | # Run this file to recreate the current configuration. | |
18112 | # Compiler output produced by configure, useful for debugging | |
18113 | # configure, is in config.log if it exists. | |
18114 | ||
18115 | debug=false | |
18116 | ac_cs_recheck=false | |
18117 | ac_cs_silent=false | |
18118 | ||
18119 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18120 | export SHELL | |
18121 | _ASEOF | |
18122 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18123 | ## -------------------- ## | |
18124 | ## M4sh Initialization. ## | |
18125 | ## -------------------- ## | |
18126 | ||
18127 | # Be more Bourne compatible | |
18128 | DUALCASE=1; export DUALCASE # for MKS sh | |
18129 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18130 | emulate sh | |
18131 | NULLCMD=: | |
18132 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18133 | # is contrary to our usage. Disable this feature. | |
18134 | alias -g '${1+"$@"}'='"$@"' | |
18135 | setopt NO_GLOB_SUBST | |
18136 | else | |
18137 | case `(set -o) 2>/dev/null` in #( | |
18138 | *posix*) : | |
18139 | set -o posix ;; #( | |
18140 | *) : | |
18141 | ;; | |
18142 | esac | |
18143 | fi | |
18144 | ||
18145 | ||
18146 | as_nl=' | |
18147 | ' | |
18148 | export as_nl | |
18149 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18150 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18151 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18152 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18153 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18154 | # but without wasting forks for bash or zsh. | |
18155 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18156 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18157 | as_echo='print -r --' | |
18158 | as_echo_n='print -rn --' | |
18159 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18160 | as_echo='printf %s\n' | |
18161 | as_echo_n='printf %s' | |
18162 | else | |
18163 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18164 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18165 | as_echo_n='/usr/ucb/echo -n' | |
18166 | else | |
18167 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18168 | as_echo_n_body='eval | |
18169 | arg=$1; | |
18170 | case $arg in #( | |
18171 | *"$as_nl"*) | |
18172 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18173 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18174 | esac; | |
18175 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18176 | ' | |
18177 | export as_echo_n_body | |
18178 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18179 | fi | |
18180 | export as_echo_body | |
18181 | as_echo='sh -c $as_echo_body as_echo' | |
18182 | fi | |
18183 | ||
18184 | # The user is always right. | |
18185 | if test "${PATH_SEPARATOR+set}" != set; then | |
18186 | PATH_SEPARATOR=: | |
18187 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18188 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18189 | PATH_SEPARATOR=';' | |
18190 | } | |
18191 | fi | |
18192 | ||
18193 | ||
18194 | # IFS | |
18195 | # We need space, tab and new line, in precisely that order. Quoting is | |
18196 | # there to prevent editors from complaining about space-tab. | |
18197 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18198 | # splitting by setting IFS to empty value.) | |
18199 | IFS=" "" $as_nl" | |
18200 | ||
18201 | # Find who we are. Look in the path if we contain no directory separator. | |
18202 | as_myself= | |
18203 | case $0 in #(( | |
18204 | *[\\/]* ) as_myself=$0 ;; | |
18205 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18206 | for as_dir in $PATH | |
18207 | do | |
18208 | IFS=$as_save_IFS | |
18209 | test -z "$as_dir" && as_dir=. | |
18210 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18211 | done | |
18212 | IFS=$as_save_IFS | |
18213 | ||
18214 | ;; | |
18215 | esac | |
18216 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18217 | # in which case we are not to be found in the path. | |
18218 | if test "x$as_myself" = x; then | |
18219 | as_myself=$0 | |
18220 | fi | |
18221 | if test ! -f "$as_myself"; then | |
18222 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18223 | exit 1 | |
18224 | fi | |
18225 | ||
18226 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18227 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18228 | # suppresses any "Segmentation fault" message there. '((' could | |
18229 | # trigger a bug in pdksh 5.2.14. | |
18230 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18231 | do eval test x\${$as_var+set} = xset \ | |
18232 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18233 | done | |
18234 | PS1='$ ' | |
18235 | PS2='> ' | |
18236 | PS4='+ ' | |
18237 | ||
18238 | # NLS nuisances. | |
18239 | LC_ALL=C | |
18240 | export LC_ALL | |
18241 | LANGUAGE=C | |
18242 | export LANGUAGE | |
18243 | ||
18244 | # CDPATH. | |
18245 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18246 | ||
18247 | ||
18248 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
18249 | # ---------------------------------------- | |
18250 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
18251 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
18252 | # script with STATUS, using 1 if that was 0. | |
18253 | as_fn_error () | |
18254 | { | |
18255 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
18256 | if test "$4"; then | |
18257 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18258 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
18259 | fi | |
18260 | $as_echo "$as_me: error: $2" >&2 | |
18261 | as_fn_exit $as_status | |
18262 | } # as_fn_error | |
18263 | ||
18264 | ||
18265 | # as_fn_set_status STATUS | |
18266 | # ----------------------- | |
18267 | # Set $? to STATUS, without forking. | |
18268 | as_fn_set_status () | |
18269 | { | |
18270 | return $1 | |
18271 | } # as_fn_set_status | |
18272 | ||
18273 | # as_fn_exit STATUS | |
18274 | # ----------------- | |
18275 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18276 | as_fn_exit () | |
18277 | { | |
18278 | set +e | |
18279 | as_fn_set_status $1 | |
18280 | exit $1 | |
18281 | } # as_fn_exit | |
18282 | ||
18283 | # as_fn_unset VAR | |
18284 | # --------------- | |
18285 | # Portably unset VAR. | |
18286 | as_fn_unset () | |
18287 | { | |
18288 | { eval $1=; unset $1;} | |
18289 | } | |
18290 | as_unset=as_fn_unset | |
18291 | # as_fn_append VAR VALUE | |
18292 | # ---------------------- | |
18293 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18294 | # advantage of any shell optimizations that allow amortized linear growth over | |
18295 | # repeated appends, instead of the typical quadratic growth present in naive | |
18296 | # implementations. | |
18297 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18298 | eval 'as_fn_append () | |
18299 | { | |
18300 | eval $1+=\$2 | |
18301 | }' | |
18302 | else | |
18303 | as_fn_append () | |
18304 | { | |
18305 | eval $1=\$$1\$2 | |
18306 | } | |
18307 | fi # as_fn_append | |
18308 | ||
18309 | # as_fn_arith ARG... | |
18310 | # ------------------ | |
18311 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18312 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18313 | # must be portable across $(()) and expr. | |
18314 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18315 | eval 'as_fn_arith () | |
18316 | { | |
18317 | as_val=$(( $* )) | |
18318 | }' | |
18319 | else | |
18320 | as_fn_arith () | |
18321 | { | |
18322 | as_val=`expr "$@" || test $? -eq 1` | |
18323 | } | |
18324 | fi # as_fn_arith | |
18325 | ||
18326 | ||
18327 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18328 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18329 | as_expr=expr | |
18330 | else | |
18331 | as_expr=false | |
18332 | fi | |
18333 | ||
18334 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
18335 | as_basename=basename | |
18336 | else | |
18337 | as_basename=false | |
18338 | fi | |
18339 | ||
18340 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
18341 | as_dirname=dirname | |
18342 | else | |
18343 | as_dirname=false | |
18344 | fi | |
18345 | ||
18346 | as_me=`$as_basename -- "$0" || | |
18347 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
18348 | X"$0" : 'X\(//\)$' \| \ | |
18349 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
18350 | $as_echo X/"$0" | | |
18351 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18352 | s//\1/ | |
18353 | q | |
18354 | } | |
18355 | /^X\/\(\/\/\)$/{ | |
18356 | s//\1/ | |
18357 | q | |
18358 | } | |
18359 | /^X\/\(\/\).*/{ | |
18360 | s//\1/ | |
18361 | q | |
18362 | } | |
18363 | s/.*/./; q'` | |
18364 | ||
18365 | # Avoid depending upon Character Ranges. | |
18366 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18367 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18368 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18369 | as_cr_digits='0123456789' | |
18370 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18371 | ||
18372 | ECHO_C= ECHO_N= ECHO_T= | |
18373 | case `echo -n x` in #((((( | |
18374 | -n*) | |
18375 | case `echo 'xy\c'` in | |
18376 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18377 | xy) ECHO_C='\c';; | |
18378 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18379 | ECHO_T=' ';; | |
18380 | esac;; | |
18381 | *) | |
18382 | ECHO_N='-n';; | |
18383 | esac | |
18384 | ||
18385 | rm -f conf$$ conf$$.exe conf$$.file | |
18386 | if test -d conf$$.dir; then | |
18387 | rm -f conf$$.dir/conf$$.file | |
18388 | else | |
18389 | rm -f conf$$.dir | |
18390 | mkdir conf$$.dir 2>/dev/null | |
18391 | fi | |
18392 | if (echo >conf$$.file) 2>/dev/null; then | |
18393 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18394 | as_ln_s='ln -s' | |
18395 | # ... but there are two gotchas: | |
18396 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18397 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18398 | # In both cases, we have to default to `cp -pR'. | |
18399 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18400 | as_ln_s='cp -pR' | |
18401 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18402 | as_ln_s=ln | |
18403 | else | |
18404 | as_ln_s='cp -pR' | |
18405 | fi | |
18406 | else | |
18407 | as_ln_s='cp -pR' | |
18408 | fi | |
18409 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
18410 | rmdir conf$$.dir 2>/dev/null | |
18411 | ||
18412 | ||
18413 | # as_fn_mkdir_p | |
18414 | # ------------- | |
18415 | # Create "$as_dir" as a directory, including parents if necessary. | |
18416 | as_fn_mkdir_p () | |
18417 | { | |
18418 | ||
18419 | case $as_dir in #( | |
18420 | -*) as_dir=./$as_dir;; | |
18421 | esac | |
18422 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18423 | as_dirs= | |
18424 | while :; do | |
18425 | case $as_dir in #( | |
18426 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18427 | *) as_qdir=$as_dir;; | |
18428 | esac | |
18429 | as_dirs="'$as_qdir' $as_dirs" | |
18430 | as_dir=`$as_dirname -- "$as_dir" || | |
18431 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18432 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18433 | X"$as_dir" : 'X\(//\)$' \| \ | |
18434 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18435 | $as_echo X"$as_dir" | | |
18436 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18437 | s//\1/ | |
18438 | q | |
18439 | } | |
18440 | /^X\(\/\/\)[^/].*/{ | |
18441 | s//\1/ | |
18442 | q | |
18443 | } | |
18444 | /^X\(\/\/\)$/{ | |
18445 | s//\1/ | |
18446 | q | |
18447 | } | |
18448 | /^X\(\/\).*/{ | |
18449 | s//\1/ | |
18450 | q | |
18451 | } | |
18452 | s/.*/./; q'` | |
18453 | test -d "$as_dir" && break | |
18454 | done | |
18455 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18456 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
18457 | ||
18458 | ||
18459 | } # as_fn_mkdir_p | |
18460 | if mkdir -p . 2>/dev/null; then | |
18461 | as_mkdir_p='mkdir -p "$as_dir"' | |
18462 | else | |
18463 | test -d ./-p && rmdir ./-p | |
18464 | as_mkdir_p=false | |
18465 | fi | |
18466 | ||
18467 | ||
18468 | # as_fn_executable_p FILE | |
18469 | # ----------------------- | |
18470 | # Test if FILE is an executable regular file. | |
18471 | as_fn_executable_p () | |
18472 | { | |
18473 | test -f "$1" && test -x "$1" | |
18474 | } # as_fn_executable_p | |
18475 | as_test_x='test -x' | |
18476 | as_executable_p=as_fn_executable_p | |
18477 | ||
18478 | # Sed expression to map a string onto a valid CPP name. | |
18479 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18480 | ||
18481 | # Sed expression to map a string onto a valid variable name. | |
18482 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18483 | ||
18484 | ||
18485 | exec 6>&1 | |
18486 | ## ----------------------------------- ## | |
18487 | ## Main body of $CONFIG_STATUS script. ## | |
18488 | ## ----------------------------------- ## | |
18489 | _ASEOF | |
18490 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18491 | ||
18492 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18493 | # Save the log message, to keep $0 and so on meaningful, and to | |
18494 | # report actual input values of CONFIG_FILES etc. instead of their | |
18495 | # values after options handling. | |
18496 | ac_log=" | |
18497 | This file was extended by libsamplerate $as_me 0.1.9, which was | |
18498 | generated by GNU Autoconf 2.69. Invocation command line was | |
18499 | ||
18500 | CONFIG_FILES = $CONFIG_FILES | |
18501 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18502 | CONFIG_LINKS = $CONFIG_LINKS | |
18503 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18504 | $ $0 $@ | |
18505 | ||
18506 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
18507 | " | |
18508 | ||
18509 | _ACEOF | |
18510 | ||
18511 | case $ac_config_files in *" | |
18512 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18513 | esac | |
18514 | ||
18515 | case $ac_config_headers in *" | |
18516 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18517 | esac | |
18518 | ||
18519 | ||
18520 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18521 | # Files that config.status was made for. | |
18522 | config_files="$ac_config_files" | |
18523 | config_headers="$ac_config_headers" | |
18524 | config_commands="$ac_config_commands" | |
18525 | ||
18526 | _ACEOF | |
18527 | ||
18528 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18529 | ac_cs_usage="\ | |
18530 | \`$as_me' instantiates files and other configuration actions | |
18531 | from templates according to the current configuration. Unless the files | |
18532 | and actions are specified as TAGs, all are instantiated by default. | |
18533 | ||
18534 | Usage: $0 [OPTION]... [TAG]... | |
18535 | ||
18536 | -h, --help print this help, then exit | |
18537 | -V, --version print version number and configuration settings, then exit | |
18538 | --config print configuration, then exit | |
18539 | -q, --quiet, --silent | |
18540 | do not print progress messages | |
18541 | -d, --debug don't remove temporary files | |
18542 | --recheck update $as_me by reconfiguring in the same conditions | |
18543 | --file=FILE[:TEMPLATE] | |
18544 | instantiate the configuration file FILE | |
18545 | --header=FILE[:TEMPLATE] | |
18546 | instantiate the configuration header FILE | |
18547 | ||
18548 | Configuration files: | |
18549 | $config_files | |
18550 | ||
18551 | Configuration headers: | |
18552 | $config_headers | |
18553 | ||
18554 | Configuration commands: | |
18555 | $config_commands | |
18556 | ||
18557 | Report bugs to <erikd@mega-nerd.com>. | |
18558 | libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>." | |
18559 | ||
18560 | _ACEOF | |
18561 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18562 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
18563 | ac_cs_version="\\ | |
18564 | libsamplerate config.status 0.1.9 | |
18565 | configured by $0, generated by GNU Autoconf 2.69, | |
18566 | with options \\"\$ac_cs_config\\" | |
18567 | ||
18568 | Copyright (C) 2012 Free Software Foundation, Inc. | |
18569 | This config.status script is free software; the Free Software Foundation | |
18570 | gives unlimited permission to copy, distribute and modify it." | |
18571 | ||
18572 | ac_pwd='$ac_pwd' | |
18573 | srcdir='$srcdir' | |
18574 | INSTALL='$INSTALL' | |
18575 | MKDIR_P='$MKDIR_P' | |
18576 | AWK='$AWK' | |
18577 | test -n "\$AWK" || AWK=awk | |
18578 | _ACEOF | |
18579 | ||
18580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18581 | # The default lists apply if the user does not specify any file. | |
18582 | ac_need_defaults=: | |
18583 | while test $# != 0 | |
18584 | do | |
18585 | case $1 in | |
18586 | --*=?*) | |
18587 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18588 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
18589 | ac_shift=: | |
18590 | ;; | |
18591 | --*=) | |
18592 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18593 | ac_optarg= | |
18594 | ac_shift=: | |
18595 | ;; | |
18596 | *) | |
18597 | ac_option=$1 | |
18598 | ac_optarg=$2 | |
18599 | ac_shift=shift | |
18600 | ;; | |
18601 | esac | |
18602 | ||
18603 | case $ac_option in | |
18604 | # Handling of the options. | |
18605 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
18606 | ac_cs_recheck=: ;; | |
18607 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
18608 | $as_echo "$ac_cs_version"; exit ;; | |
18609 | --config | --confi | --conf | --con | --co | --c ) | |
18610 | $as_echo "$ac_cs_config"; exit ;; | |
18611 | --debug | --debu | --deb | --de | --d | -d ) | |
18612 | debug=: ;; | |
18613 | --file | --fil | --fi | --f ) | |
18614 | $ac_shift | |
18615 | case $ac_optarg in | |
18616 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18617 | '') as_fn_error $? "missing file argument" ;; | |
18618 | esac | |
18619 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
18620 | ac_need_defaults=false;; | |
18621 | --header | --heade | --head | --hea ) | |
18622 | $ac_shift | |
18623 | case $ac_optarg in | |
18624 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18625 | esac | |
18626 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
18627 | ac_need_defaults=false;; | |
18628 | --he | --h) | |
18629 | # Conflict between --help and --header | |
18630 | as_fn_error $? "ambiguous option: \`$1' | |
18631 | Try \`$0 --help' for more information.";; | |
18632 | --help | --hel | -h ) | |
18633 | $as_echo "$ac_cs_usage"; exit ;; | |
18634 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
18635 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18636 | ac_cs_silent=: ;; | |
18637 | ||
18638 | # This is an error. | |
18639 | -*) as_fn_error $? "unrecognized option: \`$1' | |
18640 | Try \`$0 --help' for more information." ;; | |
18641 | ||
18642 | *) as_fn_append ac_config_targets " $1" | |
18643 | ac_need_defaults=false ;; | |
18644 | ||
18645 | esac | |
18646 | shift | |
18647 | done | |
18648 | ||
18649 | ac_configure_extra_args= | |
18650 | ||
18651 | if $ac_cs_silent; then | |
18652 | exec 6>/dev/null | |
18653 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18654 | fi | |
18655 | ||
18656 | _ACEOF | |
18657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18658 | if \$ac_cs_recheck; then | |
18659 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
18660 | shift | |
18661 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18662 | CONFIG_SHELL='$SHELL' | |
18663 | export CONFIG_SHELL | |
18664 | exec "\$@" | |
18665 | fi | |
18666 | ||
18667 | _ACEOF | |
18668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18669 | exec 5>>config.log | |
18670 | { | |
18671 | echo | |
18672 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18673 | ## Running $as_me. ## | |
18674 | _ASBOX | |
18675 | $as_echo "$ac_log" | |
18676 | } >&5 | |
18677 | ||
18678 | _ACEOF | |
18679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18680 | # | |
18681 | # INIT-COMMANDS | |
18682 | # | |
18683 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18684 | ||
18685 | ||
18686 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18687 | # if CDPATH is set. | |
18688 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18689 | ||
18690 | sed_quote_subst='$sed_quote_subst' | |
18691 | double_quote_subst='$double_quote_subst' | |
18692 | delay_variable_subst='$delay_variable_subst' | |
18693 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18694 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18695 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18696 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18697 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18698 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18699 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
18700 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18701 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18702 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18703 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18704 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18705 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18706 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18707 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18708 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18709 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18710 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18711 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18712 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18713 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18714 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18715 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18716 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18717 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18718 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18719 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18720 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18721 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18722 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18723 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18724 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18725 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18726 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18727 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18728 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18729 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18730 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18731 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18732 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18733 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18734 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18735 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18736 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18737 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18738 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18739 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18740 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18741 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18742 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18743 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18744 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18745 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18746 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18747 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18748 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18749 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
18750 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18751 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18752 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
18753 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18754 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18755 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
18756 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18757 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18758 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18759 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18760 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18761 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18762 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18763 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18764 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18765 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18766 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18767 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18768 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18769 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18770 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18771 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18772 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18773 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18774 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18775 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18776 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18777 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18778 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18779 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18780 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18781 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18782 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18783 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18784 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18785 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18786 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18787 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18788 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18789 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18790 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18791 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18792 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18793 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18794 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18795 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18796 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18797 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18798 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18799 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18800 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18801 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18802 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18803 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18804 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18805 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18806 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18807 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18808 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18809 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18810 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18811 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18812 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18813 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18814 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18815 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18816 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18817 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18818 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18819 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18820 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
18821 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
18822 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18823 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18824 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18825 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18826 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18827 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18828 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18829 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18830 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18831 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18832 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18833 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18834 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18835 | LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' | |
18836 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18837 | reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' | |
18838 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18839 | reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18840 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18841 | old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18842 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18843 | compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' | |
18844 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18845 | GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' | |
18846 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18847 | lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' | |
18848 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18849 | lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' | |
18850 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18851 | lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' | |
18852 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18853 | lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' | |
18854 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18855 | lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' | |
18856 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18857 | archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' | |
18858 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18859 | enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' | |
18860 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18861 | export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' | |
18862 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18863 | whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' | |
18864 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18865 | compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' | |
18866 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18867 | old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18868 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18869 | old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18870 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18871 | archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18872 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18873 | archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18874 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18875 | module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18876 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18877 | module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18878 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18879 | with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' | |
18880 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18881 | allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' | |
18882 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18883 | no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' | |
18884 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18885 | hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' | |
18886 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18887 | hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' | |
18888 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18889 | hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' | |
18890 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18891 | hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' | |
18892 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18893 | hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' | |
18894 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18895 | hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' | |
18896 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18897 | hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' | |
18898 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18899 | inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' | |
18900 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18901 | link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' | |
18902 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18903 | always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' | |
18904 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18905 | export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18906 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18907 | exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' | |
18908 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18909 | include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' | |
18910 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18911 | prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18912 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18913 | postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' | |
18914 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18915 | file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' | |
18916 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18917 | hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' | |
18918 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18919 | compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`' | |
18920 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18921 | predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`' | |
18922 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18923 | postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`' | |
18924 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18925 | predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`' | |
18926 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18927 | postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`' | |
18928 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18929 | compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`' | |
18930 | ||
18931 | LTCC='$LTCC' | |
18932 | LTCFLAGS='$LTCFLAGS' | |
18933 | compiler='$compiler_DEFAULT' | |
18934 | ||
18935 | # A function that is used when there is no print builtin or printf. | |
18936 | func_fallback_echo () | |
18937 | { | |
18938 | eval 'cat <<_LTECHO_EOF | |
18939 | \$1 | |
18940 | _LTECHO_EOF' | |
18941 | } | |
18942 | ||
18943 | # Quote evaled strings. | |
18944 | for var in SHELL \ | |
18945 | ECHO \ | |
18946 | PATH_SEPARATOR \ | |
18947 | SED \ | |
18948 | GREP \ | |
18949 | EGREP \ | |
18950 | FGREP \ | |
18951 | LD \ | |
18952 | NM \ | |
18953 | LN_S \ | |
18954 | lt_SP2NL \ | |
18955 | lt_NL2SP \ | |
18956 | reload_flag \ | |
18957 | OBJDUMP \ | |
18958 | deplibs_check_method \ | |
18959 | file_magic_cmd \ | |
18960 | file_magic_glob \ | |
18961 | want_nocaseglob \ | |
18962 | DLLTOOL \ | |
18963 | sharedlib_from_linklib_cmd \ | |
18964 | AR \ | |
18965 | AR_FLAGS \ | |
18966 | archiver_list_spec \ | |
18967 | STRIP \ | |
18968 | RANLIB \ | |
18969 | CC \ | |
18970 | CFLAGS \ | |
18971 | compiler \ | |
18972 | lt_cv_sys_global_symbol_pipe \ | |
18973 | lt_cv_sys_global_symbol_to_cdecl \ | |
18974 | lt_cv_sys_global_symbol_to_import \ | |
18975 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18976 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18977 | lt_cv_nm_interface \ | |
18978 | nm_file_list_spec \ | |
18979 | lt_cv_truncate_bin \ | |
18980 | lt_prog_compiler_no_builtin_flag \ | |
18981 | lt_prog_compiler_pic \ | |
18982 | lt_prog_compiler_wl \ | |
18983 | lt_prog_compiler_static \ | |
18984 | lt_cv_prog_compiler_c_o \ | |
18985 | need_locks \ | |
18986 | MANIFEST_TOOL \ | |
18987 | DSYMUTIL \ | |
18988 | NMEDIT \ | |
18989 | LIPO \ | |
18990 | OTOOL \ | |
18991 | OTOOL64 \ | |
18992 | shrext_cmds \ | |
18993 | export_dynamic_flag_spec \ | |
18994 | whole_archive_flag_spec \ | |
18995 | compiler_needs_object \ | |
18996 | with_gnu_ld \ | |
18997 | allow_undefined_flag \ | |
18998 | no_undefined_flag \ | |
18999 | hardcode_libdir_flag_spec \ | |
19000 | hardcode_libdir_separator \ | |
19001 | exclude_expsyms \ | |
19002 | include_expsyms \ | |
19003 | file_list_spec \ | |
19004 | variables_saved_for_relink \ | |
19005 | libname_spec \ | |
19006 | library_names_spec \ | |
19007 | soname_spec \ | |
19008 | install_override_mode \ | |
19009 | finish_eval \ | |
19010 | old_striplib \ | |
19011 | striplib \ | |
19012 | compiler_lib_search_dirs \ | |
19013 | predep_objects \ | |
19014 | postdep_objects \ | |
19015 | predeps \ | |
19016 | postdeps \ | |
19017 | compiler_lib_search_path \ | |
19018 | LD_CXX \ | |
19019 | LD_RC \ | |
19020 | reload_flag_CXX \ | |
19021 | reload_flag_RC \ | |
19022 | compiler_CXX \ | |
19023 | compiler_RC \ | |
19024 | lt_prog_compiler_no_builtin_flag_CXX \ | |
19025 | lt_prog_compiler_no_builtin_flag_RC \ | |
19026 | lt_prog_compiler_pic_CXX \ | |
19027 | lt_prog_compiler_pic_RC \ | |
19028 | lt_prog_compiler_wl_CXX \ | |
19029 | lt_prog_compiler_wl_RC \ | |
19030 | lt_prog_compiler_static_CXX \ | |
19031 | lt_prog_compiler_static_RC \ | |
19032 | lt_cv_prog_compiler_c_o_CXX \ | |
19033 | lt_cv_prog_compiler_c_o_RC \ | |
19034 | export_dynamic_flag_spec_CXX \ | |
19035 | export_dynamic_flag_spec_RC \ | |
19036 | whole_archive_flag_spec_CXX \ | |
19037 | whole_archive_flag_spec_RC \ | |
19038 | compiler_needs_object_CXX \ | |
19039 | compiler_needs_object_RC \ | |
19040 | with_gnu_ld_CXX \ | |
19041 | with_gnu_ld_RC \ | |
19042 | allow_undefined_flag_CXX \ | |
19043 | allow_undefined_flag_RC \ | |
19044 | no_undefined_flag_CXX \ | |
19045 | no_undefined_flag_RC \ | |
19046 | hardcode_libdir_flag_spec_CXX \ | |
19047 | hardcode_libdir_flag_spec_RC \ | |
19048 | hardcode_libdir_separator_CXX \ | |
19049 | hardcode_libdir_separator_RC \ | |
19050 | exclude_expsyms_CXX \ | |
19051 | exclude_expsyms_RC \ | |
19052 | include_expsyms_CXX \ | |
19053 | include_expsyms_RC \ | |
19054 | file_list_spec_CXX \ | |
19055 | file_list_spec_RC \ | |
19056 | compiler_lib_search_dirs_CXX \ | |
19057 | compiler_lib_search_dirs_RC \ | |
19058 | predep_objects_CXX \ | |
19059 | predep_objects_RC \ | |
19060 | postdep_objects_CXX \ | |
19061 | postdep_objects_RC \ | |
19062 | predeps_CXX \ | |
19063 | predeps_RC \ | |
19064 | postdeps_CXX \ | |
19065 | postdeps_RC \ | |
19066 | compiler_lib_search_path_CXX \ | |
19067 | compiler_lib_search_path_RC; do | |
19068 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19069 | *[\\\\\\\`\\"\\\$]*) | |
19070 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
19071 | ;; | |
19072 | *) | |
19073 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19074 | ;; | |
19075 | esac | |
19076 | done | |
19077 | ||
19078 | # Double-quote double-evaled strings. | |
19079 | for var in reload_cmds \ | |
19080 | old_postinstall_cmds \ | |
19081 | old_postuninstall_cmds \ | |
19082 | old_archive_cmds \ | |
19083 | extract_expsyms_cmds \ | |
19084 | old_archive_from_new_cmds \ | |
19085 | old_archive_from_expsyms_cmds \ | |
19086 | archive_cmds \ | |
19087 | archive_expsym_cmds \ | |
19088 | module_cmds \ | |
19089 | module_expsym_cmds \ | |
19090 | export_symbols_cmds \ | |
19091 | prelink_cmds \ | |
19092 | postlink_cmds \ | |
19093 | postinstall_cmds \ | |
19094 | postuninstall_cmds \ | |
19095 | finish_cmds \ | |
19096 | sys_lib_search_path_spec \ | |
19097 | configure_time_dlsearch_path \ | |
19098 | configure_time_lt_sys_library_path \ | |
19099 | reload_cmds_CXX \ | |
19100 | reload_cmds_RC \ | |
19101 | old_archive_cmds_CXX \ | |
19102 | old_archive_cmds_RC \ | |
19103 | old_archive_from_new_cmds_CXX \ | |
19104 | old_archive_from_new_cmds_RC \ | |
19105 | old_archive_from_expsyms_cmds_CXX \ | |
19106 | old_archive_from_expsyms_cmds_RC \ | |
19107 | archive_cmds_CXX \ | |
19108 | archive_cmds_RC \ | |
19109 | archive_expsym_cmds_CXX \ | |
19110 | archive_expsym_cmds_RC \ | |
19111 | module_cmds_CXX \ | |
19112 | module_cmds_RC \ | |
19113 | module_expsym_cmds_CXX \ | |
19114 | module_expsym_cmds_RC \ | |
19115 | export_symbols_cmds_CXX \ | |
19116 | export_symbols_cmds_RC \ | |
19117 | prelink_cmds_CXX \ | |
19118 | prelink_cmds_RC \ | |
19119 | postlink_cmds_CXX \ | |
19120 | postlink_cmds_RC; do | |
19121 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19122 | *[\\\\\\\`\\"\\\$]*) | |
19123 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
19124 | ;; | |
19125 | *) | |
19126 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19127 | ;; | |
19128 | esac | |
19129 | done | |
19130 | ||
19131 | ac_aux_dir='$ac_aux_dir' | |
19132 | ||
19133 | # See if we are running on zsh, and set the options that allow our | |
19134 | # commands through without removal of \ escapes INIT. | |
19135 | if test -n "\${ZSH_VERSION+set}"; then | |
19136 | setopt NO_GLOB_SUBST | |
19137 | fi | |
19138 | ||
19139 | ||
19140 | PACKAGE='$PACKAGE' | |
19141 | VERSION='$VERSION' | |
19142 | RM='$RM' | |
19143 | ofile='$ofile' | |
19144 | ||
19145 | ||
19146 | ||
19147 | ||
19148 | ||
19149 | ||
19150 | ||
19151 | ||
19152 | _ACEOF | |
19153 | ||
19154 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19155 | ||
19156 | # Handling of arguments. | |
19157 | for ac_config_target in $ac_config_targets | |
19158 | do | |
19159 | case $ac_config_target in | |
19160 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
19161 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
19162 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19163 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19164 | "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;; | |
19165 | "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;; | |
19166 | "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;; | |
19167 | "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;; | |
19168 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
19169 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
19170 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
19171 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
19172 | "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;; | |
19173 | "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;; | |
19174 | ||
19175 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
19176 | esac | |
19177 | done | |
19178 | ||
19179 | ||
19180 | # If the user did not use the arguments to specify the items to instantiate, | |
19181 | # then the envvar interface is used. Set only those that are not. | |
19182 | # We use the long form for the default assignment because of an extremely | |
19183 | # bizarre bug on SunOS 4.1.3. | |
19184 | if $ac_need_defaults; then | |
19185 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19186 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
19187 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
19188 | fi | |
19189 | ||
19190 | # Have a temporary directory for convenience. Make it in the build tree | |
19191 | # simply because there is no reason against having it here, and in addition, | |
19192 | # creating and moving files from /tmp can sometimes cause problems. | |
19193 | # Hook for its removal unless debugging. | |
19194 | # Note that there is a small window in which the directory will not be cleaned: | |
19195 | # after its creation but before its name has been assigned to `$tmp'. | |
19196 | $debug || | |
19197 | { | |
19198 | tmp= ac_tmp= | |
19199 | trap 'exit_status=$? | |
19200 | : "${ac_tmp:=$tmp}" | |
19201 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
19202 | ' 0 | |
19203 | trap 'as_fn_exit 1' 1 2 13 15 | |
19204 | } | |
19205 | # Create a (secure) tmp directory for tmp files. | |
19206 | ||
19207 | { | |
19208 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
19209 | test -d "$tmp" | |
19210 | } || | |
19211 | { | |
19212 | tmp=./conf$$-$RANDOM | |
19213 | (umask 077 && mkdir "$tmp") | |
19214 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
19215 | ac_tmp=$tmp | |
19216 | ||
19217 | # Set up the scripts for CONFIG_FILES section. | |
19218 | # No need to generate them if there are no CONFIG_FILES. | |
19219 | # This happens for instance with `./config.status config.h'. | |
19220 | if test -n "$CONFIG_FILES"; then | |
19221 | ||
19222 | ||
19223 | ac_cr=`echo X | tr X '\015'` | |
19224 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19225 | # But we know of no other shell where ac_cr would be empty at this | |
19226 | # point, so we can use a bashism as a fallback. | |
19227 | if test "x$ac_cr" = x; then | |
19228 | eval ac_cr=\$\'\\r\' | |
19229 | fi | |
19230 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19231 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
19232 | ac_cs_awk_cr='\\r' | |
19233 | else | |
19234 | ac_cs_awk_cr=$ac_cr | |
19235 | fi | |
19236 | ||
19237 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
19238 | _ACEOF | |
19239 | ||
19240 | ||
19241 | { | |
19242 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19243 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19244 | echo "_ACEOF" | |
19245 | } >conf$$subs.sh || | |
19246 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19247 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
19248 | ac_delim='%!_!# ' | |
19249 | for ac_last_try in false false false false false :; do | |
19250 | . ./conf$$subs.sh || | |
19251 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19252 | ||
19253 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19254 | if test $ac_delim_n = $ac_delim_num; then | |
19255 | break | |
19256 | elif $ac_last_try; then | |
19257 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19258 | else | |
19259 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19260 | fi | |
19261 | done | |
19262 | rm -f conf$$subs.sh | |
19263 | ||
19264 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19265 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
19266 | _ACEOF | |
19267 | sed -n ' | |
19268 | h | |
19269 | s/^/S["/; s/!.*/"]=/ | |
19270 | p | |
19271 | g | |
19272 | s/^[^!]*!// | |
19273 | :repl | |
19274 | t repl | |
19275 | s/'"$ac_delim"'$// | |
19276 | t delim | |
19277 | :nl | |
19278 | h | |
19279 | s/\(.\{148\}\)..*/\1/ | |
19280 | t more1 | |
19281 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19282 | p | |
19283 | n | |
19284 | b repl | |
19285 | :more1 | |
19286 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19287 | p | |
19288 | g | |
19289 | s/.\{148\}// | |
19290 | t nl | |
19291 | :delim | |
19292 | h | |
19293 | s/\(.\{148\}\)..*/\1/ | |
19294 | t more2 | |
19295 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19296 | p | |
19297 | b | |
19298 | :more2 | |
19299 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19300 | p | |
19301 | g | |
19302 | s/.\{148\}// | |
19303 | t delim | |
19304 | ' <conf$$subs.awk | sed ' | |
19305 | /^[^""]/{ | |
19306 | N | |
19307 | s/\n// | |
19308 | } | |
19309 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19310 | rm -f conf$$subs.awk | |
19311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19312 | _ACAWK | |
19313 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
19314 | for (key in S) S_is_set[key] = 1 | |
19315 | FS = "\a" | |
19316 | ||
19317 | } | |
19318 | { | |
19319 | line = $ 0 | |
19320 | nfields = split(line, field, "@") | |
19321 | substed = 0 | |
19322 | len = length(field[1]) | |
19323 | for (i = 2; i < nfields; i++) { | |
19324 | key = field[i] | |
19325 | keylen = length(key) | |
19326 | if (S_is_set[key]) { | |
19327 | value = S[key] | |
19328 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19329 | len += length(value) + length(field[++i]) | |
19330 | substed = 1 | |
19331 | } else | |
19332 | len += 1 + keylen | |
19333 | } | |
19334 | ||
19335 | print line | |
19336 | } | |
19337 | ||
19338 | _ACAWK | |
19339 | _ACEOF | |
19340 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19341 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19342 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19343 | else | |
19344 | cat | |
19345 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
19346 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
19347 | _ACEOF | |
19348 | ||
19349 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
19350 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
19351 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19352 | # (actually we leave an empty line to preserve line numbers). | |
19353 | if test "x$srcdir" = x.; then | |
19354 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
19355 | h | |
19356 | s/// | |
19357 | s/^/:/ | |
19358 | s/[ ]*$/:/ | |
19359 | s/:\$(srcdir):/:/g | |
19360 | s/:\${srcdir}:/:/g | |
19361 | s/:@srcdir@:/:/g | |
19362 | s/^:*// | |
19363 | s/:*$// | |
19364 | x | |
19365 | s/\(=[ ]*\).*/\1/ | |
19366 | G | |
19367 | s/\n// | |
19368 | s/^[^=]*=[ ]*$// | |
19369 | }' | |
19370 | fi | |
19371 | ||
19372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19373 | fi # test -n "$CONFIG_FILES" | |
19374 | ||
19375 | # Set up the scripts for CONFIG_HEADERS section. | |
19376 | # No need to generate them if there are no CONFIG_HEADERS. | |
19377 | # This happens for instance with `./config.status Makefile'. | |
19378 | if test -n "$CONFIG_HEADERS"; then | |
19379 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
19380 | BEGIN { | |
19381 | _ACEOF | |
19382 | ||
19383 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19384 | # here-document in config.status, that substitutes the proper values into | |
19385 | # config.h.in to produce config.h. | |
19386 | ||
19387 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19388 | # handling of long lines. | |
19389 | ac_delim='%!_!# ' | |
19390 | for ac_last_try in false false :; do | |
19391 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
19392 | if test -z "$ac_tt"; then | |
19393 | break | |
19394 | elif $ac_last_try; then | |
19395 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
19396 | else | |
19397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19398 | fi | |
19399 | done | |
19400 | ||
19401 | # For the awk script, D is an array of macro values keyed by name, | |
19402 | # likewise P contains macro parameters if any. Preserve backslash | |
19403 | # newline sequences. | |
19404 | ||
19405 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19406 | sed -n ' | |
19407 | s/.\{148\}/&'"$ac_delim"'/g | |
19408 | t rset | |
19409 | :rset | |
19410 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19411 | t def | |
19412 | d | |
19413 | :def | |
19414 | s/\\$// | |
19415 | t bsnl | |
19416 | s/["\\]/\\&/g | |
19417 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19418 | D["\1"]=" \3"/p | |
19419 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19420 | d | |
19421 | :bsnl | |
19422 | s/["\\]/\\&/g | |
19423 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19424 | D["\1"]=" \3\\\\\\n"\\/p | |
19425 | t cont | |
19426 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19427 | t cont | |
19428 | d | |
19429 | :cont | |
19430 | n | |
19431 | s/.\{148\}/&'"$ac_delim"'/g | |
19432 | t clear | |
19433 | :clear | |
19434 | s/\\$// | |
19435 | t bsnlc | |
19436 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19437 | d | |
19438 | :bsnlc | |
19439 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19440 | b cont | |
19441 | ' <confdefs.h | sed ' | |
19442 | s/'"$ac_delim"'/"\\\ | |
19443 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19444 | ||
19445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19446 | for (key in D) D_is_set[key] = 1 | |
19447 | FS = "\a" | |
19448 | } | |
19449 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19450 | line = \$ 0 | |
19451 | split(line, arg, " ") | |
19452 | if (arg[1] == "#") { | |
19453 | defundef = arg[2] | |
19454 | mac1 = arg[3] | |
19455 | } else { | |
19456 | defundef = substr(arg[1], 2) | |
19457 | mac1 = arg[2] | |
19458 | } | |
19459 | split(mac1, mac2, "(") #) | |
19460 | macro = mac2[1] | |
19461 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19462 | if (D_is_set[macro]) { | |
19463 | # Preserve the white space surrounding the "#". | |
19464 | print prefix "define", macro P[macro] D[macro] | |
19465 | next | |
19466 | } else { | |
19467 | # Replace #undef with comments. This is necessary, for example, | |
19468 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19469 | # on some systems where configure will not decide to define it. | |
19470 | if (defundef == "undef") { | |
19471 | print "/*", prefix defundef, macro, "*/" | |
19472 | next | |
19473 | } | |
19474 | } | |
19475 | } | |
19476 | { print } | |
19477 | _ACAWK | |
19478 | _ACEOF | |
19479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19480 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
19481 | fi # test -n "$CONFIG_HEADERS" | |
19482 | ||
19483 | ||
19484 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
19485 | shift | |
19486 | for ac_tag | |
19487 | do | |
19488 | case $ac_tag in | |
19489 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19490 | esac | |
19491 | case $ac_mode$ac_tag in | |
19492 | :[FHL]*:*);; | |
19493 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19494 | :[FH]-) ac_tag=-:-;; | |
19495 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19496 | esac | |
19497 | ac_save_IFS=$IFS | |
19498 | IFS=: | |
19499 | set x $ac_tag | |
19500 | IFS=$ac_save_IFS | |
19501 | shift | |
19502 | ac_file=$1 | |
19503 | shift | |
19504 | ||
19505 | case $ac_mode in | |
19506 | :L) ac_source=$1;; | |
19507 | :[FH]) | |
19508 | ac_file_inputs= | |
19509 | for ac_f | |
19510 | do | |
19511 | case $ac_f in | |
19512 | -) ac_f="$ac_tmp/stdin";; | |
19513 | *) # Look for the file first in the build tree, then in the source tree | |
19514 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19515 | # because $ac_f cannot contain `:'. | |
19516 | test -f "$ac_f" || | |
19517 | case $ac_f in | |
19518 | [\\/$]*) false;; | |
19519 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19520 | esac || | |
19521 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19522 | esac | |
19523 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19524 | as_fn_append ac_file_inputs " '$ac_f'" | |
19525 | done | |
19526 | ||
19527 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19528 | # use $as_me), people would be surprised to read: | |
19529 | # /* config.h. Generated by config.status. */ | |
19530 | configure_input='Generated from '` | |
19531 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19532 | `' by configure.' | |
19533 | if test x"$ac_file" != x-; then | |
19534 | configure_input="$ac_file. $configure_input" | |
19535 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19536 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19537 | fi | |
19538 | # Neutralize special characters interpreted by sed in replacement strings. | |
19539 | case $configure_input in #( | |
19540 | *\&* | *\|* | *\\* ) | |
19541 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19542 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19543 | *) ac_sed_conf_input=$configure_input;; | |
19544 | esac | |
19545 | ||
19546 | case $ac_tag in | |
19547 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
19548 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
19549 | esac | |
19550 | ;; | |
19551 | esac | |
19552 | ||
19553 | ac_dir=`$as_dirname -- "$ac_file" || | |
19554 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19555 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19556 | X"$ac_file" : 'X\(//\)$' \| \ | |
19557 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
19558 | $as_echo X"$ac_file" | | |
19559 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19560 | s//\1/ | |
19561 | q | |
19562 | } | |
19563 | /^X\(\/\/\)[^/].*/{ | |
19564 | s//\1/ | |
19565 | q | |
19566 | } | |
19567 | /^X\(\/\/\)$/{ | |
19568 | s//\1/ | |
19569 | q | |
19570 | } | |
19571 | /^X\(\/\).*/{ | |
19572 | s//\1/ | |
19573 | q | |
19574 | } | |
19575 | s/.*/./; q'` | |
19576 | as_dir="$ac_dir"; as_fn_mkdir_p | |
19577 | ac_builddir=. | |
19578 | ||
19579 | case "$ac_dir" in | |
19580 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19581 | *) | |
19582 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19583 | # A ".." for each directory in $ac_dir_suffix. | |
19584 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19585 | case $ac_top_builddir_sub in | |
19586 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19587 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19588 | esac ;; | |
19589 | esac | |
19590 | ac_abs_top_builddir=$ac_pwd | |
19591 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19592 | # for backward compatibility: | |
19593 | ac_top_builddir=$ac_top_build_prefix | |
19594 | ||
19595 | case $srcdir in | |
19596 | .) # We are building in place. | |
19597 | ac_srcdir=. | |
19598 | ac_top_srcdir=$ac_top_builddir_sub | |
19599 | ac_abs_top_srcdir=$ac_pwd ;; | |
19600 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
19601 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19602 | ac_top_srcdir=$srcdir | |
19603 | ac_abs_top_srcdir=$srcdir ;; | |
19604 | *) # Relative name. | |
19605 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19606 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19607 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
19608 | esac | |
19609 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
19610 | ||
19611 | ||
19612 | case $ac_mode in | |
19613 | :F) | |
19614 | # | |
19615 | # CONFIG_FILE | |
19616 | # | |
19617 | ||
19618 | case $INSTALL in | |
19619 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
19620 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
19621 | esac | |
19622 | ac_MKDIR_P=$MKDIR_P | |
19623 | case $MKDIR_P in | |
19624 | [\\/$]* | ?:[\\/]* ) ;; | |
19625 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19626 | esac | |
19627 | _ACEOF | |
19628 | ||
19629 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19630 | # If the template does not know about datarootdir, expand it. | |
19631 | # FIXME: This hack should be removed a few years after 2.60. | |
19632 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19633 | ac_sed_dataroot=' | |
19634 | /datarootdir/ { | |
19635 | p | |
19636 | q | |
19637 | } | |
19638 | /@datadir@/p | |
19639 | /@docdir@/p | |
19640 | /@infodir@/p | |
19641 | /@localedir@/p | |
19642 | /@mandir@/p' | |
19643 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19644 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19645 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19647 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19648 | _ACEOF | |
19649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19650 | ac_datarootdir_hack=' | |
19651 | s&@datadir@&$datadir&g | |
19652 | s&@docdir@&$docdir&g | |
19653 | s&@infodir@&$infodir&g | |
19654 | s&@localedir@&$localedir&g | |
19655 | s&@mandir@&$mandir&g | |
19656 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19657 | esac | |
19658 | _ACEOF | |
19659 | ||
19660 | # Neutralize VPATH when `$srcdir' = `.'. | |
19661 | # Shell code in configure.ac might set extrasub. | |
19662 | # FIXME: do we really want to maintain this feature? | |
19663 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19664 | ac_sed_extra="$ac_vpsub | |
19665 | $extrasub | |
19666 | _ACEOF | |
19667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19668 | :t | |
19669 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19670 | s|@configure_input@|$ac_sed_conf_input|;t t | |
19671 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19672 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19673 | s&@srcdir@&$ac_srcdir&;t t | |
19674 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19675 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19676 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19677 | s&@builddir@&$ac_builddir&;t t | |
19678 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19679 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19680 | s&@INSTALL@&$ac_INSTALL&;t t | |
19681 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19682 | $ac_datarootdir_hack | |
19683 | " | |
19684 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
19685 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19686 | ||
19687 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19688 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
19689 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19690 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
19691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19692 | which seems to be undefined. Please make sure it is defined" >&5 | |
19693 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19694 | which seems to be undefined. Please make sure it is defined" >&2;} | |
19695 | ||
19696 | rm -f "$ac_tmp/stdin" | |
19697 | case $ac_file in | |
19698 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
19699 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
19700 | esac \ | |
19701 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19702 | ;; | |
19703 | :H) | |
19704 | # | |
19705 | # CONFIG_HEADER | |
19706 | # | |
19707 | if test x"$ac_file" != x-; then | |
19708 | { | |
19709 | $as_echo "/* $configure_input */" \ | |
19710 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
19711 | } >"$ac_tmp/config.h" \ | |
19712 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19713 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
19714 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
19715 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
19716 | else | |
19717 | rm -f "$ac_file" | |
19718 | mv "$ac_tmp/config.h" "$ac_file" \ | |
19719 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19720 | fi | |
19721 | else | |
19722 | $as_echo "/* $configure_input */" \ | |
19723 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
19724 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
19725 | fi | |
19726 | # Compute "$ac_file"'s index in $config_headers. | |
19727 | _am_arg="$ac_file" | |
19728 | _am_stamp_count=1 | |
19729 | for _am_header in $config_headers :; do | |
19730 | case $_am_header in | |
19731 | $_am_arg | $_am_arg:* ) | |
19732 | break ;; | |
19733 | * ) | |
19734 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19735 | esac | |
19736 | done | |
19737 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19738 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19739 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19740 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19741 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19742 | $as_echo X"$_am_arg" | | |
19743 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19744 | s//\1/ | |
19745 | q | |
19746 | } | |
19747 | /^X\(\/\/\)[^/].*/{ | |
19748 | s//\1/ | |
19749 | q | |
19750 | } | |
19751 | /^X\(\/\/\)$/{ | |
19752 | s//\1/ | |
19753 | q | |
19754 | } | |
19755 | /^X\(\/\).*/{ | |
19756 | s//\1/ | |
19757 | q | |
19758 | } | |
19759 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19760 | ;; | |
19761 | ||
19762 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
19763 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19764 | ;; | |
19765 | esac | |
19766 | ||
19767 | ||
19768 | case $ac_file$ac_mode in | |
19769 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
19770 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19771 | # are listed without --file. Let's play safe and only enable the eval | |
19772 | # if we detect the quoting. | |
19773 | case $CONFIG_FILES in | |
19774 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19775 | *) set x $CONFIG_FILES ;; | |
19776 | esac | |
19777 | shift | |
19778 | for mf | |
19779 | do | |
19780 | # Strip MF so we end up with the name of the file. | |
19781 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19782 | # Check whether this is an Automake generated Makefile or not. | |
19783 | # We used to match only the files named 'Makefile.in', but | |
19784 | # some people rename them; so instead we look at the file content. | |
19785 | # Grep'ing the first line is not enough: some people post-process | |
19786 | # each Makefile.in and add a new line on top of each file to say so. | |
19787 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19788 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19789 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19790 | dirpart=`$as_dirname -- "$mf" || | |
19791 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19792 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19793 | X"$mf" : 'X\(//\)$' \| \ | |
19794 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19795 | $as_echo X"$mf" | | |
19796 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19797 | s//\1/ | |
19798 | q | |
19799 | } | |
19800 | /^X\(\/\/\)[^/].*/{ | |
19801 | s//\1/ | |
19802 | q | |
19803 | } | |
19804 | /^X\(\/\/\)$/{ | |
19805 | s//\1/ | |
19806 | q | |
19807 | } | |
19808 | /^X\(\/\).*/{ | |
19809 | s//\1/ | |
19810 | q | |
19811 | } | |
19812 | s/.*/./; q'` | |
19813 | else | |
19814 | continue | |
19815 | fi | |
19816 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19817 | # from the Makefile without running 'make'. | |
19818 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19819 | test -z "$DEPDIR" && continue | |
19820 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19821 | test -z "$am__include" && continue | |
19822 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19823 | # Find all dependency output files, they are included files with | |
19824 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19825 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19826 | # expansion. | |
19827 | for file in `sed -n " | |
19828 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19829 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19830 | # Make sure the directory exists. | |
19831 | test -f "$dirpart/$file" && continue | |
19832 | fdir=`$as_dirname -- "$file" || | |
19833 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19834 | X"$file" : 'X\(//\)[^/]' \| \ | |
19835 | X"$file" : 'X\(//\)$' \| \ | |
19836 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19837 | $as_echo X"$file" | | |
19838 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19839 | s//\1/ | |
19840 | q | |
19841 | } | |
19842 | /^X\(\/\/\)[^/].*/{ | |
19843 | s//\1/ | |
19844 | q | |
19845 | } | |
19846 | /^X\(\/\/\)$/{ | |
19847 | s//\1/ | |
19848 | q | |
19849 | } | |
19850 | /^X\(\/\).*/{ | |
19851 | s//\1/ | |
19852 | q | |
19853 | } | |
19854 | s/.*/./; q'` | |
19855 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19856 | # echo "creating $dirpart/$file" | |
19857 | echo '# dummy' > "$dirpart/$file" | |
19858 | done | |
19859 | done | |
19860 | } | |
19861 | ;; | |
19862 | "libtool":C) | |
19863 | ||
19864 | # See if we are running on zsh, and set the options that allow our | |
19865 | # commands through without removal of \ escapes. | |
19866 | if test -n "${ZSH_VERSION+set}"; then | |
19867 | setopt NO_GLOB_SUBST | |
19868 | fi | |
19869 | ||
19870 | cfgfile=${ofile}T | |
19871 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19872 | $RM "$cfgfile" | |
19873 | ||
19874 | cat <<_LT_EOF >> "$cfgfile" | |
19875 | #! $SHELL | |
19876 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
19877 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19878 | ||
19879 | # Provide generalized library-building support services. | |
19880 | # Written by Gordon Matzigkeit, 1996 | |
19881 | ||
19882 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
19883 | # This is free software; see the source for copying conditions. There is NO | |
19884 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
19885 | ||
19886 | # GNU Libtool is free software; you can redistribute it and/or modify | |
19887 | # it under the terms of the GNU General Public License as published by | |
19888 | # the Free Software Foundation; either version 2 of of the License, or | |
19889 | # (at your option) any later version. | |
19890 | # | |
19891 | # As a special exception to the GNU General Public License, if you | |
19892 | # distribute this file as part of a program or library that is built | |
19893 | # using GNU Libtool, you may include this file under the same | |
19894 | # distribution terms that you use for the rest of that program. | |
19895 | # | |
19896 | # GNU Libtool is distributed in the hope that it will be useful, but | |
19897 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
19898 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19899 | # GNU General Public License for more details. | |
19900 | # | |
19901 | # You should have received a copy of the GNU General Public License | |
19902 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19903 | ||
19904 | ||
19905 | # The names of the tagged configurations supported by this script. | |
19906 | available_tags='CXX RC ' | |
19907 | ||
19908 | # Configured defaults for sys_lib_dlsearch_path munging. | |
19909 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
19910 | ||
19911 | # ### BEGIN LIBTOOL CONFIG | |
19912 | ||
19913 | # Which release of libtool.m4 was used? | |
19914 | macro_version=$macro_version | |
19915 | macro_revision=$macro_revision | |
19916 | ||
19917 | # Whether or not to build shared libraries. | |
19918 | build_libtool_libs=$enable_shared | |
19919 | ||
19920 | # Whether or not to build static libraries. | |
19921 | build_old_libs=$enable_static | |
19922 | ||
19923 | # What type of objects to build. | |
19924 | pic_mode=$pic_mode | |
19925 | ||
19926 | # Whether or not to optimize for fast installation. | |
19927 | fast_install=$enable_fast_install | |
19928 | ||
19929 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
19930 | shared_archive_member_spec=$shared_archive_member_spec | |
19931 | ||
19932 | # Shell to use when invoking shell scripts. | |
19933 | SHELL=$lt_SHELL | |
19934 | ||
19935 | # An echo program that protects backslashes. | |
19936 | ECHO=$lt_ECHO | |
19937 | ||
19938 | # The PATH separator for the build system. | |
19939 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19940 | ||
19941 | # The host system. | |
19942 | host_alias=$host_alias | |
19943 | host=$host | |
19944 | host_os=$host_os | |
19945 | ||
19946 | # The build system. | |
19947 | build_alias=$build_alias | |
19948 | build=$build | |
19949 | build_os=$build_os | |
19950 | ||
19951 | # A sed program that does not truncate output. | |
19952 | SED=$lt_SED | |
19953 | ||
19954 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19955 | Xsed="\$SED -e 1s/^X//" | |
19956 | ||
19957 | # A grep program that handles long lines. | |
19958 | GREP=$lt_GREP | |
19959 | ||
19960 | # An ERE matcher. | |
19961 | EGREP=$lt_EGREP | |
19962 | ||
19963 | # A literal string matcher. | |
19964 | FGREP=$lt_FGREP | |
19965 | ||
19966 | # A BSD- or MS-compatible name lister. | |
19967 | NM=$lt_NM | |
19968 | ||
19969 | # Whether we need soft or hard links. | |
19970 | LN_S=$lt_LN_S | |
19971 | ||
19972 | # What is the maximum length of a command? | |
19973 | max_cmd_len=$max_cmd_len | |
19974 | ||
19975 | # Object file suffix (normally "o"). | |
19976 | objext=$ac_objext | |
19977 | ||
19978 | # Executable file suffix (normally ""). | |
19979 | exeext=$exeext | |
19980 | ||
19981 | # whether the shell understands "unset". | |
19982 | lt_unset=$lt_unset | |
19983 | ||
19984 | # turn spaces into newlines. | |
19985 | SP2NL=$lt_lt_SP2NL | |
19986 | ||
19987 | # turn newlines into spaces. | |
19988 | NL2SP=$lt_lt_NL2SP | |
19989 | ||
19990 | # convert \$build file names to \$host format. | |
19991 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19992 | ||
19993 | # convert \$build files to toolchain format. | |
19994 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19995 | ||
19996 | # An object symbol dumper. | |
19997 | OBJDUMP=$lt_OBJDUMP | |
19998 | ||
19999 | # Method to check whether dependent libraries are shared objects. | |
20000 | deplibs_check_method=$lt_deplibs_check_method | |
20001 | ||
20002 | # Command to use when deplibs_check_method = "file_magic". | |
20003 | file_magic_cmd=$lt_file_magic_cmd | |
20004 | ||
20005 | # How to find potential files when deplibs_check_method = "file_magic". | |
20006 | file_magic_glob=$lt_file_magic_glob | |
20007 | ||
20008 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
20009 | want_nocaseglob=$lt_want_nocaseglob | |
20010 | ||
20011 | # DLL creation program. | |
20012 | DLLTOOL=$lt_DLLTOOL | |
20013 | ||
20014 | # Command to associate shared and link libraries. | |
20015 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
20016 | ||
20017 | # The archiver. | |
20018 | AR=$lt_AR | |
20019 | ||
20020 | # Flags to create an archive. | |
20021 | AR_FLAGS=$lt_AR_FLAGS | |
20022 | ||
20023 | # How to feed a file listing to the archiver. | |
20024 | archiver_list_spec=$lt_archiver_list_spec | |
20025 | ||
20026 | # A symbol stripping program. | |
20027 | STRIP=$lt_STRIP | |
20028 | ||
20029 | # Commands used to install an old-style archive. | |
20030 | RANLIB=$lt_RANLIB | |
20031 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20032 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20033 | ||
20034 | # Whether to use a lock for old archive extraction. | |
20035 | lock_old_archive_extraction=$lock_old_archive_extraction | |
20036 | ||
20037 | # A C compiler. | |
20038 | LTCC=$lt_CC | |
20039 | ||
20040 | # LTCC compiler flags. | |
20041 | LTCFLAGS=$lt_CFLAGS | |
20042 | ||
20043 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20044 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20045 | ||
20046 | # Transform the output of nm in a proper C declaration. | |
20047 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20048 | ||
20049 | # Transform the output of nm into a list of symbols to manually relocate. | |
20050 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
20051 | ||
20052 | # Transform the output of nm in a C name address pair. | |
20053 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20054 | ||
20055 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20056 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20057 | ||
20058 | # The name lister interface. | |
20059 | nm_interface=$lt_lt_cv_nm_interface | |
20060 | ||
20061 | # Specify filename containing input files for \$NM. | |
20062 | nm_file_list_spec=$lt_nm_file_list_spec | |
20063 | ||
20064 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
20065 | lt_sysroot=$lt_sysroot | |
20066 | ||
20067 | # Command to truncate a binary pipe. | |
20068 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
20069 | ||
20070 | # The name of the directory that contains temporary libtool files. | |
20071 | objdir=$objdir | |
20072 | ||
20073 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20074 | MAGIC_CMD=$MAGIC_CMD | |
20075 | ||
20076 | # Must we lock files when doing compilation? | |
20077 | need_locks=$lt_need_locks | |
20078 | ||
20079 | # Manifest tool. | |
20080 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
20081 | ||
20082 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20083 | DSYMUTIL=$lt_DSYMUTIL | |
20084 | ||
20085 | # Tool to change global to local symbols on Mac OS X. | |
20086 | NMEDIT=$lt_NMEDIT | |
20087 | ||
20088 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20089 | LIPO=$lt_LIPO | |
20090 | ||
20091 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20092 | OTOOL=$lt_OTOOL | |
20093 | ||
20094 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20095 | OTOOL64=$lt_OTOOL64 | |
20096 | ||
20097 | # Old archive suffix (normally "a"). | |
20098 | libext=$libext | |
20099 | ||
20100 | # Shared library suffix (normally ".so"). | |
20101 | shrext_cmds=$lt_shrext_cmds | |
20102 | ||
20103 | # The commands to extract the exported symbol list from a shared archive. | |
20104 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20105 | ||
20106 | # Variables whose values should be saved in libtool wrapper scripts and | |
20107 | # restored at link time. | |
20108 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
20109 | ||
20110 | # Do we need the "lib" prefix for modules? | |
20111 | need_lib_prefix=$need_lib_prefix | |
20112 | ||
20113 | # Do we need a version for libraries? | |
20114 | need_version=$need_version | |
20115 | ||
20116 | # Library versioning type. | |
20117 | version_type=$version_type | |
20118 | ||
20119 | # Shared library runtime path variable. | |
20120 | runpath_var=$runpath_var | |
20121 | ||
20122 | # Shared library path variable. | |
20123 | shlibpath_var=$shlibpath_var | |
20124 | ||
20125 | # Is shlibpath searched before the hard-coded library search path? | |
20126 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20127 | ||
20128 | # Format of library name prefix. | |
20129 | libname_spec=$lt_libname_spec | |
20130 | ||
20131 | # List of archive names. First name is the real one, the rest are links. | |
20132 | # The last name is the one that the linker finds with -lNAME | |
20133 | library_names_spec=$lt_library_names_spec | |
20134 | ||
20135 | # The coded name of the library, if different from the real name. | |
20136 | soname_spec=$lt_soname_spec | |
20137 | ||
20138 | # Permission mode override for installation of shared libraries. | |
20139 | install_override_mode=$lt_install_override_mode | |
20140 | ||
20141 | # Command to use after installation of a shared archive. | |
20142 | postinstall_cmds=$lt_postinstall_cmds | |
20143 | ||
20144 | # Command to use after uninstallation of a shared archive. | |
20145 | postuninstall_cmds=$lt_postuninstall_cmds | |
20146 | ||
20147 | # Commands used to finish a libtool library installation in a directory. | |
20148 | finish_cmds=$lt_finish_cmds | |
20149 | ||
20150 | # As "finish_cmds", except a single script fragment to be evaled but | |
20151 | # not shown. | |
20152 | finish_eval=$lt_finish_eval | |
20153 | ||
20154 | # Whether we should hardcode library paths into libraries. | |
20155 | hardcode_into_libs=$hardcode_into_libs | |
20156 | ||
20157 | # Compile-time system search path for libraries. | |
20158 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20159 | ||
20160 | # Detected run-time system search path for libraries. | |
20161 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
20162 | ||
20163 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
20164 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
20165 | ||
20166 | # Whether dlopen is supported. | |
20167 | dlopen_support=$enable_dlopen | |
20168 | ||
20169 | # Whether dlopen of programs is supported. | |
20170 | dlopen_self=$enable_dlopen_self | |
20171 | ||
20172 | # Whether dlopen of statically linked programs is supported. | |
20173 | dlopen_self_static=$enable_dlopen_self_static | |
20174 | ||
20175 | # Commands to strip libraries. | |
20176 | old_striplib=$lt_old_striplib | |
20177 | striplib=$lt_striplib | |
20178 | ||
20179 | ||
20180 | # The linker used to build libraries. | |
20181 | LD=$lt_LD | |
20182 | ||
20183 | # How to create reloadable object files. | |
20184 | reload_flag=$lt_reload_flag | |
20185 | reload_cmds=$lt_reload_cmds | |
20186 | ||
20187 | # Commands used to build an old-style archive. | |
20188 | old_archive_cmds=$lt_old_archive_cmds | |
20189 | ||
20190 | # A language specific compiler. | |
20191 | CC=$lt_compiler | |
20192 | ||
20193 | # Is the compiler the GNU compiler? | |
20194 | with_gcc=$GCC | |
20195 | ||
20196 | # Compiler flag to turn off builtin functions. | |
20197 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
20198 | ||
20199 | # Additional compiler flags for building library objects. | |
20200 | pic_flag=$lt_lt_prog_compiler_pic | |
20201 | ||
20202 | # How to pass a linker flag through the compiler. | |
20203 | wl=$lt_lt_prog_compiler_wl | |
20204 | ||
20205 | # Compiler flag to prevent dynamic linking. | |
20206 | link_static_flag=$lt_lt_prog_compiler_static | |
20207 | ||
20208 | # Does compiler simultaneously support -c and -o options? | |
20209 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
20210 | ||
20211 | # Whether or not to add -lc for building shared libraries. | |
20212 | build_libtool_need_lc=$archive_cmds_need_lc | |
20213 | ||
20214 | # Whether or not to disallow shared libs when runtime libs are static. | |
20215 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
20216 | ||
20217 | # Compiler flag to allow reflexive dlopens. | |
20218 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
20219 | ||
20220 | # Compiler flag to generate shared objects directly from archives. | |
20221 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
20222 | ||
20223 | # Whether the compiler copes with passing no objects directly. | |
20224 | compiler_needs_object=$lt_compiler_needs_object | |
20225 | ||
20226 | # Create an old-style archive from a shared archive. | |
20227 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
20228 | ||
20229 | # Create a temporary old-style archive to link instead of a shared archive. | |
20230 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
20231 | ||
20232 | # Commands used to build a shared archive. | |
20233 | archive_cmds=$lt_archive_cmds | |
20234 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
20235 | ||
20236 | # Commands used to build a loadable module if different from building | |
20237 | # a shared archive. | |
20238 | module_cmds=$lt_module_cmds | |
20239 | module_expsym_cmds=$lt_module_expsym_cmds | |
20240 | ||
20241 | # Whether we are building with GNU ld or not. | |
20242 | with_gnu_ld=$lt_with_gnu_ld | |
20243 | ||
20244 | # Flag that allows shared libraries with undefined symbols to be built. | |
20245 | allow_undefined_flag=$lt_allow_undefined_flag | |
20246 | ||
20247 | # Flag that enforces no undefined symbols. | |
20248 | no_undefined_flag=$lt_no_undefined_flag | |
20249 | ||
20250 | # Flag to hardcode \$libdir into a binary during linking. | |
20251 | # This must work even if \$libdir does not exist | |
20252 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
20253 | ||
20254 | # Whether we need a single "-rpath" flag with a separated argument. | |
20255 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
20256 | ||
20257 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20258 | # DIR into the resulting binary. | |
20259 | hardcode_direct=$hardcode_direct | |
20260 | ||
20261 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20262 | # DIR into the resulting binary and the resulting library dependency is | |
20263 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
20264 | # library is relocated. | |
20265 | hardcode_direct_absolute=$hardcode_direct_absolute | |
20266 | ||
20267 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20268 | # into the resulting binary. | |
20269 | hardcode_minus_L=$hardcode_minus_L | |
20270 | ||
20271 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20272 | # into the resulting binary. | |
20273 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
20274 | ||
20275 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20276 | # into the library and all subsequent libraries and executables linked | |
20277 | # against it. | |
20278 | hardcode_automatic=$hardcode_automatic | |
20279 | ||
20280 | # Set to yes if linker adds runtime paths of dependent libraries | |
20281 | # to runtime path list. | |
20282 | inherit_rpath=$inherit_rpath | |
20283 | ||
20284 | # Whether libtool must link a program against all its dependency libraries. | |
20285 | link_all_deplibs=$link_all_deplibs | |
20286 | ||
20287 | # Set to "yes" if exported symbols are required. | |
20288 | always_export_symbols=$always_export_symbols | |
20289 | ||
20290 | # The commands to list exported symbols. | |
20291 | export_symbols_cmds=$lt_export_symbols_cmds | |
20292 | ||
20293 | # Symbols that should not be listed in the preloaded symbols. | |
20294 | exclude_expsyms=$lt_exclude_expsyms | |
20295 | ||
20296 | # Symbols that must always be exported. | |
20297 | include_expsyms=$lt_include_expsyms | |
20298 | ||
20299 | # Commands necessary for linking programs (against libraries) with templates. | |
20300 | prelink_cmds=$lt_prelink_cmds | |
20301 | ||
20302 | # Commands necessary for finishing linking programs. | |
20303 | postlink_cmds=$lt_postlink_cmds | |
20304 | ||
20305 | # Specify filename containing input files. | |
20306 | file_list_spec=$lt_file_list_spec | |
20307 | ||
20308 | # How to hardcode a shared library path into an executable. | |
20309 | hardcode_action=$hardcode_action | |
20310 | ||
20311 | # The directories searched by this compiler when creating a shared library. | |
20312 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20313 | ||
20314 | # Dependencies to place before and after the objects being linked to | |
20315 | # create a shared library. | |
20316 | predep_objects=$lt_predep_objects | |
20317 | postdep_objects=$lt_postdep_objects | |
20318 | predeps=$lt_predeps | |
20319 | postdeps=$lt_postdeps | |
20320 | ||
20321 | # The library search path used internally by the compiler when linking | |
20322 | # a shared library. | |
20323 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20324 | ||
20325 | # ### END LIBTOOL CONFIG | |
20326 | ||
20327 | _LT_EOF | |
20328 | ||
20329 | cat <<'_LT_EOF' >> "$cfgfile" | |
20330 | ||
20331 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
20332 | ||
20333 | # func_munge_path_list VARIABLE PATH | |
20334 | # ----------------------------------- | |
20335 | # VARIABLE is name of variable containing _space_ separated list of | |
20336 | # directories to be munged by the contents of PATH, which is string | |
20337 | # having a format: | |
20338 | # "DIR[:DIR]:" | |
20339 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
20340 | # ":DIR[:DIR]" | |
20341 | # string "DIR[ DIR]" will be appended to VARIABLE | |
20342 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
20343 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
20344 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
20345 | # "DIR[:DIR]" | |
20346 | # VARIABLE will be replaced by "DIR[ DIR]" | |
20347 | func_munge_path_list () | |
20348 | { | |
20349 | case x$2 in | |
20350 | x) | |
20351 | ;; | |
20352 | *:) | |
20353 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
20354 | ;; | |
20355 | x:*) | |
20356 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
20357 | ;; | |
20358 | *::*) | |
20359 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
20360 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
20361 | ;; | |
20362 | *) | |
20363 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
20364 | ;; | |
20365 | esac | |
20366 | } | |
20367 | ||
20368 | ||
20369 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
20370 | func_cc_basename () | |
20371 | { | |
20372 | for cc_temp in $*""; do | |
20373 | case $cc_temp in | |
20374 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
20375 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
20376 | \-*) ;; | |
20377 | *) break;; | |
20378 | esac | |
20379 | done | |
20380 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
20381 | } | |
20382 | ||
20383 | ||
20384 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
20385 | ||
20386 | _LT_EOF | |
20387 | ||
20388 | case $host_os in | |
20389 | aix3*) | |
20390 | cat <<\_LT_EOF >> "$cfgfile" | |
20391 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20392 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20393 | # vanish in a puff of smoke. | |
20394 | if test set != "${COLLECT_NAMES+set}"; then | |
20395 | COLLECT_NAMES= | |
20396 | export COLLECT_NAMES | |
20397 | fi | |
20398 | _LT_EOF | |
20399 | ;; | |
20400 | esac | |
20401 | ||
20402 | ||
20403 | ltmain=$ac_aux_dir/ltmain.sh | |
20404 | ||
20405 | ||
20406 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20407 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20408 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20409 | # is reportedly fixed, but why not run on old versions too? | |
20410 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
20411 | || (rm -f "$cfgfile"; exit 1) | |
20412 | ||
20413 | mv -f "$cfgfile" "$ofile" || | |
20414 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20415 | chmod +x "$ofile" | |
20416 | ||
20417 | ||
20418 | cat <<_LT_EOF >> "$ofile" | |
20419 | ||
20420 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20421 | ||
20422 | # The linker used to build libraries. | |
20423 | LD=$lt_LD_CXX | |
20424 | ||
20425 | # How to create reloadable object files. | |
20426 | reload_flag=$lt_reload_flag_CXX | |
20427 | reload_cmds=$lt_reload_cmds_CXX | |
20428 | ||
20429 | # Commands used to build an old-style archive. | |
20430 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20431 | ||
20432 | # A language specific compiler. | |
20433 | CC=$lt_compiler_CXX | |
20434 | ||
20435 | # Is the compiler the GNU compiler? | |
20436 | with_gcc=$GCC_CXX | |
20437 | ||
20438 | # Compiler flag to turn off builtin functions. | |
20439 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
20440 | ||
20441 | # Additional compiler flags for building library objects. | |
20442 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
20443 | ||
20444 | # How to pass a linker flag through the compiler. | |
20445 | wl=$lt_lt_prog_compiler_wl_CXX | |
20446 | ||
20447 | # Compiler flag to prevent dynamic linking. | |
20448 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
20449 | ||
20450 | # Does compiler simultaneously support -c and -o options? | |
20451 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
20452 | ||
20453 | # Whether or not to add -lc for building shared libraries. | |
20454 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
20455 | ||
20456 | # Whether or not to disallow shared libs when runtime libs are static. | |
20457 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
20458 | ||
20459 | # Compiler flag to allow reflexive dlopens. | |
20460 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
20461 | ||
20462 | # Compiler flag to generate shared objects directly from archives. | |
20463 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
20464 | ||
20465 | # Whether the compiler copes with passing no objects directly. | |
20466 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
20467 | ||
20468 | # Create an old-style archive from a shared archive. | |
20469 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
20470 | ||
20471 | # Create a temporary old-style archive to link instead of a shared archive. | |
20472 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
20473 | ||
20474 | # Commands used to build a shared archive. | |
20475 | archive_cmds=$lt_archive_cmds_CXX | |
20476 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
20477 | ||
20478 | # Commands used to build a loadable module if different from building | |
20479 | # a shared archive. | |
20480 | module_cmds=$lt_module_cmds_CXX | |
20481 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
20482 | ||
20483 | # Whether we are building with GNU ld or not. | |
20484 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
20485 | ||
20486 | # Flag that allows shared libraries with undefined symbols to be built. | |
20487 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
20488 | ||
20489 | # Flag that enforces no undefined symbols. | |
20490 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
20491 | ||
20492 | # Flag to hardcode \$libdir into a binary during linking. | |
20493 | # This must work even if \$libdir does not exist | |
20494 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
20495 | ||
20496 | # Whether we need a single "-rpath" flag with a separated argument. | |
20497 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
20498 | ||
20499 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20500 | # DIR into the resulting binary. | |
20501 | hardcode_direct=$hardcode_direct_CXX | |
20502 | ||
20503 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20504 | # DIR into the resulting binary and the resulting library dependency is | |
20505 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
20506 | # library is relocated. | |
20507 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
20508 | ||
20509 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20510 | # into the resulting binary. | |
20511 | hardcode_minus_L=$hardcode_minus_L_CXX | |
20512 | ||
20513 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20514 | # into the resulting binary. | |
20515 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
20516 | ||
20517 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20518 | # into the library and all subsequent libraries and executables linked | |
20519 | # against it. | |
20520 | hardcode_automatic=$hardcode_automatic_CXX | |
20521 | ||
20522 | # Set to yes if linker adds runtime paths of dependent libraries | |
20523 | # to runtime path list. | |
20524 | inherit_rpath=$inherit_rpath_CXX | |
20525 | ||
20526 | # Whether libtool must link a program against all its dependency libraries. | |
20527 | link_all_deplibs=$link_all_deplibs_CXX | |
20528 | ||
20529 | # Set to "yes" if exported symbols are required. | |
20530 | always_export_symbols=$always_export_symbols_CXX | |
20531 | ||
20532 | # The commands to list exported symbols. | |
20533 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
20534 | ||
20535 | # Symbols that should not be listed in the preloaded symbols. | |
20536 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
20537 | ||
20538 | # Symbols that must always be exported. | |
20539 | include_expsyms=$lt_include_expsyms_CXX | |
20540 | ||
20541 | # Commands necessary for linking programs (against libraries) with templates. | |
20542 | prelink_cmds=$lt_prelink_cmds_CXX | |
20543 | ||
20544 | # Commands necessary for finishing linking programs. | |
20545 | postlink_cmds=$lt_postlink_cmds_CXX | |
20546 | ||
20547 | # Specify filename containing input files. | |
20548 | file_list_spec=$lt_file_list_spec_CXX | |
20549 | ||
20550 | # How to hardcode a shared library path into an executable. | |
20551 | hardcode_action=$hardcode_action_CXX | |
20552 | ||
20553 | # The directories searched by this compiler when creating a shared library. | |
20554 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
20555 | ||
20556 | # Dependencies to place before and after the objects being linked to | |
20557 | # create a shared library. | |
20558 | predep_objects=$lt_predep_objects_CXX | |
20559 | postdep_objects=$lt_postdep_objects_CXX | |
20560 | predeps=$lt_predeps_CXX | |
20561 | postdeps=$lt_postdeps_CXX | |
20562 | ||
20563 | # The library search path used internally by the compiler when linking | |
20564 | # a shared library. | |
20565 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20566 | ||
20567 | # ### END LIBTOOL TAG CONFIG: CXX | |
20568 | _LT_EOF | |
20569 | ||
20570 | ||
20571 | cat <<_LT_EOF >> "$ofile" | |
20572 | ||
20573 | # ### BEGIN LIBTOOL TAG CONFIG: RC | |
20574 | ||
20575 | # The linker used to build libraries. | |
20576 | LD=$lt_LD_RC | |
20577 | ||
20578 | # How to create reloadable object files. | |
20579 | reload_flag=$lt_reload_flag_RC | |
20580 | reload_cmds=$lt_reload_cmds_RC | |
20581 | ||
20582 | # Commands used to build an old-style archive. | |
20583 | old_archive_cmds=$lt_old_archive_cmds_RC | |
20584 | ||
20585 | # A language specific compiler. | |
20586 | CC=$lt_compiler_RC | |
20587 | ||
20588 | # Is the compiler the GNU compiler? | |
20589 | with_gcc=$GCC_RC | |
20590 | ||
20591 | # Compiler flag to turn off builtin functions. | |
20592 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
20593 | ||
20594 | # Additional compiler flags for building library objects. | |
20595 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
20596 | ||
20597 | # How to pass a linker flag through the compiler. | |
20598 | wl=$lt_lt_prog_compiler_wl_RC | |
20599 | ||
20600 | # Compiler flag to prevent dynamic linking. | |
20601 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
20602 | ||
20603 | # Does compiler simultaneously support -c and -o options? | |
20604 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
20605 | ||
20606 | # Whether or not to add -lc for building shared libraries. | |
20607 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
20608 | ||
20609 | # Whether or not to disallow shared libs when runtime libs are static. | |
20610 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
20611 | ||
20612 | # Compiler flag to allow reflexive dlopens. | |
20613 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
20614 | ||
20615 | # Compiler flag to generate shared objects directly from archives. | |
20616 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
20617 | ||
20618 | # Whether the compiler copes with passing no objects directly. | |
20619 | compiler_needs_object=$lt_compiler_needs_object_RC | |
20620 | ||
20621 | # Create an old-style archive from a shared archive. | |
20622 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
20623 | ||
20624 | # Create a temporary old-style archive to link instead of a shared archive. | |
20625 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
20626 | ||
20627 | # Commands used to build a shared archive. | |
20628 | archive_cmds=$lt_archive_cmds_RC | |
20629 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
20630 | ||
20631 | # Commands used to build a loadable module if different from building | |
20632 | # a shared archive. | |
20633 | module_cmds=$lt_module_cmds_RC | |
20634 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
20635 | ||
20636 | # Whether we are building with GNU ld or not. | |
20637 | with_gnu_ld=$lt_with_gnu_ld_RC | |
20638 | ||
20639 | # Flag that allows shared libraries with undefined symbols to be built. | |
20640 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
20641 | ||
20642 | # Flag that enforces no undefined symbols. | |
20643 | no_undefined_flag=$lt_no_undefined_flag_RC | |
20644 | ||
20645 | # Flag to hardcode \$libdir into a binary during linking. | |
20646 | # This must work even if \$libdir does not exist | |
20647 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
20648 | ||
20649 | # Whether we need a single "-rpath" flag with a separated argument. | |
20650 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
20651 | ||
20652 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20653 | # DIR into the resulting binary. | |
20654 | hardcode_direct=$hardcode_direct_RC | |
20655 | ||
20656 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20657 | # DIR into the resulting binary and the resulting library dependency is | |
20658 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
20659 | # library is relocated. | |
20660 | hardcode_direct_absolute=$hardcode_direct_absolute_RC | |
20661 | ||
20662 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20663 | # into the resulting binary. | |
20664 | hardcode_minus_L=$hardcode_minus_L_RC | |
20665 | ||
20666 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20667 | # into the resulting binary. | |
20668 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
20669 | ||
20670 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20671 | # into the library and all subsequent libraries and executables linked | |
20672 | # against it. | |
20673 | hardcode_automatic=$hardcode_automatic_RC | |
20674 | ||
20675 | # Set to yes if linker adds runtime paths of dependent libraries | |
20676 | # to runtime path list. | |
20677 | inherit_rpath=$inherit_rpath_RC | |
20678 | ||
20679 | # Whether libtool must link a program against all its dependency libraries. | |
20680 | link_all_deplibs=$link_all_deplibs_RC | |
20681 | ||
20682 | # Set to "yes" if exported symbols are required. | |
20683 | always_export_symbols=$always_export_symbols_RC | |
20684 | ||
20685 | # The commands to list exported symbols. | |
20686 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
20687 | ||
20688 | # Symbols that should not be listed in the preloaded symbols. | |
20689 | exclude_expsyms=$lt_exclude_expsyms_RC | |
20690 | ||
20691 | # Symbols that must always be exported. | |
20692 | include_expsyms=$lt_include_expsyms_RC | |
20693 | ||
20694 | # Commands necessary for linking programs (against libraries) with templates. | |
20695 | prelink_cmds=$lt_prelink_cmds_RC | |
20696 | ||
20697 | # Commands necessary for finishing linking programs. | |
20698 | postlink_cmds=$lt_postlink_cmds_RC | |
20699 | ||
20700 | # Specify filename containing input files. | |
20701 | file_list_spec=$lt_file_list_spec_RC | |
20702 | ||
20703 | # How to hardcode a shared library path into an executable. | |
20704 | hardcode_action=$hardcode_action_RC | |
20705 | ||
20706 | # The directories searched by this compiler when creating a shared library. | |
20707 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC | |
20708 | ||
20709 | # Dependencies to place before and after the objects being linked to | |
20710 | # create a shared library. | |
20711 | predep_objects=$lt_predep_objects_RC | |
20712 | postdep_objects=$lt_postdep_objects_RC | |
20713 | predeps=$lt_predeps_RC | |
20714 | postdeps=$lt_postdeps_RC | |
20715 | ||
20716 | # The library search path used internally by the compiler when linking | |
20717 | # a shared library. | |
20718 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
20719 | ||
20720 | # ### END LIBTOOL TAG CONFIG: RC | |
20721 | _LT_EOF | |
20722 | ||
20723 | ;; | |
20724 | ||
20725 | esac | |
20726 | done # for ac_tag | |
20727 | ||
20728 | ||
20729 | as_fn_exit 0 | |
20730 | _ACEOF | |
20731 | ac_clean_files=$ac_clean_files_save | |
20732 | ||
20733 | test $ac_write_fail = 0 || | |
20734 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20735 | ||
20736 | ||
20737 | # configure is writing to config.log, and then calls config.status. | |
20738 | # config.status does its own redirection, appending to config.log. | |
20739 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20740 | # by configure, so config.status won't be able to write to it; its | |
20741 | # output is simply discarded. So we exec the FD to /dev/null, | |
20742 | # effectively closing config.log, so it can be properly (re)opened and | |
20743 | # appended to by config.status. When coming back to configure, we | |
20744 | # need to make the FD available again. | |
20745 | if test "$no_create" != yes; then | |
20746 | ac_cs_success=: | |
20747 | ac_config_status_args= | |
20748 | test "$silent" = yes && | |
20749 | ac_config_status_args="$ac_config_status_args --quiet" | |
20750 | exec 5>/dev/null | |
20751 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20752 | exec 5>>config.log | |
20753 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20754 | # would make configure fail if this is the last instruction. | |
20755 | $ac_cs_success || as_fn_exit 1 | |
20756 | fi | |
20757 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20759 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20760 | fi | |
20761 | ||
20762 | ||
20763 | #==================================================================================== | |
20764 | ||
20765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
20766 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=- | |
20767 | ||
20768 | Configuration summary : | |
20769 | ||
20770 | Version : ..................... ${VERSION} | |
20771 | ||
20772 | Host CPU : .................... ${host_cpu} | |
20773 | Host Vendor : ................. ${host_vendor} | |
20774 | Host OS : ..................... ${host_os} | |
20775 | " >&5 | |
20776 | $as_echo " | |
20777 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=- | |
20778 | ||
20779 | Configuration summary : | |
20780 | ||
20781 | Version : ..................... ${VERSION} | |
20782 | ||
20783 | Host CPU : .................... ${host_cpu} | |
20784 | Host Vendor : ................. ${host_vendor} | |
20785 | Host OS : ..................... ${host_os} | |
20786 | " >&6; } | |
20787 | ||
20788 | if test x$ac_cv_c_compiler_gnu = xyes ; then | |
20789 | echo -e " Tools :\n" | |
20790 | echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}" | |
20791 | echo " GCC major version : ........... ${GCC_MAJOR_VERSION}" | |
20792 | fi | |
20793 | ||
20794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
20795 | Extra tools required for testing and examples : | |
20796 | ||
20797 | Have FFTW : ................... ${ac_cv_fftw3}" >&5 | |
20798 | $as_echo " | |
20799 | Extra tools required for testing and examples : | |
20800 | ||
20801 | Have FFTW : ................... ${ac_cv_fftw3}" >&6; } | |
20802 | ||
20803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5 | |
20804 | $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; } | |
20805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h} | |
20806 | " >&5 | |
20807 | $as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h} | |
20808 | " >&6; } | |
20809 | ||
20810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories : | |
20811 | ||
20812 | Library directory : ........... ${prefix}/lib | |
20813 | Program directory : ........... ${prefix}/bin | |
20814 | Pkgconfig directory : ......... ${prefix}/lib/pkgconfig | |
20815 | " >&5 | |
20816 | $as_echo " Installation directories : | |
20817 | ||
20818 | Library directory : ........... ${prefix}/lib | |
20819 | Program directory : ........... ${prefix}/bin | |
20820 | Pkgconfig directory : ......... ${prefix}/lib/pkgconfig | |
20821 | " >&6; } | |
20822 | ||
20823 | if test x$prefix != "x/usr" ; then | |
20824 | echo "Compiling some other packages against ${PACKAGE} may require " | |
20825 | echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the " | |
20826 | echo -e "PKG_CONFIG_PATH environment variable.\n" | |
20827 | fi | |
20828 |